[Bug 2020474] Re: openssh-server-1:9.2p1-2ubuntu1 fails post-installation
scottfk
2020474 at bugs.launchpad.net
Tue May 23 18:03:50 UTC 2023
Before retriggering the post-installation:
root at venus2:/home/scottfk# systemctl status 904
● ssh.service - OpenBSD Secure Shell server
Loaded: loaded (/lib/systemd/system/ssh.service; disabled; preset: enabled)
Drop-In: /etc/systemd/system/ssh.service.d
└─00-socket.conf
Active: active (running) since Tue 2023-05-23 15:17:36 CEST; 4h 40min ago
TriggeredBy: ● ssh.socket
Docs: man:sshd(8)
man:sshd_config(5)
Main PID: 904 (sshd)
Tasks: 1 (limit: 9378)
Memory: 5.1M
CPU: 468ms
CGroup: /system.slice/ssh.service
└─904 "sshd: /usr/sbin/sshd -D [listener] 0 of 10-100 startups"
May 23 15:17:35 venus2 systemd[1]: Starting ssh.service - OpenBSD Secure Shell server...
May 23 15:17:36 venus2 sshd[904]: Server listening on :: port 22.
May 23 15:17:36 venus2 systemd[1]: Started ssh.service - OpenBSD Secure Shell server.
May 23 15:17:36 venus2 sshd[905]: Accepted publickey for scottfk from 2a02:1210:2a23:5600:9e82:2fb7:9772:3bf6 port 4092>
May 23 15:17:36 venus2 sshd[905]: pam_unix(sshd:session): session opened for user scottfk(uid=1000) by (uid=0)
root at venus2:/home/scottfk# systemctl status 905
● session-2.scope - Session 2 of User scottfk
Loaded: loaded (/run/systemd/transient/session-2.scope; transient)
Transient: yes
Active: active (running) since Tue 2023-05-23 15:17:37 CEST; 4h 41min ago
Tasks: 8
Memory: 18.2M
CPU: 4.330s
CGroup: /user.slice/user-1000.slice/session-2.scope
├─ 905 "sshd: scottfk [priv]"
├─ 997 "sshd: scottfk at pts/0"
├─ 998 -bash
├─1113 sudo bash -o vi
├─1114 sudo bash -o vi
├─1115 bash -o vi
├─1301 systemctl status 905
└─1302 less
May 23 15:17:37 venus2 systemd[1]: Started session-2.scope - Session 2 of User scottfk.
May 23 15:17:41 venus2 sshd[905]: pam_env(sshd:session): deprecated reading of user environment enabled
May 23 17:41:33 venus2 sudo[1108]: scottfk : TTY=pts/0 ; PWD=/home/scottfk ; USER=root ; COMMAND=/usr/bin/lsof -i :22
May 23 17:41:33 venus2 sudo[1108]: pam_unix(sudo:session): session opened for user root(uid=0) by scottfk(uid=1000)
May 23 17:41:33 venus2 sudo[1108]: pam_unix(sudo:session): session closed for user root
May 23 17:42:20 venus2 sudo[1113]: scottfk : TTY=pts/0 ; PWD=/home/scottfk ; USER=root ; COMMAND=/usr/bin/bash -o vi
May 23 17:42:20 venus2 sudo[1113]: pam_unix(sudo:session): session opened for user root(uid=0) by scottfk(uid=1000)
root at venus2:/home/scottfk# systemctl status 997
● session-2.scope - Session 2 of User scottfk
Loaded: loaded (/run/systemd/transient/session-2.scope; transient)
Transient: yes
Active: active (running) since Tue 2023-05-23 15:17:37 CEST; 4h 41min ago
Tasks: 8
Memory: 18.3M
CPU: 4.376s
CGroup: /user.slice/user-1000.slice/session-2.scope
├─ 905 "sshd: scottfk [priv]"
├─ 997 "sshd: scottfk at pts/0"
├─ 998 -bash
├─1113 sudo bash -o vi
├─1114 sudo bash -o vi
├─1115 bash -o vi
├─1304 systemctl status 997
└─1305 less
May 23 15:17:37 venus2 systemd[1]: Started session-2.scope - Session 2 of User scottfk.
May 23 15:17:41 venus2 sshd[905]: pam_env(sshd:session): deprecated reading of user environment enabled
May 23 17:41:33 venus2 sudo[1108]: scottfk : TTY=pts/0 ; PWD=/home/scottfk ; USER=root ; COMMAND=/usr/bin/lsof -i :22
May 23 17:41:33 venus2 sudo[1108]: pam_unix(sudo:session): session opened for user root(uid=0) by scottfk(uid=1000)
May 23 17:41:33 venus2 sudo[1108]: pam_unix(sudo:session): session closed for user root
May 23 17:42:20 venus2 sudo[1113]: scottfk : TTY=pts/0 ; PWD=/home/scottfk ; USER=root ; COMMAND=/usr/bin/bash -o vi
May 23 17:42:20 venus2 sudo[1113]: pam_unix(sudo:session): session opened for user root(uid=0) by scottfk(uid=1000)
Retriggering the post-installation:
root at venus2:/home/scottfk# dpkg --configure -a
Setting up openssh-server (1:9.2p1-2ubuntu1) ...
rescue-ssh.target is a disabled or a static unit not running, not starting it.
Could not execute systemctl: at /usr/bin/deb-systemd-invoke line 145.
dpkg: error processing package openssh-server (--configure):
installed openssh-server package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
openssh-server
root at venus2:/home/scottfk# systemctl status 904
Failed to get unit for PID 904: PID 904 does not belong to any loaded unit.
root at venus2:/home/scottfk# systemctl status 905
● session-2.scope - Session 2 of User scottfk
Loaded: loaded (/run/systemd/transient/session-2.scope; transient)
Transient: yes
Active: active (running) since Tue 2023-05-23 15:17:37 CEST; 4h 43min ago
Tasks: 8
Memory: 33.6M
CPU: 9.657s
CGroup: /user.slice/user-1000.slice/session-2.scope
├─ 905 "sshd: scottfk [priv]"
├─ 997 "sshd: scottfk at pts/0"
├─ 998 -bash
├─1113 sudo bash -o vi
├─1114 sudo bash -o vi
├─1115 bash -o vi
├─1534 systemctl status 905
└─1535 less
May 23 15:17:37 venus2 systemd[1]: Started session-2.scope - Session 2 of User scottfk.
May 23 15:17:41 venus2 sshd[905]: pam_env(sshd:session): deprecated reading of user environment enabled
May 23 17:41:33 venus2 sudo[1108]: scottfk : TTY=pts/0 ; PWD=/home/scottfk ; USER=root ; COMMAND=/usr/bin/lsof -i :22
May 23 17:41:33 venus2 sudo[1108]: pam_unix(sudo:session): session opened for user root(uid=0) by scottfk(uid=1000)
May 23 17:41:33 venus2 sudo[1108]: pam_unix(sudo:session): session closed for user root
May 23 17:42:20 venus2 sudo[1113]: scottfk : TTY=pts/0 ; PWD=/home/scottfk ; USER=root ; COMMAND=/usr/bin/bash -o vi
May 23 17:42:20 venus2 sudo[1113]: pam_unix(sudo:session): session opened for user root(uid=0) by scottfk(uid=1000)
root at venus2:/home/scottfk# systemctl status 997
● session-2.scope - Session 2 of User scottfk
Loaded: loaded (/run/systemd/transient/session-2.scope; transient)
Transient: yes
Active: active (running) since Tue 2023-05-23 15:17:37 CEST; 4h 44min ago
Tasks: 8
Memory: 33.5M
CPU: 9.713s
CGroup: /user.slice/user-1000.slice/session-2.scope
├─ 905 "sshd: scottfk [priv]"
├─ 997 "sshd: scottfk at pts/0"
├─ 998 -bash
├─1113 sudo bash -o vi
├─1114 sudo bash -o vi
├─1115 bash -o vi
├─1536 systemctl status 997
└─1537 less
May 23 15:17:37 venus2 systemd[1]: Started session-2.scope - Session 2 of User scottfk.
May 23 15:17:41 venus2 sshd[905]: pam_env(sshd:session): deprecated reading of user environment enabled
May 23 17:41:33 venus2 sudo[1108]: scottfk : TTY=pts/0 ; PWD=/home/scottfk ; USER=root ; COMMAND=/usr/bin/lsof -i :22
May 23 17:41:33 venus2 sudo[1108]: pam_unix(sudo:session): session opened for user root(uid=0) by scottfk(uid=1000)
May 23 17:41:33 venus2 sudo[1108]: pam_unix(sudo:session): session closed for user root
May 23 17:42:20 venus2 sudo[1113]: scottfk : TTY=pts/0 ; PWD=/home/scottfk ; USER=root ; COMMAND=/usr/bin/bash -o vi
May 23 17:42:20 venus2 sudo[1113]: pam_unix(sudo:session): session opened for user root(uid=0) by scottfk(uid=1000)
root at venus2:/home/scottfk# lsof -i :22
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
sshd 905 root 3u IPv6 22354 0t0 TCP *:ssh (LISTEN)
sshd 905 root 4u IPv6 18405 0t0 TCP venus2.home:ssh->hydra.home:40926 (ESTABLISHED)
sshd 905 root 5u IPv6 18405 0t0 TCP venus2.home:ssh->hydra.home:40926 (ESTABLISHED)
sshd 997 scottfk 3u IPv6 22354 0t0 TCP *:ssh (LISTEN)
sshd 997 scottfk 4u IPv6 18405 0t0 TCP venus2.home:ssh->hydra.home:40926 (ESTABLISHED)
sshd 997 scottfk 5u IPv6 18405 0t0 TCP venus2.home:ssh->hydra.home:40926 (ESTABLISHED)
root at venus2:/home/scottfk# ps -ef | grep sshd
root 905 1 0 15:17 ? 00:00:00 sshd: scottfk [priv]
scottfk 997 905 0 15:17 ? 00:00:00 sshd: scottfk at pts/0
root 1540 1115 0 20:03 pts/1 00:00:00 grep --color=auto sshd
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to openssh in Ubuntu.
https://bugs.launchpad.net/bugs/2020474
Title:
openssh-server-1:9.2p1-2ubuntu1 fails post-installation
Status in openssh package in Ubuntu:
Incomplete
Bug description:
Installation seems to fail on restarting ssh.socket via systemctl
Setting up openssh-server (1:9.2p1-2ubuntu1) ...
rescue-ssh.target is a disabled or a static unit not running, not starting it.
Could not execute systemctl: at /usr/bin/deb-systemd-invoke line 145.
dpkg: error processing package openssh-server (--configure):
installed openssh-server package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
openssh-server
E: Sub-process /usr/bin/dpkg returned an error code (1)
$ systemctl status ssh.socket
× ssh.socket - OpenBSD Secure Shell server socket
Loaded: loaded (/lib/systemd/system/ssh.socket; enabled; preset: enabled)
Active: failed (Result: resources) since Tue 2023-05-23 15:01:41 CEST; 48s ago
Duration: 3h 6min 36.071s
Triggers: ● ssh.service
Listen: [::]:22 (Stream)
CPU: 2ms
May 23 11:55:05 venus2 systemd[1]: Listening on ssh.socket - OpenBSD Secure Shell server socket.
May 23 15:01:41 venus2 systemd[1]: ssh.socket: Deactivated successfully.
May 23 15:01:41 venus2 systemd[1]: Closed ssh.socket - OpenBSD Secure Shell server socket.
May 23 15:01:41 venus2 systemd[1]: Stopping ssh.socket - OpenBSD Secure Shell server socket...
May 23 15:01:41 venus2 systemd[2631]: ssh.socket: Failed to create listening socket ([::]:22): Address already in use
May 23 15:01:41 venus2 systemd[1]: ssh.socket: Failed to receive listening socket ([::]:22): Input/output error
May 23 15:01:41 venus2 systemd[1]: ssh.socket: Failed to listen on sockets: Input/output error
May 23 15:01:41 venus2 systemd[1]: ssh.socket: Failed with result 'resources'.
May 23 15:01:41 venus2 systemd[1]: Failed to listen on ssh.socket - OpenBSD Secure Shell server socket.
At this point, sshd is no longer listening for new connections. A
manual systemctl restart of ssh.socket fails with the same error. I
am ssh-ed into this box, so I *think* the failure is because my
session is already sitting on port 22, maybe? The only way I can be
sure I will be able to ssh to this box again is to reboot it (so that
ssh.socket can start cleanly).
$ lsb_release -rd
No LSB modules are available.
Description: Ubuntu Mantic Minotaur (development branch)
Release: 23.10
$ apt policy openssh-server
openssh-server:
Installed: 1:9.2p1-2ubuntu1
Candidate: 1:9.2p1-2ubuntu1
Version table:
*** 1:9.2p1-2ubuntu1 500
500 http://ch.ports.ubuntu.com/ubuntu-ports mantic-proposed/main riscv64 Packages
100 /var/lib/dpkg/status
1:9.0p1-1ubuntu8.1 500
500 http://ch.ports.ubuntu.com/ubuntu-ports mantic/main riscv64 Packages
ProblemType: Bug
DistroRelease: Ubuntu 23.10
Package: openssh-server 1:9.2p1-2ubuntu1
ProcVersionSignature: Ubuntu 6.2.0-19.19.1-generic 6.2.6
Uname: Linux 6.2.0-19-generic riscv64
ApportVersion: 2.26.1-0ubuntu3
Architecture: riscv64
CasperMD5CheckResult: unknown
CloudArchitecture: riscv64
CloudBuildName: server
CloudID: nocloud
CloudName: unknown
CloudPlatform: nocloud
CloudSerial: 20230413.1
CloudSubPlatform: seed-dir (/var/lib/cloud/seed/nocloud-net)
Date: Tue May 23 14:58:35 2023
SSHDConfig: Error: command ['/usr/sbin/sshd', '-T'] failed with exit code 1: /etc/ssh/sshd_config.d/50-cloud-init.conf: Permission denied
SourcePackage: openssh
UpgradeStatus: Upgraded to mantic on 2023-05-12 (11 days ago)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/openssh/+bug/2020474/+subscriptions
More information about the foundations-bugs
mailing list