Bug 2228089

Summary: journalctl -f output cannot be redirected to a file
Product: [Fedora] Fedora Reporter: Zdenek Dohnal <zdohnal>
Component: systemdAssignee: systemd-maint
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: rawhideCC: dtardon, fedoraproject, filbranden, lnykryn, msekleta, ryncsn, systemd-maint, yuwatana, zbyszek
Target Milestone: ---Keywords: Regression
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: systemd-254.1-2.fc40 systemd-254.1-2.fc39 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-08-09 16:04:35 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Zdenek Dohnal 2023-08-01 11:26:21 UTC
Redirection to a file from 'journalctl -f' does not work in systemd-254-1.fc39.x86_64

Reproducible: Always

Steps to Reproduce:
1. journactl -f > log
Actual Results:  
Failed to add io event source for stdout: Operation not permitted

$ file --mime log
log: inode/x-empty; charset=binary

Expected Results:  
$ journalctl -u cups -f > log
^C
$ file --mime log
log: text/plain; charset=us-ascii

systemd-253.5-6.fc39.x86_64 was working.

Comment 1 Zbigniew Jędrzejewski-Szmek 2023-08-02 14:09:51 UTC
This is caused by 713342d9b09d717e9942ed08bd620c9159a98fb8.

^ Yu, ptal.

Comment 2 Fedora Update System 2023-08-09 15:57:10 UTC
FEDORA-2023-f866360f34 has been submitted as an update to Fedora 39. https://bodhi.fedoraproject.org/updates/FEDORA-2023-f866360f34

Comment 3 Fedora Update System 2023-08-09 16:01:08 UTC
FEDORA-2023-20143faff8 has been submitted as an update to Fedora 40. https://bodhi.fedoraproject.org/updates/FEDORA-2023-20143faff8

Comment 4 Fedora Update System 2023-08-09 16:04:35 UTC
FEDORA-2023-20143faff8 has been pushed to the Fedora 40 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 5 Fedora Update System 2023-08-10 02:13:39 UTC
FEDORA-2023-f866360f34 has been pushed to the Fedora 39 stable repository.
If problem still persists, please make note of it in this bug report.