You are not logged in.

#1 2022-04-21 10:48:33

parsody
Member
Registered: 2022-04-21
Posts: 33

[SOLVED]"failed to connect to bus : no medium found" (psd)

so i get this on trying to start any dbus service currently im trying to use profile-sync-daemon
i hv avahi-deamon installed and running
as per wiki i ran psd which generated config file then tried to enable the service with

sudo systemctl --user enable psd

i got:

Failed to connect to bus: No medium found

relevant log from journalctl:

Apr 21 16:13:03 arch dbus-daemon[561]: [system] Activating via systemd: service name='org.freedesktop.home1' unit='dbus-org.freedesktop.
home1.service' requested by ':1.115' (uid=0 pid=11348 comm="sudo systemctl --user enable psd")
Apr 21 16:13:03 arch dbus-daemon[561]: [system] Activation via systemd failed for unit 'dbus-org.freedesktop.home1.service': Unit dbus-o
rg.freedesktop.home1.service not found.

Last edited by parsody (2022-04-21 19:29:04)

Offline

#2 2022-04-21 18:43:13

seth
Member
Registered: 2012-09-03
Posts: 59,042

Re: [SOLVED]"failed to connect to bus : no medium found" (psd)

That journal segment is completely irrelevant.

loginctl session-status
echo $DBUS_SESSION_BUS_ADDRESS

Also how do you start the session and if it's xinit/startx, see the last link below.

Offline

#3 2022-04-21 19:07:51

parsody
Member
Registered: 2022-04-21
Posts: 33

Re: [SOLVED]"failed to connect to bus : no medium found" (psd)

loginctl session-status

output: http://0x0.st/oTb5.txt

echo $DBUS_SESSION_BUS_ADDRESS

output: http://0x0.st/oTb7.txt
i use startx
.xinitrc : http://0x0.st/oTcZ.txt
sorry im a noob i couldn't find relevant section myself here's the whole output of journalctl just after trying to start psd: http://0x0.st/oTcs.txt
i don't dual boot just arch linux pretty much vanilla fresh install

Last edited by parsody (2022-04-21 19:22:40)

Offline

#4 2022-04-21 19:23:46

seth
Member
Registered: 2012-09-03
Posts: 59,042

Re: [SOLVED]"failed to connect to bus : no medium found" (psd)

Your session looks ok, but this escaped me:

sudo systemctl --user enable psd

Don't sudo this, the whole point of a user service is to be tied to your user, not the root.

Offline

#5 2022-04-21 19:25:14

parsody
Member
Registered: 2022-04-21
Posts: 33

Re: [SOLVED]"failed to connect to bus : no medium found" (psd)

damn im so stupid thanks a lot

Offline

#6 2024-09-21 22:48:58

gzyms
Member
Registered: 2023-11-09
Posts: 4

Re: [SOLVED]"failed to connect to bus : no medium found" (psd)

In some circumstances, you may need to set it up in behalf of a given user, like this:

sudo runuser -l the_user_name -c "systemctl --user enable psd"

Offline

#7 2024-09-22 16:17:18

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 23,300

Re: [SOLVED]"failed to connect to bus : no medium found" (psd)

sudo can directly run as a different user

sudo -u user systemctl --user enable psd

In any case, closing this old thread.

Offline

Board footer

Powered by FluxBB