Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.

Bug 1937580

Summary: debug-shell does not work
Product: [Fedora] Fedora Reporter: Adam Williamson <awilliam>
Component: systemdAssignee: systemd-maint
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 34CC: fedoraproject, filbranden, flepied, kasong, lnykryn, msekleta, ssahani, s, systemd-maint, yuwatana, zbyszek, z
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-03-11 19:17:44 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1829023    

Description Adam Williamson 2021-03-11 03:09:27 UTC
In Fedora 34 beta candidate 1, the systemd debug-shell does not work. If you enable debug-shell.service and boot, on tty9 you don't get a root shell as you should, just a flashing cursor. In the journal you get this:

-- Journal begins at Wed 2021-03-10 18:56:34 PST, ends at Wed 2021-03-10 19:05:16 PST. --
Mar 10 18:56:36 fedora systemd[1]: debug-shell.service: Main process exited, code=exited, status=208/STDIN
Mar 10 18:56:36 fedora systemd[1]: debug-shell.service: Failed with result 'exit-code'.
Mar 10 18:56:36 fedora systemd[1]: debug-shell.service: Scheduled restart job, restart counter is at 1.
Mar 10 18:56:36 fedora systemd[1]: Stopped Early root shell on /dev/tty9 FOR DEBUGGING ONLY.
Mar 10 18:56:36 fedora systemd[1]: Started Early root shell on /dev/tty9 FOR DEBUGGING ONLY.
Mar 10 18:56:36 fedora systemd[508]: debug-shell.service: Failed to set up standard input: Permission denied
Mar 10 18:56:36 fedora systemd[508]: debug-shell.service: Failed at step STDIN spawning /bin/sh: Permission denied
Mar 10 18:56:36 fedora systemd[1]: debug-shell.service: Main process exited, code=exited, status=208/STDIN
Mar 10 18:56:36 fedora systemd[1]: debug-shell.service: Failed with result 'exit-code'.
Mar 10 18:56:36 fedora systemd[1]: debug-shell.service: Scheduled restart job, restart counter is at 2.
Mar 10 18:56:36 fedora systemd[1]: Stopped Early root shell on /dev/tty9 FOR DEBUGGING ONLY.
Mar 10 18:56:36 fedora systemd[1]: Started Early root shell on /dev/tty9 FOR DEBUGGING ONLY.
Mar 10 18:56:36 fedora systemd[1]: debug-shell.service: Main process exited, code=exited, status=208/STDIN
Mar 10 18:56:36 fedora systemd[1]: debug-shell.service: Failed with result 'exit-code'.
Mar 10 18:56:36 fedora systemd[1]: debug-shell.service: Scheduled restart job, restart counter is at 3.
Mar 10 18:56:36 fedora systemd[1]: Stopped Early root shell on /dev/tty9 FOR DEBUGGING ONLY.
Mar 10 18:56:36 fedora systemd[1]: Started Early root shell on /dev/tty9 FOR DEBUGGING ONLY.
Mar 10 18:56:36 fedora systemd[1]: debug-shell.service: Main process exited, code=exited, status=208/STDIN
Mar 10 18:56:36 fedora systemd[1]: debug-shell.service: Failed with result 'exit-code'.
Mar 10 18:56:36 fedora systemd[1]: debug-shell.service: Scheduled restart job, restart counter is at 4.
Mar 10 18:56:36 fedora systemd[1]: Stopped Early root shell on /dev/tty9 FOR DEBUGGING ONLY.
Mar 10 18:56:36 fedora systemd[1]: Started Early root shell on /dev/tty9 FOR DEBUGGING ONLY.
Mar 10 18:56:36 fedora systemd[1]: debug-shell.service: Main process exited, code=exited, status=208/STDIN
Mar 10 18:56:36 fedora systemd[1]: debug-shell.service: Failed with result 'exit-code'.
Mar 10 18:56:36 fedora systemd[1]: debug-shell.service: Scheduled restart job, restart counter is at 5.
Mar 10 18:56:36 fedora systemd[1]: Stopped Early root shell on /dev/tty9 FOR DEBUGGING ONLY.
Mar 10 18:56:36 fedora systemd[1]: debug-shell.service: Start request repeated too quickly.
Mar 10 18:56:36 fedora systemd[1]: debug-shell.service: Failed with result 'exit-code'.
Mar 10 18:56:36 fedora systemd[1]: Failed to start Early root shell on /dev/tty9 FOR DEBUGGING ONLY.
Mar 10 18:56:36 fedora systemd[1]: debug-shell.service: Start request repeated too quickly.
Mar 10 18:56:36 fedora systemd[1]: debug-shell.service: Failed with result 'exit-code'.
Mar 10 18:56:36 fedora systemd[1]: Failed to start Early root shell on /dev/tty9 FOR DEBUGGING ONLY.
Mar 10 18:56:36 fedora systemd[1]: debug-shell.service: Start request repeated too quickly.
Mar 10 18:56:36 fedora systemd[1]: debug-shell.service: Failed with result 'exit-code'.
Mar 10 18:56:36 fedora systemd[1]: Failed to start Early root shell on /dev/tty9 FOR DEBUGGING ONLY.
Mar 10 18:56:37 fedora systemd[1]: debug-shell.service: Start request repeated too quickly.
Mar 10 18:56:37 fedora systemd[1]: debug-shell.service: Failed with result 'exit-code'.
Mar 10 18:56:37 fedora systemd[1]: Failed to start Early root shell on /dev/tty9 FOR DEBUGGING ONLY.

Proposing as a Beta FE as this may well be desired for debugging issues in live env or on first boot.

Comment 1 Zbigniew Jędrzejewski-Szmek 2021-03-11 18:58:28 UTC
Oops.

Comment 2 Zbigniew Jędrzejewski-Szmek 2021-03-11 19:05:26 UTC
Isn't this the same as #1933902?

Comment 3 Adam Williamson 2021-03-11 19:17:44 UTC
oh, probably yes. I think I forgot about that one. Sorry!

*** This bug has been marked as a duplicate of bug 1933902 ***