My Oracle Support Banner

Oracle Linux 7: SSH Taking More Time to Establish Connections (Doc ID 2614155.1)

Last updated on DECEMBER 03, 2019

Applies to:

Linux OS - Version Oracle Linux 7.0 and later
Linux x86-64

Symptoms

Oracle Linux 7.x server takes 30 seconds for establishing SSH session. The time between logon prompt and password is about 30 seconds.

System logs show below error:

May 15 14:50:01 server dbus[9418]: [system] Activating systemd to hand-off: service name='org.freedesktop.login1' unit='dbus-org.freedesktop.login1.service'
May 15 14:50:10 server dbus[9418]: [system] Failed to activate service 'org.freedesktop.systemd1': timed out
May 15 14:50:26 server dbus[9418]: [system] Failed to activate service 'org.freedesktop.login1': timed out
May 15 14:50:35 server dbus[9418]: [system] Failed to activate service 'org.freedesktop.systemd1': timed out
May 15 14:51:00 server dbus[9418]: [system] Failed to activate service 'org.freedesktop.systemd1': timed out
May 15 14:51:25 server dbus[9418]: [system] Failed to activate service 'org.freedesktop.systemd1': timed out
May 15 14:51:50 server dbus[9418]: [system] Failed to activate service 'org.freedesktop.systemd1': timed out

It appears that systemd-logind not being able to contact systemd. This can be confirmed using below commands as well.

# busctl --list | grep org.freedesktop.systemd1
org.freedesktop.systemd1 - - - (activatable) - -
# busctl --list | grep org.freedesktop.login1
org.freedesktop.login1 - - - (activatable) - -

The second and third columns are empty (only has a dash (-)), which indicates that systemd is not listening on the dbus.

In a working node, the output would be:
[root@server ~]$ busctl --list | grep org.freedesktop.systemd1
org.freedesktop.systemd1 1 systemd root :1.0 - - -
[root@server ~]$ busctl --list | grep org.freedesktop.login1
org.freedesktop.login1 4924 systemd-logind root :1.1 systemd-logind.service - -

Also the systemd configuration files have below errors:

[root@server]# journalctl -u dbus
-- Logs begin at Sat 2019-04-13 23:10:15 EDT, end at Wed 2019-04-17 15:44:39 EDT. --
Apr 13 23:10:22 server systemd[1]: Started D-Bus System Message Bus.
Apr 13 23:10:22 server dbus-daemon[9424]: Encountered error 'Error in file /etc/dbus-1/system.d/org.freedesktop.locale1.conf, line 1, column 0: no elem
' while parsing '/etc/dbus-1/system.d/org.freedesktop.locale1.conf'

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Cause
Solution


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.