[systemd-devel] journalctl - "Error was encountered while opening journal files: Invalid argument"

Johannes Ernst johannes.ernst at gmail.com
Sat Jun 20 13:04:32 PDT 2015


> On Jun 19, 2015, at 23:37, Daniel Mack <daniel at zonque.org> wrote:
> 
> On 06/19/2015 09:31 PM, Johannes Ernst wrote:
>> After a reboot, root gets this:
>> 
>> # journalctl 
>> Error was encountered while opening journal files: Invalid argument
>> 
>> No other output.
> 
> What does 'strace journalctl' say?

# strace journalctl
execve("/usr/bin/journalctl", ["journalctl"], [/* 18 vars */]) = 0
brk(0)                                  = 0x7f1c03a8d000
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=204989, ...}) = 0
mmap(NULL, 204989, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f1c036d0000
close(3)                                = 0
open("/usr/lib/librt.so.1", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\220!\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=31672, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f1c036cf000
mmap(NULL, 2128856, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f1c032da000
mprotect(0x7f1c032e1000, 2093056, PROT_NONE) = 0
mmap(0x7f1c034e0000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x6000) = 0x7f1c034e0000
close(3)                                = 0
open("/usr/lib/liblzma.so.5", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\2001\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=154288, ...}) = 0
mmap(NULL, 2249360, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f1c030b4000
mprotect(0x7f1c030d9000, 2093056, PROT_NONE) = 0
mmap(0x7f1c032d8000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x24000) = 0x7f1c032d8000
close(3)                                = 0
open("/usr/lib/liblz4.so.1", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\300$\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=71968, ...}) = 0
mmap(NULL, 2167144, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f1c02ea2000
mprotect(0x7f1c02eb3000, 2093056, PROT_NONE) = 0
mmap(0x7f1c030b2000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x10000) = 0x7f1c030b2000
close(3)                                = 0
open("/usr/lib/libgcrypt.so.20", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\0\221\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=919976, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f1c036ce000
mmap(NULL, 3016352, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f1c02bc1000
mprotect(0x7f1c02c98000, 2097152, PROT_NONE) = 0
mmap(0x7f1c02e98000, 40960, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xd7000) = 0x7f1c02e98000
close(3)                                = 0
open("/usr/lib/libacl.so.1", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\300 \0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=35384, ...}) = 0
mmap(NULL, 2130592, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f1c029b8000
mprotect(0x7f1c029c0000, 2093056, PROT_NONE) = 0
mmap(0x7f1c02bbf000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x7000) = 0x7f1c02bbf000
close(3)                                = 0
open("/usr/lib/libpthread.so.0", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\320`\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=142832, ...}) = 0
mmap(NULL, 2213040, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f1c0279b000
mprotect(0x7f1c027b3000, 2093056, PROT_NONE) = 0
mmap(0x7f1c029b2000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x17000) = 0x7f1c029b2000
mmap(0x7f1c029b4000, 13488, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f1c029b4000
close(3)                                = 0
open("/usr/lib/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\260\10\2\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=1979984, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f1c036cd000
mmap(NULL, 3807760, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f1c023f9000
mprotect(0x7f1c02592000, 2093056, PROT_NONE) = 0
mmap(0x7f1c02791000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x198000) = 0x7f1c02791000
mmap(0x7f1c02797000, 14864, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f1c02797000
close(3)                                = 0
open("/usr/lib/libgpg-error.so.0", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\20)\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=76320, ...}) = 0
mmap(NULL, 2171480, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f1c021e6000
mprotect(0x7f1c021f8000, 2093056, PROT_NONE) = 0
mmap(0x7f1c023f7000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x11000) = 0x7f1c023f7000
close(3)                                = 0
open("/usr/lib/libattr.so.1", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0`\24\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=18736, ...}) = 0
mmap(NULL, 2113912, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f1c01fe1000
mprotect(0x7f1c01fe5000, 2093056, PROT_NONE) = 0
mmap(0x7f1c021e4000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x3000) = 0x7f1c021e4000
close(3)                                = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f1c036cc000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f1c036cb000
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f1c036c9000
arch_prctl(ARCH_SET_FS, 0x7f1c036c9780) = 0
mprotect(0x7f1c02791000, 16384, PROT_READ) = 0
mprotect(0x7f1c021e4000, 4096, PROT_READ) = 0
mprotect(0x7f1c023f7000, 4096, PROT_READ) = 0
mprotect(0x7f1c029b2000, 4096, PROT_READ) = 0
mprotect(0x7f1c02bbf000, 4096, PROT_READ) = 0
mprotect(0x7f1c02e98000, 4096, PROT_READ) = 0
mprotect(0x7f1c030b2000, 4096, PROT_READ) = 0
mprotect(0x7f1c032d8000, 4096, PROT_READ) = 0
mprotect(0x7f1c034e0000, 4096, PROT_READ) = 0
mprotect(0x7f1c03774000, 16384, PROT_READ) = 0
mprotect(0x7f1c03703000, 4096, PROT_READ) = 0
munmap(0x7f1c036d0000, 204989)          = 0
set_tid_address(0x7f1c036c9a50)         = 27372
set_robust_list(0x7f1c036c9a60, 24)     = 0
rt_sigaction(SIGRTMIN, {0x7f1c027a0bb0, [], SA_RESTORER|SA_SIGINFO, 0x7f1c027ab660}, NULL, 8) = 0
rt_sigaction(SIGRT_1, {0x7f1c027a0c40, [], SA_RESTORER|SA_RESTART|SA_SIGINFO, 0x7f1c027ab660}, NULL, 8) = 0
rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 8) = 0
getrlimit(RLIMIT_STACK, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0
brk(0)                                  = 0x7f1c03a8d000
brk(0x7f1c03aae000)                     = 0x7f1c03aae000
open("/proc/self/stat", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f1c03702000
read(3, "27372 (journalctl) R 27370 27370"..., 1024) = 351
close(3)                                = 0
munmap(0x7f1c03702000, 4096)            = 0
rt_sigaction(SIGWINCH, {0x7f1c03737650, [WINCH], SA_RESTORER|SA_RESTART, 0x7f1c0242c5b0}, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGBUS, {0x7f1c03737720, [], SA_RESTORER|SA_SIGINFO, 0x7f1c027ab660}, {SIG_DFL, [], 0}, 8) = 0
setrlimit(RLIMIT_NOFILE, {rlim_cur=16*1024, rlim_max=16*1024}) = 0
gettid()                                = 27372
getrandom("\227%\335\247#\33\233\v\356s\322M\22\26e\337", 16, GRND_NONBLOCK) = 16
openat(AT_FDCWD, "/run/log/journal", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/var/log/journal", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 3
getdents(3, /* 4 entries */, 32768)     = 136
open("/etc/machine-id", O_RDONLY|O_NOCTTY|O_CLOEXEC) = 4
read(4, "04d2cce2448341b7a4a6390e8521f976"..., 33) = 33
close(4)                                = 0
openat(AT_FDCWD, "/var/log/journal/04d2cce2448341b7a4a6390e8521f976", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 4
getdents(4, /* 12 entries */, 32768)    = 896
open("/var/log/journal/04d2cce2448341b7a4a6390e8521f976/user-1000.journal", O_RDONLY|O_CLOEXEC) = 5
fstat(5, {st_mode=S_IFREG|0650, st_size=8388608, ...}) = 0
clock_gettime(CLOCK_MONOTONIC, {47078, 230336664}) = 0
mmap(NULL, 8388608, PROT_READ, MAP_SHARED, 5, 0) = 0x7f1c017e1000
fstatfs(5, {f_type="BTRFS_SUPER_MAGIC", f_bsize=4096, f_blocks=8191744, f_bfree=2949565, f_bavail=2471965, f_files=0, f_ffree=0, f_fsid={-584314961, 897970806}, f_namelen=255, f_frsize=4096}) = 0
open("/var/log/journal/04d2cce2448341b7a4a6390e8521f976/user-1001 at 6020307160f544d1b3f747dd48b4d0d2-000000000000b4bf-00051819d75ab209.journal", O_RDONLY|O_CLOEXEC) = 6
fstat(6, {st_mode=S_IFREG|0650, st_size=6553600, ...}) = 0
clock_gettime(CLOCK_MONOTONIC, {47078, 232999534}) = 0
mmap(NULL, 6553600, PROT_READ, MAP_SHARED, 6, 0) = 0x7f1c011a1000
getrandom("\306C\315\245\177\312NUp\375\336]9\254\36\351", 16, GRND_NONBLOCK) = 16
fstatfs(6, {f_type="BTRFS_SUPER_MAGIC", f_bsize=4096, f_blocks=8191744, f_bfree=2949565, f_bavail=2471965, f_files=0, f_ffree=0, f_fsid={-584314961, 897970806}, f_namelen=255, f_frsize=4096}) = 0
open("/var/log/journal/04d2cce2448341b7a4a6390e8521f976/system at 2fd03a3e34fa42fcb4e935461de3a217-000000000000e0b3-000518380910e83e.journal", O_RDONLY|O_CLOEXEC) = 7
fstat(7, {st_mode=S_IFREG|0650, st_size=6553600, ...}) = 0
clock_gettime(CLOCK_MONOTONIC, {47078, 238555467}) = 0
mmap(NULL, 6553600, PROT_READ, MAP_SHARED, 7, 0) = 0x7f1c00b61000
fstatfs(7, {f_type="BTRFS_SUPER_MAGIC", f_bsize=4096, f_blocks=8191744, f_bfree=2949565, f_bavail=2471965, f_files=0, f_ffree=0, f_fsid={-584314961, 897970806}, f_namelen=255, f_frsize=4096}) = 0
open("/var/log/journal/04d2cce2448341b7a4a6390e8521f976/user-1001 at 6020307160f544d1b3f747dd48b4d0d2-000000000000e0d1-0005183e88809413.journal", O_RDONLY|O_CLOEXEC) = 8
fstat(8, {st_mode=S_IFREG|0650, st_size=6553600, ...}) = 0
clock_gettime(CLOCK_MONOTONIC, {47078, 240378019}) = 0
mmap(NULL, 6553600, PROT_READ, MAP_SHARED, 8, 0) = 0x7f1c00521000
fstatfs(8, {f_type="BTRFS_SUPER_MAGIC", f_bsize=4096, f_blocks=8191744, f_bfree=2949565, f_bavail=2471965, f_files=0, f_ffree=0, f_fsid={-584314961, 897970806}, f_namelen=255, f_frsize=4096}) = 0
open("/var/log/journal/04d2cce2448341b7a4a6390e8521f976/system at 2fd03a3e34fa42fcb4e935461de3a217-0000000000011845-0005185a036ae069.journal", O_RDONLY|O_CLOEXEC) = 9
fstat(9, {st_mode=S_IFREG|0650, st_size=6553600, ...}) = 0
clock_gettime(CLOCK_MONOTONIC, {47078, 242687218}) = 0
mmap(NULL, 6553600, PROT_READ, MAP_SHARED, 9, 0) = 0x7f1bffee1000
getrandom("\362\254N\263\271MI\304\353$X\237\203\7k\230", 16, GRND_NONBLOCK) = 16
fstatfs(9, {f_type="BTRFS_SUPER_MAGIC", f_bsize=4096, f_blocks=8191744, f_bfree=2949565, f_bavail=2471965, f_files=0, f_ffree=0, f_fsid={-584314961, 897970806}, f_namelen=255, f_frsize=4096}) = 0
open("/var/log/journal/04d2cce2448341b7a4a6390e8521f976/user-1001 at 6020307160f544d1b3f747dd48b4d0d2-00000000000114de-0005185a0343f94f.journal", O_RDONLY|O_CLOEXEC) = 10
fstat(10, {st_mode=S_IFREG|0650, st_size=6553600, ...}) = 0
clock_gettime(CLOCK_MONOTONIC, {47078, 248352381}) = 0
mmap(NULL, 6553600, PROT_READ, MAP_SHARED, 10, 0) = 0x7f1bff8a1000
fstatfs(10, {f_type="BTRFS_SUPER_MAGIC", f_bsize=4096, f_blocks=8191744, f_bfree=2949565, f_bavail=2471965, f_files=0, f_ffree=0, f_fsid={-584314961, 897970806}, f_namelen=255, f_frsize=4096}) = 0
open("/var/log/journal/04d2cce2448341b7a4a6390e8521f976/user-1001 at 6020307160f544d1b3f747dd48b4d0d2-0000000000014343-000518736288daa8.journal", O_RDONLY|O_CLOEXEC) = 11
fstat(11, {st_mode=S_IFREG|0650, st_size=6553600, ...}) = 0
clock_gettime(CLOCK_MONOTONIC, {47078, 251182030}) = 0
mmap(NULL, 6553600, PROT_READ, MAP_SHARED, 11, 0) = 0x7f1bff261000
getrandom("\nF\227\362x\327\236)\3~-\27\303XE0", 16, GRND_NONBLOCK) = 16
fstatfs(11, {f_type="BTRFS_SUPER_MAGIC", f_bsize=4096, f_blocks=8191744, f_bfree=2949565, f_bavail=2471965, f_files=0, f_ffree=0, f_fsid={-584314961, 897970806}, f_namelen=255, f_frsize=4096}) = 0
open("/var/log/journal/04d2cce2448341b7a4a6390e8521f976/user-1001.journal", O_RDONLY|O_CLOEXEC) = 12
fstat(12, {st_mode=S_IFREG|0650, st_size=240, ...}) = 0
clock_gettime(CLOCK_MONOTONIC, {47078, 255191699}) = 0
mmap(NULL, 4096, PROT_READ, MAP_SHARED, 12, 0) = 0x7f1c03702000
munmap(0x7f1c03702000, 4096)            = 0
close(12)                               = 0
open("/var/log/journal/04d2cce2448341b7a4a6390e8521f976/system at 6305fc7123d144529198be51eb894163-0000000000000001-000518cb336468af.journal", O_RDONLY|O_CLOEXEC) = 12
fstat(12, {st_mode=S_IFREG|0650, st_size=6553600, ...}) = 0
clock_gettime(CLOCK_MONOTONIC, {47078, 258523639}) = 0
mmap(NULL, 6553600, PROT_READ, MAP_SHARED, 12, 0) = 0x7f1bfec21000
fstatfs(12, {f_type="BTRFS_SUPER_MAGIC", f_bsize=4096, f_blocks=8191744, f_bfree=2949565, f_bavail=2471965, f_files=0, f_ffree=0, f_fsid={-584314961, 897970806}, f_namelen=255, f_frsize=4096}) = 0
open("/var/log/journal/04d2cce2448341b7a4a6390e8521f976/system.journal", O_RDONLY|O_CLOEXEC) = 13
fstat(13, {st_mode=S_IFREG|0640, st_size=6553600, ...}) = 0
clock_gettime(CLOCK_MONOTONIC, {47078, 261342113}) = 0
mmap(NULL, 6553600, PROT_READ, MAP_SHARED, 13, 0) = 0x7f1bfe5e1000
getrandom("\363s\251Z\33\366w\326\343\v$\234\254\273r ", 16, GRND_NONBLOCK) = 16
fstatfs(13, {f_type="BTRFS_SUPER_MAGIC", f_bsize=4096, f_blocks=8191744, f_bfree=2949565, f_bavail=2471965, f_files=0, f_ffree=0, f_fsid={-584314961, 897970806}, f_namelen=255, f_frsize=4096}) = 0
getdents(4, /* 0 entries */, 32768)     = 0
fstatfs(4, {f_type="BTRFS_SUPER_MAGIC", f_bsize=4096, f_blocks=8191744, f_bfree=2949565, f_bavail=2471965, f_files=0, f_ffree=0, f_fsid={-584314961, 897970806}, f_namelen=255, f_frsize=4096}) = 0
close(4)                                = 0
getdents(3, /* 0 entries */, 32768)     = 0
fstatfs(3, {f_type="BTRFS_SUPER_MAGIC", f_bsize=4096, f_blocks=8191744, f_bfree=2949565, f_bavail=2471965, f_files=0, f_ffree=0, f_fsid={-584314961, 897970806}, f_namelen=255, f_frsize=4096}) = 0
close(3)                                = 0
writev(2, [{"Error was encountered while open"..., 67}, {"\n", 1}], 2Error was encountered while opening journal files: Invalid argument
) = 68
munmap(0x7f1c017e1000, 8388608)         = 0
close(5)                                = 0
munmap(0x7f1c011a1000, 6553600)         = 0
close(6)                                = 0
munmap(0x7f1c00b61000, 6553600)         = 0
close(7)                                = 0
munmap(0x7f1c00521000, 6553600)         = 0
close(8)                                = 0
munmap(0x7f1bffee1000, 6553600)         = 0
close(9)                                = 0
munmap(0x7f1bff8a1000, 6553600)         = 0
close(10)                               = 0
munmap(0x7f1bff261000, 6553600)         = 0
close(11)                               = 0
munmap(0x7f1bfec21000, 6553600)         = 0
close(12)                               = 0
munmap(0x7f1bfe5e1000, 6553600)         = 0
close(13)                               = 0
exit_group(1)                           = ?
+++ exited with 1 +++





More information about the systemd-devel mailing list