View Issue Details

IDProjectCategoryView StatusLast Update
0012757CentOS-7systemdpublic2017-03-02 14:42
Reporterygy Assigned To 
PrioritynormalSeveritycrashReproducibilityhave not tried
Status newResolutionopen 
Platformx86_64OSCentOSOS VersionCentOS 7
Product Version7.3.1611 
Summary0012757: SSH service fails to reload via systemctl
DescriptionHello,

SSH service fails to reload via the standard mechanism (systemctl). It goes in inactive state after reload and can not be restarted/started afterwards
Steps To Reproduce1) Login to the machine and elevate to root
2) Check the current status - systemctl status sshd
3) Reload the ssh service - systemctl reload sshd
4) Verify the status - systemctl status sshd
5) Status is reported as Active: inactive (dead)

Pid file (/var/run/sshd.pid) is missing too
Additional Information[root@ip-xxx-xx-x-xxx centos]# systemctl status sshd
● sshd.service - OpenSSH server daemon
   Loaded: loaded (/usr/lib/systemd/system/sshd.service; enabled; vendor preset: enabled)
   Active: active (running) since Tue 2017-01-31 15:35:47 UTC; 36s ago
     Docs: man:sshd(8)
           man:sshd_config(5)
  Process: 769 ExecStart=/usr/sbin/sshd $OPTIONS (code=exited, status=0/SUCCESS)
 Main PID: 784 (sshd)
   CGroup: /system.slice/sshd.service
           └─784 /usr/sbin/sshd

Jan 31 15:35:47 ip-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.internal systemd[1]: Starting OpenSSH server daemon...
Jan 31 15:35:47 ip-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.internal systemd[1]: PID file /var/run/sshd.pid not readable (yet?) after start.
Jan 31 15:35:47 ip-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.internal sshd[784]: Server listening on 0.0.0.0 port 22.
Jan 31 15:35:47 ip-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.internal sshd[784]: Server listening on :: port 22.
Jan 31 15:35:47 ip-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.internal systemd[1]: Started OpenSSH server daemon.
Jan 31 15:36:18 ip-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.internal sshd[2088]: Accepted publickey for centos from xx.xxx.xxx.xxx port 63568 ssh2: RSA a7:c0:49:08:e4:e8:bc:3d:b3:f0:51:94:87:4b:05:42
[root@ip-xxx-xx-x-xxx centos]# systemctl reload sshd
[root@ip-xxx-xx-x-xxx centos]# systemctl status sshd
● sshd.service - OpenSSH server daemon
   Loaded: loaded (/usr/lib/systemd/system/sshd.service; enabled; vendor preset: enabled)
   Active: inactive (dead) since Tue 2017-01-31 15:36:29 UTC; 1s ago
     Docs: man:sshd(8)
           man:sshd_config(5)
  Process: 2132 ExecReload=/bin/kill -HUP $MAINPID (code=exited, status=0/SUCCESS)
  Process: 769 ExecStart=/usr/sbin/sshd $OPTIONS (code=exited, status=0/SUCCESS)
 Main PID: 784 (code=exited, status=0/SUCCESS)
   CGroup: /system.slice/sshd.service
           └─2134 /usr/sbin/sshd

Jan 31 15:35:47 ip-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.internal systemd[1]: PID file /var/run/sshd.pid not readable (yet?) after start.
Jan 31 15:35:47 ip-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.internal sshd[784]: Server listening on 0.0.0.0 port 22.
Jan 31 15:35:47 ip-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.internal sshd[784]: Server listening on :: port 22.
Jan 31 15:35:47 ip-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.internal systemd[1]: Started OpenSSH server daemon.
Jan 31 15:36:18 ip-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.internal sshd[2088]: Accepted publickey for centos from xx.xxx.xxx.xxx port 63568 ssh2: RSA a7:c0:49:08:e4:e8:bc:3d:b3:f0:51:94:87:4b:05:42
Jan 31 15:36:28 ip-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.internal sshd[784]: Received SIGHUP; restarting.
Jan 31 15:36:29 ip-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.internal systemd[1]: PID 784 read from file /var/run/sshd.pid does not exist or is a zombie.
Jan 31 15:36:29 ip-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.internal sshd[2134]: Server listening on 0.0.0.0 port 22.
Jan 31 15:36:29 ip-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.internal systemd[1]: Reloaded OpenSSH server daemon.
Jan 31 15:36:29 ip-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.internal sshd[2134]: Server listening on :: port 22.
[root@ip-xxx-xx-x-xxx centos]# cat /etc/redhat-release
CentOS Linux release 7.3.1611 (Core)
[root@ip-xxx-xx-x-xxx centos]# uname -r
3.10.0-514.6.1.el7.x86_64
TagsNo tags attached.
abrt_hash
URL

Activities

ygy

ygy

2017-02-03 08:55

reporter   ~0028526

There is a corresponding bug added in the upstream version's bugtracker - https://bugzilla.redhat.com/show_bug.cgi?id=1381997

The change introduced the problematic behavior is https://bugzilla.redhat.com/show_bug.cgi?id=1291172

Issue History

Date Modified Username Field Change
2017-01-31 15:51 ygy New Issue
2017-02-03 08:55 ygy Note Added: 0028526