You are not logged in.

#1 2014-08-22 18:43:53

jodanlime
Member
Registered: 2012-11-03
Posts: 21

[SOLVED] systemd-logind.service issues on new install

I would greatly appreciate some help with this an issue on a new install of Arch.

I have installed from the DVD, and I have installed from my existing installation on my laptop. I have also installed on two different hard drives, but continue to have the same problem.

When the system boots up everything looks find until its almost done booting, then it says failed to start systemd-logind
The system does finally boot, but I cannot log in with any user other than root. X works, xfce and cinnamon works. Everything is fine with the system other than this.

relevant journalctl -b output:

Aug 21 17:17:01 preciseserver systemd-logind[253]: Failed to enable subscription: The name org.freedesktop.systemd1 was not provided by any .service files
Aug 21 17:17:01 preciseserver systemd-logind[253]: Failed to fully start up daemon: No route to host
Aug 21 17:17:01 preciseserver systemd[1]: systemd-logind.service: main process exited, code=exited, status=1/FAILURE
Aug 21 17:17:01 preciseserver systemd[1]: Failed to start Login Service.
Aug 21 17:17:01 preciseserver systemd[1]: Unit systemd-logind.service entered failed state.
Aug 21 17:17:01 preciseserver systemd[1]: systemd-logind.service has no holdoff time, scheduling restart.
Aug 21 17:17:01 preciseserver systemd[1]: Stopping Login Service...
Aug 21 17:17:01 preciseserver systemd[1]: Starting Login Service...

Entire journalctl -b output

http://pastebin.com/yApX9gNq


I have tried restarting the service, updating with pacman, and a number of other things but unfortunately have not been able to figure this out on my own. I have installed arch many times, did a fresh server install less than two weeks ago and I didn't have any of these issues. If anybody can help me out with this issue I would greatly appreciate it.

Last edited by jodanlime (2014-08-25 20:22:38)

Offline

#2 2014-08-22 19:36:38

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 27,739
Website

Re: [SOLVED] systemd-logind.service issues on new install

What does systemtl status show for that service?

Not an Installation issue, moving to NC...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2014-08-22 20:12:41

jodanlime
Member
Registered: 2012-11-03
Posts: 21

Re: [SOLVED] systemd-logind.service issues on new install

systemctl status systemd-logind.service gives me:

● systemd-logind.service - Login Service
   Loaded: loaded (/usr/lib/systemd/system/systemd-logind.service; static)
   Active: active (running) since Fri 2014-08-22 11:40:33 EDT; 6min ago
     Docs: man:systemd-logind.service(8)
           man:logind.conf(5)
           http://www.freedesktop.org/wiki/Software/systemd/logind
           http://www.freedesktop.org/wiki/Software/systemd/multiseat
 Main PID: 275 (systemd-logind)
   Status: "Processing requests..."
   CGroup: /system.slice/systemd-logind.service
           └─275 /usr/lib/systemd/systemd-logind

Aug 22 11:40:33 preciseserver systemd[1]: Failed to start Login Service.
Aug 22 11:40:33 preciseserver systemd[1]: Unit systemd-logind.service entered failed state.
Aug 22 11:40:33 preciseserver systemd[1]: systemd-logind.service has no holdoff time, scheduling restart.
Aug 22 11:40:33 preciseserver systemd[1]: Stopping Login Service...
Aug 22 11:40:33 preciseserver systemd[1]: Starting Login Service...
Aug 22 11:40:33 preciseserver systemd[1]: Started Login Service.
Aug 22 11:40:33 preciseserver systemd-logind[275]: New seat seat0.
Aug 22 11:40:33 preciseserver systemd-logind[275]: Watching system buttons on /dev/input/event1 (Power Button)
Aug 22 11:40:33 preciseserver systemd-logind[275]: Watching system buttons on /dev/input/event0 (Power Button)
Aug 22 11:42:05 preciseserver systemd-logind[275]: New session c1 of user root.

which claims that it does eventually start the service but does not explain why I cannot login as anything other than root. Thanks for the help

Offline

#4 2014-08-22 20:47:36

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 27,739
Website

Re: [SOLVED] systemd-logind.service issues on new install

How are you logging in? You have successfully set up a user account, presumably:
https://wiki.archlinux.org/index.php/Us … ing_a_user


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#5 2014-08-22 20:59:28

jodanlime
Member
Registered: 2012-11-03
Posts: 21

Re: [SOLVED] systemd-logind.service issues on new install

I am trying to log in on the terminal, and I set up the user account exactly as shown in the wiki. My user is listed under /etc/passwd but if I use loginctl list-users it only lists the root user account. This is a very vanilla install, and I made sure to follow the wiki as closely as possible as this is the 4th time I have tried to get this box up and running.

to create my account I typed in :

useradd -m -G wheel -s /bin/bash cloudsmasher

which, returned no errors. Then I ran:

passwd cloudsmasher

which ran succesfully.

Offline

#6 2014-08-22 22:21:01

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 27,739
Website

Re: [SOLVED] systemd-logind.service issues on new install

Try adding another user account, just to ensure that it does work.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#7 2014-08-22 22:34:02

jodanlime
Member
Registered: 2012-11-03
Posts: 21

Re: [SOLVED] systemd-logind.service issues on new install

Added the new user, following along with the wiki page you linked to me, and received the same results. I created the new user account by using the root accounte, then logged out and tried to log into the newly created account but it still doesn't work.
Maybe I'm not being completely clear. It's not that I can not log in with the user account, or that it tells me that I have the wrong password or anything like that. I log in with the normal user accounts and get brought right back to the log in prompt. When this happens I can see some text flash right before getting brought back to the login prompt.

Offline

#8 2014-08-22 22:46:09

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 27,739
Website

Re: [SOLVED] systemd-logind.service issues on new install

Oh, that is different. What is supposed to happen when you login? A DM starts, or you just access the TTY?


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#9 2014-08-22 22:55:44

jodanlime
Member
Registered: 2012-11-03
Posts: 21

Re: [SOLVED] systemd-logind.service issues on new install

I just access the TTY and then run startx if I so choose, nothing automatic set up.

Offline

#10 2014-08-22 23:25:26

jodanlime
Member
Registered: 2012-11-03
Posts: 21

Re: [SOLVED] systemd-logind.service issues on new install

This might also be interesting. I can SSH into the root account no problem, but I cannot SSH into a normal account. This is what I get when I try:

Could not chdir to home directory /home/jhudson: Permission denied
/bin/bash: Permission denied

Last edited by jodanlime (2014-08-22 23:26:03)

Offline

#11 2014-08-22 23:33:35

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 27,739
Website

Re: [SOLVED] systemd-logind.service issues on new install

What are the permissions on /home/jhudson and on /home/cloudsmasher?


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#12 2014-08-22 23:40:23

jodanlime
Member
Registered: 2012-11-03
Posts: 21

Re: [SOLVED] systemd-logind.service issues on new install

# ls -l /home
total 8
drwx------ 2 cloudsmasher cloudsmasher 4096 Aug 22 12:09 cloudsmasher
drwx------ 2 jhudson      jhudson      4096 Aug 22 14:27 jhudson

Offline

#13 2014-08-22 23:44:58

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 27,739
Website

Re: [SOLVED] systemd-logind.service issues on new install

Are cloudsmasher and jhudson valid groups? They should be in users.

What is the output of groups for each user?


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#14 2014-08-23 00:33:36

jodanlime
Member
Registered: 2012-11-03
Posts: 21

Re: [SOLVED] systemd-logind.service issues on new install

# groups jhudson
wheel jhudson


# groups cloudsmasher
wheel cloudsmasher

Offline

#15 2014-08-23 01:04:47

Buddlespit
Member
From: Chesapeake, Va.
Registered: 2014-02-07
Posts: 449

Re: [SOLVED] systemd-logind.service issues on new install

jasonwryan wrote:

Are cloudsmasher and jhudson valid groups? They should be in users.

Unless the user is created with a -M, the user is created with the same groupname , ie- it's pat:pat on my system


AMD Ryzen 7 1700X | Asus PRIME X370-A | GeForce GTX 980 Ti | 16G Ram | KDE Plasma | Zen Kernel
Until linuxcounter.com closed, I was registered linux user #560427

Offline

#16 2014-08-23 14:05:03

jodanlime
Member
Registered: 2012-11-03
Posts: 21

Re: [SOLVED] systemd-logind.service issues on new install

I didn't think that having a user in the group 'users' was required for logind to work, according to the wiki page on users it is not a reccomended setup for a multi user system, creating a group for each user is what it says. I have another arch box that I checked and the normal user accounts on that machine are not in the users group. Just in case something changed, I put the user jhudson in the users group, but this did not change my problem even after restarting the service and the machine. Really scratching my head on this one guys. Thanks for the help so far.

Offline

#17 2014-08-24 11:13:06

rebootl
Member
Registered: 2012-01-10
Posts: 430
Website

Re: [SOLVED] systemd-logind.service issues on new install

What's the output of 'ls -l /' and 'ls -l /bin/bash' ?

What happens when you switch to that user by 'su username', do commands work ?

'man loginctl':

list-users
           List currently logged in users.

I agree that the --help text is misleading/unclear.

@Buddlespit: You mean '-N' wink.


Personal website: reboot.li
GitHub: github.com/rebootl

Offline

#18 2014-08-24 15:10:16

jodanlime
Member
Registered: 2012-11-03
Posts: 21

Re: [SOLVED] systemd-logind.service issues on new install

# ls -l /
total 52
lrwxrwxrwx   1 root root     7 Jul  4 08:44 bin -> usr/bin
drwx------   4 root root  4096 Aug 22 13:37 boot
drwxr-xr-x  18 root root  2920 Aug 23 05:41 dev
drwxr-xr-x  54 root root  4096 Aug 23 13:40 etc
drwxr-xr-x   4 root root  4096 Aug 22 14:27 home
lrwxrwxrwx   1 root root     7 Jul  4 08:44 lib -> usr/lib
lrwxrwxrwx   1 root root     7 Jul  4 08:44 lib64 -> usr/lib
drwx------   2 root root 16384 Aug 21 12:39 lost+found
drwxr-xr-x   2 root root  4096 Jul  4 08:44 mnt
drwxr-xr-x   2 root root  4096 Jul  4 08:44 opt
dr-xr-xr-x 124 root root     0 Aug 23 05:41 proc
drwxr-x---  12 root root  4096 Aug 23 13:38 root
drwxr-xr-x  16 root root   400 Aug 23 05:41 run
lrwxrwxrwx   1 root root     7 Jul  4 08:44 sbin -> usr/bin
drwxr-xr-x   4 root root  4096 Jul  4 08:44 srv
dr-xr-xr-x  13 root root     0 Aug 24 06:48 sys
drwxrwxrwt   7 root root   140 Aug 23 13:40 tmp
drwxr-xr-x   8 root root  4096 Aug 21 12:44 usr
drwxr-xr-x  12 root root  4096 Aug 21 09:48 var
ls -l /bin/bash
-rwxr-xr-x 1 root root 783504 Aug 18 15:34 /bin/bash
su cloudsmasher
su: failed to execute /bin/bash: Permission denied

So does this mean that the problem lies with the permissions of the bin folder? I'm pretty rubbish at figuring permissions out, but I'll be looking into that.

I see what you mean about the loginctl help page, but I was probably just typing in all the things at that point too. Thanks for pointing that out!

Offline

#19 2014-08-24 15:59:41

rebootl
Member
Registered: 2012-01-10
Posts: 430
Website

Re: [SOLVED] systemd-logind.service issues on new install

So does this mean that the problem lies with the permissions of the bin folder?

No, it was just an idea because of the error you got, but the above permissions look okay to me. Surely you can further check those.
Currently it doesn't make any sense to me...


Personal website: reboot.li
GitHub: github.com/rebootl

Offline

#20 2014-08-24 16:05:35

jodanlime
Member
Registered: 2012-11-03
Posts: 21

Re: [SOLVED] systemd-logind.service issues on new install

Yeah, I've been checking into them all morning, and the permissions look okay to me as well. Thanks for the ideas.
If it makes a difference (not sure) for su I can only log into this box via SSH at the moment, I can surely try that again tomorrow when I can sit in front of the machine if it would make a difference.

Kinda glad I'm not the only one this doesn't make sense to.

Offline

#21 2014-08-25 14:14:09

jodanlime
Member
Registered: 2012-11-03
Posts: 21

Re: [SOLVED] systemd-logind.service issues on new install

Sitting at the box now: su cloudsmasher gives me the same permission error I recieved over SSH. I re-installed bash but that didn't make a difference (not that I thought it would), I then installed zsh, and created a user with the default shell as zsh. Still will not let me log in with that user, giving the same permissions error that I got with bash. I have checked the permissions on /bin and /usr/bin and they all seem to be in order.

I'm kinda at a loss as to what to do from here, I've triple checked everything I can think of.

Offline

#22 2014-08-25 18:13:34

jodanlime
Member
Registered: 2012-11-03
Posts: 21

Re: [SOLVED] systemd-logind.service issues on new install

So I downloaded a brand new ISO, bruned it to a new disc and reinstalled. I'm still getting the exact same problem. Could this be a problem with my hardware? It doesn't seem like a hardware problem at all, but I just dont know what to do from here. Any help would be appreciated.

Offline

#23 2014-08-25 18:18:02

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 27,739
Website

Re: [SOLVED] systemd-logind.service issues on new install

What is the exact comand you are using to create a user account? I'll try and replicate.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#24 2014-08-25 18:37:58

jodanlime
Member
Registered: 2012-11-03
Posts: 21

Re: [SOLVED] systemd-logind.service issues on new install

 
useradd -m -G wheel -s /bin/bash cloudsmasher
 
passwd cloudsmasher

I did notice something though, the logind service fails to start even before I create a new user, so I dont really think that it has to do with the user creation process, but any help if appreciated.

Offline

#25 2014-08-25 18:55:55

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 27,739
Website

Re: [SOLVED] systemd-logind.service issues on new install

That works fine for me. There is nothing unusual about your setup is there? /home isn't on an external drive or you aren't using any funky sort of filesystem?


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB