Cannot install VSCode extensions

Hi,
I’m running gitpod 0.5.0 from charts.gitpod.io and the recommended value.yml from the gitpod repo. Everything seems to work except the installation of VSCode extensions. I get no error message in Theia, but this in the workspace pod’s log

“Downloading vadimcn.vscode-lldb v1.6.0 to /tmp/vadimcn.vscode-lldb21vBtbbXao4taX.vsix”,“payload”:{“name”:“root”,“params”:[]}}
{“component”:“workspace”,“severity”:“error”,“time”:“2020-12-03T17:41:11.154Z”,“message”:“Request downloadExtension failed with error: The server responded with status 302.”,“payload”:{“name”:“root”,“params”:[“Error: The server responded with status 302.\n at Object.statusError (/theia/node_modules/ovsx/lib/util.js:75:16)\n at IncomingMessage. (/theia/node_modules/ovsx/lib/registry.js:68:39)\n at IncomingMessage.emit (events.js:327:22)\n at endReadableNT (_stream_readable.js:1220:12)\n at processTicksAndRejections (internal/process/task_queues.js:84:21)”]}}
{“component”:“workspace”,“severity”:“error”,“time”:“2020-12-03T17:41:11.240Z”,“message”:“Request downloadExtension failed with message: The server responded with status 302.”,“payload”:{“name”:“root”,“params”:[]}}

I get this for all extensions.

I can confirm I am getting the same when trying to install an extension via search. I am not sure what URL is being used when installing an extension, but I do see if it’s using this sort of URL, a 302 is indeed returned:

https://open-vsx.org/api/GitHub/github-vscode-theme/1.1.5/file/GitHub.github-vscode-theme-1.1.5.vsix

curl -I https://open-vsx.org/api/GitHub/github-vscode-theme/1.1.5/file/GitHub.github-vscode-theme-1.1.5.vsix

HTTP/2 302 
vary: Origin
vary: Access-Control-Request-Method
vary: Access-Control-Request-Headers
vary: Origin
vary: Access-Control-Request-Method
vary: Access-Control-Request-Headers
location: https://storage.googleapis.com/open-vsx-resources/GitHub/github-vscode-theme/1.1.5/GitHub.github-vscode-theme-1.1.5.vsix
x-content-type-options: nosniff
x-xss-protection: 1; mode=block
cache-control: no-cache, no-store, max-age=0, must-revalidate
pragma: no-cache
expires: 0
strict-transport-security: max-age=31536000 ; includeSubDomains
x-frame-options: DENY
content-length: 0
date: Thu, 03 Dec 2020 18:21:25 GMT
via: 1.1 google
alt-svc: clear

It should be fixed in production. Please try again.

Issue: https://github.com/gitpod-io/gitpod/issues/2402

Sounds great. Is productions also in the https://charts.gitpod.io charts or only in the github master branch? Hope this question is not too stupid :wink:

Perhaps I am blind, but I was trying to find the related PR, but couldn’t. Would you know the URL? I’m just interested to see what changed. Thanks!

Is productions also in the https://charts.gitpod.io charts or only in the github master branch?

With production, I meant gitpod.io SaaS (and master). Self-hosted has not been deployed yet. Sorry.

It was this PR https://github.com/eclipse-theia/theia/pull/8570

3 Likes

Ah cool thanks @svenefftinge!