Bug#763654: /bin/journalctl: journalctl --boot option doesn't work: "Cannot assign requested address"
Nikolaus Rath
nrath at trialphaenergy.com
Wed Oct 1 17:50:55 BST 2014
On 10/01/2014 09:23 AM, Michael Biebl wrote:
> Am 01.10.2014 um 17:36 schrieb Nikolaus Rath:
>> Package: systemd
>> Version: 208-8
>> Severity: normal
>> File: /bin/journalctl
>>
>> Hello,
>>
>> I'm trying to retrieve the logs from the last book. journalctl(1) says:
>>
>> -b [ID][±offset], --boot=[ID][±offset]
>> Show messages from a specific boot. This will add a match for
>> "_BOOT_ID=".
>>
>> The argument may be empty, in which case logs for the current
>> boot will be
>> shown.
>>
>> If the boot ID is omitted, a positive offset will look up the
>> boots starting
>> from the beginning of the journal, and a equal-or-less-than
>> zero offset will
>> look up boots starting from the end of the journal. Thus, 1
>> means the first
>> boot found in the journal in the chronological order, 2 the
>> second and so
>> on; while -0 is the last boot, -1 the boot before that, and
>> so on. An empty
>> offset is equivalent to specifying -0, except when the
>> current boot is not
>> the last boot (e.g. because --directory was specified to look
>> at logs from a
>> different machine).
>>
>>
>> However,
>>
>> [0] nelarikon:~# journalctl -b -1
>> Failed to look up boot -1: Cannot assign requested address
>>
>> [1] nelarikon:~# journalctl --boot=-1
>> Failed to look up boot -1: Cannot assign requested address
>>
>>
> I do assume that you have created a /var/log/journal directory?
No, I did not. Since journalctl -xb was working out of the box, I was
assuming journalctl -b -1 would work as well. I'll setup
/var/log/journal as described in README.Debian (only looked at that now).
Best,
-Nikolaus
--
Nikolaus Rath, Ph.D.
Senior Scientist
Tri Alpha Energy, Inc.
+1 949 830 2117 ext 211
More information about the Pkg-systemd-maintainers
mailing list