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

vscode desktop not working #13272

Open
samar-elsayed opened this issue May 14, 2024 · 11 comments
Open

vscode desktop not working #13272

samar-elsayed opened this issue May 14, 2024 · 11 comments
Labels
bug Used to filter all bug issues waiting-for-info The issue creator is asked to provide more information.

Comments

@samar-elsayed
Copy link

when I try to click on vscode desktop

image

image

nothing is happening and no proxy is used

image

@coder-labeler coder-labeler bot added bug Used to filter all bug issues waiting-for-info The issue creator is asked to provide more information. labels May 14, 2024
@kylecarbs
Copy link
Member

Odd.

Can you run the "Coder: Show Logs" command?

@samar-elsayed
Copy link
Author

it gives me no logs

image

this output appears after canceling the ssh

[15:05:45.456] Log Level: 2
[15:05:45.535] VS Code version: 1.86.0
[15:05:45.535] Remote-SSH version: remote-ssh@0.108.0
[15:05:45.535] win32 x64
[15:05:47.267] SSH Resolver called for "ssh-remote+coder-vscode--samar--Integration-workspace", attempt 1
[15:05:47.268] "remote.SSH.useLocalServer": false
[15:05:47.268] "remote.SSH.useExecServer": false
[15:05:47.268] "remote.SSH.showLoginTerminal": false
[15:05:47.269] "remote.SSH.remotePlatform": {"coder-vscode--samar--Integration-workspace":"linux"}
[15:05:47.269] "remote.SSH.path": undefined
[15:05:47.269] "remote.SSH.configFile": D:\.ssh\config
[15:05:47.269] "remote.SSH.useFlock": true
[15:05:47.269] "remote.SSH.lockfilesInTmp": false
[15:05:47.269] "remote.SSH.localServerDownload": auto
[15:05:47.270] "remote.SSH.remoteServerListenOnSocket": false
[15:05:47.270] "remote.SSH.showLoginTerminal": false
[15:05:47.270] "remote.SSH.defaultExtensions": []
[15:05:47.270] "remote.SSH.loglevel": 2
[15:05:47.270] "remote.SSH.enableDynamicForwarding": true
[15:05:47.270] "remote.SSH.enableRemoteCommand": false
[15:05:47.271] "remote.SSH.serverPickPortsFromRange": {}
[15:05:47.271] "remote.SSH.serverInstallPath": {}
[15:05:47.279] SSH Resolver called for host: coder-vscode--samar--Integration-workspace
[15:05:47.279] Setting up SSH remote "coder-vscode--samar--Integration-workspace"
[15:05:47.284] Using commit id "05047486b6df5eb8d44b2ecd70ea3bdf775fd937" and quality "stable" for server
[15:05:47.287] Install and start server if needed
[15:05:47.292] Checking ssh with "C:\Windows\system32\ssh.exe -V"
[15:05:47.293] Got error from ssh: spawn C:\Windows\system32\ssh.exe ENOENT
[15:05:47.293] Checking ssh with "C:\Windows\ssh.exe -V"
[15:05:47.294] Got error from ssh: spawn C:\Windows\ssh.exe ENOENT
[15:05:47.294] Checking ssh with "C:\Windows\System32\Wbem\ssh.exe -V"
[15:05:47.295] Got error from ssh: spawn C:\Windows\System32\Wbem\ssh.exe ENOENT
[15:05:47.295] Checking ssh with "C:\Windows\System32\WindowsPowerShell\v1.0\ssh.exe -V"
[15:05:47.296] Got error from ssh: spawn C:\Windows\System32\WindowsPowerShell\v1.0\ssh.exe ENOENT
[15:05:47.296] Checking ssh with "C:\Windows\System32\OpenSSH\ssh.exe -V"
[15:05:47.350] > OpenSSH_for_Windows_8.1p1, LibreSSL 3.0.2

[15:05:47.355] Using SSH config file "D:\.ssh\config"
[15:05:47.355] Running script with connection command: "C:\Windows\System32\OpenSSH\ssh.exe" -T -D 53304 -F "D:\.ssh\config" "coder-vscode--samar--Integration-workspace" bash
[15:05:47.358] Terminal shell path: C:\Windows\System32\cmd.exe
[15:05:47.669] > �]0;C:\Windows\System32\cmd.exe�
[15:05:47.669] Got some output, clearing connection timeout
[15:06:22.104] > 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
[15:06:23.841] "install" terminal command done
[15:06:23.841] Install terminal quit with output: �]0;C:\Windows\System32\cmd.exe�
[15:06:23.841] Received install output: �]0;C:\Windows\System32\cmd.exe�
[15:06:23.843] Failed to parse remote port from server output
[15:06:23.846] Resolver error: Error: 
	at g.Create (c:\Users\samar.elsayed\.vscode\extensions\ms-vscode-remote.remote-ssh-0.108.0\out\extension.js:2:460245)
	at t.handleInstallOutput (c:\Users\samar.elsayed\.vscode\extensions\ms-vscode-remote.remote-ssh-0.108.0\out\extension.js:2:457567)
	at t.tryInstall (c:\Users\samar.elsayed\.vscode\extensions\ms-vscode-remote.remote-ssh-0.108.0\out\extension.js:2:581100)
	at async c:\Users\samar.elsayed\.vscode\extensions\ms-vscode-remote.remote-ssh-0.108.0\out\extension.js:2:540958
	at async t.withShowDetailsEvent (c:\Users\samar.elsayed\.vscode\extensions\ms-vscode-remote.remote-ssh-0.108.0\out\extension.js:2:544264)
	at async k (c:\Users\samar.elsayed\.vscode\extensions\ms-vscode-remote.remote-ssh-0.108.0\out\extension.js:2:537923)
	at async t.resolve (c:\Users\samar.elsayed\.vscode\extensions\ms-vscode-remote.remote-ssh-0.108.0\out\extension.js:2:541635)
	at async c:\Users\samar.elsayed\.vscode\extensions\ms-vscode-remote.remote-ssh-0.108.0\out\extension.js:2:807794
[15:06:23.856] ------

@kylecarbs
Copy link
Member

Hmm, could you paste your SSH config file?

@samar-elsayed
Copy link
Author

samar-elsayed commented May 14, 2024

# ------------START-CODER-----------
# This section is managed by coder. DO NOT EDIT.
#
# You should not hand-edit this section unless you are removing it, all
# changes will be lost when running "coder config-ssh".
#
Host coder.Integration-workspace
       HostName coder.Integration-workspace
       ConnectTimeout=0
       StrictHostKeyChecking=no
       UserKnownHostsFile=/dev/null
       LogLevel ERROR
       ProxyCommand /tmp/coder.VgspzZ/coder --global-config /root/.config/coderv2 ssh --stdio Integration-workspace
Host coder.Integration-workspace.main
       HostName coder.Integration-workspace.main
       ConnectTimeout=0
       StrictHostKeyChecking=no
       UserKnownHostsFile=/dev/null
       LogLevel ERROR
       ProxyCommand /tmp/coder.VgspzZ/coder --global-config /root/.config/coderv2 ssh --stdio Integration-workspace.main
# ------------END-CODER------------

# --- START CODER VSCODE ---
Host coder-vscode--*
  ConnectTimeout 0
  LogLevel ERROR
  ProxyCommand "c:\Users\samar.elsayed\AppData\Roaming\Code\User\globalStorage\coder.coder-remote\bin\coder-windows-amd64.exe" vscodessh --network-info-dir "c:\Users\samar.elsayed\AppData\Roaming\Code\User\globalStorage\coder.coder-remote\net" --log-dir "c:\Users\samar.elsayed\AppData\Roaming\Code\User\globalStorage\coder.coder-remote\log" --session-token-file "c:\Users\samar.elsayed\AppData\Roaming\Code\User\globalStorage\coder.coder-remote\session_token" --url-file "c:\Users\samar.elsayed\AppData\Roaming\Code\User\globalStorage\coder.coder-remote\url" %h
  SetEnv  CODER_SSH_SESSION_TYPE=vscode
  StrictHostKeyChecking no
  UserKnownHostsFile /dev/null
# --- END CODER VSCODE ---

@kylecarbs
Copy link
Member

Can you try adding additional \ to the ProxyCommand in the START CODER VSCODE section?

@samar-elsayed
Copy link
Author

you mean like this ?

image

@kylecarbs
Copy link
Member

Nah, I mean:

ProxyCommand "c:\\Users\\samar.elsayed\\AppData\\Roaming\\Code\\User\\globalStorage\\coder.coder-remote\\bin\\coder-windows-amd64.exe" vscodessh --network-info-dir "c:\\Users\\samar.elsayed\\AppData\\Roaming\\Code\\User\\globalStorage\\coder.coder-remote\\net" --log-dir "c:\\Users\\samar.elsayed\\AppData\\Roaming\\Code\\User\\globalStorage\\coder.coder-remote\\log" --session-token-file "c:\\Users\\samar.elsayed\\AppData\\Roaming\\Code\\User\\globalStorage\\coder.coder-remote\\session_token" --url-file "c:\\Users\\samar.elsayed\\AppData\\Roaming\\Code\\User\\globalStorage\\coder.coder-remote\\url" %h

@samar-elsayed
Copy link
Author

I tried that but everytime I click on vscode desktop, it gets overwritten and returns to its original shape

@samar-elsayed
Copy link
Author

Could you list for me the steps that I need to do locally on my laptop to be able to ssh from my local VSCode to the coder workspace ? after deploying the coder remotely on a cluster and creating the workspace

maybe I missed something
I need to see if I can make it work or do I need to look somewhere else to create a dev environment for my team

@aksharbarot
Copy link

+1

@samar-elsayed
Copy link
Author

@kylecarbs

my last ssh trial, it stops at debug1: Local version string SSH-2.0-OpenSSH_for_Windows_8.1 and then nothing happens
Do you know what could be the reason ?

debug1: C:\\Users\\samar.elsayed/.ssh/config line 18: Applying options for 10.90.7.66
debug1: Executing proxy command: exec D:\\coder_2.9.4_windows_amd64\\coder.exe --global-config C:\\Users\\samar.elsayed\\AppData\\Roaming\\coderv2 ssh --stdio Integration-workspace
debug1: identity file C:\\Users\\samar.elsayed/.ssh/id_rsa type 0
debug1: identity file C:\\Users\\samar.elsayed/.ssh/id_rsa-cert type -1
debug1: identity file C:\\Users\\samar.elsayed/.ssh/id_dsa type -1
debug1: identity file C:\\Users\\samar.elsayed/.ssh/id_dsa-cert type -1
debug1: identity file C:\\Users\\samar.elsayed/.ssh/id_ecdsa type -1
debug1: identity file C:\\Users\\samar.elsayed/.ssh/id_ecdsa-cert type -1
debug1: identity file C:\\Users\\samar.elsayed/.ssh/id_ed25519 type -1
debug1: identity file C:\\Users\\samar.elsayed/.ssh/id_ed25519-cert type -1
debug1: identity file C:\\Users\\samar.elsayed/.ssh/id_xmss type -1
debug1: identity file C:\\Users\\samar.elsayed/.ssh/id_xmss-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_for_Windows_8.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Used to filter all bug issues waiting-for-info The issue creator is asked to provide more information.
Projects
None yet
Development

No branches or pull requests

3 participants