Score:1

'who' command has blank output when using SSH

in flag

I have an Ubuntu virtual machine which I access via SSH. When I execute the who command I get nothing. Moreover I get this output when executing systemctl --user:

Failed to connect to bus: No such file or directory

When executing systemctl status dbus I get everything normal except for this line:

[system] Failed to activate service 'org.freedesktop.login1': timed out (service_start_timeout=25000ms)

The output before log is:

dbus.service - D-Bus System Message Bus
Loaded: loaded (/lib/systemd/system/dbus.service; static; vendor preset: enabled)
Active: active (running) since Tue 2023-01-03 14:12:08 UTC; 20h ago
 Docs: man:dbus-daemon(1)
Main PID: 1368 (dbus-daemon)
 Tasks: 1 (limit: 4915)
 CGroup: /system.slice/dbus.service
       └─1368 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation --syslog-only

The output of systemctl status systemd-logind is:

systemd-logind.service - Login Service
Loaded: loaded (/lib/systemd/system/systemd-logind.service; 
static; vendor preset: enabled)
   Active: failed (Result: exit-code) since Wed 2023-01-04 11:25:15 UTC; 1h 44min ago
Docs: man:systemd-logind.service(8)
       man:logind.conf(5)
       https://www.freedesktop.org/wiki/Software/systemd/logind
       https://www.freedesktop.org/wiki/Software/systemd/multiseat
 Process: 24112 ExecStart=/lib/systemd/systemd-logind (code=exited, status=1/FAILURE)
 Main PID: 24112 (code=exited, status=1/FAILURE)
 Status: "Shutting down..."

Any suggestion about what is going on?

Artur Meinild avatar
vn flag
So now we've isolated the problem to the `logind` service failing - so far so good.
ammcom avatar
in flag
Ok but why does `logind` fail?, I tried everything to trace the issue with no luck
Artur Meinild avatar
vn flag
Yeah, to that I haven't got a clue..
hr flag
Is there any additional information in the journal (ex. `journalctl -xe -u systemd-logind.service`)?
ammcom avatar
in flag
No the same error message
Score:1
in flag

The problem was solved - the directory /var/run should be symlink to /run, but for an unknown reason it was not.

Please refer to: Is my /var directory OK, since /var/run isn't a symlink?

I sit in a Tesla and translated this thread with Ai:

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.