Bug 1507501 - unable to login because of /run/nologin
Summary: unable to login because of /run/nologin
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: systemd
Version: 26
Hardware: x86_64
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: systemd-maint
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-10-30 12:40 UTC by Frédéric
Modified: 2018-05-29 11:37 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-05-29 11:37:07 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Frédéric 2017-10-30 12:40:05 UTC
Description of problem:

Every time I boot my PC with F26, if I do not login very quickly, I am then unable to login as normal user because of the existence of /run/nologin file.

Version-Release number of selected component (if applicable):
1.3.0.2.fc26

How reproducible:
Always

Steps to Reproduce:
1. reboot
2. wait for few minutes
3. try to login from sddm

Actual results:
back to sddm

Expected results:
open Plasma session

Additional info:

Note that I have 3 PC with F26+Plasma and only one has this issue.

oct. 16 08:49:02 gamma sddm-helper[1930]: pam_kwallet5(sddm:auth):
(null): pam_sm_authenticate
oct. 16 08:49:02 gamma audit[1930]: USER_AUTH pid=1930 uid=0
auid=4294967295 ses=4294967295
subj=system_u:system_r:xdm_t:s0-s0:c0.c1023 msg='op=PAM:authentication
grantors=pam_unix,pam_gnome_keyring,pam_kwallet5,pam_kwallet
acct="ale" exe="/usr/libexec/sddm-helper" hostname=? addr=? terminal=?
res=success'
oct. 16 08:49:02 gamma audit[1930]: USER_ACCT pid=1930 uid=0
auid=4294967295 ses=4294967295
subj=system_u:system_r:xdm_t:s0-s0:c0.c1023 msg='op=PAM:accounting
grantors=? acct="ale" exe="/usr/libexec/sddm-helper" hostname=? addr=?
terminal=? res=failed'
oct. 16 08:49:02 gamma sddm[1581]: Oops, secure memory pool already initialized
oct. 16 08:49:02 gamma sddm-helper[1930]: pam_kwallet(sddm:auth):
(null): pam_sm_authenticate
oct. 16 08:49:02 gamma sddm[1581]: Authentication error: "\"System is
booting up. See pam_nologin(8)\""
oct. 16 08:49:02 gamma sddm-helper[1930]: [PAM] acctMgmt: Authentication failure
oct. 16 08:49:02 gamma sddm[1581]: Authentication error:
"Authentication failure"
oct. 16 08:49:02 gamma sddm[1581]: Auth: sddm-helper exited with 1

Comment 1 Frédéric 2017-11-10 05:43:32 UTC
Hi, I still have that issue even if I update regularly my system. It's very annoying to have to login as root everytime to remove /run/nologin. This means I have to be there physically because I forbid ssh connection as root for security reasons.

Anything solution, even temporary? Is there a way to find the reason why I get this nologin file?

Comment 2 Frédéric 2017-11-10 05:50:47 UTC
This morning, this is what I found in red in journalctl:

nov. 10 05:51:31 gamma systemd[1]: Starting Create Volatile Files and Directories...
nov. 10 05:51:31 gamma systemd-tmpfiles[1320]: [/usr/lib/tmpfiles.d/screen.conf:2] Unknown group 'screen'.
nov. 10 05:51:31 gamma systemd[1]: systemd-tmpfiles-setup.service: Main process exited, code=exited, status=1/FAILURE
nov. 10 05:51:31 gamma systemd[1]: Failed to start Create Volatile Files and Directories.
nov. 10 05:51:31 gamma audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=systemd-tmpfiles-setup comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=failed'
nov. 10 05:51:31 gamma systemd[1]: systemd-tmpfiles-setup.service: Unit entered failed state.
nov. 10 05:51:31 gamma systemd[1]: systemd-tmpfiles-setup.service: Failed with result 'exit-code'.
nov. 10 05:51:31 gamma kernel: audit: type=1130 audit(1510289491.923:84): pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=systemd-tmpfiles-setup comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=failed'


nov. 10 05:52:06 gamma dbus-daemon[1346]: [system] Connection has not authenticated soon enough, closing it (auth_timeout=30000ms, elapsed: 30002ms)
nov. 10 05:52:06 gamma systemd-tmpfiles[1923]: [/usr/lib/tmpfiles.d/screen.conf:2] Unknown group 'screen'.
nov. 10 05:52:06 gamma systemd[1]: systemd-tmpfiles-setup.service: Main process exited, code=exited, status=1/FAILURE
nov. 10 05:52:06 gamma systemd[1]: Failed to start Create Volatile Files and Directories.
nov. 10 05:52:06 gamma systemd[1]: systemd-tmpfiles-setup.service: Unit entered failed state.
nov. 10 05:52:06 gamma audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=systemd-tmpfiles-setup comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=failed'
nov. 10 05:52:06 gamma systemd[1]: systemd-tmpfiles-setup.service: Failed with result 'exit-code'.

nov. 10 06:06:43 gamma dbus-daemon[1346]: [system] Connection has not authenticated soon enough, closing it (auth_timeout=30000ms, elapsed: 30002ms)
nov. 10 06:06:43 gamma systemd-tmpfiles[2025]: [/usr/lib/tmpfiles.d/screen.conf:2] Unknown group 'screen'.
nov. 10 06:06:43 gamma systemd[1]: systemd-tmpfiles-clean.service: Main process exited, code=exited, status=1/FAILURE
nov. 10 06:06:43 gamma systemd[1]: Failed to start Cleanup of Temporary Directories.
nov. 10 06:06:43 gamma audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=systemd-tmpfiles-clean comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=failed'
nov. 10 06:06:43 gamma systemd[1]: systemd-tmpfiles-clean.service: Unit entered failed state.
nov. 10 06:06:43 gamma systemd[1]: systemd-tmpfiles-clean.service: Failed with result 'exit-code'.
nov. 10 06:36:26 gamma audit[2037]: CRYPTO_KEY_USER pid=2037 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:sshd_t:s0-s0:c0.c1023 msg='op=destroy kind=server fp=SHA256:79:33:58:8b:8f:cd:3b:37:ab:a1:91:04:ad:03:b6:86:8f:4a:76:fa:3d:e0:1a:50:f2:4d:77:3a:ac:d5:9a:fd direc
nov. 10 06:36:26 gamma audit[2037]: CRYPTO_KEY_USER pid=2037 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:sshd_t:s0-s0:c0.c1023 msg='op=destroy kind=server fp=SHA256:50:d0:a3:7b:5c:b1:67:53:98:8b:84:c1:4a:3d:9b:d7:8c:12:91:3b:b5:4c:56:b6:86:c5:78:c5:03:e7:8b:ba direc
nov. 10 06:36:26 gamma audit[2037]: CRYPTO_KEY_USER pid=2037 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:sshd_t:s0-s0:c0.c1023 msg='op=destroy kind=server fp=SHA256:5a:bc:32:dd:5d:3d:59:19:5d:bb:b5:a8:28:29:4a:fb:cb:c3:e4:db:37:f0:b1:b1:d1:36:c3:08:cc:28:fb:b2 direc
nov. 10 06:36:26 gamma audit[2036]: CRYPTO_SESSION pid=2036 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:sshd_t:s0-s0:c0.c1023 msg='op=start direction=from-server cipher=aes256-gcm ksize=256 mac=<implicit> pfs=curve25519-sha256 spid=2037 suid=7
nov. 10 06:36:26 gamma audit[2036]: CRYPTO_SESSION pid=2036 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:sshd_t:s0-s0:c0.c1023 msg='op=start direction=from-client cipher=aes256-gcm ksize=256 mac=<implicit> pfs=curve25519-sha256 spid=2037 suid=7
nov. 10 06:36:27 gamma audit[2036]: USER_AUTH pid=2036 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:sshd_t:s0-s0:c0.c1023 msg='op=pubkey_auth rport=34942 acct="fred" exe="/usr/sbin/sshd" hostname=? addr=192.168.1.61 terminal=? res=success'
nov. 10 06:36:27 gamma audit[2036]: USER_AUTH pid=2036 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:sshd_t:s0-s0:c0.c1023 msg='op=key algo=ssh-rsa size=2048 fp=SHA256:c5:70:41:1d:bb:ce:b8:70:60:69:ce:dc:a0:f6:c3:7c:33:be:93:66:fe:26:79:e0:6a:79:89:fd:ce:92:32:57 rpor
nov. 10 06:36:27 gamma audit[2036]: USER_ACCT pid=2036 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:sshd_t:s0-s0:c0.c1023 msg='op=PAM:accounting grantors=? acct="fred" exe="/usr/sbin/sshd" hostname=192.168.1.61 addr=192.168.1.61 terminal=ssh res=failed'
nov. 10 06:36:27 gamma audit[2036]: USER_AUTH pid=2036 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:sshd_t:s0-s0:c0.c1023 msg='op=pubkey acct="fred" exe="/usr/sbin/sshd" hostname=? addr=192.168.1.61 terminal=ssh res=failed'
nov. 10 06:36:27 gamma sshd[2036]: fatal: Access denied for user fred by PAM account configuration [preauth]
nov. 10 06:36:27 gamma audit[2036]: CRYPTO_KEY_USER pid=2036 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:sshd_t:s0-s0:c0.c1023 msg='op=destroy kind=server fp=SHA256:5a:bc:32:dd:5d:3d:59:19:5d:bb:b5:a8:28:29:4a:fb:cb:c3:e4:db:37:f0:b1:b1:d1:36:c3:08:cc:28:fb:b2 direc
nov. 10 06:36:27 gamma audit[2036]: CRYPTO_KEY_USER pid=2036 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:sshd_t:s0-s0:c0.c1023 msg='op=destroy kind=session fp=? direction=both spid=2037 suid=74 rport=34942 laddr=192.168.1.65 lport=22  exe="/usr/sbin/sshd" hostname=?
nov. 10 06:36:27 gamma audit[2036]: CRYPTO_KEY_USER pid=2036 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:sshd_t:s0-s0:c0.c1023 msg='op=destroy kind=server fp=SHA256:79:33:58:8b:8f:cd:3b:37:ab:a1:91:04:ad:03:b6:86:8f:4a:76:fa:3d:e0:1a:50:f2:4d:77:3a:ac:d5:9a:fd direc
nov. 10 06:36:27 gamma audit[2036]: CRYPTO_KEY_USER pid=2036 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:sshd_t:s0-s0:c0.c1023 msg='op=destroy kind=server fp=SHA256:50:d0:a3:7b:5c:b1:67:53:98:8b:84:c1:4a:3d:9b:d7:8c:12:91:3b:b5:4c:56:b6:86:c5:78:c5:03:e7:8b:ba direc
nov. 10 06:36:27 gamma audit[2036]: CRYPTO_KEY_USER pid=2036 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:sshd_t:s0-s0:c0.c1023 msg='op=destroy kind=server fp=SHA256:5a:bc:32:dd:5d:3d:59:19:5d:bb:b5:a8:28:29:4a:fb:cb:c3:e4:db:37:f0:b1:b1:d1:36:c3:08:cc:28:fb:b2 direc
nov. 10 06:36:27 gamma audit[2036]: USER_LOGIN pid=2036 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:sshd_t:s0-s0:c0.c1023 msg='op=login acct="fred" exe="/usr/sbin/sshd" hostname=? addr=192.168.1.61 terminal=ssh res=failed'

Comment 3 Tomas Mraz 2017-11-10 07:51:12 UTC
PAM did not create the file and did not fail to remove it - it is not its duty. Tentatively reassigning to systemd for further investigation.

Comment 4 Zbigniew Jędrzejewski-Szmek 2017-11-10 08:12:41 UTC
/run/nologin is created by systemd-tmpfiles-setup.service. It is then removed by systemd-user-sessions.service. In comment #1 you say that you can log in if you do it quickly, which means that /run/nologin is not there, but then is created *after* boot again.

And after writing this out, the reason seems clear: systemd-tmpfiles-setup.service fails the first time around, so it is started again after another transaction starts. This is already fixed upstream, so it'll be just a question of backporting the patch. [...] Hmm, I was pretty sure we changed that, but I can't find any patch. I'll prep a patch.

Comment 5 Frédéric 2017-11-10 10:19:58 UTC
Thanks

Comment 6 Zbigniew Jędrzejewski-Szmek 2017-11-10 10:22:19 UTC
BTW, you can work-around the issue by doing 'groupadd -r screen'.

Comment 7 Frédéric 2017-11-11 20:08:08 UTC
Thanks for the workaround. Apparently it worked.

Comment 8 Fedora End Of Life 2018-05-03 07:50:57 UTC
This message is a reminder that Fedora 26 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 26. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '26'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version'
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not
able to fix it before Fedora 26 is end of life. If you would still like
to see this bug fixed and are able to reproduce it against a later version
of Fedora, you are encouraged  change the 'version' to a later Fedora
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.

Comment 9 Fedora End Of Life 2018-05-29 11:37:07 UTC
Fedora 26 changed to end-of-life (EOL) status on 2018-05-29. Fedora 26
is no longer maintained, which means that it will not receive any
further security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.


Note You need to log in before you can comment on or make changes to this bug.