Bug 13603

Summary: [master-next] qemuarm-alt systemd login failed
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Armin Kuster <akuster>
Component: coreAssignee: akuster <akuster808>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium+ CC: meta.mr.watcher, meta.watcher, prabin.ca, randy.macleod, richard.purdie
Version: 3.0   
Target Milestone: 3.4 M3   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: Don't know

Description Armin Kuster 2019-10-20 15:43:29 UTC
File "/home/pokybuild/yocto-worker/qemuarm-alt/build/meta/lib/oeqa/core/decorator/__init__.py", line 36, in wrapped_f
    return func(*args, **kwargs)
  File "/home/pokybuild/yocto-worker/qemuarm-alt/build/meta/lib/oeqa/runtime/cases/parselogs.py", line 378, in test_parselogs
    self.assertEqual(errcount, 0, msg=self.msg)
AssertionError: 1 != 0 : Log: /home/pokybuild/yocto-worker/qemuarm-alt/build/build/tmp/work/qemuarm-poky-linux-gnueabi/core-image-full-cmdline/1.0-r0/target_logs/auth.log
-----------------------
Central error: Oct 19 11:21:48 qemuarm login[228]: pam_systemd(login:session): Failed to create session: Connection timed out

I have seen his at home on arm machine.

[  OK  ] Reached target Login Prompts.
[FAILED] Failed to start Login Service.
See 'systemctl status systemd-logind.service' for details.
Comment 1 Armin Kuster 2019-10-20 16:42:47 UTC
[[0;1;31m*[[0m systemd-logind.service - Login Service
   Loaded: loaded (/lib/systemd/system/systemd-logind.service; static; vendor preset: disabled)
   Active: [[0;1;31mfailed[[0m (Result: resources) since Sun 2019-10-20 14:57:27 UTC; 16s ago
     Docs: man:systemd-logind.service(8)
           man:logind.conf(5)
           https://www.freedesktop.org/wiki/Software/systemd/logind
           https://www.freedesktop.org/wiki/Software/systemd/multiseat

Oct 20 14:57:27 odroid-c2 systemd[1]: systemd-logind.service: Service has no hold-off time (RestartS
ec=0), scheduling restart.
Oct 20 14:57:27 odroid-c2 systemd[1]: systemd-logind.service: Scheduled restart job, restart counter
 is at 5.
Oct 20 14:57:27 odroid-c2 systemd[1]: Stopped Login Service.
Oct 20 14:57:27 odroid-c2 systemd[1]: [[0;1;38;5;185m[[0;1;39m[[0;1;38;5;185msystemd-logind.service:
 Start request repeated too quickly.[[0m
Oct 20 14:57:27 odroid-c2 systemd[1]: [[0;1;38;5;185m[[0;1;39m[[0;1;38;5;185msystemd-logind.service:
 Failed with result 'resources'.[[0m
Oct 20 14:57:27 odroid-c2 systemd[1]: [[0;1;31m[[0;1;39m[[0;1;31mFailed to start Login Service.[[0m
Comment 2 Richard Purdie 2019-11-22 13:58:32 UTC
Re-ocurred:
https://autobuilder.yoctoproject.org/typhoon/#/builders/110/builds/160

AssertionError: 1 != 0 : Log: /home/pokybuild/yocto-worker/qemuarm-alt/build/build/tmp/work/qemuarm-poky-linux-gnueabi/core-image-full-cmdline/1.0-r0/target_logs/auth.log
-----------------------
Central error: Nov 22 03:26:36 qemuarm login[229]: pam_systemd(login:session): Failed to create session: Connection timed out
***********************
Nov 22 03:26:10 qemuarm login[229]: pam_unix(login:session): session opened for user root by LOGIN(uid=0)
Nov 22 03:26:36 qemuarm login[229]: pam_systemd(login:session): Failed to create session: Connection timed out
Nov 22 03:26:37 qemuarm login[238]: ROOT LOGIN  on '/dev/ttyAMA0'
Nov 22 03:27:35 qemuarm sshd[267]: Accepted none for root from 192.168.7.5 port 47300 ssh2
Nov 22 03:27:35 qemuarm sshd[267]: pam_unix(sshd:session): session opened for user root by (uid=0)
Nov 22 03:27:37 qemuarm sshd[267]: Received disconnect from 192.168.7.5 port 47300:11: disconnected by user
Nov 22 03:27:37 qemuarm sshd[267]: Disconnected from user root 192.168.7.5 port 47300
Nov 22 03:27:37 qemuarm sshd[267]: pam_unix(sshd:session): session closed for user root
Nov 22 03:27:41 qemuarm sshd[273]: Accepted none for root from 192.168.7.5 port 47322 ssh2
Nov 22 03:27:42 qemuarm sshd[273]: pam_unix(sshd:session): session opened for user root by (uid=0)
Nov 22 03:27:45 qemuarm sshd[273]: Received disconnect from 192.168.7.5 port 47322:11: disconnected by user
Nov 22 03:27:45 qemuarm sshd[273]: Disconnected from user root 192.168.7.5 port 47322

***********************
1 errors found in logs.
Comment 3 akuster 2020-02-10 17:17:37 UTC
have not seen this in a while.

Monitor for a bit longer.
Comment 4 Prabin CA 2021-04-20 07:01:06 UTC
Added the revert and enhancement patches by Douglass.
Comment 5 Randy MacLeod 2021-04-21 00:42:36 UTC
If you have time, could you add a link to the commit from: https://git.openembedded.org/openembedded-core/
Thanks,
../Randy