Skip to content

[Remote-SSH Bug]: Remote-SSH 0.106.1 gets stuck downloading the server #8926

Closed

Description

@0x0L

Is there an existing issue for this bug?

  • I have searched the existing issues

Required Troubleshooting Steps

  • I have followed these troubleshooting steps
  • I have tried both values of the remote.SSH.useLocalServer setting

Connect Locally

It connects successfully

->

Everything works ok with 1.81 and previous versions
In 1.82 it gets stuck at (with v0.106.1)

[server] Installing and setting up Visual Studio Code Server...

Expected Behavior

No response

Steps To Reproduce

No response

Remote-SSH Log

Remote-SSH Log

...
[server] checking .../log.txt and .../pid.txt for a running server ...
[server] Installing and setting up Visual Studio Code Server ...

Anything else?

In .vscode-server/.cli.xxx.log I see:

[...] info Disposed of connection to running server.
looking for token xxxx, got Some("xxxxx")
[...] info checking .../log.txt and .../pid.txt for a running server ...

Activity

  1. added
    ssh
    on Sep 7, 2023
  2. amirhosseindavoody commented on Sep 7, 2023

    @amirhosseindavoody

    Same thing happened to me a few minutes ago.

  3. hugohdz89 commented on Sep 8, 2023

    @hugohdz89

    Same for me

  4. roblourens commented on Sep 8, 2023

    @roblourens
    Member

    Please share the full log from the Remote-SSH output channel.

    You should be able to work around it by setting "remote.SSH.useExecServer": false as well

  5. added
    info-needed
    on Sep 8, 2023
  6. xubuntutux commented on Sep 8, 2023

    @xubuntutux

    The "remote.SSH.useExecServer": false workaround did work, as well as downgrading to v.0.102.0.

    I've attached the log from my Remote-SSH output channel when using v.0.106.1 of the extension.
    remote-ssh-output.txt

    Version: 1.82.0 (user setup)
    Commit: 8b617bd08fd9e3fc94d14adb8d358b56e3f72314
    Date: 2023-09-06T22:07:07.438Z
    Electron: 25.8.0
    ElectronBuildId: 23503258
    Chromium: 114.0.5735.289
    Node.js: 18.15.0
    V8: 11.4.183.29-electron.0
    OS: Windows_NT x64 10.0.19045
    
  7. karlhorton commented on Sep 8, 2023

    @karlhorton

    I'm seeing the same issue and note that after multiple tries I'm seeing some rogue vscode install processes which need to be manually cleaned, with kill -9.

    /home/khorton/.vscode-server/code-8b617bd08fd9e3fc94d14adb8d358b56e3f72314 command-shell --cli-data-dir /home/khorton/.vscode-server/cli --on-port --require-token 7394a9ff424d

  8. fmg-pete commented on Sep 8, 2023

    @fmg-pete

    Same issue as above, stuck on "Downloading VS Code Server" after latest update. Windows 10.

  9. Chaotic-chaos commented on Sep 8, 2023

    @Chaotic-chaos

    Same issue here, I've turned on the 'Remote.SSH.Local Server Download' into 'always'. But it seems that the code still download *.tar.gz on my remote machine. Waiting for a solution.

  10. NoReasonKen commented on Sep 8, 2023

    @NoReasonKen

    The "remote.SSH.useExecServer": false work for me.

    My situation is, my server uses an old version of tar as default, so the installation of vscode is always failed. My workaround is connected to server and tar the archive file manually with newer tar binary. After that, reconnect vscode.

    To be able to use the newer "ExecServer" installation method and set it as default, a document which can explain how to manually install it is needed.

  11. Brainor commented on Sep 8, 2023

    @Brainor

    This instruction below is for those who don't have Internet connection on both remote and local machines.

    • set "remote.SSH.useExecServer": false as roblourens suggests. This uses the old .vscode-server/bin/{commit-ID} structure.

    or

    • leave remote.SSH.useExecServer as default (true), and here are the steps that need to be done:
    1. download vscode-server-linux-x64.tar.gz from https://update.code.visualstudio.com/commit:{commit_ID}/server-linux-x64/stable as usual.
      1. extract vscode-server-linux-x64.tar.gz to .vscode-server/cli/servers/Stable-{commit_ID}/server so that the bin folder is directly under server folder.
    2. download vscode_cli_alpine_x64_cli.tar.gz from https://update.code.visualstudio.com/commit:{commit_ID}/cli-alpine-x64/stable.
      1. rename the file inside vscode_cli_alpine_x64_cli.tar.gz to code-{commit_ID} and put it (the code-{commit_ID} file) in .vscode-server.
  12. LsYueh commented on Sep 8, 2023

    @LsYueh

    Downgrading Remote-SSH to v.0.102.0 for now.

  13. xhwang-China commented on Sep 8, 2023

    @xhwang-China

    set "remote.SSH.useExecServer": false can solve my problem

  14. 17 remaining items

  15. added
    bug
    important
    on Sep 9, 2023
  16. added this to the September 2023 milestone on Sep 9, 2023
  17. roblourens commented on Sep 9, 2023

    @roblourens
    Member

    That setting is now disabled by default in 0.106.2. On vscode insiders, it is still enabled for testing, but you can disable it manually. Sorry for the churn. Share the log if you have more issues.

  18. danielfaust commented on Sep 9, 2023

    @danielfaust

    That setting is now disabled by default in 0.106.2.

    Since downgrading to 1.81.1 will require disabling automatic updates, how can we get notified when this issue is fixed? Will we have to check https://code.visualstudio.com/updates/v1_82 or is there some automated mechanism?

  19. moritzwilksch commented on Sep 9, 2023

    @moritzwilksch

    Nice, thank you for addressing it this quickly roblourens, much appreciated! Will this be re-enabled in a future version when the underlying issue has been fixed? I assume y'all want to move everyone to the new bootstrapping mode at some point?

  20. Fasteroid commented on Sep 9, 2023

    @Fasteroid
  21. connor4312 commented on Sep 9, 2023

    @connor4312
    Member

    Will this be re-enabled in a future version when the underlying issue has been fixed?

    Yes, but that's probably not going to happen until the next stable VS Code release

  22. qumqum22 commented on Sep 11, 2023

    @qumqum22

    Hello, I had same issue but it's gone after I uninstalled extention that name was "[DEPRECATED] Pair bracket colorizer" on remote server. Maybe it is connected somehow.

  23. jaroslawhartman commented on Sep 11, 2023

    @jaroslawhartman

    Thank you for the fix.

    But I'm sorry - I couldn't figure it out from the thread - is there a working workaround until getting next stable VSCode release?


    Update: similarly to others, "remote.SSH.useExecServer": false not working for me.

    Eventually, downgraded as described in Stack Overflow.

  24. 0x0L commented on Sep 11, 2023

    @0x0L
    Author

    Jarek Hartman (@jaroslawhartman)

    "remote.SSH.useExecServer": false
    

    At least that worked for me

  25. wmorellato commented on Sep 12, 2023

    @wmorellato

    Stopped having the issue with version v0.106.3. Setting remote.SSH.useExecServer is still disabled.

  26. Joshua0128 commented on Sep 25, 2023

    @Joshua0128

    setting remote.SSH.useExecServer works for me. Finally can start my work.

  27. locked and limited conversation to collaborators on Oct 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugimportantsshverified

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions