-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Podman 2.1.1 libpod/events endpoint returns status code 500 #8125
Comments
This is not an api problem. If you run The error is unfortunately not very informative. Looking at the code there is a problem while reading the journal. Does |
I had this problem before, and it turned out to be a spurious journal entry with the word "podman" in it that did not properly decode as JSON. |
I had 2 corrupted files in the journal, after removing them I do not get more error responses. Certainly the message coul be more informative. Cheers. |
I have the same issue, some corrupted journal files. For me, this works as a work-around: |
Could you try |
Fix the AddMatch/SeekTail conflict. This prevents reading unnecessary journal entries which could cause errors. Also wrap the sdjournal errors to provide better error messages. Fixes containers#8125 Signed-off-by: Paul Holzinger <[email protected]>
With |
Thanks for the confirmation. PR #8164 will fix this problem. |
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
The endpoint always returns status code 500
Steps to reproduce the issue:
Install podman 2.1.1
curl -s --unix-socket /run/podman/podman.sock http://d/v1.12/libpod/events
Describe the results you received:
{"cause":"failed to read message field: bad message","message":"failed to read message field: bad message","response":500}
Describe the results you expected:
a string of json data describing an event
Additional information you deem important (e.g. issue happens only occasionally):
cockpit-podman returns that the service is not active, as reported here:
cockpit-project/cockpit-podman#546
Output of
podman version
:Output of
podman info --debug
:Package info (e.g. output of
rpm -q podman
orapt list podman
):Have you tested with the latest version of Podman and have you checked the Podman Troubleshooting Guide?
Yes, this package is the last version available on fedora 33.
Additional environment details (AWS, VirtualBox, physical, etc.):
physical machine.
The text was updated successfully, but these errors were encountered: