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

[Error] vscode podman-host script leads to "Remote Extension host terminated unexpectedly 3 times within the last 5 minutes" #1421

Closed
retif opened this issue May 28, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@retif
Copy link

retif commented May 28, 2024

After following the guide
https://github.com/89luca89/distrobox/blob/main/docs/posts/integrate_vscode_distrobox.md
downloaded and added podman-host to vscode configuration i get an error

Remote Extension host terminated unexpectedly 3 times within the last 5 minutes

at dev containers terminal i can see a lot messages like
[164357 ms] Start: Run in container: /bin/sh -c # Watch installed extensions [164697 ms] Start: Run in container: /bin/sh -c # Watch machine settings [164836 ms] Start: Run in container: /bin/sh -c # Watch installed extensions [165159 ms] Start: Run in container: /bin/sh -c # Watch machine settings [165320 ms] Start: Run in container: /bin/sh -c # Watch installed extensions [165689 ms] Start: Run in container: /bin/sh -c # Watch machine settings

the issue is revealed only with ~/.local/bin/podman-host
if i connect with just "podman" it works, but under the root

here is additional logs:
journalctl https://gist.github.com/retif/87fdeb9b4402d0e8a25c25e8ca6670e5
podman log https://gist.github.com/retif/65c01ebf4a8b7a7b187672e816ec66c4
podman inspect https://gist.github.com/retif/8d24848025f2076d35cd18e03c21c6a8
dev containers terminal output https://gist.github.com/retif/acd9496e363a8da8fff69cb7ec2d754a

Desktop (please complete the following information):

  • Are you using podman, docker or lilipod? podman
  • Which version or podman, docker or lilipod? podman version 4.9.3
  • Which version of distrobox? distrobox: 1.7.0
  • Which host distribution? ubuntu 24.04
  • How did you install distrobox? apt install
@retif retif added the bug Something isn't working label May 28, 2024
@retif retif changed the title [Error] after connecting to distrobox podman container with vscode error is "Remote Extension host terminated unexpectedly 3 times within the last 5 minutes" [Error] vscode "Remote Extension host terminated unexpectedly 3 times within the last 5 minutes" May 28, 2024
@retif
Copy link
Author

retif commented May 31, 2024

What I noticed is if after such erroneous connection i change Remote>Containers>Docker Path from
/home//.local/bin/podman-host
back to
podman

it connects successfully with my users name, without errors, as was expected from podman-host.
Then i can connect and disconnect multiple times and it works okay. But if I restart container something is triggered and new connection from vscode connected as root again, and i need to repeat this double change of Docker Path again to fix it

@retif retif changed the title [Error] vscode "Remote Extension host terminated unexpectedly 3 times within the last 5 minutes" [Error] vscode podman-host script leads to "Remote Extension host terminated unexpectedly 3 times within the last 5 minutes" May 31, 2024
@89luca89
Copy link
Owner

@retif thanks for reporting
I've refactored the wrapper to now use only podman/docker directly, skipping the injection of distrobox commands

This improved the situation and I no longer see the unexpected terminations

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants