Can't join to AD domain
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
| packagekit (Ubuntu) |
Medium
|
Seyeong Kim | ||
| Xenial |
Medium
|
Seyeong Kim |
Bug Description
[Impact]
When trying to join AD domain via realm command, it hangs.
after researching, packagekit got segfault.
[Testcase]
realm -v join int.domainname.com --user login
* Resolving: _ldap._
* Performing LDAP DSE lookup on: 192.168.xx.xx
* Performing LDAP DSE lookup on: 192.168.xx.xx
* Successfully discovered: int.domainname.com
Password for login:
* Unconditionally checking packages
* Resolving required packages
From here nothing happens. It doesn't go any further.
journalctl -b realmd shows:
[...]
Apr 12 13:02:49 ls-mysql57 realmd[946]: Sending TCP Netlogon request
Apr 12 13:02:49 ls-mysql57 realmd[946]: Searching for (objectClass=*)
Apr 12 13:02:49 ls-mysql57 realmd[946]: Received TCP Netlogon response
Apr 12 13:02:49 ls-mysql57 realmd[946]: * Successfully discovered: int.domainname.com
Apr 12 13:02:49 ls-mysql57 realmd[946]: * Successfully discovered: int.domainame.com
Apr 12 13:02:53 ls-mysql57 realmd[946]: Using 'r209.955' operation for method 'Join' invocation on 'org.freedeskto
Apr 12 13:02:53 ls-mysql57 realmd[946]: Registered cancellable for operation 'r209.955'
Apr 12 13:02:53 ls-mysql57 realmd[946]: holding daemon: current-invocation
Apr 12 13:02:53 ls-mysql57 realmd[946]: ** (realmd:946): CRITICAL **: realm_invocatio
Apr 12 13:02:53 ls-mysql57 realmd[946]: (realmd:946): GLib-GObject-
Apr 12 13:02:53 ls-mysql57 realmd[946]: * Unconditionally checking packages
Apr 12 13:02:53 ls-mysql57 realmd[946]: * Unconditionally checking packages
Apr 12 13:02:53 ls-mysql57 realmd[946]: * Resolving required packages
Apr 12 13:02:53 ls-mysql57 realmd[946]: * Resolving required packages
Apr 12 13:02:53 ls-mysql57 realmd[946]: realm_invocatio
Apr 12 13:02:53 ls-mysql57 realmd[946]: packages: CreateTransaction call
Apr 12 13:02:53 ls-mysql57 realmd[946]: GLib-GObject: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
Apr 12 13:02:53 ls-mysql57 realmd[946]: packages: SetHints call
Apr 12 13:02:53 ls-mysql57 realmd[946]: packages: call Resolve (262144, ['sssd-tools', 'sssd', 'libnss-sss', 'libpam-sss', 'adcli'])
Apr 12 13:02:53 ls-mysql57 realmd[946]: packages: signal: Changed ()
Apr 12 13:02:53 ls-mysql57 realmd[946]: packages: call Resolve completed
Apr 12 13:02:53 ls-mysql57 realmd[946]: packages: signal: Changed ()
Apr 12 13:02:53 ls-mysql57 realmd[946]: packages: signal: Changed ()
Apr 12 13:02:53 ls-mysql57 realmd[946]: packages: signal: Changed ()
It works in 14.04.
ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: realmd 0.16.2-2
ProcVersionSign
Uname: Linux 4.4.0-18-generic x86_64
ApportVersion: 2.20.1-0ubuntu1
Architecture: amd64
Date: Tue Apr 12 13:08:33 2016
SourcePackage: realmd
UpgradeStatus: No upgrade log present (probably fresh install)
[Regression Potential]
This patch added null check about http_proxy, ftp_proxy and socket
from pk_backend_
in test, there was no hang anymore, test has been done with several guys.
[Other Info]
Upstream Patch
https:/
https:/
https:/
https:/
kukububu (kukububu) wrote : | #1 |
kukububu (kukububu) wrote : | #2 |
Launchpad Janitor (janitor) wrote : | #3 |
Status changed to 'Confirmed' because the bug affects multiple users.
Changed in realmd (Ubuntu): | |
status: | New → Confirmed |
Changed in realmd (Ubuntu): | |
importance: | Undecided → Medium |
Istvan (bergkatten) wrote : | #4 |
Is there a way to make the join command report more detailed debug info than the -v option?
Using:
realm -v join <realm>
does not tell which operation hanged.
It seems packagekitd is the problem. That process segfaults when realmd try to do the package-resolution:
Starting program: /usr/lib/
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_
[New Thread 0x7ffff4ceb700 (LWP 1292)]
[New Thread 0x7ffff44ea700 (LWP 1293)]
[New Thread 0x7ffff3ce9700 (LWP 1294)]
[New Thread 0x7ffff2431700 (LWP 1295)]
[Thread 0x7ffff2431700 (LWP 1295) exited]
[New Thread 0x7ffff2431700 (LWP 1307)]
Thread 6 "PK-Backend" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7ffff2431700 (LWP 1307)]
strlen () at ../sysdeps/
106 ../sysdeps/
(gdb) bt
#0 strlen () at ../sysdeps/
#1 0x00007ffff65efba9 in __add_to_environ (
name=
combined=
#2 0x00007ffff65efcca in __setenv (
name=
replace=
#3 0x00007ffff1a175cf in AptIntf::init (this=this@
at apt-intf.cpp:94
#4 0x00007ffff1a24c00 in pk_backend_
params=
at pk-backend-
#5 0x000055555556e419 in pk_backend_
thread_
#6 0x00007ffff6c0cb45 in ?? () from /lib/x86_
#7 0x00007ffff69866fa in start_thread (arg=0x7ffff243
at pthread_
#8 0x00007ffff66bcb5d in clone ()
at ../sysdeps/
(gdb)
..it seems what PackageKit is horribly old in Ubuntu 16.04 (2 years old...)
packagekit 0.8.17-
Latest version is: 1.1.0 from 2016-02-12
Perhaps an update is in order?
https:/
Filed PackageKit-bug here [1]
Bug [1] is marked as WONTFIX upstream by Richard Hughes because 0.8.17 is too old.
An upgrade of PackageKit is needed.
Changed in realmd (Ubuntu): | |
assignee: | nobody → Seyeong Kim (xtrusia) |
tags: | added: sts |
Changed in realmd (Ubuntu): | |
status: | Confirmed → In Progress |
affects: | realmd (Ubuntu) → packagekit (Ubuntu) |
Seyeong Kim (seyeongkim) wrote : | #9 |
@niklas-andersson
Hello, It seems that https:/
I uploaded ppa only for testing with this commit and dependent commits.
Could you please test this PPA if you possible?
https:/
Thanks.
Antoine Pernot (antoinepernot) wrote : | #10 |
I added the xtrusia PPA and it works for me.
description: | updated |
Seyeong Kim (seyeongkim) wrote : | #11 |
need to be sponsored that can be combined 4 patches
Changed in packagekit (Ubuntu Xenial): | |
status: | New → In Progress |
assignee: | nobody → Seyeong Kim (xtrusia) |
Matrix8967 (matrix8967) wrote : | #12 |
I'm a total noob to all of this stuff. But I've been struggling and struggling with this for a week.
Adding the PPA and updating the package got this fixed.
Thanks so much! I was so excited when I found this.
Let me know if I can help going forward!
Changed in packagekit (Ubuntu Xenial): | |
importance: | Undecided → Medium |
affects: | realmd → ubuntu-translations |
no longer affects: | ubuntu-translations |
description: | updated |
Seyeong Kim (seyeongkim) wrote : | #14 |
Seyeong Kim (seyeongkim) wrote : | #15 |
Launchpad Janitor (janitor) wrote : | #16 |
This bug was fixed in the package packagekit - 0.8.17-
---------------
packagekit (0.8.17-
* Fix segfault on AptIntf::init() (LP: #1569292)
aptcc: Don't ask about config changes if we are not interactive
aptcc: Always respect the noninteractive flag
aptcc: Fix several compiler warnings
aptcc: Ensure proxy and frontend-socket aren't used if they are NULL
-- Seyeong Kim <email address hidden> Fri, 29 Apr 2016 12:12:01 +0200
Changed in packagekit (Ubuntu): | |
status: | In Progress → Fix Released |
Sebastien Bacher (seb128) wrote : | #17 |
was uploaded to xenial https:/
Hello kukububu, or anyone else affected,
Accepted packagekit into xenial-proposed. The package will build now and be available at https:/
Please help us by testing this new package. See https:/
If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-
Further information regarding the verification process can be found at https:/
Changed in packagekit (Ubuntu Xenial): | |
status: | In Progress → Fix Committed |
tags: | added: verification-needed |
Seyeong Kim (seyeongkim) wrote : | #19 |
It works for me
ii packagekit 0.8.17-
tags: |
added: verification-done removed: verification-needed |
Launchpad Janitor (janitor) wrote : | #20 |
This bug was fixed in the package packagekit - 0.8.17-
---------------
packagekit (0.8.17-
* Fix segfault on AptIntf::init() (LP: #1569292)
aptcc: Don't ask about config changes if we are not interactive
aptcc: Always respect the noninteractive flag
aptcc: Fix several compiler warnings
aptcc: Ensure proxy and frontend-socket aren't used if they are NULL
-- Seyeong Kim <email address hidden> Tue, 10 May 2016 16:20:37 +0200
Changed in packagekit (Ubuntu Xenial): | |
status: | Fix Committed → Fix Released |
The verification of the Stable Release Update for packagekit has completed successfully and the package has now been released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.
I'm attaching core dump.