You are not logged in.

#1 2018-12-31 10:31:23

Harey
Member
From: Bavaria, Germany
Registered: 2007-03-24
Posts: 323

systemd 240.0 fails with NIS user login

systemd 240.0-1 is not able to login with NIS provided users while 239.370-1 is. On my network machines user logins are provided via NIS and this has been working like a charm until the update to systemd 240.0-1 landed in testing. Now I get the following warning in journald's output when trying to log into kde via sddm:

Starting User Manager for UID 1000...
user@1000.service: Failed to determine user credentials: Invalid argument
user@1000.service: Failed at step USER spawning /usr/lib/systemd/systemd: Invalid argument
user@1000.service: Failed with result 'protocol'.
Failed to start User Manager for UID 1000.

Starting the DE fails and shows only the requester 'cannot sync to dbus environment'.

Downgrading to systemd 239.370-1 via

pacman -U libsystemd-239.370-1-x86_64.pkg.tar.xz systemd-239.370-1-x86_64.pkg.tar.xz systemd-sysvcompat-239.370-1-x86_64.pkg.tar.xz

solves the issue and the logins work again.

Hmm, could this be another incarnation of https://bugs.archlinux.org/task/61177?s … &closedto= ?

Last edited by Harey (2018-12-31 10:43:44)


Linux is like a wigwam: No Gates, no Windows and an Apache inside

Offline

#2 2018-12-31 20:52:20

loqs
Member
Registered: 2014-03-06
Posts: 6,662

Re: systemd 240.0 fails with NIS user login

Build systemd with 2b2b7228bffef626fe8e9f131095995f3d50ee3b reverted and see if that is the cause?

Online

#3 2019-01-05 08:07:04

Harey
Member
From: Bavaria, Germany
Registered: 2007-03-24
Posts: 323

Re: systemd 240.0 fails with NIS user login

Still valid for systemd 240.0-2. Okay, so it is a different one. Downgrade to systemd 239.370-1 fixed it (again). Looks like I have to file my own bug report...

Last edited by Harey (2019-01-05 08:15:47)


Linux is like a wigwam: No Gates, no Windows and an Apache inside

Offline

#4 2019-01-06 16:32:16

loqs
Member
Registered: 2014-03-06
Posts: 6,662

Re: systemd 240.0 fails with NIS user login

As you need an explanation of how to bisect systemd.
The following assumes the base-devel group is installed and I recommend enabling Makepkg#Parallel_compilation to reduce build times

$ git clone git://git.archlinux.org/svntogit/packages.git --single-branch --branch "packages/systemd"
$ cp -r packages/trunk systemd
$ rm -rf packages
$ makepkg -rsi #this is to confirm systemd as built on your system has the issue

$ cd systemd/src/systemd-stable
$ git bisect start
$ git bisect bad
$ git checkout v239
$ git apply ../../0001-Use-Arch-Linux-device-access-groups.patch
$ rm -rf build
$ cd ../..
$ makepkg -ersi #this is to confirm systemd 239 as built on your system does not have the issue

$ cd systemd/src/systemd-stable
$ git reset --hard
$ git bisect good
$ rm -rf build
$ cd ../..
$ makepkg -ersi #test the bisection point

$ cd systemd/src/systemd
$ git reset --hard
$ git bisect $result #substitute good or bad here
$ git apply ../../0001-Use-Arch-Linux-device-access-groups.patch
$ rm -rf build
$ cd ../..
$ makepkg -ersi #repeat these seven lines and test the generated package until git has found the bad commit

Last edited by loqs (2019-01-06 16:33:29)

Online

#5 2019-01-06 20:03:25

Harey
Member
From: Bavaria, Germany
Registered: 2007-03-24
Posts: 323

Re: systemd 240.0 fails with NIS user login

I am on a short holiday for the next days but I will see if what I can do after that. Thank you for the explanantion. This is something that I have never done before. Sounds like fun wink


Linux is like a wigwam: No Gates, no Windows and an Apache inside

Offline

Board footer

Powered by FluxBB