-
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 3.0.1 rootless network issues: Connection reset by peer #9532
Comments
I have this problem on fedora silverblue running a pod. There is no network connectivity to the pod on update to:
so I performed an rpm-ostree rollback and its working again. I have been developing using this pod, and want to start using a production server, with the pod, and installing coreos is going to bring the latest podman which will stop my pod from functioning, unless this is addressed, and I won't be able to rollback on that new install. I see from the update preview the following referenced:
which discusses a moderate severity bug at the following:
which describes:
So as a first guess, I am going to try recreating the containers, to see if they are then compatible with the pod and networking. Edit... Recreated pod and containers with new version of podman installed, and still connection reset. Also... I notice the issue thread is about a podman setup using a specific network, where I am simply using a created pod with a standard published port and containers created with --pod switch. Should I open a separate issue? |
@millerthegorilla Thanks so much for confirming the issue! It is a pity that 2.2.1 was removed from the repositories. My environment does not allow me to build locally which makes the downgrade a hassle. Do you know if there is any other workaround for his issue? |
I can't believe it has been removed from repositories, without the new version being tested properly. I mean it's really screwed me over as podman doesn't work at all with the new version. I haven't found a fix for using a pod. My next attempt would be to try running containers with a podman network, but if I understand the original post in this issue that isn't working either. I hope that there is some involvement from a member of the team on this issue soon. I have used the command:
to pin the deployment with the working podman version, so I hope to not lose the functionality. It exposes a real flaw with ostree systems, in that I have a load of necessary updates, but can't apply them without updating podman, and there is no way that I can find to pin the specific package to the working version. |
Do you have |
I found the problem. Commit 479fc22 is missing in v3.0 |
genius. nice one. Hopefully its not too difficult to remedy? |
Ack. Expecting a release around Thursday. I can do the backport Monday to
prepare.
…On Sat, Feb 27, 2021 at 11:04 Paul Holzinger ***@***.***> wrote:
@mheon <https://github.com/mheon> If you do the backports for 3.0.2
please add commit 479fc22
<479fc22>
.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#9532 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AB3AOCEYTW4OO65HPXN5OZTTBEJZLANCNFSM4YI6TY5Q>
.
|
We should also get a test written for this, so we don't regress in the future. |
This commit includes a test |
Ah, excellent. |
@mheon is there likely to be an update soon? I am relying on podman and am using fedora silverblue, and so I can't update until the new podman version is released. So, I now have a whole host of security updates waiting, amongst others. |
Yesterday we looked at how much had landed and decided to cut a 3.1.0 instead of doing extensive backporting. I'm going to cut an RC on Monday, final release Wednesday-Thursday of next week. Sorry for the delay here. |
Ok, thanks. Do you know if there is a way to get podman working in the meantime? |
May I ask, is podman a sensible solution for use in production environments? I have been intending to use podman in production, but if its going to have week plus down time then its not sensible for production. I will have to think about using docker instead, which I will have to learn to use. I wanted to use podman because it is rootless. |
We're commercially supporting it in RHEL, so I would certainly say it is. We had something slip through our test suite here, but that's not exactly typical. |
oh. ok. Thanks. Is there a way to monkey patch the 3.0.1 podman until the new version is released? |
@mheon many thanks for your help, I have been instructed on how to pin a package version, so have been able to update. |
No 😄 The goal is to empower you and others, not restrict you. Local overrides are for exactly this type of case. |
Cool. I've learnt something really useful through this issue, that will help when I'm running a coreos server. I've found the instructions and tutorials for rpm-ostree a bit thin on the ground, or I'm searching badly, so the ability to pin the package and manage this use case is really valuable. Look forward to the podman release... thanks for all your work! |
Hey @mheon I have tried upgrading using the rpm-ostree reset method, to podman version 3.1.0-rc1 and I am still getting connection reset by peer. Is that right? Or should I try a later version? |
Version 3.1.0-rc1 fixes the connection reset issue for me. This is on a gentoo host. |
It doesn't fix it for me. I think I should probably open a new bug report. |
I have just tried resetting my base and installing podman version 3.1.0-rc1 again, and it still gives me:
|
I just looked into #9746 When will a new release with a fix be pushed to the debian repo? |
You could try using Podman from the official Debian repos - I believe it's only in testing now, but they should have both 2.2.x and 3.0.x .deb files available. We're starting to move away from the Kubic repos because of things like this. |
As for a fresh release, we're expecting one more RC on Monday, and then a final release later next week. |
thanks @mheon ! |
unfortunately debian testing also only has 3.0.1 available. |
Podman v3.1.0 is released, closing. |
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
I want run a django application in a rootless podman environment.
The application starts up and even connects to a DB that is running in the same named network.
It even looks like the port is exposed. But when i do a
curl localhost:8080
i get a(56) Recv failure: Connection reset by peer
The setup worked with podman 2.2.1 it only fails with 3.0.1
Steps to reproduce the issue:
create named network
run application with -p "8080:8080"
curl localhost:800
when i execute
podman exec -it app curl localhost:8080
it shows what i expext.This is the systemd unit I am using:
I removed all the application specific values.
Describe the results you received:
When everything is up and i do a
curl localhost:8080
i get a connection reset.The output of netstat is a bit weird:
In the podman 2.2.1 setup there is an entry for
0.0.0.0:8080
There is also something else going on. When I manually restart the container with
podman restart
i first get a0.0.0.0:8080 is already in use
message and then a lot of these:And then I have trouble bringing the container up agasin
Describe the results you expected:
I expect that the exposed port gives me access to the application
Additional information you deem important (e.g. issue happens only occasionally):
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
I also tried all of the suggestions I could find that are listed in issues that seemed to be related.
Like adding
--net=slirp4netns:port_handler=slirp4netns
Additional environment details (AWS, VirtualBox, physical, etc.):
qemu+KVM
The text was updated successfully, but these errors were encountered: