Closed mkorejo closed 4 weeks ago
Hey @mkorejo, thanks for reporting the issue. Is there anything else that changed since the upgrade? I wasn't able to reproduce the issue with a very basic workspace and VSCode on windows with the kubernetes provider.
Can you confirm the same behaviour also occurs if you start the workspace with https://github.com/loft-sh/devpod-example-go
?
Sorry for the delay, @pascalbreuninger. I can confirm I get the same behavior:
[09:01:15.138] Checking ssh with "C:\Windows\System32\OpenSSH\ssh.exe -V"
[09:01:15.469] > OpenSSH_for_Windows_7.7p1, LibreSSL 2.6.5
[09:01:15.488] Running script with connection command: "C:\Windows\System32\OpenSSH\ssh.exe" -T -D 63982 "devpod-example-go.devpod" sh
[09:01:15.538] Generated SSH command: 'type "D:\Users\MKorejo\AppData\Local\Temp\1\vscode-linux-multi-line-command-devpod-example-go.devpod-968841258.sh" | "C:\Windows\System32\OpenSSH\ssh.exe" -T -D 63982 "devpod-example-go.devpod" sh'
[09:01:15.542] Terminal shell path: C:\Windows\System32\cmd.exe
[09:01:18.156] "install" terminal received data: "[0m[0K"
[09:01:18.157] Got some output, clearing connection timeout
[09:01:18.213] "install" terminal received data: "CreateProcessW failed error:87[0K[?25l
posix_spawn: Unknown error[0K
The process tried to write to a nonexistent pipe.
[0K[?25h"
[09:01:18.508] "install" terminal command done
[09:01:18.509] Install terminal quit with output: posix_spawn: Unknown error
[09:01:18.510] Received install output: posix_spawn: Unknown error
[09:01:18.510] Stopped parsing output early. Remaining text: posix_spawn: Unknown error
[09:01:18.511] Failed to parse remote port from server output
[09:01:18.514] Resolver error: Error:
at v.Create (d:\Users\MKorejo\.vscode\extensions\ms-vscode-remote.remote-ssh-0.114.3\out\extension.js:2:501404)
at t.handleInstallOutput (d:\Users\MKorejo\.vscode\extensions\ms-vscode-remote.remote-ssh-0.114.3\out\extension.js:2:498726)
at t.tryInstall (d:\Users\MKorejo\.vscode\extensions\ms-vscode-remote.remote-ssh-0.114.3\out\extension.js:2:616460)
at async d:\Users\MKorejo\.vscode\extensions\ms-vscode-remote.remote-ssh-0.114.3\out\extension.js:2:575788
at async t.withShowDetailsEvent (d:\Users\MKorejo\.vscode\extensions\ms-vscode-remote.remote-ssh-0.114.3\out\extension.js:2:579017)
at async k (d:\Users\MKorejo\.vscode\extensions\ms-vscode-remote.remote-ssh-0.114.3\out\extension.js:2:572574)
at async t.resolve (d:\Users\MKorejo\.vscode\extensions\ms-vscode-remote.remote-ssh-0.114.3\out\extension.js:2:576428)
at async d:\Users\MKorejo\.vscode\extensions\ms-vscode-remote.remote-ssh-0.114.3\out\extension.js:2:844803
[09:01:18.529] TELEMETRY: {"eventName":"resolver","properties":{"osReleaseId":"","arch":"","askedPw":"0","askedPassphrase":"0","asked2fa":"0","askedHostKey":"0","remoteInConfigFile":"0","gotUnrecognizedPrompt":"0","dynamicForwarding":"1","localServer":"0","didLocalDownload":"0","installUnpackCode":"0","outcome":"failure","reason":"UnparsableOutput","exitCodeLabel":""},"measures":{"resolveAttempts":1,"isExecServer":0,"timing.totalResolveTime":3469,"timing.preSshTime":498,"timing.scriptTime":2969}}
[09:01:18.536] ------
This must've been a client-side installation issue with VSCode. It's working now.
What happened?
I upgraded my DevPod version from 0.2.x to latest version, 0.5.20. Following the upgrade, I can no longer start VSCode sessions with the Kubernetes provider. VSCode Browser sessions are working. VSCode launches, the remote SSH extension kicks in, the following output is displayed, and a dialog popup is displayed saying Could not connect:
What did you expect to happen instead?
VSCode opens and mounts my PVC and I can start editing/working in the container.
How can we reproduce the bug? (as minimally and precisely as possible)
My
devcontainer.json
:Local Environment:
DevPod Provider:
Anything else we need to know?
This was working prior to upgrading DevPod. I had to upgrade the provider following DevPod upgrade with
devpod provider upgrade kubernetes
. I've tried multiple re-installations of DevPod, Git, and VSCode, and also regenerated my SSH identity, however nothing seems to work.I can start a remote SSH explorer session in VSCode (outside of DevPod) to another EC2 instance in my environment. VSCode Browser also works in DevPod for the same workspace which doesn't work in VSCode.