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

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

Open
AsweocanDo opened this issue Apr 24, 2023 · 8 comments

Comments

@AsweocanDo
Copy link

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
Copy link
Owner

@AsweocanDo could you share the extension logs

@stif
Copy link

stif commented Apr 26, 2023

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
Copy link
Owner

jeanp413 commented Apr 26, 2023

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
Copy link

stif commented Apr 26, 2023

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
Copy link
Owner

jeanp413 commented Apr 26, 2023

@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
Copy link

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

  • Set Server Download Url Template to https://github.com/gitpod-io/openvscode-server/releases/download/openvscode-server-v${version}/openvscode-server-v${version}-${os}-${arch}.tar.gz
  • Do not set Server Binary Name, we want it to fail the first time.
  • Try a remote connection. The script will download and unpack, but fail with "Server contents are corrupted".
  • Now, edit the product.json on the server and replace the commit with the one from the local Code-OSS release
  • Finally, either set the Server Binary Name to openvscode-server or just symlink openvscode-server to code-server-oss in <server>:~/.vscode-server-oss/bin/<commit>/bin

@Rhys-T
Copy link

Rhys-T commented Sep 20, 2023

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
Copy link

neitsab commented May 14, 2024

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants