Skip to content
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 Service is Not Active (When it is) #546

Closed
xer0-1ne opened this issue Sep 26, 2020 · 13 comments
Closed

Podman Service is Not Active (When it is) #546

xer0-1ne opened this issue Sep 26, 2020 · 13 comments

Comments

@xer0-1ne
Copy link

xer0-1ne commented Sep 26, 2020

After a recent update, I am now getting an error message that the Podman service isn't running. I tried downgrading without any luck. It now seems to be consistent with this error. The issue is that Podman is running.

Error message:

Screen Shot 2020-09-26 at 1 54 50 PM

Cockpit status:

Screen Shot 2020-09-26 at 1 56 51 PM

Terminal status or cockpit.service and cockpit.socket:

Screen Shot 2020-09-26 at 2 00 46 PM

cockpit-bridge --packages

Screen Shot 2020-09-26 at 1 57 06 PM

installed versions:

Screen Shot 2020-09-26 at 1 57 58 PM

I am running an Arch Linux machine:
banshee ~ # uname -a
Linux banshee 5.8.10-arch1-1 #1 SMP PREEMPT Thu, 17 Sep 2020 18:01:06 +0000 x86_64 GNU/Linux

All other services related to Cockpit seem to be functioning properly.

@marusak
Copy link
Member

marusak commented Sep 27, 2020

What version of podman are you running?

@xer0-1ne
Copy link
Author

Podman version is 2.1.1-1

@marusak
Copy link
Member

marusak commented Sep 27, 2020

Podman version is 2.1.1-1

ok, so my guess was wrong. There was a broken podman version, but this one should be fine. (Possibly the arch version was never patched?)

Do you see anything in your browser logs?

Can you check output of this command? (It should stay listening on events and when you do some action like start a new container it should produce some output and still stay listening)
sudo curl -s --unix-socket /run/podman/podman.sock http://d/v1.12/libpod/events

@xer0-1ne
Copy link
Author

Marusak,
I downgraded podman back to 2.0.6 and it worked.
It works for now. I'll wait for the next update and report back.

@ardevd
Copy link

ardevd commented Oct 13, 2020

I'm having the same issue now on Podman 2.1.1 on Fedora 32. "Podman service is not active" message shows up in Cockpit even though it indeed is active.

@marusak
Copy link
Member

marusak commented Oct 19, 2020

I'm having the same issue now on Podman 2.1.1 on Fedora 32.

Can you please provide the following items? Thanks!

  • rpm -q podman
  • rpm -q cockpit-podman
  • systemctl --user status podman.service (run as non-root please)
  • sudo systemctl status podman.service
  • Screenshot of your cockpit podman page (ideally the whole screen)
  • Any logs in browser console

@j2mcv
Copy link

j2mcv commented Oct 23, 2020

I have the same problem with Fedora 33:

  • podman-2.1.1-10.fc33.x86_64
  • cockpit-podman-24-1.fc33.noarch
  • curl -s --unix-socket /run/podman/podman.sock http://d/v1.12/libpod/events
    {"cause":"failed to read message field: bad message","message":"failed to read message field: bad message","response":500}

@marusak
Copy link
Member

marusak commented Oct 23, 2020

curl -s --unix-socket /run/podman/podman.sock http://d/v1.12/libpod/events
{"cause":"failed to read message field: bad message","message":"failed to read message field: bad message","response":500}

This would indeed explain why we say it is not active. This is however unrelated to cockpit. Since I cannot reproduce would you please mind opening issue in https://github.com/containers/podman and linking it then back here? Thanks!

@j2mcv
Copy link

j2mcv commented Oct 23, 2020

curl -s --unix-socket /run/podman/podman.sock http://d/v1.12/libpod/events
{"cause":"failed to read message field: bad message","message":"failed to read message field: bad message","response":500}

This would indeed explain why we say it is not active. This is however unrelated to cockpit. Since I cannot reproduce would you please mind opening issue in https://github.com/containers/podman and linking it then back here? Thanks!

No problem but are you sure this endpoint has not been deprecated? looking at the REST API reference it seems to always return an error code 500.

https://docs.podman.io/en/latest/_static/api.html#operation/libpodGetEvents

@marusak
Copy link
Member

marusak commented Oct 23, 2020

No problem but are you sure this endpoint has not been deprecated? looking at the REST API reference it seems to always return an error code 500.

I see there on the page:

Responses:
200 returns a string of json data describing an event
500 Internal server error

@j2mcv
Copy link

j2mcv commented Oct 25, 2020

The origin of my problem was two corrupted files in the journal.

I removed them and now cockpit-podman is working.

@mplinuxgeek
Copy link

I just wanted to share that corrupted journal entries was also my problem.

podman.service was failing with the below error:

Oct 28 20:49:35 nottherealhostname systemd[5424]: podman.service: Failed with result 'protocol'.
Oct 28 20:49:35 nottherealhostname systemd[5424]: podman.service: Unit process 5626 (podman pause) remains running after unit stopped.
Oct 28 20:49:35 nottherealhostname systemd[5424]: Failed to start Podman API Service.

Running sudo journalctl --verify showed that there were corrupted journal files so the fix was:

sudo journalctl --vacuum-time=7d
sudo journalctl --verify

After the above 2 commands podman.service started without issue.

@marusak
Copy link
Member

marusak commented Dec 2, 2020

This does not seems to be cockpit-podman specific. Partly maybe podman specific as it cannot start when journal is corrupted.

@marusak marusak closed this as completed Dec 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants