Bug 2228089 - journalctl -f output cannot be redirected to a file
Summary: journalctl -f output cannot be redirected to a file
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: systemd
Version: rawhide
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: systemd-maint
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-08-01 11:26 UTC by Zdenek Dohnal
Modified: 2023-08-10 02:13 UTC (History)
9 users (show)

Fixed In Version: systemd-254.1-2.fc40 systemd-254.1-2.fc39
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-08-09 16:04:35 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github systemd systemd pull 28644 0 None Merged journalctl: do not add io event source for stdout if it is a file 2023-08-03 06:11:22 UTC

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.


Note You need to log in before you can comment on or make changes to this bug.