-
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 system service fails to start when run via systemd --user mode #9633
Comments
@jwhonce Is |
I tried both |
We are shipping these with Fedora
Do these not work for you? |
Aha, so the trick is But, now there's a new problem. It's on If I run, for e.g.
Not sure if this is specific to |
Does |
Well, it works if I just run the standalone command CASE 1: the below works (
If I spin up the above unit files as CASE 2: the below doesn't work (rootless mode)
Now, if I spin up the above unit files in rootless user mode using In both of the above cases, the But, when you try to test it using the Same applies to tcp sockets. |
Do you see anything in the journal about the incoming connection? This might be a systemd issue. |
Actually now I am seeing the issue on Cent OS 8 and I tested it on Cent OS 8.3 as well - same problem. Perhaps I got lucky last time with Cent OS 8 - which is even weirder. As far as Attached is journalctl.log - an excerpt of the |
Hello this is same bug as #9280 |
They sure look similar. That one hasn't been resolved either. |
Lets' concentrate on that bug. |
@rhatdan Not sure why this ticket was closed. They sure look similar, but I don't think they are exactly the same bug. In this ticket's case, the services and sockets are running perfectly fine after switching to But, the problem is any kind of attempt to contact the service (using |
@Krejza9 Just to clarify, the |
@Krejza9 Thanks for confirming. I'll test it once it's made available in the next release. |
A friendly reminder that this issue had no activity for 30 days. |
I take it this is fixed in the main branch. Please reopen if I am mistaken. |
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
podman system service -t 0
fails when run viasystemd
unit filesFollowing are the
systemd
unit files used for testing:podman.socket
podman.service
Steps to reproduce the issue:
Create two
systemd
unit files - one for socket and one for service (like shown above).Load and run the
systemd
unit files in both user mode and root mode. Of course, use different socket locations/ports for unix/tcp respectively.The root mode runs just fine without any problems. The user mode fails irrespective of unix/tcp socket. Not sure what am I doing wrong.
Describe the results you received:
Results when run as
root
--> this is the happy path. both podman.service and podman.socket work just fineResults when run as
user
--> this FAILS for podman.service, but podman.socket works fineDescribe the results you expected:
Expected the user mode
podman.service
to run successfully.Additional information you deem important (e.g. issue happens only occasionally):
As mentioned before, this happens only in
systemd user
mode irrespective of unix/tcp socket. I tested them both.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
Additional environment details (AWS, VirtualBox, physical, etc.):
Cent OS 8 VM
The text was updated successfully, but these errors were encountered: