-
Notifications
You must be signed in to change notification settings - Fork 302
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
Reconnection attempts after "internal libpod error" when starting a project with Podman #7175
Comments
Which version of Podman are you using? |
@chrmarti From my first comment: "Podman v3.4.4 from Ubuntu repositories", which is to say the current version from |
Could be containers/podman#13227. Could you try installing the most recent Podman release? (The fix for that issue appears to be in Podman 4.1.0, the latest version is 4.2.0.) |
@chrmarti That's a good find. Unfortunately it doesn't look like Podman 4.x is available on any version of Ubuntu through any official channel. The instructions at https://podman.io/getting-started/installation for Ubuntu, other than using the official repos, are broken because they point to a not-for-production-use Kubic "testing" repository that is only available through 21.10 and contains Podman 3.4.2. Issue containers/podman#14302 talks about the difficulties in getting Podman 4.x into Ubuntu. In that issue someone who appears to be a Red Hat employee has created a Kubic "unstable" repository with Podman 4.x for Ubuntu, see containers/podman#14302 (comment). I did install that and restarted VS Code several times and the reconnection problem didn't happen, so it looks like the current version of Podman from that repository (4.2.1) does fix the problem. However I don't think we can say that this build of a not-for-production-use repository that is still considered so unstable that it's not even documented on the Podman site is a valid solution to this VS Code issue. I see two approaches:
What do you think? |
Thanks for the suggestions here, I've upgraded to podman 4.3 via provided Kubic links and can confirm that finally fixes the regular reconnection issues. I'm okay with the not-for-production-use caveat as it's just for my development machine anyway. |
Just an update: Ubuntu 22.10 "Kinetic" came out last month, and both it and the previous version 22.04 "Jammy" have the same Podman version, v3.4.4. This shouldn't be a surprise given issue containers/podman#14302 that I linked in my previous comment, but it strongly suggests that the included version will be stuck at v3.4.4 for a while. |
I asked on the Podman issue I linked, see containers/podman#14302 (comment) and following, and it seems there is no official plan by Red Hat or Canonical to keep Podman updated on Ubuntu for any version. Instead we have the undocumented and unofficial Kubic repository and the usual best efforts by part-time unpaid Debian volunteers. So for anyone who doesn't want to use the Kubic repository, I expect this problem will persist at least until the next Ubuntu LTS (April 2024), if not later, unless the VS Code team takes some action. |
You can also install Homebrew on any Linux distro and get the latest and greatest rootless podman from there. If you don't mind another package manager ofc. I'm using it since a couple of months I believe, together with flatpak'ed VSCode and this duo works just fine. |
That's a great idea, I hadn't considered that. The Podman documentation even recommends using Homebrew for Mac in the installation instructions, and the formula page for Podman says Linux is supported. I'll go ask over in the other issue whether they might update the documentation to recommend Homebrew for Linux. |
@chrmarti I wouldn't say this is definitely an upstream bug, for all we know the VS Code extension is doing something wrong that the later version of Podman handles more gracefully than the earlier version. |
I believe the issue (at least in my case) is that VS Code is outputting too much on In my case, since I want to stay on podman version 3.4.4 (that's the version in the Ubuntu 22.04 repos), using |
Often after starting VS Code with Remote-Containers in a project using a Podman container, there are many reconnection attempts due to an
internal libpod error
, also included in the log below:Sometimes it will stop reconnecting and the project will successfully load in VS Code after only a few reconnection attempts, as in the log below, and sometimes it tries indefinitely. In that case I can shut down VS Code and start it again, and it may or may not work, and if not I can shut down VS Code again and start it again. Eventually it works. I don't know why it works sometimes and not other times. You can see from the log below that it takes about 7 seconds to cycle between attempts.
Other people have reported the same problem in #6685 and I'm creating a new issue as requested by @chrmarti in #6685 (comment).
$CONTAINER_USER
and$HOST_USER
have been added by me.Steps to Reproduce:
The text was updated successfully, but these errors were encountered: