** Description changed: [ Impact ] On Noble, systemd 255 mishandles the inactive dead-resources-pinned state of a stopped service that keeps its file descriptors (FileDescriptorStorePreserve=yes). The socket can refuse to reopen or fail to return to listening, leaving clients unable to start the service. In the authd migration tests, upgrading from the stable PPA to a CI build left authd.socket and authd.service stopped. Managed users could no longer log in: https://github.com/canonical/authd/issues/2317 The authd packaging patch (https://github.com/canonical/authd/pull/2318) keeps the socket open during upgrades on Noble. Manual socket restarts can still fail. [ Test Plan ] Run this on a Noble system. The attached verify-socket-fdstore.sh reproduces the bug using a temporary socket and service. 1. Before installing the proposed update, run: sudo bash verify-socket-fdstore.sh Expect exit 1 and these results: FAIL: reactivate: socket is not listening FAIL: reopen: socket could not reopen PASS: guard - The reopen journal shows "Socket service ... already active, - refusing". Exit 2 means the test setup failed. + When the socket fails to start, the journal shows "Socket service ... + already active, refusing". Exit 2 means the test setup failed. 2. Install systemd from noble-proposed and reboot. 3. After reboot, confirm the candidate with apt policy systemd. Rerun sudo bash verify-socket-fdstore.sh. Expect exit 0 and: PASS: reactivate PASS: reopen PASS: guard 4. Confirm systemctl --failed lists no failed units. Report the tested package version and results on this bug. [ Where problems could occur ] If systemd lets an Accept=no socket reopen while its service is still running, clients could connect but get no reply: the service is still listening on the old socket. A restarted service could also lose access to resources it had kept open. The script checks both cases. [ Other Info ] The fix shipped in systemd v257 and is already in Resolute, Stonking, and Tenacious. Upstream: https://github.com/systemd/systemd/pull/33874 Noble's default journald unit does not set FileDescriptorStorePreserve=yes, so the verifier uses temporary units instead. The script fails as expected on Noble and passes on Resolute.
** Description changed: [ Impact ] On Noble, systemd 255 mishandles the inactive dead-resources-pinned state of a stopped service that keeps its file descriptors (FileDescriptorStorePreserve=yes). The socket can refuse to reopen or fail to return to listening, leaving clients unable to start the service. In the authd migration tests, upgrading from the stable PPA to a CI build left authd.socket and authd.service stopped. Managed users could no longer log in: https://github.com/canonical/authd/issues/2317 The authd packaging patch (https://github.com/canonical/authd/pull/2318) keeps the socket open during upgrades on Noble. Manual socket restarts can still fail. [ Test Plan ] Run this on a Noble system. The attached verify-socket-fdstore.sh reproduces the bug using a temporary socket and service. 1. Before installing the proposed update, run: - sudo bash verify-socket-fdstore.sh + sudo bash verify-socket-fdstore.sh - Expect exit 1 and these results: + Expect exit 1 and these results: - FAIL: reactivate: socket is not listening - FAIL: reopen: socket could not reopen - PASS: guard + FAIL: reactivate: socket is not listening + FAIL: reopen: socket could not reopen + PASS: guard - When the socket fails to start, the journal shows "Socket service ... + When the socket fails to start, the journal shows "Socket service ... already active, refusing". Exit 2 means the test setup failed. 2. Install systemd from noble-proposed and reboot. 3. After reboot, confirm the candidate with apt policy systemd. Rerun sudo bash verify-socket-fdstore.sh. Expect exit 0 and: - PASS: reactivate - PASS: reopen - PASS: guard + PASS: reactivate + PASS: reopen + PASS: guard - 4. Confirm systemctl --failed lists no failed units. Report the tested - package version and results on this bug. + 4. Confirm systemctl --failed lists no failed units. [ Where problems could occur ] If systemd lets an Accept=no socket reopen while its service is still running, clients could connect but get no reply: the service is still listening on the old socket. A restarted service could also lose access to resources it had kept open. The script checks both cases. [ Other Info ] The fix shipped in systemd v257 and is already in Resolute, Stonking, and Tenacious. Upstream: https://github.com/systemd/systemd/pull/33874 Noble's default journald unit does not set FileDescriptorStorePreserve=yes, so the verifier uses temporary units instead. The script fails as expected on Noble and passes on Resolute. ** Description changed: [ Impact ] On Noble, systemd 255 mishandles the inactive dead-resources-pinned state of a stopped service that keeps its file descriptors (FileDescriptorStorePreserve=yes). The socket can refuse to reopen or fail to return to listening, leaving clients unable to start the service. In the authd migration tests, upgrading from the stable PPA to a CI build left authd.socket and authd.service stopped. Managed users could no longer log in: https://github.com/canonical/authd/issues/2317 The authd packaging patch (https://github.com/canonical/authd/pull/2318) keeps the socket open during upgrades on Noble. Manual socket restarts can still fail. [ Test Plan ] Run this on a Noble system. The attached verify-socket-fdstore.sh reproduces the bug using a temporary socket and service. 1. Before installing the proposed update, run: sudo bash verify-socket-fdstore.sh Expect exit 1 and these results: FAIL: reactivate: socket is not listening FAIL: reopen: socket could not reopen PASS: guard When the socket fails to start, the journal shows "Socket service ... already active, refusing". Exit 2 means the test setup failed. 2. Install systemd from noble-proposed and reboot. 3. After reboot, confirm the candidate with apt policy systemd. Rerun sudo bash verify-socket-fdstore.sh. Expect exit 0 and: PASS: reactivate PASS: reopen PASS: guard - 4. Confirm systemctl --failed lists no failed units. - [ Where problems could occur ] If systemd lets an Accept=no socket reopen while its service is still running, clients could connect but get no reply: the service is still listening on the old socket. A restarted service could also lose access to resources it had kept open. The script checks both cases. [ Other Info ] The fix shipped in systemd v257 and is already in Resolute, Stonking, and Tenacious. Upstream: https://github.com/systemd/systemd/pull/33874 Noble's default journald unit does not set FileDescriptorStorePreserve=yes, so the verifier uses temporary units instead. The script fails as expected on Noble and passes on Resolute. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2176110 Title: Noble: socket activation fails with a preserved fd store To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/2176110/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
