Debian Bug report logs - #694563
systemd: "systemd-journalctl -f" prints nothing when output is redirected

version graph

Package: systemd; Maintainer for systemd is Debian systemd Maintainers <pkg-systemd-maintainers@lists.alioth.debian.org>; Source for systemd is src:systemd.

Reported by: Sven Joachim <svenjoac@gmx.de>

Date: Tue, 27 Nov 2012 19:45:02 UTC

Severity: normal

Found in version systemd/44-5

Fixed in version 204-1

Done: Michael Biebl <biebl@debian.org>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, svenjoac@gmx.de, Tollef Fog Heen <tfheen@debian.org>:
Bug#694563; Package systemd. (Tue, 27 Nov 2012 19:45:04 GMT) Full text and rfc822 format available.

Acknowledgement sent to Sven Joachim <svenjoac@gmx.de>:
New Bug report received and forwarded. Copy sent to svenjoac@gmx.de, Tollef Fog Heen <tfheen@debian.org>. (Tue, 27 Nov 2012 19:45:04 GMT) Full text and rfc822 format available.

Message #5 received at submit@bugs.debian.org (full text, mbox):

From: Sven Joachim <svenjoac@gmx.de>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: systemd: "systemd-journalctl -f" prints nothing when output is redirected
Date: Tue, 27 Nov 2012 20:43:41 +0100
Package: systemd
Version: 44-5

Running "systemd-journalctl -f" works fine when standard output is
connected to a terminal, but it prints nothing when stdout is redirected
to a file or pipe.  See also the thread starting at
http://lists.debian.org/debian-user/2012/11/msg01211.html.


-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (101, 'experimental')
Architecture: i386 (x86_64)

Kernel: Linux 3.7.0-rc7-nouveau (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages systemd depends on:
ii  dpkg                 1.16.9
ii  initscripts          2.88dsf-34
ii  libacl1              2.2.51-8
ii  libaudit0            1:1.7.18-1.1
ii  libc6                2.13-37
ii  libcap2              1:2.22-1.2
ii  libcryptsetup4       2:1.4.3-4
ii  libdbus-1-3          1.6.8-1
ii  libkmod2             9-2
ii  liblzma5             5.1.1alpha+20120614-2
ii  libpam0g             1.1.3-7.1
ii  libselinux1          2.1.9-5
ii  libsystemd-daemon0   44-5
ii  libsystemd-id128-0   44-5
ii  libsystemd-journal0  44-5
ii  libsystemd-login0    44-5
ii  libudev0             175-7.1
ii  libwrap0             7.6.q-24
ii  udev                 175-7.1
ii  util-linux           2.20.1-5.2

Versions of packages systemd recommends:
ii  libpam-systemd  44-5

Versions of packages systemd suggests:
ii  python        2.7.3-3
pn  python-cairo  <none>
pn  python-dbus   <none>
pn  systemd-gui   <none>

-- no debconf information



Information forwarded to debian-bugs-dist@lists.debian.org, Tollef Fog Heen <tfheen@debian.org>:
Bug#694563; Package systemd. (Sat, 05 Jan 2013 18:00:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>:
Extra info received and forwarded to list. Copy sent to Tollef Fog Heen <tfheen@debian.org>. (Sat, 05 Jan 2013 18:00:04 GMT) Full text and rfc822 format available.

Message #10 received at 694563@bugs.debian.org (full text, mbox):

From: Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
To: 694563@bugs.debian.org
Subject: highly unlikely
Date: Sat, 5 Jan 2013 18:38:26 +0100
Hi,
I just tested and both 'journalctl -f | grep .' and 'journal -f > foo'
work as expected. journalctl simply writes stuff to stdout using
printf() and friends, so it's highly unlikely that it broken in some
special way.

Also, the thread
http://lists.debian.org/debian-user/2012/11/msg01211.html is full of
misconceptions: it is the shell which manipulates fds, not the
individual programs, so the sentence "'systemd-journalctl -f' fails to
pass stdout file descriptor in such a way that bash process
substitution can work" doesn't make much sense. Also, the redirection
with <() _does_ set standard input.

journalctl sometimes takes a long time (~30 seconds is not unlikely)
to start producing output. Please make sure to wait long enough.

Zbyszek



Reply sent to Michael Biebl <biebl@debian.org>:
You have taken responsibility. (Thu, 25 Jul 2013 06:21:11 GMT) Full text and rfc822 format available.

Notification sent to Sven Joachim <svenjoac@gmx.de>:
Bug acknowledged by developer. (Thu, 25 Jul 2013 06:21:11 GMT) Full text and rfc822 format available.

Message #15 received at 694563-done@bugs.debian.org (full text, mbox):

From: Michael Biebl <biebl@debian.org>
To: 694563-done@bugs.debian.org, Sven Joachim <svenjoac@gmx.de>
Subject: systemd: "systemd-journalctl -f" prints nothing when output is redirected
Date: Thu, 25 Jul 2013 08:18:36 +0200
[Message part 1 (text/plain, inline)]
Version: 204-1

I've just tested this with v204 from experimental, and there
journal -f > /tmp/log works as expected.
New log messages show up in /tmp/log.

Marking as fixed in 204-1.
If you can still reproduce the issue with v204, please re-open the bug
report.

Michael
-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?

[signature.asc (application/pgp-signature, attachment)]

Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Fri, 11 Oct 2013 07:30:24 GMT) Full text and rfc822 format available.

Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Thu Apr 17 19:41:24 2014; Machine Name: beach.debian.org

Debian Bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.