Activity log for bug #1991199

Date Who What changed Old value New value Message
2022-09-29 06:20:09 Daniel Tang bug added bug
2022-09-29 06:20:28 Daniel Tang bug task added systemd (Ubuntu)
2022-09-29 06:23:43 Daniel Tang description The automatic migration script from jammy to kinetic generates a invalid file for sshd that systemd refuses to read. Manual addition of two lines is required for a functional sshd with a custom port. $ lsb_release -rd Description: Ubuntu Kinetic Kudu (development branch) Release: 22.10 $ apt-cache policy openssh-server openssh-server: Installed: 1:9.0p1-1ubuntu6 Candidate: 1:9.0p1-1ubuntu6 Version table: *** 1:9.0p1-1ubuntu6 500 500 https://gpl.savoirfairelinux.net/pub/mirrors/ubuntu kinetic/main amd64 Packages 100 /var/lib/dpkg/status $ apt-cache policy systemd systemd: Installed: 251.4-1ubuntu6 Candidate: 251.4-1ubuntu6 Version table: *** 251.4-1ubuntu6 500 500 https://gpl.savoirfairelinux.net/pub/mirrors/ubuntu kinetic/main amd64 Packages 100 /var/lib/dpkg/status # Instructions - Configure /etc/ssh/sshd_config to port 2222 in 22.04 - Upgrade to 22.10 with sudo do-release-upgrade -d - Accept overwriting /etc/ssh/sshd_config with the new version - Attempt to ssh into the machine # Expected behavior systemd should listen on port 2222 and start sshd. $ cat /etc/systemd/system/ssh.socket.d/addresses.conf [Socket] ListenStream= ListenStream=2222 $ systemctl status ssh.socket ● ssh.socket - OpenBSD Secure Shell server socket Loaded: loaded (/lib/systemd/system/ssh.socket; enabled; preset: enabled) Drop-In: /etc/systemd/system/ssh.socket.d └─addresses.conf Active: active (running) since Thu 2022-09-29 02:08:56 EDT; 9min ago Until: Thu 2022-09-29 02:08:56 EDT; 9min ago Triggers: ● ssh.service Listen: [::]:2222 (Stream) Tasks: 0 (limit: 19047) Memory: 8.0K CPU: 923us CGroup: /system.slice/ssh.socket Sep 29 02:08:56 daniel-desktop2 systemd[1]: Listening on OpenBSD Secure Shell server socket. # Actual behavior Port 2222 refuses any connection. Systemd fails to parse the automatically generated file: $ systemctl status ssh.socket ● ssh.socket - OpenBSD Secure Shell server socket Loaded: loaded (/lib/systemd/system/ssh.socket; enabled; preset: enabled) Drop-In: /etc/systemd/system/ssh.socket.d └─addresses.conf Active: active (listening) since Thu 2022-09-29 01:51:57 EDT; 16min ago Until: Thu 2022-09-29 01:51:57 EDT; 16min ago Triggers: ● ssh.service Listen: [::]:22 (Stream) Tasks: 0 (limit: 19047) Memory: 8.0K CPU: 982us CGroup: /system.slice/ssh.socket Sep 29 01:51:57 daniel-desktop2 systemd[1]: Listening on OpenBSD Secure Shell server socket. Sep 29 01:56:23 daniel-desktop2 systemd[1]: /etc/systemd/system/ssh.socket.d/addresses.conf:1: Assignment outside of section. Ignoring. $ cat /etc/systemd/system/ssh.socket.d/override.conf ListenStream=2222 # Analysis The migration script must be missing the `[Socket]` line and the next one. sshd works after I added those two lines manually. Either the migration script never worked or systemd changed the syntax in the meantime. The automatic migration script from jammy to kinetic generates a invalid file for sshd that systemd refuses to read. Manual addition of two lines is required for a functional sshd with a custom port. This bug can be considered the opposite of https://bugs.launchpad.net/ubuntu/+source/openssh/+bug/1990863 . They want to have sshd keep managing the socket while I want to try letting systemd do that. $ lsb_release -rd Description: Ubuntu Kinetic Kudu (development branch) Release: 22.10 $ apt-cache policy openssh-server openssh-server:   Installed: 1:9.0p1-1ubuntu6   Candidate: 1:9.0p1-1ubuntu6   Version table:  *** 1:9.0p1-1ubuntu6 500         500 https://gpl.savoirfairelinux.net/pub/mirrors/ubuntu kinetic/main amd64 Packages         100 /var/lib/dpkg/status $ apt-cache policy systemd systemd:   Installed: 251.4-1ubuntu6   Candidate: 251.4-1ubuntu6   Version table:  *** 251.4-1ubuntu6 500         500 https://gpl.savoirfairelinux.net/pub/mirrors/ubuntu kinetic/main amd64 Packages         100 /var/lib/dpkg/status # Instructions - Configure /etc/ssh/sshd_config to port 2222 in 22.04 - Upgrade to 22.10 with sudo do-release-upgrade -d - Accept overwriting /etc/ssh/sshd_config with the new version - Attempt to ssh into the machine # Expected behavior systemd should listen on port 2222 and start sshd. $ cat /etc/systemd/system/ssh.socket.d/addresses.conf [Socket] ListenStream= ListenStream=2222 $ systemctl status ssh.socket ● ssh.socket - OpenBSD Secure Shell server socket      Loaded: loaded (/lib/systemd/system/ssh.socket; enabled; preset: enabled)     Drop-In: /etc/systemd/system/ssh.socket.d              └─addresses.conf      Active: active (running) since Thu 2022-09-29 02:08:56 EDT; 9min ago       Until: Thu 2022-09-29 02:08:56 EDT; 9min ago    Triggers: ● ssh.service      Listen: [::]:2222 (Stream)       Tasks: 0 (limit: 19047)      Memory: 8.0K         CPU: 923us      CGroup: /system.slice/ssh.socket Sep 29 02:08:56 daniel-desktop2 systemd[1]: Listening on OpenBSD Secure Shell server socket. # Actual behavior Port 2222 refuses any connection. Systemd fails to parse the automatically generated file: $ systemctl status ssh.socket ● ssh.socket - OpenBSD Secure Shell server socket      Loaded: loaded (/lib/systemd/system/ssh.socket; enabled; preset: enabled)     Drop-In: /etc/systemd/system/ssh.socket.d              └─addresses.conf      Active: active (listening) since Thu 2022-09-29 01:51:57 EDT; 16min ago       Until: Thu 2022-09-29 01:51:57 EDT; 16min ago    Triggers: ● ssh.service      Listen: [::]:22 (Stream)       Tasks: 0 (limit: 19047)      Memory: 8.0K         CPU: 982us      CGroup: /system.slice/ssh.socket Sep 29 01:51:57 daniel-desktop2 systemd[1]: Listening on OpenBSD Secure Shell server socket. Sep 29 01:56:23 daniel-desktop2 systemd[1]: /etc/systemd/system/ssh.socket.d/addresses.conf:1: Assignment outside of section. Ignoring. $ cat /etc/systemd/system/ssh.socket.d/override.conf ListenStream=2222 # Analysis The migration script must be missing the `[Socket]` line and the next one. sshd works after I added those two lines manually. Either the migration script never worked or systemd changed the syntax in the meantime.
2022-09-29 06:43:34 Daniel Tang information type Public Private
2022-09-29 06:43:56 Daniel Tang tags apport-collected kinetic
2022-09-29 06:43:57 Daniel Tang description The automatic migration script from jammy to kinetic generates a invalid file for sshd that systemd refuses to read. Manual addition of two lines is required for a functional sshd with a custom port. This bug can be considered the opposite of https://bugs.launchpad.net/ubuntu/+source/openssh/+bug/1990863 . They want to have sshd keep managing the socket while I want to try letting systemd do that. $ lsb_release -rd Description: Ubuntu Kinetic Kudu (development branch) Release: 22.10 $ apt-cache policy openssh-server openssh-server:   Installed: 1:9.0p1-1ubuntu6   Candidate: 1:9.0p1-1ubuntu6   Version table:  *** 1:9.0p1-1ubuntu6 500         500 https://gpl.savoirfairelinux.net/pub/mirrors/ubuntu kinetic/main amd64 Packages         100 /var/lib/dpkg/status $ apt-cache policy systemd systemd:   Installed: 251.4-1ubuntu6   Candidate: 251.4-1ubuntu6   Version table:  *** 251.4-1ubuntu6 500         500 https://gpl.savoirfairelinux.net/pub/mirrors/ubuntu kinetic/main amd64 Packages         100 /var/lib/dpkg/status # Instructions - Configure /etc/ssh/sshd_config to port 2222 in 22.04 - Upgrade to 22.10 with sudo do-release-upgrade -d - Accept overwriting /etc/ssh/sshd_config with the new version - Attempt to ssh into the machine # Expected behavior systemd should listen on port 2222 and start sshd. $ cat /etc/systemd/system/ssh.socket.d/addresses.conf [Socket] ListenStream= ListenStream=2222 $ systemctl status ssh.socket ● ssh.socket - OpenBSD Secure Shell server socket      Loaded: loaded (/lib/systemd/system/ssh.socket; enabled; preset: enabled)     Drop-In: /etc/systemd/system/ssh.socket.d              └─addresses.conf      Active: active (running) since Thu 2022-09-29 02:08:56 EDT; 9min ago       Until: Thu 2022-09-29 02:08:56 EDT; 9min ago    Triggers: ● ssh.service      Listen: [::]:2222 (Stream)       Tasks: 0 (limit: 19047)      Memory: 8.0K         CPU: 923us      CGroup: /system.slice/ssh.socket Sep 29 02:08:56 daniel-desktop2 systemd[1]: Listening on OpenBSD Secure Shell server socket. # Actual behavior Port 2222 refuses any connection. Systemd fails to parse the automatically generated file: $ systemctl status ssh.socket ● ssh.socket - OpenBSD Secure Shell server socket      Loaded: loaded (/lib/systemd/system/ssh.socket; enabled; preset: enabled)     Drop-In: /etc/systemd/system/ssh.socket.d              └─addresses.conf      Active: active (listening) since Thu 2022-09-29 01:51:57 EDT; 16min ago       Until: Thu 2022-09-29 01:51:57 EDT; 16min ago    Triggers: ● ssh.service      Listen: [::]:22 (Stream)       Tasks: 0 (limit: 19047)      Memory: 8.0K         CPU: 982us      CGroup: /system.slice/ssh.socket Sep 29 01:51:57 daniel-desktop2 systemd[1]: Listening on OpenBSD Secure Shell server socket. Sep 29 01:56:23 daniel-desktop2 systemd[1]: /etc/systemd/system/ssh.socket.d/addresses.conf:1: Assignment outside of section. Ignoring. $ cat /etc/systemd/system/ssh.socket.d/override.conf ListenStream=2222 # Analysis The migration script must be missing the `[Socket]` line and the next one. sshd works after I added those two lines manually. Either the migration script never worked or systemd changed the syntax in the meantime. The automatic migration script from jammy to kinetic generates a invalid file for sshd that systemd refuses to read. Manual addition of two lines is required for a functional sshd with a custom port. This bug can be considered the opposite of https://bugs.launchpad.net/ubuntu/+source/openssh/+bug/1990863 . They want to have sshd keep managing the socket while I want to try letting systemd do that. $ lsb_release -rd Description: Ubuntu Kinetic Kudu (development branch) Release: 22.10 $ apt-cache policy openssh-server openssh-server:   Installed: 1:9.0p1-1ubuntu6   Candidate: 1:9.0p1-1ubuntu6   Version table:  *** 1:9.0p1-1ubuntu6 500         500 https://gpl.savoirfairelinux.net/pub/mirrors/ubuntu kinetic/main amd64 Packages         100 /var/lib/dpkg/status $ apt-cache policy systemd systemd:   Installed: 251.4-1ubuntu6   Candidate: 251.4-1ubuntu6   Version table:  *** 251.4-1ubuntu6 500         500 https://gpl.savoirfairelinux.net/pub/mirrors/ubuntu kinetic/main amd64 Packages         100 /var/lib/dpkg/status # Instructions - Configure /etc/ssh/sshd_config to port 2222 in 22.04 - Upgrade to 22.10 with sudo do-release-upgrade -d - Accept overwriting /etc/ssh/sshd_config with the new version - Attempt to ssh into the machine # Expected behavior systemd should listen on port 2222 and start sshd. $ cat /etc/systemd/system/ssh.socket.d/addresses.conf [Socket] ListenStream= ListenStream=2222 $ systemctl status ssh.socket ● ssh.socket - OpenBSD Secure Shell server socket      Loaded: loaded (/lib/systemd/system/ssh.socket; enabled; preset: enabled)     Drop-In: /etc/systemd/system/ssh.socket.d              └─addresses.conf      Active: active (running) since Thu 2022-09-29 02:08:56 EDT; 9min ago       Until: Thu 2022-09-29 02:08:56 EDT; 9min ago    Triggers: ● ssh.service      Listen: [::]:2222 (Stream)       Tasks: 0 (limit: 19047)      Memory: 8.0K         CPU: 923us      CGroup: /system.slice/ssh.socket Sep 29 02:08:56 daniel-desktop2 systemd[1]: Listening on OpenBSD Secure Shell server socket. # Actual behavior Port 2222 refuses any connection. Systemd fails to parse the automatically generated file: $ systemctl status ssh.socket ● ssh.socket - OpenBSD Secure Shell server socket      Loaded: loaded (/lib/systemd/system/ssh.socket; enabled; preset: enabled)     Drop-In: /etc/systemd/system/ssh.socket.d              └─addresses.conf      Active: active (listening) since Thu 2022-09-29 01:51:57 EDT; 16min ago       Until: Thu 2022-09-29 01:51:57 EDT; 16min ago    Triggers: ● ssh.service      Listen: [::]:22 (Stream)       Tasks: 0 (limit: 19047)      Memory: 8.0K         CPU: 982us      CGroup: /system.slice/ssh.socket Sep 29 01:51:57 daniel-desktop2 systemd[1]: Listening on OpenBSD Secure Shell server socket. Sep 29 01:56:23 daniel-desktop2 systemd[1]: /etc/systemd/system/ssh.socket.d/addresses.conf:1: Assignment outside of section. Ignoring. $ cat /etc/systemd/system/ssh.socket.d/override.conf ListenStream=2222 # Analysis The migration script must be missing the `[Socket]` line and the next one. sshd works after I added those two lines manually. Either the migration script never worked or systemd changed the syntax in the meantime. --- ProblemType: Bug ApportVersion: 2.23.0-0ubuntu2 Architecture: amd64 CasperMD5CheckResult: unknown DistroRelease: Ubuntu 22.10 MachineType: ASUSTeK COMPUTER INC. K30BF_M32BF_A_F_K31BF_6 Package: systemd 251.4-1ubuntu6 PackageArchitecture: amd64 ProcKernelCmdLine: BOOT_IMAGE=/vmlinuz-6.0.0-060000rc7-generic root=UUID=29b85a8a-08f8-42be-8629-fb6e88d149d6 ro text pcie_port_pm=off resume=UUID=21d61484-fe9b-4310-9390-d5f5d17510d8 Tags: kinetic Uname: Linux 6.0.0-060000rc7-generic x86_64 UpgradeStatus: Upgraded to kinetic on 2022-09-29 (0 days ago) UserGroups: N/A _MarkForUpload: True dmi.bios.date: 05/19/2017 dmi.bios.release: 4.6 dmi.bios.vendor: American Megatrends Inc. dmi.bios.version: 0704 dmi.board.asset.tag: To be filled by O.E.M. dmi.board.name: K30BF_M32BF_A_F_K31BF_6 dmi.board.vendor: ASUSTeK COMPUTER INC. dmi.board.version: Rev X.0x dmi.chassis.asset.tag: Asset-1234567890 dmi.chassis.type: 3 dmi.chassis.vendor: Chassis Manufacture dmi.chassis.version: Chassis Version dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvr0704:bd05/19/2017:br4.6:svnASUSTeKCOMPUTERINC.:pnK30BF_M32BF_A_F_K31BF_6:pvrSystemVersion:rvnASUSTeKCOMPUTERINC.:rnK30BF_M32BF_A_F_K31BF_6:rvrRevX.0x:cvnChassisManufacture:ct3:cvrChassisVersion:skuSKU: dmi.product.family: Desktop dmi.product.name: K30BF_M32BF_A_F_K31BF_6 dmi.product.sku: SKU dmi.product.version: System Version dmi.sys.vendor: ASUSTeK COMPUTER INC. modified.conffile..etc.systemd.logind.conf: [modified] modified.conffile..etc.systemd.sleep.conf: [modified] mtime.conffile..etc.systemd.logind.conf: 2022-09-29T00:25:31.556533 mtime.conffile..etc.systemd.sleep.conf: 2022-09-29T00:27:46.773607
2022-09-29 06:43:58 Daniel Tang attachment added CurrentDmesg.txt https://bugs.launchpad.net/bugs/1991199/+attachment/5619905/+files/CurrentDmesg.txt
2022-09-29 06:43:59 Daniel Tang attachment added Dependencies.txt https://bugs.launchpad.net/bugs/1991199/+attachment/5619906/+files/Dependencies.txt
2022-09-29 06:44:00 Daniel Tang attachment added Lspci.txt https://bugs.launchpad.net/bugs/1991199/+attachment/5619907/+files/Lspci.txt
2022-09-29 06:44:02 Daniel Tang attachment added Lspci-vt.txt https://bugs.launchpad.net/bugs/1991199/+attachment/5619908/+files/Lspci-vt.txt
2022-09-29 06:44:03 Daniel Tang attachment added Lsusb.txt https://bugs.launchpad.net/bugs/1991199/+attachment/5619909/+files/Lsusb.txt
2022-09-29 06:44:04 Daniel Tang attachment added Lsusb-t.txt https://bugs.launchpad.net/bugs/1991199/+attachment/5619910/+files/Lsusb-t.txt
2022-09-29 06:44:06 Daniel Tang attachment added Lsusb-v.txt https://bugs.launchpad.net/bugs/1991199/+attachment/5619911/+files/Lsusb-v.txt
2022-09-29 06:44:07 Daniel Tang attachment added ProcCpuinfo.txt https://bugs.launchpad.net/bugs/1991199/+attachment/5619912/+files/ProcCpuinfo.txt
2022-09-29 06:44:09 Daniel Tang attachment added ProcCpuinfoMinimal.txt https://bugs.launchpad.net/bugs/1991199/+attachment/5619913/+files/ProcCpuinfoMinimal.txt
2022-09-29 06:44:11 Daniel Tang attachment added ProcEnviron.txt https://bugs.launchpad.net/bugs/1991199/+attachment/5619914/+files/ProcEnviron.txt
2022-09-29 06:44:12 Daniel Tang attachment added ProcInterrupts.txt https://bugs.launchpad.net/bugs/1991199/+attachment/5619915/+files/ProcInterrupts.txt
2022-09-29 06:44:13 Daniel Tang attachment added ProcModules.txt https://bugs.launchpad.net/bugs/1991199/+attachment/5619916/+files/ProcModules.txt
2022-09-29 06:44:15 Daniel Tang attachment added SystemdDelta.txt https://bugs.launchpad.net/bugs/1991199/+attachment/5619917/+files/SystemdDelta.txt
2022-09-29 06:44:17 Daniel Tang attachment added UdevDb.txt https://bugs.launchpad.net/bugs/1991199/+attachment/5619918/+files/UdevDb.txt
2022-09-29 06:44:18 Daniel Tang attachment added acpidump.txt https://bugs.launchpad.net/bugs/1991199/+attachment/5619919/+files/acpidump.txt
2022-09-29 06:46:44 Daniel Tang information type Private Public
2022-09-29 13:12:54 Nick Rosbrook systemd (Ubuntu): status New Invalid
2022-09-29 13:32:29 Nick Rosbrook openssh (Ubuntu): status New Triaged
2022-09-29 13:33:44 Nick Rosbrook openssh (Ubuntu): importance Undecided Medium
2022-09-29 13:33:54 Nick Rosbrook tags apport-collected kinetic apport-collected foundations-todo kinetic
2022-09-29 14:01:42 Robie Basak tags apport-collected foundations-todo kinetic apport-collected foundations-todo kinetic socket-activation ssh
2022-09-29 14:01:49 Robie Basak tags apport-collected foundations-todo kinetic socket-activation ssh apport-collected foundations-todo kinetic ssh-socket-activation
2022-09-29 14:34:34 Nick Rosbrook attachment added openssh_9.0p1-1ubuntu7.debdiff https://bugs.launchpad.net/ubuntu/+source/openssh/+bug/1991199/+attachment/5620047/+files/openssh_9.0p1-1ubuntu7.debdiff
2022-09-29 14:35:52 Nick Rosbrook bug added subscriber Ubuntu Sponsors Team
2022-09-29 21:25:29 Daniel Tang attachment removed Lsusb-t.txt https://bugs.launchpad.net/ubuntu/+source/openssh/+bug/1991199/+attachment/5619910/+files/Lsusb-t.txt
2022-09-29 21:25:39 Daniel Tang attachment removed Lsusb-v.txt https://bugs.launchpad.net/ubuntu/+source/openssh/+bug/1991199/+attachment/5619911/+files/Lsusb-v.txt
2022-09-29 21:25:48 Daniel Tang attachment removed Lspci-vt.txt https://bugs.launchpad.net/ubuntu/+source/openssh/+bug/1991199/+attachment/5619908/+files/Lspci-vt.txt
2022-09-29 21:25:56 Daniel Tang attachment removed Lspci.txt https://bugs.launchpad.net/ubuntu/+source/openssh/+bug/1991199/+attachment/5619907/+files/Lspci.txt
2022-09-29 21:26:04 Daniel Tang attachment removed Lsusb.txt https://bugs.launchpad.net/ubuntu/+source/openssh/+bug/1991199/+attachment/5619909/+files/Lsusb.txt
2022-09-29 21:26:20 Daniel Tang attachment removed acpidump.txt https://bugs.launchpad.net/ubuntu/+source/openssh/+bug/1991199/+attachment/5619919/+files/acpidump.txt
2022-09-29 21:26:26 Daniel Tang attachment removed UdevDb.txt https://bugs.launchpad.net/ubuntu/+source/openssh/+bug/1991199/+attachment/5619918/+files/UdevDb.txt
2022-09-29 21:26:47 Daniel Tang attachment removed ProcInterrupts.txt https://bugs.launchpad.net/ubuntu/+source/openssh/+bug/1991199/+attachment/5619915/+files/ProcInterrupts.txt
2022-09-29 21:26:54 Daniel Tang attachment removed ProcModules.txt https://bugs.launchpad.net/ubuntu/+source/openssh/+bug/1991199/+attachment/5619916/+files/ProcModules.txt
2022-09-29 21:27:07 Daniel Tang attachment removed CurrentDmesg.txt https://bugs.launchpad.net/ubuntu/+source/openssh/+bug/1991199/+attachment/5619905/+files/CurrentDmesg.txt
2022-09-29 21:27:15 Daniel Tang attachment removed ProcCpuinfo.txt https://bugs.launchpad.net/ubuntu/+source/openssh/+bug/1991199/+attachment/5619912/+files/ProcCpuinfo.txt
2022-09-30 22:13:59 Steve Langasek openssh (Ubuntu): assignee Steve Langasek (vorlon)
2022-10-01 03:09:00 Steve Langasek openssh (Ubuntu): status Triaged In Progress
2022-10-01 06:26:18 Steve Langasek openssh (Ubuntu): importance Medium High
2022-10-03 23:44:11 Steve Langasek openssh (Ubuntu): status In Progress Fix Committed
2022-10-04 08:01:19 Launchpad Janitor openssh (Ubuntu): status Fix Committed Fix Released
2022-10-21 22:17:45 Benjamin Drung removed subscriber Ubuntu Sponsors Team
2022-10-21 22:17:50 Benjamin Drung tags apport-collected foundations-todo kinetic ssh-socket-activation apport-collected kinetic ssh-socket-activation