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

Broken Pipe Error when Attaching Remote Container #7487

Closed
DHG18 opened this issue Nov 8, 2022 · 8 comments
Closed

Broken Pipe Error when Attaching Remote Container #7487

DHG18 opened this issue Nov 8, 2022 · 8 comments
Assignees
Labels
containers Issue in vscode-remote containers info-needed Issue requires more information from poster

Comments

@DHG18
Copy link

DHG18 commented Nov 8, 2022

I am unable to attach to a remote container when SSH'd into a server through the IDE. Attaching to the container stalls in the "installing server" state, and then returns this error message:

[1810 ms] Start: Run in container: (dd iflag=fullblock bs=8192 count=7140 2>/dev/null; dd iflag=fullblock bs=1714 count=1 2>/dev/null) | tar --no-same-owner -xz -C /home/sparkuser/.vscode-server/bin/d045a5eda657f4d7b676dedbfa7aab8207f8a075_1666023339851
[2557 ms] Host server: client_loop: send disconnect: Broken pipe
[2561 ms] Start: Run in container: rm -rf /home/sparkuser/.vscode-server/bin/d045a5eda657f4d7b676dedbfa7aab8207f8a075_1666023339851
[2565 ms] Shell server failed: Error: stream ended with:3 but wanted:9
  • VSCode Version: Latest (tried on VS Code Insiders)
  • Local OS Version: Mac OS Ventura 13.0
  • Remote Extension/Connection Type: SSH

Steps to Reproduce:

  1. SSH into remote server through VS Code IDE
  2. Start docker container on remote server
  3. Attach docker container to IDE

Does this issue occur when you try this locally?: Yes
Does this issue occur when you try this locally and all extensions are disabled?: NA

@github-actions github-actions bot added the containers Issue in vscode-remote containers label Nov 8, 2022
@burkeholland
Copy link

@Chuxel Have you seen this before?

@Chuxel
Copy link
Member

Chuxel commented Nov 8, 2022

@DHG18 Are you trying to use a Dev Container or literally the container attach capability? Is the container in Docker or Kubernetes? Also, does this repro in VS Code stable?

@chrmarti Attach has not been implemented once you've done a Remote - SSH connection yet has it? Just Dev Container support is in so far IIRC - or is it just Kubernetes that's missing per #6054? Assuming that's what is happening here, the error message here isn't great but it would explain the issue... though honestly this looks like it got farther than that.

@Chuxel Chuxel added the info-needed Issue requires more information from poster label Nov 8, 2022
@DHG18
Copy link
Author

DHG18 commented Nov 9, 2022

Hey @Chuxel sorry for delayed response:

  • I'm trying to use the container attach capability through the remote docker extension
  • It's a docker container
  • This does repro in VS Code stable

@chrmarti
Copy link
Contributor

This should work. It looks like there is a problem with the ssh connection while we are sending the server bits over. Are you using a simple ssh connection or are there proxies/jumpservers involved? What is the ssh server's version?

@chrmarti chrmarti self-assigned this Nov 10, 2022
@DHG18
Copy link
Author

DHG18 commented Nov 10, 2022

Using a simple ssh connection. ssh version: OpenSSH_9.0p1, LibreSSL 3.3.6

@DHG18
Copy link
Author

DHG18 commented Nov 11, 2022

Hi @chrmarti just following up here

@chrmarti
Copy link
Contributor

Maybe related: #7505

@github-actions
Copy link

github-actions bot commented Dec 1, 2022

This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.

Happy Coding!

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Dec 1, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Jan 15, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
containers Issue in vscode-remote containers info-needed Issue requires more information from poster
Projects
None yet
Development

No branches or pull requests

4 participants