C
Coder.comā€¢5mo ago
Najii

Error in vscode-web module

Hello! Im pretty new using Coder and im trying to use the vscode-web module on my template but it doesnt seems to be working Full logs:
Installing Microsoft Visual Studio Code Server!

Ubuntu 24.04 LTS

Installing v4.19.1 of the amd64 release from GitHub.

+ Reusing ~/.cache/code-server/code-server-4.19.1-linux-amd64.tar.gz

+ mkdir -p /tmp/code-server

+ mkdir -p /tmp/code-server/lib /tmp/code-server/bin

+ tar -C /tmp/code-server/lib -xzf ~/.cache/code-server/code-server-4.19.1-linux-amd64.tar.gz

VS Code Web has been installed.

šŸ§© Installing extension github.copilot...

šŸ§© Installing extension ms-python.python...

+ mv -f /tmp/code-server/lib/code-server-4.19.1-linux-amd64 /tmp/code-server/lib/code-server-4.19.1

+ ln -fs /tmp/code-server/lib/code-server-4.19.1/bin/code-server /tmp/code-server/bin/code-server

Standalone release has been installed into /tmp/code-server/lib/code-server-4.19.1

Extend your path to use code-server:

PATH="/tmp/code-server/bin:$PATH"

Then run with:

code-server

Deploy code-server for your team with Coder: https://github.com/coder/coder

šŸ§© Installing extension ms-toolsai.jupyter...

šŸ‘· Running /tmp/vscode-web/bin/code-server serve-local --port 13338 --host 127.0.0.1 --accept-server-license-terms --without-connection-token --telemetry-level error in the background...

Check logs at /tmp/vscode-web.log!
Installing Microsoft Visual Studio Code Server!

Ubuntu 24.04 LTS

Installing v4.19.1 of the amd64 release from GitHub.

+ Reusing ~/.cache/code-server/code-server-4.19.1-linux-amd64.tar.gz

+ mkdir -p /tmp/code-server

+ mkdir -p /tmp/code-server/lib /tmp/code-server/bin

+ tar -C /tmp/code-server/lib -xzf ~/.cache/code-server/code-server-4.19.1-linux-amd64.tar.gz

VS Code Web has been installed.

šŸ§© Installing extension github.copilot...

šŸ§© Installing extension ms-python.python...

+ mv -f /tmp/code-server/lib/code-server-4.19.1-linux-amd64 /tmp/code-server/lib/code-server-4.19.1

+ ln -fs /tmp/code-server/lib/code-server-4.19.1/bin/code-server /tmp/code-server/bin/code-server

Standalone release has been installed into /tmp/code-server/lib/code-server-4.19.1

Extend your path to use code-server:

PATH="/tmp/code-server/bin:$PATH"

Then run with:

code-server

Deploy code-server for your team with Coder: https://github.com/coder/coder

šŸ§© Installing extension ms-toolsai.jupyter...

šŸ‘· Running /tmp/vscode-web/bin/code-server serve-local --port 13338 --host 127.0.0.1 --accept-server-license-terms --without-connection-token --telemetry-level error in the background...

Check logs at /tmp/vscode-web.log!
/tmp/vscode-web.log :
*
* Visual Studio Code Server
*
* By using the software, you agree to
* the Visual Studio Code Server License Terms (https://aka.ms/vscode-server-license) and
* the Microsoft Privacy Statement (https://privacy.microsoft.com/en-US/privacystatement).
*
Server bound to 127.0.0.1:13338 (IPv4)
Extension host agent listening on 13338

[17:51:33]




Web UI available at http://localhost:13338
[17:51:33] Extension host agent started.
*
* Visual Studio Code Server
*
* By using the software, you agree to
* the Visual Studio Code Server License Terms (https://aka.ms/vscode-server-license) and
* the Microsoft Privacy Statement (https://privacy.microsoft.com/en-US/privacystatement).
*
Server bound to 127.0.0.1:13338 (IPv4)
Extension host agent listening on 13338

[17:51:33]




Web UI available at http://localhost:13338
[17:51:33] Extension host agent started.
Solution:
VSCode Web needs subdomain=true
Jump to solution
23 Replies
Phorcys
Phorcysā€¢5mo ago
hey, there are no errors in the logs can you share your terraform template ?
Najii
Najiiā€¢5mo ago
Sure! i had to put it on pastebin because its too big for discord https://pastebin.com/dFgmXH3k
Pastebin
terraform { required_providers { coder = { source = "coder...
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
Phorcys
Phorcysā€¢5mo ago
the port in your coder_app for VSCode is wrong it should be 13338 i'm surprised you even have a coder_app defined though, I think you should comment it out as it might be overriding the one from the module
Najii
Najiiā€¢5mo ago
i tried removing it earlier and i still had the same issue =/ hmm, its the port that came with the template tho, i havent changed it hahahah im going to try removing the coder_app again just to be sure
Najii
Najiiā€¢5mo ago
Same thing, the button is still disabled
āš™ļø Creating settings file...

Installing Microsoft Visual Studio Code Server!

Ubuntu 24.04 LTS

Installing v4.19.1 of the amd64 release from GitHub.

+ mkdir -p ~/.cache/code-server

+ curl -#fL -o ~/.cache/code-server/code-server-4.19.1-linux-amd64.tar.gz.incomplete -C - https://github.com/coder/code-server/releases/download/v4.19.1/code-server-4.19.1-linux-amd64.tar.gz

VS Code Web has been installed.

šŸ§© Installing extension github.copilot...

#######################

+ mv ~/.cache/code-server/code-server-4.19.1-linux-amd64.tar.gz.incomplete ~/.cache/code-server/code-server-4.19.1-linux-amd64.tar.gz

+ mkdir -p /tmp/code-server
+ mkdir -p /tmp/code-server/lib /tmp/code-server/bin

+ tar -C /tmp/code-server/lib -xzf ~/.cache/code-server/code-server-4.19.1-linux-amd64.tar.gz

+ mv -f /tmp/code-server/lib/code-server-4.19.1-linux-amd64 /tmp/code-server/lib/code-server-4.19.1

+ ln -fs /tmp/code-server/lib/code-server-4.19.1/bin/code-server /tmp/code-server/bin/code-server

Standalone release has been installed into /tmp/code-server/lib/code-server-4.19.1

Extend your path to use code-server:

PATH="/tmp/code-server/bin:$PATH"

Then run with:

code-server

Deploy code-server for your team with Coder: https://github.com/coder/coder

šŸ§© Installing extension ms-python.python...

šŸ§© Installing extension ms-toolsai.jupyter...

šŸ‘· Running /tmp/vscode-web/bin/code-server serve-local --port 13338 --host 127.0.0.1 --accept-server-license-terms --without-connection-token --telemetry-level error in the background...

Check logs at /tmp/vscode-web.log!
āš™ļø Creating settings file...

Installing Microsoft Visual Studio Code Server!

Ubuntu 24.04 LTS

Installing v4.19.1 of the amd64 release from GitHub.

+ mkdir -p ~/.cache/code-server

+ curl -#fL -o ~/.cache/code-server/code-server-4.19.1-linux-amd64.tar.gz.incomplete -C - https://github.com/coder/code-server/releases/download/v4.19.1/code-server-4.19.1-linux-amd64.tar.gz

VS Code Web has been installed.

šŸ§© Installing extension github.copilot...

#######################

+ mv ~/.cache/code-server/code-server-4.19.1-linux-amd64.tar.gz.incomplete ~/.cache/code-server/code-server-4.19.1-linux-amd64.tar.gz

+ mkdir -p /tmp/code-server
+ mkdir -p /tmp/code-server/lib /tmp/code-server/bin

+ tar -C /tmp/code-server/lib -xzf ~/.cache/code-server/code-server-4.19.1-linux-amd64.tar.gz

+ mv -f /tmp/code-server/lib/code-server-4.19.1-linux-amd64 /tmp/code-server/lib/code-server-4.19.1

+ ln -fs /tmp/code-server/lib/code-server-4.19.1/bin/code-server /tmp/code-server/bin/code-server

Standalone release has been installed into /tmp/code-server/lib/code-server-4.19.1

Extend your path to use code-server:

PATH="/tmp/code-server/bin:$PATH"

Then run with:

code-server

Deploy code-server for your team with Coder: https://github.com/coder/coder

šŸ§© Installing extension ms-python.python...

šŸ§© Installing extension ms-toolsai.jupyter...

šŸ‘· Running /tmp/vscode-web/bin/code-server serve-local --port 13338 --host 127.0.0.1 --accept-server-license-terms --without-connection-token --telemetry-level error in the background...

Check logs at /tmp/vscode-web.log!
No description
Najii
Najiiā€¢5mo ago
i created a new workspace as well instead of updating the old one
Phorcys
Phorcysā€¢5mo ago
the template you sent me doesn't match what's on screen
Phorcys
Phorcysā€¢5mo ago
No description
Phorcys
Phorcysā€¢5mo ago
there should be an app where the display name would be "code-server" are you sure this is the right file?
Najii
Najiiā€¢5mo ago
im pretty sure it is because i only have one template at the moment
No description
Najii
Najiiā€¢5mo ago
i just removed this part when u said about commenting it
Phorcys
Phorcysā€¢5mo ago
i meant it was already not there in the first screenshot oh sorry i'm blind, i asked you to send the template but you already did before sorry for the confusion what does it say when you hover over "VS Code Web"?
Najii
Najiiā€¢5mo ago
nothing at all, no tooltips, and the button seems to be fully disabled
Atif
Atifā€¢5mo ago
Do you have wild card subdomain configured?
Solution
Atif
Atifā€¢5mo ago
VSCode Web needs subdomain=true
Atif
Atifā€¢5mo ago
I think this is what causes the health check to fail
Najii
Najiiā€¢5mo ago
oooh i dont... rn im using cloudflare tunnel for my coder instance and im not sure on how to set up, but i will do some research real quick on how to set it up using tunnels and try it out to see if it fixes my issue
Atif
Atifā€¢5mo ago
Configuration - Coder Docs
Learn how to configure Coder
From An unknown user
From An unknown user
From An unknown user
Najii
Najiiā€¢5mo ago
ty!!!
Phorcys
Phorcysā€¢5mo ago
oh i totally forgot about that maybe we should make an assertion or something so that workspace build fails and the error is clear
Najii
Najiiā€¢5mo ago
yeah setting up the subdomain made the button work but im having issues now with cloudflare, but that's something for me to figure out, ty for all the help and patience!! you guys are amazing
Atif
Atifā€¢5mo ago
We have an issue opened in coder/modules on what's the best way to do it. It hasn't been prioritized yet by the Coder team.
Atif
Atifā€¢5mo ago
GitHub
add a property to filter coder_apps that need subdomain = true Ā· ...
Some coder_apps can not be hosted on a sub path and require subdomain = true. We should add a property to metadata to filter those apps on registry.coder.com examples, VS Code Web JupyterLab cc: @b...
Want results from more Discord servers?
Add your server