Score:1

Slow SSH - Failed to activate service 'org.freedesktop.login1': timed out - no systemd

de flag

I run Devuan Linux, which still uses sysvinit and does not use systemd. For a while now, I've noticed SSH logins are very slow. The log (/var/log/auth.log) indicates that DBus is timing out:

Feb 19 10:41:07 <hostname> sshd[22198]: Accepted publickey for gargravarr from <IP> port 34654 ssh2: RSA SHA256:<keyID>
Feb 19 10:41:07 <hostname> sshd[22198]: pam_unix(sshd:session): session opened for user gargravarr(uid=<UID>) by (uid=0)
Feb 19 10:41:32 <hostname> dbus-daemon[6674]: [system] Failed to activate service 'org.freedesktop.login1': timed out (service_start_timeout=25000ms)
Feb 19 10:41:32 <hostname> sshd[22198]: pam_elogind(sshd:session): Failed to create session: Failed to activate service 'org.freedesktop.login1': timed out (service_start_timeout=25000ms)

Searching around, I can see this is not an uncommon problem in the systemd world. However, I am not using systemd, and according to this post, DBus was patched in version 1.11.10 to fix this, and I'm running 1.12.20.

OS: Devuan 4 'Chimaera'
Kernel: 5.10.0-11

I have 3 other Devuan servers almost identically configured and none of them exhibit this problem, only this one. Restarting dbus does not help nor does rebooting the OS.

Score:0
de flag

So I was never able to find an answer to this problem and ended up reinstalling the OS. If you're having a similar problem and found this, my sympathies.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.