You are not logged in.

#1 2018-06-02 18:39:40

zer0downtime
Member
Registered: 2018-06-01
Posts: 2

Lxde graphical session won't autostart - User Manager service fails

Hello

I can't tell when the issue has started because up to this point i mostly set my machine to sleep when unused and had a couple of system updates in the meantime. I just found out about the problem when i was forced to reboot my PC. Then i am forced to log in on tty to manually execute startx.

My system is up to date.

 $ systemctl --failed
  UNIT              LOAD   ACTIVE SUB    DESCRIPTION              
● user@1000.service loaded failed failed User Manager for UID 1000
 $ journalctl -b -u user@1000.service
-- Logs begin at Sat 2018-04-28 08:16:55 CEST, end at Sat 2018-06-02 20:31:54 CEST. --
cze 02 19:03:01 daedalus systemd[1]: Starting User Manager for UID 1000...
cze 02 19:03:01 daedalus systemd[549]: pam_unix(systemd-user:session): session opened for user archer by (uid=0)
cze 02 19:03:01 daedalus systemd[549]: Trying to run as user instance, but $XDG_RUNTIME_DIR is not set.
cze 02 19:03:01 daedalus systemd[1]: user@1000.service: Failed with result 'protocol'.
cze 02 19:03:01 daedalus systemd[1]: Failed to start User Manager for UID 1000.

I have tried to set up this variable with ~/.profile ~/.bashrc to no avail and don't even know how to go about solving this problem.

What other info would be helpful?

Offline

#2 2018-06-02 19:27:17

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,435

Re: Lxde graphical session won't autostart - User Manager service fails

Post a full journalctl -b that variable is automatically set if your session starts up properly, remove your manually added references. How are you attempting to autostart in the first place?

Last edited by V1del (2018-06-02 19:28:43)

Offline

#3 2018-06-02 20:06:21

zer0downtime
Member
Registered: 2018-06-01
Posts: 2

Re: Lxde graphical session won't autostart - User Manager service fails

V1del wrote:

Post a full journalctl -b

https://ptpb.pw/98h7

V1del wrote:

remove your manually added references

Done.

V1del wrote:

How are you attempting to autostart in the first place?

I don't fully understand the whole process but at some point this service should be executed but i think it fails on user manager service

# xinit@archer.service
[Unit]
Description=startx for user %i
After=x@vt7.service systemd-user-sessions.service
Wants=x@vt7.service
Conflicts=getty@tty7.service

# user@.service
[Service]
User=%i
TTYPath=/dev/tty7
PAMName=login
Environment=DISPLAY=:0
WorkingDirectory=/home/%I
Nice=0
ExecStart=/bin/bash -l -c "cd; startx >/dev/null 2>&1"

[Install]
WantedBy=graphical.target
[Unit]
Description=User Manager for UID %i
After=systemd-user-sessions.service

[Service]
User=%i
PAMName=systemd-user
Type=notify
ExecStart=-/usr/lib/systemd/systemd --user
Slice=user-%i.slice
KillMode=mixed
Delegate=pids memory
TasksMax=infinity
TimeoutStopSec=10s

This is what i get when i manually execute line under ExecStart:

[ 10:01 ]  [ archer@daedalus:/usr/lib/systemd/system ]
 $ /usr/lib/systemd/systemd --user
Failed to create /user.slice/user-1000.slice/session-c1.scope/init.scope control group: Permission denied
Failed to allocate manager object: Permission denied
[ 10:01 ]  [ archer@daedalus:/usr/lib/systemd/system ]
 $ sudo /usr/lib/systemd/systemd --user
Trying to run as user instance, but $XDG_RUNTIME_DIR is not set.

Offline

Board footer

Powered by FluxBB