RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1438155 - systemd-logind.service scheduling restart every minutes and ssh delay about 30s
Summary: systemd-logind.service scheduling restart every minutes and ssh delay about 30s
Keywords:
Status: CLOSED DUPLICATE of bug 1439989
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: systemd
Version: 7.2
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: rc
: ---
Assignee: systemd-maint
QA Contact: qe-baseos-daemons
URL:
Whiteboard:
: 1438156 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-04-01 10:17 UTC by muahao
Modified: 2021-09-09 12:13 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-07-16 12:06:29 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description muahao 2017-04-01 10:17:48 UTC
### My problem

Hello forks , I find a problem when I ssh my host will be very slowly delay about 30s, I saw this problem not only in physical machine but also in docker container,this time occurred in docker container . Everytime I just need to execute systemctl restart systemd-logind will solve this problem.

I checked logs and find that systemd-logind 's logs  ```systemd-logind.service has no holdoff time, scheduling restart.```  every minutes

I also find that when I execute loginctl list-sessions  will failed

Is this a bug have been solved?

```
#loginctl list-sessions
Failed to list sessions: Message did not receive a reply (timeout by message bus)
```


### systemd version

```
[root@docker011160test /home/ahao.mah]
#systemctl --version
systemd 219
+PAM +AUDIT +SELINUX +IMA -APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ -LZ4 -SECCOMP +BLKID +ELFUTILS +KMOD +IDN

```

### systemd-logind logs

```
[root@docker011160test /home/ahao.mah]
#journalctl -u systemd-logind -f
-- Logs begin at Thu 2017-03-16 15:49:23 CST. --
Apr 01 14:33:48 docker011160test systemd-logind[122911]: New session 3052318 of user root.
Apr 01 14:33:48 docker011160test systemd-logind[122911]: New session 2817940 of user root.
Apr 01 14:33:50 docker011160test systemd[1]: systemd-logind.service watchdog timeout (limit 1min)!
Apr 01 14:33:50 docker011160test systemd[1]: systemd-logind.service: main process exited, code=killed, status=6/ABRT
Apr 01 14:33:50 docker011160test systemd[1]: Unit systemd-logind.service entered failed state.
Apr 01 14:33:50 docker011160test systemd[1]: systemd-logind.service failed.
Apr 01 14:33:50 docker011160test systemd[1]: systemd-logind.service has no holdoff time, scheduling restart.
Apr 01 14:33:50 docker011160test systemd[1]: Starting Login Service...
Apr 01 14:33:51 docker011160test systemd[1]: Started Login Service.
Apr 01 14:33:58 docker011160test systemd-logind[123174]: New seat seat0.
```

```
#journalctl -u systemd-logind | grep restart
Mar 31 02:03:54 docker011160test systemd[1]: systemd-logind.service has no holdoff time, scheduling restart.
Mar 31 02:04:54 docker011160test systemd[1]: systemd-logind.service has no holdoff time, scheduling restart.
Mar 31 02:05:55 docker011160test systemd[1]: systemd-logind.service has no holdoff time, scheduling restart.
Mar 31 02:06:55 docker011160test systemd[1]: systemd-logind.service has no holdoff time, scheduling restart.
Mar 31 02:07:55 docker011160test systemd[1]: systemd-logind.service has no holdoff time, scheduling restart.
Mar 31 02:08:56 docker011160test systemd[1]: systemd-logind.service has no holdoff time, scheduling restart.
Mar 31 02:09:56 docker011160test systemd[1]: systemd-logind.service has no holdoff time, scheduling restart.
Mar 31 02:10:56 docker011160test systemd[1]: systemd-logind.service has no holdoff time, scheduling restart.
Mar 31 02:11:56 docker011160test systemd[1]: systemd-logind.service has no holdoff time, scheduling restart.
Mar 31 02:12:57 docker011160test systemd[1]: systemd-logind.service has no holdoff time, scheduling restart.
Mar 31 02:13:57 docker011160test systemd[1]: systemd-logind.service has no holdoff time, scheduling restart.
Mar 31 02:14:57 docker011160test systemd[1]: systemd-logind.service has no holdoff time, scheduling restart.
Mar 31 02:15:58 docker011160test systemd[1]: systemd-logind.service has no holdoff time, scheduling restart.
Mar 31 02:16:58 docker011160test systemd[1]: systemd-logind.service has no holdoff time, scheduling restart.
Mar 31 02:17:58 docker011160test systemd[1]: systemd-logind.service has no holdoff time, scheduling restart.
Mar 31 02:18:58 docker011160test systemd[1]: systemd-logind.service has no holdoff time, scheduling restart.
Mar 31 02:19:59 docker011160test systemd[1]: systemd-logind.service has no holdoff time, scheduling restart.
Mar 31 02:20:59 docker011160test systemd[1]: systemd-logind.service has no holdoff time, scheduling restart.
Mar 31 02:21:59 docker011160test systemd[1]: systemd-logind.service has no holdoff time, scheduling restart.
Mar 31 02:23:00 docker011160test systemd[1]: systemd-logind.service has no holdoff time, scheduling restart.
```


### top output
```

   PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND
 35148 root      20   0   37956   6592   1392 R  65.1  0.0   0:27.53 systemd-logind
    82 dbus      20   0   27480   1804    648 R  17.5  0.0 309:30.49 dbus-daemon
```


```
#busctl
NAME                              PID PROCESS         USER             CONNECTION    UNIT                      SESSION    DESCRIPTION
:1.0                                1 systemd         root             :1.0          -                         -          -
:1.409430                       35691 systemd-logind  root             :1.409430     systemd-logind.service    -          -
:1.409432                       35738 crond           root             :1.409432     crond.service             -          -
:1.409433                       35739 crond           root             :1.409433     crond.service             -          -
:1.409434                       35737 crond           root             :1.409434     crond.service             -          -
:1.409435                       35757 busctl          root             :1.409435     sshd.service              -          -
net.reactivated.Fprint              - -               -                (activatable) -                         -
org.freedesktop.DBus                - -               -                -             -                         -          -
org.freedesktop.PolicyKit1          - -               -                (activatable) -                         -
org.freedesktop.hostname1           - -               -                (activatable) -                         -
org.freedesktop.locale1             - -               -                (activatable) -                         -
org.freedesktop.login1          35691 systemd-logind  root             :1.409430     systemd-logind.service    -          -
org.freedesktop.machine1            - -               -                (activatable) -                         -
org.freedesktop.systemd1            1 systemd         root             :1.0          -                         -          -
org.freedesktop.timedate1           - -               -                (activatable) -                         -
```

Comment 2 Michal Sekletar 2017-04-03 07:59:50 UTC
What version of systemd rpm package are you running on the affected system?

Comment 3 Lukáš Nykrýn 2017-04-03 08:37:26 UTC
*** Bug 1438156 has been marked as a duplicate of this bug. ***

Comment 5 muahao 2017-04-05 02:03:08 UTC
(In reply to Michal Sekletar from comment #2)
> What version of systemd rpm package are you running on the affected system?

http://vault.centos.org/7.2.1511/updates/Source/SPackages/systemd-219-19.el7_2.12.src.rpm

Comment 9 David Tardon 2018-06-28 06:57:18 UTC
This looks like a duplicate of bug 1439989.

Comment 10 Michal Sekletar 2018-07-16 12:06:29 UTC

*** This bug has been marked as a duplicate of bug 1439989 ***


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