<div dir="ltr">Hi Lennart,<div><br></div><div>Thanks for the reply.<br>JFFS2 is the file system being used in my case. Also, if I would delete /var/log/journal directory then these errors are stopping.</div><div>Meaning while writing to persistence storage this error is persisting all the time. </div><div><br></div><div>cat /proc/cmdline<br>console=ttyS0,115200 root=/dev/mtdblock2 rw rootfstype=jffs2<br></div><div><br></div><div>df -Tk<br>Filesystem Type 1K-blocks Used Available Use% Mounted on<br>/dev/root <b>jffs2</b> 81792 61220 20572 75% /<br>devtmpfs devtmpfs 506040 4 506036 0% /dev<br>tmpfs tmpfs 514744 4 514740 0% /dev/shm<br>tmpfs tmpfs 514744 13268 501476 3% /run<br>tmpfs tmpfs 514744 0 514744 0% /sys/fs/cgroup<br>tmpfs tmpfs 514744 0 514744 0% /tmp<br>/dev/mtdblock1 <b>jffs2</b> 20416 6784 13632 33% /home/root/apps<br>tmpfs tmpfs 102948 0 102948 0% /run/user/0<br><br>Suspicious cause for this error:</div><div>------------------------------------------<br>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(31,31,36)"><br></p><p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(31,31,36)">mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_SHARED, 28, 0) = -1 EINVAL (Invalid argument)</p><p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(31,31,36)"><br></p><div><br></div>STRACE Detailed DUMP:</div><div>===================<br>Please find the attachment (strace.log)<br><br>*************************************************<br>root@arria10:~# cat /var/log/messages | tail -f<br>May 21 11:03:31 arria10 syslog.warn kernel: [ 981.997820] systemd-journald[748]: Failed to open system journal: Invalid argument<br>May 21 11:03:31 arria10 syslog.warn kernel: [ 982.348838] systemd-journald[748]: Failed to open system journal: Invalid argument<br>May 21 11:04:21 arria10 syslog.warn kernel: [ 1031.993905] systemd-journald[748]: Failed to open system journal: Invalid argument<br>May 21 11:04:21 arria10 syslog.warn kernel: [ 1032.001617] systemd-journald[748]: Failed to open system journal: Invalid argument<br>May 21 11:04:21 arria10 syslog.warn kernel: [ 1032.011077] systemd-journald[748]: Failed to open system journal: Invalid argument<br>May 21 11:04:21 arria10 syslog.warn kernel: [ 1032.019424] systemd-journald[748]: Failed to open system journal: Invalid argument<br>May 21 11:04:31 arria10 syslog.warn kernel: [ 1041.993815] systemd-journald[748]: Failed to open system journal: Invalid argument<br>May 21 11:04:31 arria10 syslog.warn kernel: [ 1042.001527] systemd-journald[748]: Failed to open system journal: Invalid argument<br>May 21 11:04:31 arria10 syslog.warn kernel: [ 1042.010622] systemd-journald[748]: Failed to open system journal: Invalid argument<br>May 21 11:04:31 arria10 syslog.warn kernel: [ 1042.018886] systemd-journald[748]: Failed to open system journal: Invalid argument</div><div><br></div><div>Regards,<br>Karnik Jain</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, May 20, 2019 at 3:10 PM Lennart Poettering <<a href="mailto:lennart@poettering.net">lennart@poettering.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Sa, 18.05.19 09:59, Kay One (<a href="mailto:kayone007@gmail.com" target="_blank">kayone007@gmail.com</a>) wrote:<br>
<br>
> *[ 2002.668599] systemd-journald[743]: Journal effective settings seal=yes<br>
> compress=yes compress_threshold_bytes=512B*<br>
> *[ 2002.679080] systemd-journald[743]: Failed to open system journal:<br>
> Invalid argument*<br>
<br>
Hmm, this is interesting. I wonder how that happens. Does stracing the<br>
journald show anything interesting? i.e. some syscall throwing EINVAL?<br>
<br>
What's the file system used?<br>
<br>
Lennart<br>
<br>
--<br>
Lennart Poettering, Berlin<br>
</blockquote></div>