Bug 1069828
Summary: | systemd-journald Failed to write entry X bytes ignoring Bad address | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Mikhail Strizhov <strizhov> |
Component: | systemd | Assignee: | systemd-maint |
Status: | CLOSED EOL | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | low | Docs Contact: | |
Priority: | unspecified | ||
Version: | 22 | CC: | bugs.management, chemobejk, jgotts, johannbg, kompastver, lnykryn, msekleta, plautrba, rsawhill, sergio, sly.midnight, systemd-maint, vpavlin, zbyszek |
Target Milestone: | --- | Keywords: | Reopened |
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2016-07-19 20:05:12 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Mikhail Strizhov
2014-02-25 17:57:18 UTC
Hm, can you provide the complete boot log (journalctl -b)? Also, how much free space do you have on the filesystem containing /var/log/? What does 'journalctl --verify' say? I am getting the same errors and the journal will no longer show what the syslog and dmesg show. When I run journalctl --verify this is what I get: % journalctl --verify PASS: /var/log/journal/0f3d62f0338a4544b94e29934697a30a/user-1000 df7f68: invalid object entry array item (4624/6318): 3c3e6e6f69746163░░░░░░░ 4% Invalid object contents at df7f68: Bad message File corruption detected at /var/log/journal/0f3d62f0338a4544b94e29934697a30a/system:df7f68 (of 134217728 bytes, 10%). FAIL: /var/log/journal/0f3d62f0338a4544b94e29934697a30a/system (Bad message) 53bbe8: invalid object entry array item (1152/2106): a1836f4ae32ab67a░░░░░░░ 0% Invalid object contents at 53bbe8: Bad message File corruption detected at /var/log/journal/0f3d62f0338a4544b94e29934697a30a/system~:53bbe8 (of 8388608 bytes, 65%). FAIL: /var/log/journal/0f3d62f0338a4544b94e29934697a30a/system~ (Bad message) PASS: /var/log/journal/0f3d62f0338a4544b94e29934697a30a/system PASS: /var/log/journal/0f3d62f0338a4544b94e29934697a30a/system~ PASS: /var/log/journal/0f3d62f0338a4544b94e29934697a30a/user-1000 PASS: /var/log/journal/0f3d62f0338a4544b94e29934697a30a/user-1000 PASS: /var/log/journal/0f3d62f0338a4544b94e29934697a30a/user-989 fe9530: invalid object entry array item (855/2106): 676e656c28206669░░░░░░░░ 11% Invalid object contents at fe9530: Bad message File corruption detected at /var/log/journal/0f3d62f0338a4544b94e29934697a30a/system~:fe9530 (of 58720256 bytes, 28%). FAIL: /var/log/journal/0f3d62f0338a4544b94e29934697a30a/system~ (Bad message) PASS: /var/log/journal/0f3d62f0338a4544b94e29934697a30a/user-1001 PASS: /var/log/journal/0f3d62f0338a4544b94e29934697a30a/user-1001 PASS: /var/log/journal/0f3d62f0338a4544b94e29934697a30a/user-1000 61ee78: invalid object entry array item (1582/6318): d904000515080106░░░░░░░ 0% Invalid object contents at 61ee78: Bad message File corruption detected at /var/log/journal/0f3d62f0338a4544b94e29934697a30a/system:61ee78 (of 134217728 bytes, 4%). FAIL: /var/log/journal/0f3d62f0338a4544b94e29934697a30a/system (Bad message) 11f6d58: invalid object entry array item (4178/6318): 401010000000d░░░░░░░░░ 6% Invalid object contents at 11f6d58: Bad message File corruption detected at /var/log/journal/0f3d62f0338a4544b94e29934697a30a/system:11f6d58 (of 134217728 bytes, 14%). FAIL: /var/log/journal/0f3d62f0338a4544b94e29934697a30a/system (Bad message) PASS: /var/log/journal/0f3d62f0338a4544b94e29934697a30a/system~ PASS: /var/log/journal/0f3d62f0338a4544b94e29934697a30a/user-1000.journal 443240: invalid object entry array item (23/26): 77207361206e6f6d░░░░░░░░░░░ 0% Invalid object contents at 443240: Bad message File corruption detected at /var/log/journal/0f3d62f0338a4544b94e29934697a30a/user-1000:443240 (of 8388608 bytes, 53%). FAIL: /var/log/journal/0f3d62f0338a4544b94e29934697a30a/user-1000 (Bad message) PASS: /var/log/journal/0f3d62f0338a4544b94e29934697a30a/user-1001.journal PASS: /var/log/journal/0f3d62f0338a4544b94e29934697a30a/user-1000 PASS: /var/log/journal/0f3d62f0338a4544b94e29934697a30a/system PASS: /var/log/journal/0f3d62f0338a4544b94e29934697a30a/user-989 PASS: /var/log/journal/0f3d62f0338a4544b94e29934697a30a/user-1001 PASS: /var/log/journal/0f3d62f0338a4544b94e29934697a30a/system PASS: /var/log/journal/0f3d62f0338a4544b94e29934697a30a/system PASS: /var/log/journal/0f3d62f0338a4544b94e29934697a30a/user-1000 345ecc0: invalid object entry array item (4710/6318): e51ab0000002e░░░░░░░░░ 35% Invalid object contents at 345ecc0: Bad message File corruption detected at /var/log/journal/0f3d62f0338a4544b94e29934697a30a/system:345ecc0 (of 78233600 bytes, 70%). FAIL: /var/log/journal/0f3d62f0338a4544b94e29934697a30a/system (Bad message) PASS: /var/log/journal/0f3d62f0338a4544b94e29934697a30a/user-1000 PASS: /var/log/journal/0f3d62f0338a4544b94e29934697a30a/user-1000 I got same problem after clone my hard disk , I removed rm -rf /var/log/journal/0f3d62f0338a4544b94e29934697a30a and restart the service systemctl restart systemd-journalctl Looks like systemd-journald really doesn't like disk cloning while it is still running :-( Something to remember for the next upgrade. BTW: you don't have to delete all journal data to fix this. Just force a log rotation with SIGUSR2, i.e. $ kill -SIGUSR2 <pid of systemd-journald> and the error disappears. See also "man systemd-journald.service". This message is a reminder that Fedora 20 is nearing its end of life. Approximately 4 (four) weeks from now Fedora will stop maintaining and issuing updates for Fedora 20. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as EOL if it remains open with a Fedora 'version' of '20'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version. Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora 20 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged change the 'version' to a later Fedora version prior this bug is closed as described in the policy above. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete. Fedora 20 changed to end-of-life (EOL) status on 2015-06-23. Fedora 20 is no longer maintained, which means that it will not receive any further security or bug fix updates. As a result we are closing this bug. If you can reproduce this bug against a currently maintained version of Fedora please feel free to reopen this bug against that version. If you are unable to reopen this bug, please file a new report against the current release. If you experience problems, please add a comment to this bug. Thank you for reporting this bug and we are sorry it could not be fixed. The problem still exists in Fedora 22. journalctl --verify flagged several dozen files with this same error, bad message. I don't see how kill -SIGUSR2 <pid of systemd-journald> is doing anything. Once I removed all of the corrupted files and ran this command again I still have dozens of files in /var/log/journal/.../ dating back to September and October. I also have these gems: -rw-r-----+ 1 root systemd-journal 8388608 Jun 3 14:38 user-1003.journal -rw-r-----+ 1 root systemd-journal 8388608 Apr 29 2015 user-1002.journal -rwxr-xr-x+ 1 root systemd-journal 8388608 Apr 6 2015 user-42.journal -rwxr-xr-x+ 1 root systemd-journal 8388608 Jan 1 2015 user-991.journal Are these files dated months ago supposed to be there? This bug is a bad one. I plugged in a USB device and wanted to see whether it connected as USB 2.0 or USB 3.0. Nope, dmesg just had: [ 5478.800203] systemd-journald[439]: Failed to write entry (21 items, 650 bytes), ignoring: Bad address dmesg has a positively gigantic buffer, but this message was being logged every 500 microseconds. I wish I was joking. No kernel messages. I think the real bug is that systemd needs to stay out of whatever produces dmesg these days. dmesg since the 1990s has been the primary way to get kernel messages, when you do things like plug in USB devices. dmesg is not the place for systemd internal errors. If there is a bad file in the aforementioned subdirectory, ignore it, don't generate a log entry every 500 microseconds. Hopefully we can get this problem ironed out. Fedora 22 changed to end-of-life (EOL) status on 2016-07-19. Fedora 22 is no longer maintained, which means that it will not receive any further security or bug fix updates. As a result we are closing this bug. If you can reproduce this bug against a currently maintained version of Fedora please feel free to reopen this bug against that version. If you are unable to reopen this bug, please file a new report against the current release. If you experience problems, please add a comment to this bug. Thank you for reporting this bug and we are sorry it could not be fixed. |