Re: [arch-general] systemd --user enable: Failed to connect to bus: No such file or directory

2018-08-01 Thread David Runge
On 2018-06-30 13:55:18 (+0200), Tinu Weber wrote: > On Sat, Jun 30, 2018 at 13:34:11 +0200, Bjoern Franke wrote: > > > Are you truly logged in as this second user for whom it does not work, > > > or just su(1)'d, etc? > > > > Erm, just used "sudo -u user2 -s" to login as user2. I assumed spawning

Re: [arch-general] systemd --user enable: Failed to connect to bus: No such file or directory

2018-06-30 Thread Tinu Weber
On Sat, Jun 30, 2018 at 13:34:11 +0200, Bjoern Franke wrote: > > Are you truly logged in as this second user for whom it does not work, > > or just su(1)'d, etc? > > Erm, just used "sudo -u user2 -s" to login as user2. I assumed spawning > an own zsh as user2 would do the right thing. -s only

Re: [arch-general] systemd --user enable: Failed to connect to bus: No such file or directory

2018-06-30 Thread Ralph Corderoy
Hi Bjoern, > > Are you truly logged in as this second user for whom it does not > > work, or just su(1)'d, etc? > > Erm, just used "sudo -u user2 -s" to login as user2. I assumed > spawning an own zsh as user2 would do the right thing. It doesn't here. As UID 1000 logged into an XFCE desktop

Re: [arch-general] systemd --user enable: Failed to connect to bus: No such file or directory

2018-06-30 Thread Bjoern Franke
Hi Ralph, > > Are you truly logged in as this second user for whom it does not work, > or just su(1)'d, etc? Erm, just used "sudo -u user2 -s" to login as user2. I assumed spawning an own zsh as user2 would do the right thing. > My guess is there's a user.service running for the user ID where

Re: [arch-general] systemd --user enable: Failed to connect to bus: No such file or directory

2018-06-28 Thread Ralph Corderoy
Hi Bjoern, > > I'm trying to create a systemd timer for a user to run duply daily. > > For one user the enabled worked fine, but another one: > > > > systemctl --user enable backup.timer > > Failed to connect to bus: No such file or directory Are you truly logged in as this second user

Re: [arch-general] systemd --user enable: Failed to connect to bus: No such file or directory

2018-06-28 Thread Damjan Georgievski via arch-general
On 27 June 2018 at 08:26, Bjoern Franke wrote: > Hi, > > I'm trying to create a systemd timer for a user to run duply daily. For > one user the enabled worked fine, but another one: > > systemctl --user enable backup.timer > Failed to connect to bus: No such file or directory > > I have no clue

Re: [arch-general] systemd --user enable: Failed to connect to bus: No such file or directory

2018-06-28 Thread Bjoern Franke
Hi, > Good, > > Each user + the system has his own dbus. Normally, you should have > dbus.service and dbus.socket units somewhere (/usr/lib/systemd/user > and/or /etc/systemd/user and/or .config/systemd/user) > > If it works correctly for one of the users, then probably > /usr/lib/systemd/user

Re: [arch-general] systemd --user enable: Failed to connect to bus: No such file or directory

2018-06-27 Thread Ismael Bouya
> systemctl --user status has the same error. How do I start dbus for the > second user? systemctl enable --user dbus fails due the same error, and > system's dbus is running. Good, Each user + the system has his own dbus. Normally, you should have dbus.service and dbus.socket units somewhere

Re: [arch-general] systemd --user enable: Failed to connect to bus: No such file or directory

2018-06-27 Thread Bjoern Franke
Hi Ismael, thanks for your both hints. > > The two clues I have according to your error are > - Is .config/systemd/user created? (Maybe it has to be created manually) Yes, I've dropped there the timer and service file. > - Does the second user have dbus started correctly? (for instance, does

Re: [arch-general] systemd --user enable: Failed to connect to bus: No such file or directory

2018-06-27 Thread Ismael Bouya
Hi Bjoern, > I'm trying to create a systemd timer for a user to run duply daily. For > one user the enabled worked fine, but another one: > > systemctl --user enable backup.timer > Failed to connect to bus: No such file or directory > > I have no clue why this happens, systemctl daemon-reload

[arch-general] systemd --user enable: Failed to connect to bus: No such file or directory

2018-06-27 Thread Bjoern Franke
Hi, I'm trying to create a systemd timer for a user to run duply daily. For one user the enabled worked fine, but another one: systemctl --user enable backup.timer Failed to connect to bus: No such file or directory I have no clue why this happens, systemctl daemon-reload (also with --user) did