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

Wrong URL for vscodium download #163

Open
ivan-balashov opened this issue Jul 30, 2024 · 7 comments
Open

Wrong URL for vscodium download #163

ivan-balashov opened this issue Jul 30, 2024 · 7 comments

Comments

@ivan-balashov
Copy link

While trying to connect to server there is an error
"Couldn't install vscode server on remote server, install script returned non-zero exit status";

In the console there is a strange server install command with extra dots and also this link is not exist on github vscodium
"
[Trace - 08:30:39.135] Server install command stdout:
Error downloading server from https://github.com/VSCodium/vscodium/releases/download/1.91.0./vscodium-reh-linux-x64-1.91.0..tar.gz
"
while correct link is h
ttps://github.com/VSCodium/vscodium/releases/download/1.91.0.24190/vscodium-reh-linux-x64-1.91.0.24190.tar.gz

Looks like problem is here

SERVER_DOWNLOAD_URL="$(echo "https://github.com/VSCodium/vscodium/releases/download/\${version}.\${release}/vscodium-reh-\${os}-\${arch}-\${version}.\${release}.tar.gz" | sed "s/${quality}/$DISTRO_QUALITY/g" | sed "s/${version}/$DISTRO_VERSION/g" | sed "s/${commit}/$DISTRO_COMMIT/g" | sed "s/${os}/$PLATFORM/g" | sed "s/${arch}/$SERVER_ARCH/g" | sed "s/${release}/$DISTRO_VSCODIUM_RELEASE/g")"

@OliverinMelb
Copy link

same here

@OliverinMelb
Copy link

"remote.SSH.serverDownloadUrlTemplate": {
"type": "string",
"description": "The URL from where the vscode server will be downloaded. You can use the following variables and they will be replaced dynamically:\n- ${quality}: vscode server quality, e.g. stable or insiders\n- ${version}: vscode server version, e.g. 1.69.0\n- ${commit}: vscode server release commit\n- ${arch}: vscode server arch, e.g. x64, armhf, arm64\n- ${release}: release number, vscodium only VSCodium/vscodium#1192",
"scope": "application",
"default": "https://github.com/VSCodium/vscodium/releases/download/${version}.${release}/vscodium-reh-${os}-${arch}-${version}.${release}.tar.gz"
}, you could try hard coding this default url to force download correct version in your source code package .json file. I hope this one works for yo : )

@Seneral
Copy link

Seneral commented Aug 21, 2024

Yes, DISTRO_VSCODIUM_RELEASE is not set.
Additionally, for me, the SERVER_APP_NAME="code-server-oss" is wrong, when I check the bin directory of the file I then manually downloaded and extracted (to skip the download and extract step), it contains only "codium-server helpers/ remote-cli/"
I suspect the @jeanp413 tested this on codium and this is a separate script intended for code-oss that has some weird mix with vscodium? Maybe it wasn't tested on code-oss

@Seneral
Copy link

Seneral commented Aug 21, 2024

Was able to fix that by setting the experimental Server Binary Name setting to codium-server.
I assume the oss one was inferred from me using OSS, but why would it do that when the URL it uses is still markedly vscodium? That just means it's broken by default.
Either way, definitely needs clear documentation in the readme!

I'm not done anyway, it attempts to unlock an OpenSSH key of mine which it has absolutely NO reason to unlock, and then fails like this:

[Trace - 13:55:13.919] Creating forwarding server 38843(local) => 37953(socks) => 35171(remote)
[Info - 13:55:15.217] Resolving ssh remote authority '[email protected]' (attemp #3)
[Error - 13:55:15.223] Couldn't get identities from OpenSSH agent
Error: SSH_AUTH_SOCK environment variable not defined
at t.gatherIdentityFiles (/home/xxx/.vscode-oss/extensions/jeanp413.open-remote-ssh-0.0.46-universal/out/extension.js:1:443319)
at async /home/xxx/.vscode-oss/extensions/jeanp413.open-remote-ssh-0.0.46-universal/out/extension.js:1:403197
[Trace - 13:55:15.223] Identity keys:
/home/xxx/.ssh/key
[Info - 13:55:15.480] Trying no-auth authentication
[Info - 13:55:15.525] Trying publickey authentication: /home/xxx/.ssh/key SHA256:sha
[Error - 13:56:15.225] Error resolving authority
Error: Timed out while waiting for handshake
at Timeout. (/home/xxx/.vscode-oss/extensions/jeanp413.open-remote-ssh-0.0.46-universal/out/extension.js:1:159592)
at listOnTimeout (node:internal/timers:573:17)
at process.processTimers (node:internal/timers:514:7)
[Info - 13:56:15.229] Resolving ssh remote authority '[email protected]' (attemp #4)

Any idea why that could be? I don't need any identity to connect to the target

@ggtony233
Copy link

ggtony233 commented Sep 10, 2024

Same question, I was using code-oss and noticed that there is a setting in this extension called Remote.SSH: Server Download Url Template, which seems to be the default for anyone using this extension to be using the codium editor. Does it not support code-oss?
This is the option I see in this plugin when using code-oss

"remote.SSH.serverDownloadUrlTemplate": "https://github.com/VSCodium/vscodium/releases/download/${version}.${release}/vscodium-reh-${os}-${arch}-${version}.${release}.tar.gz"

@OliverinMelb
Copy link

Same question, I was using code-oss and noticed that there is a setting in this extension called Remote.SSH: Server Download Url Template, which seems to be the default for anyone using this extension to be using the codium editor. Does it not support code-oss? This is the option I see in this plugin when using code-oss

"remote.SSH.serverDownloadUrlTemplate": "https://github.com/VSCodium/vscodium/releases/download/${version}.${release}/vscodium-reh-${os}-${arch}-${version}.${release}.tar.gz"

Same question, I was using code-oss and noticed that there is a setting in this extension called Remote.SSH: Server Download Url Template, which seems to be the default for anyone using this extension to be using the codium editor. Does it not support code-oss? This is the option I see in this plugin when using code-oss

"remote.SSH.serverDownloadUrlTemplate": "https://github.com/VSCodium/vscodium/releases/download/${version}.${release}/vscodium-reh-${os}-${arch}-${version}.${release}.tar.gz"

Yes, you can either find the setting in VSCode under the extension's settings or modify the URL in the plugin's source code. Here's what you can do:

In VSCodium or Code-OSS, navigate to the extension settings and locate the Remote.SSH: Server Download Url Template. From there, you can change the URL to the one you prefer.

Alternatively, you can modify the source code directly. Go to the package.json file in the extension's source code and update the "remote.SSH.serverDownloadUrlTemplate" field. Then, package the extension into a .vsix file and reinstall it.
This way, you'll be able to use your desired download URL template.
image

image

@ggtony233
Copy link

This is the default option to get the link:
https://github.com/VSCodium/vscodium/releases/download/1.93.0./vscodium-reh-linux-x64-1.93.0..tar.gz
It seems that the correct release link has a string of numbers after 1.93.0, what is the significance of this string of numbers? I've looked at each revision number and there seems to be a different 5-digit number at the end of the release link, is it possible to add a snippet to the code that gets this 5-digit number after the revision number?
@jeanp413

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

4 participants