jeanp413 / open-remote-ssh

VSCode Remote Development: Open any folder on a remote machine using SSH.
MIT License
279 stars 38 forks source link

Couldn't install vscode server on remote server, install script returned non-zero exit status #83

Open AsweocanDo opened 1 year ago

AsweocanDo commented 1 year ago

Every time I connect, after entering the password, an error pops up saying Couldn't install server on remote server, install script returned non-zero exit status But I think my server has already been installed.

jeanp413 commented 1 year ago

@AsweocanDo could you share the extension logs

stif commented 1 year ago

I tried your extension, but having the same issue:

Error downloading server from https://github.com/VSCodium/vscodium/releases/download/1.75.1./vscodium-reh-linux-x64-1.75.1..tar.gz
ccd20a3a959d1169836da56c: start
exitCode==1==
listeningOn====
connectionToken====
logFile==/home/maintain/.vscode-server-oss/.441438abd1ac652551dbe4d408dfcec8a499b8bf.log==
osReleaseId==ubuntu==
arch==x86_64==
platform==Linux==
tmpDir==/run/user/1000==
ccd20a3a959d1169836da56c: end

I was looking at https://github.com/VSCodium/vscodium/releases/ for the correct URL because ..load/1.75.1./vsco... was looking suspicious and found out 23040 is missing

i grabbed the script from "output" tab, put it to ~/.vscode-oss/install.sh on remote server and changed the line DISTRO_VSCODIUM_RELEASE="23040" (was empty before).

This is the new output from edited local script:

Error server contents are corrupted
f771a36d1b16d99096dc6937: start
exitCode==1==
listeningOn====
connectionToken====
logFile==/home/maintain/.vscode-server-oss/.441438abd1ac652551dbe4d408dfcec8a499b8bf.log==
osReleaseId==ubuntu==
arch==x86_64==
platform==Linux==
tmpDir==/run/user/1000==
distroVSCodiumRelease==23040==
f771a36d1b16d99096dc6937: end

i am giving up at the moment, but would like to use this useful extension!

jeanp413 commented 1 year ago

I was looking at https://github.com/VSCodium/vscodium/releases/ for the correct URL because ..load/1.75.1./vsco... was looking suspicious and found out 23040 is missing

yeah that should not happen, are you using vscodium desktop on your local machine or are you using another vscode fork like code-oss? could you share the info in the vscodium about dialog?

stif commented 1 year ago

i am using Manjaro Linux and installed it via pacman. Here is my About Dialog: grafik

possibly i need to upgrade my system though, there are some packages available for update 🙈 thanks anyways, i dont want to hijack this issue..

jeanp413 commented 1 year ago

@stif that's the reason why it fails, this extension assumes vscodium client/server, for different distros you need to configure it manually, for code-oss is even more trickier because they don't release a server distro, you can read this other issue and this one too to make it work

N00byKing commented 1 year ago

For anyone who wants to run this, here's the workaround I'm using to make it work for Code-OSS:

Rhys-T commented 11 months ago

Just ran into this. I'm trying to use this extension in Code-OSS under Termux (since Code-OSS is what's available from the Termux User Repository). But the machine I'm trying to connect to is running macOS (x64), and the openvscode-server repository mentioned above doesn't seem to have Darwin binaries, only Linux ones. Does anyone know of another approach to get a working server executable for this setup?

neitsab commented 4 months ago

Would it be possible to add a note to the README mentioning that this extension isn't directly compatible with Code - OSS? It would really help in reducing troubleshooting time and support requests 😁

Something along the line of:

[!Warning] This extension is designed to work with VSCodium and is not directly compatible with other VSCode rebuilds, like Code - OSS often found on Arch-based distros. See this comment for more info and workarounds.

Thanks!

edit It is also not compatible with vscodium{,-bin}-features on Arch (changes product.json to spoof MS VSCode, therefore the wrong server version is downloaded)