You are not logged in.
Hi,
after booting today i could not login in at tty1. The last 3 systemd messages are still visible. The other ttys work fine and i can login on tty2.
Here is the relevant part of the journal
Feb 25 12:38:22 systemd[1]: Started Permit User Sessions.
Feb 25 12:38:22 systemd[1]: Starting Getty on tty1...
Feb 25 12:38:22 systemd[1]: Started Login Service.
Feb 25 12:38:22 systemd-logind[423]: New seat seat0.
Feb 25 12:38:22 agetty[425]: /dev/tty1: cannot open as standard input: Input/output error
The relevant package upgrades:
[2015-02-22 16:35] [ALPM] upgraded libsystemd (219-1 -> 219-2)
[2015-02-22 16:35] [ALPM] upgraded systemd (219-1 -> 219-2)
[2015-02-22 16:35] [ALPM] upgraded mesa (10.4.4-1 -> 10.4.5-1)
[2015-02-22 16:35] [ALPM] upgraded mesa-libgl (10.4.4-1 -> 10.4.5-1)
[2015-02-22 16:35] [ALPM] upgraded systemd-sysvcompat (219-1 -> 219-2)
[2015-02-22 16:35] [ALPM] installed libunwind (1.1-2)
[2015-02-22 16:35] [ALPM] upgraded xorg-server-common (1.17.1-2 -> 1.17.1-3)
[2015-02-22 16:35] [ALPM] upgraded xorg-server (1.17.1-2 -> 1.17.1-3)
I didn't change any configuration files.
Last edited by teateawhy (2015-02-28 11:13:56)
Offline
Have you tried restarting getty@tty1? Does that give the same I/O error?
Offline
Restarting getty@tty1 works, there are no errors, then autologin happens and the prompt is shown.
Feb 25 14:50:03 hostname sudo[980]: username : TTY=pts/1 ; PWD=123 ; USER=root ; COMMAND=/usr/bin/systemctl
restart getty@tty1.service
Feb 25 14:50:03 hostname sudo[980]: pam_unix(sudo:session): session opened for user root by (uid=0)
Feb 25 14:50:03 hostname polkitd[444]: Registered Authentication Agent for unix-process:981:791685 (system bus name
:1.17 [/usr/bin/pkttyagent --notify-fd 5 --fallback], object path /org/freedesktop/PolicyKit1/AuthenticationAgent,
locale de_DE.UTF-8)
Feb 25 14:50:03 hostname systemd[1]: Cannot add dependency job for unit boot.automount, ignoring: Unit
boot.automount is masked.
Feb 25 14:50:03 hostname systemd[1]: Starting Getty on tty1...
Feb 25 14:50:03 hostname login[986]: pam_unix(login:session): session opened for user username by LOGIN(uid=0)
Feb 25 14:50:03 hostname systemd-logind[423]: New session c2 of user username.
Feb 25 14:50:03 hostname systemd[1]: Started Session c2 of user username.
Feb 25 14:50:03 hostname systemd[1]: Starting Session c2 of user username.
Feb 25 14:50:03 hostname login[986]: LOGIN ON tty1 BY username
Offline
I found out what causes this problem. I am using autologin as it is explained in the wiki, with a drop in file.
[Service]
ExecStart=
ExecStart=-/usr/bin/agetty --autologin username --noclear %I 38400 linux
Type=oneshot
Restart=no
After removing this file the login prompt is shown again, but autologin is disabled.
Offline
Maybe this can be useful https://wiki.archlinux.org/index.php/Sy … _gettys.3F
I love archlinux: the last STABLE kernel release + the last STABLE DE release + the last STABLE apps releases. The upstream developers decide what is STABLE.
Offline
I removed the last two options from the dropin file, and enabled the dropin file again.
[Service]
ExecStart=
ExecStart=-/usr/bin/agetty --autologin username --noclear %I 38400 linux
Now autologin is working again. But i do not want the agetty service to restart, because this is a security hole together with autologin. This is what "Restart=no" was intended to do.
Offline
Solved. I only had to remove the "Type=oneshot" line, so the working config for autologin without restart is:
[Service]
ExecStart=
ExecStart=-/usr/bin/agetty --autologin username --noclear %I 38400 linux
Restart=no
Last edited by teateawhy (2015-02-28 11:13:21)
Offline