You are not logged in.

#1 2017-03-17 21:46:16

bozaloshtsh
Member
Registered: 2014-12-24
Posts: 10

systemd not setting up user session correctly [SOLVED]

Something's really wrong with systemd but I can't figure out how to fix it. I'll list symptoms and what I've tried so far.

Symptoms:

  • First tty login: after typing my password, it waits around a minute before dropping me into zsh, without any errors. I have not verified that this isn't a problem with zsh itself but any subsequent logins (without shutting down) are instant.

  • systemctl --user dies with "Failed to connect to bus: No such file or directory"

  • There is no XDG_RUNTIME_DIR variable.

I also found this in journalctl -xe:

Mar 17 14:09:35 harth systemd[332]: Received SIGRTMIN+24 from PID 686 (kill).
Mar 17 14:09:35 harth systemd[334]: pam_unix(systemd-user:session): session closed for user sid
Mar 17 14:09:35 harth systemd[1]: Failed to start User Manager for UID 1000.
-- Subject: Unit user@1000.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit user@1000.service has failed.
--
-- The result is failed.

I've tried everything in this thread: https://bbs.archlinux.org/viewtopic.php?id=201543 and nothing has worked, but the ultimate solution is very unhelpful (he just reinstalled arch, which I just did which introduced this problem)

Any help would be greatly appreciated.

Edit: this was solved by deleting ~/.config/systemd and restarting. I had an old mpd service file rotting in there from a previous installation and that must have been causing issues because I don't have mpd installed currently.

Last edited by bozaloshtsh (2017-03-17 23:18:09)

Offline

#2 2017-03-17 21:57:38

loqs
Member
Registered: 2014-03-06
Posts: 17,310

Re: systemd not setting up user session correctly [SOLVED]

Offline

#3 2017-03-17 23:17:05

bozaloshtsh
Member
Registered: 2014-12-24
Posts: 10

Re: systemd not setting up user session correctly [SOLVED]

First one solved it (rm ~/.config/systemd -r and reboot). Thank you.

Offline

Board footer

Powered by FluxBB