-
Notifications
You must be signed in to change notification settings - Fork 310
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
WrappedError(WrappedError { message: "file not found", original: "Permission denied (os error 13)" }) when attaching to container over SSH #10632
Comments
Thanks for the detailed issue. Are you able to open/save files directly in VS Code on the remote machine (outside of the container)? We're seeing ssh errors in the logs, which might explain why, when then using the dev containers extension, you're seeing 'file not found' (since you aren't actually connected). Is the attempt to
|
Thank you for the quick response. I am able to SSH into the machine and everything works correctly as far as I can tell. We are able to reproduce this on ~6 other remote machines that are the same hardware and environment. I'm not sure of the log, it may be something else unrelated/red herring. I reset everything and tried to connect again. Here is the
Here is the
I attempted this other experiment: I SSH'd from my development machine into itself (ssh amos@127.0.0.1), then attempted to attach to a container which is created in the same fashion as on the remote machine. This attachment succeeds. |
Is there an existing issue for this bug?
Required Troubleshooting Steps
remote.SSH.useLocalServer
setting[Optional] Diagnose with Copilot
I asked @remote-ssh but it did not help
In step 2 of the troubleshooting wiki, what was the result of running the generated SSH command verbatim outside of VS Code?
I COULD successfully SSH to the remote machine with the generated SSH command
Remote-SSH Log
Remote-SSH Log
Expected Behavior
Expected to be able to SSH into a remote machine, then use "Attach to Running Container..." to attach to an existing running docker container.
Actual Behavior
Successfully SSH'd to remote machine, but attaching to docker container fails with the following error:
[753 ms] Error: WrappedError(WrappedError { message: "file not found", original: "Permission denied (os error 13)" })
at Object.resolve (/home/amos/.vscode/extensions/ms-vscode-remote.remote-ssh-0.116.1/out/extension.js:2:295026)
at /home/amos/.vscode/extensions/ms-vscode-remote.remote-ssh-0.116.1/out/extension.js:2:293725
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
[753 ms] Exit code -1
Steps To Reproduce
Anything else?
VS Code Version:
1.96.2
Type of Remote Connection:
SSH
Local Operating System:
Ubuntu 20.04.6 LTS
Remote Operating System:
Ubuntu 22.04.4 LTS
Installed Extensions:
Remote - SSH (0.116.1)
Dev Containers (0.394.0)
The text was updated successfully, but these errors were encountered: