-
Notifications
You must be signed in to change notification settings - Fork 301
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
Can't attach VS-Code to existing Docker Container via Remote-SSH #6023
Comments
I ran into exactly the same problem as described by @afaul above. Using vscode version 1.63.0 on Mac OS X (10.14.6) and running development containers on a vmware VM with ubuntu server 20.04 LTS. If I manually stopped and removed the vscode server on the VM, it would be downloaded again next time I try to open a workspace on a development container and the vscode server (version 209.3) would start but then also result in the same errors (promise rejection when trying to spawn a bash instance or docker command). After rolling back to 1.62.3 everything seems to work fine again. |
Same problem here with Debian 10, roll back to version 1.62.3 and fine again. |
Hi, same problem here while everything was working until today. (Using a remote devcontainer with SSH host specified by docker.host property in settings.json) |
Hello, exactly the same problem here. |
Same here |
same problem downgrading vs code 1.62.3 resolves the issue |
Same after upgrade to 1.63.0 |
same at 1.63.0. |
Same after upgrade to 1.63.0 |
Exactly the same. Local OS: Windows 11, Remote OS: Ubuntu. VS Code: 1.63.0. |
Same here on Debian 11 Version: 1.63.0 |
Fixed in Remote-Containers 0.209.4. Let me know if you still see this or similar issues. Thanks. |
@chrmarti My problem still exists on 0.209.4: #6023 (comment) |
@chrmarti Tested with: and |
@daMichaelB Could you set the log level to 'trace' in the user settings and append the full log with the above error? Use the latest Remote-Containers version 0.209.4 for doing this. @maciek16180 I'm tracking yours as #6029. It seems to be a different issue. |
Thanks @chrmarti |
Just want to confirm I'm also experiencing this issue after upgrade to 1.63.00 |
If it helps, I have the same error as ferhlich here when using |
0.209.4 on VS Code 1.63.0 fixed the issue for me. Thanks! |
@LiNuXaDDiKt @terroirman Please check you are using Remote-Containers 0.209.4. |
After looking further, I'm actually experiencing this issue : #6026 |
@terroirman Thanks, closing this issue again. #6026 should be fixed with Remote-Containers 0.209.5. |
Maybe related to issue: #6021
After a upgrade this morning to VSCode Version 1.63.0 I no longer can "Attach Visual Studio Code" to an running docker container via the remote-SSH extension. I get the same behavior with the 1.64.0-insider build of today.
Steps to Reproduce:
Even the docker-container is still running.
In the Terminal of the new Window I get following Messges:
17066) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag
--unhandled-rejections=strict(see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1) [525 ms] Host server: (node:2117066) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code. [534 ms] Host server: (node:2117066) PromiseRejectionHandledWarning: Promise rejection was handled asynchronously (rejection id: 1) [534 ms] Error: spawn /usr/bin/zsh ENOENT at Process.ChildProcess._handle.onexit (internal/child_process.js:269:19) at onErrorNT (internal/child_process.js:465:16) at processTicksAndRejections (internal/process/task_queues.js:80:21) [543 ms] Start: Run in Host: docker inspect --type container /visalf_ml-exporter-backend_1 [557 ms] Host server: (node:2117066) UnhandledPromiseRejectionWarning: Error: spawn docker ENOENT at Process.ChildProcess._handle.onexit (internal/child_process.js:269:19) at onErrorNT (internal/child_process.js:465:16) at processTicksAndRejections (internal/process/task_queues.js:80:21) [557 ms] Host server: (node:2117066) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag
--unhandled-rejections=strict(see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2) [566 ms] Host server: (node:2117066) PromiseRejectionHandledWarning: Promise rejection was handled asynchronously (rejection id: 2)
The Console of the "Developer Tools" show this errors:
log.ts:301 INFO Invoking resolveAuthority(attached-container) log.ts:313 ERR [Extension Host] (node:16868) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead. (Use
Code - Insiders --trace-deprecation ...to show where the warning was created) console.ts:137 [Extension Host] (node:16868) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.(Use
Code - Insiders --trace-deprecation ...to show where the warning was created) (at writeOut (internal/process/warning.js:43:3)) D @ console.ts:137 log.ts:313 ERR resolveAuthority(attached-container) returned an error after 6238 ms Error at ts.resolveAuthority (vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code%20Insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:1557) at processTicksAndRejections (internal/process/task_queues.js:93) at async Yl._scanAndHandleExtensions (vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code%20Insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:2985) at async Yl._initialize (vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code%20Insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:2982) extensionService.ts:384 Error at ts.resolveAuthority (vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code%20Insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:1557) at processTicksAndRejections (internal/process/task_queues.js:93) at async Yl._scanAndHandleExtensions (vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code%20Insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:2985) at async Yl._initialize (vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code%20Insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:2982) extensionService.ts:386 Error handled: Not showing a notification for the error log.ts:313 ERR Error received from starting extension host (kind: Remote) log.ts:313 ERR Error at ts.resolveAuthority (vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code%20Insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:1557) at processTicksAndRejections (internal/process/task_queues.js:93) at async Yl._scanAndHandleExtensions (vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code%20Insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:2985) at async Yl._initialize (vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code%20Insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:2982) log.ts:313 ERR [remote-connection] An error occurred in the very first connect attempt, it will be treated as a permanent error! Error: log.ts:313 ERR Error at ts.resolveAuthority (vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code%20Insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:1557) at processTicksAndRejections (internal/process/task_queues.js:93) at async Yl._scanAndHandleExtensions (vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code%20Insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:2985) at async Yl._initialize (vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code%20Insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:2982) log.ts:313 ERR Cannot register remote filesystem provider. Error while fetching remote environment. Error 2log.ts:313 ERR Error at ts.resolveAuthority (vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code%20Insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:1557) at processTicksAndRejections (internal/process/task_queues.js:93) at async Yl._scanAndHandleExtensions (vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code%20Insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:2985) at async Yl._initialize (vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code%20Insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:2982) 2log.ts:313 ERR An unknown error occurred. Please consult the log for more details.: Error at ts.resolveAuthority (vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code%20Insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:1557:9234) at processTicksAndRejections (internal/process/task_queues.js:93:5) at async Yl._scanAndHandleExtensions (vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code%20Insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:2985:7628) at async Yl._initialize (vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code%20Insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:2982:30008) log.ts:313 ERR An unknown error occurred. Please consult the log for more details.: Error at ts.resolveAuthority (vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code%20Insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:1557:9234) at processTicksAndRejections (internal/process/task_queues.js:93:5) at async Yl._scanAndHandleExtensions (vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code%20Insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:2985:7628) at async Yl._initialize (vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code%20Insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:2982:30008)
Does this issue occur when you try this locally?: No
Does this issue occur when you try this locally and all extensions are disabled?: No
The text was updated successfully, but these errors were encountered: