-
Notifications
You must be signed in to change notification settings - Fork 887
Access code-server from coder response 502 Gad Gateway #12790
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
Comments
Are you sure Additionally, try |
I think this hit us too! For some additional context, it seems to have appeared in v2.8.0 and it's still around in the latest v2.9.x. The v2.7 versions are not affected by this. Running v2.7.3 at the moment. |
Same issue after the update |
So a couple of things we noticed:
Hope that helps! |
Update: latest |
@coadler this could be related to #11810 @lvchenyang @bfqrst @jacobwi is |
So this is the command that starts code-server:
Was that your question @spikecurtis? |
I am getting into this too on v2.9.0+ while using vscode-web module. Wildcard domains are correctly configured. Failed to proxy request to application: dial context: connect tcp [fd7a:115c:a1e0:4337:9c08:29d0:7c2c:6274]:13338: connection was refused while app is running fine, ps aux | grep /tmp/vscode-web
coder 469 0.0 0.0 2892 1600 ? S Apr03 0:00 sh /tmp/vscode-web/bin/code-server serve-local --port 13338 --accept-server-license-terms serve-local --without-connection-token --telemetry-level error
coder 529 0.0 0.0 920252 70856 ? Sl Apr03 0:23 /tmp/vscode-web/node /tmp/vscode-web/out/server-main.js serve-local --port 13338 --accept-server-license-terms serve-local --without-connection-token --telemetry-level error And the cat /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 ::1:13338 (IPv6)
Extension host agent listening on 13338
[18:41:03]
Web UI available at http://localhost:13338/
[18:41:03] Extension host agent started.
[18:41:03] Started initializing default profile extensions in extensions installation folder. file:///home/coder/.vscode-server/extensions
[18:41:03] Completed initializing default profile extensions in extensions installation folder. file:///home/coder/.vscode-server/extensions When I do State Recv-Q Send-Q Local Address:Port Peer Address:Port Process
LISTEN 0 4096 127.0.0.1:6060 0.0.0.0:* users:(("coder",pid=49,fd=7))
LISTEN 0 4096 127.0.0.1:2112 0.0.0.0:* users:(("coder",pid=49,fd=9))
LISTEN 0 4096 127.0.0.1:2113 0.0.0.0:* users:(("coder",pid=49,fd=8))
LISTEN 0 4096 127.0.0.1:13339 0.0.0.0:* users:(("filebrowser",pid=216,fd=7))
LISTEN 0 128 0.0.0.0:19999 0.0.0.0:* users:(("jupyter-lab",pid=224,fd=6))
LISTEN 0 511 [::1]:13338 [::]:* users:(("node",pid=529,fd=19)) |
@bfqrst does the port shown in the error screen say |
The above is our error screenshot. It shows the IPv6 address in brackets, but the port is our corporate proxy port And yes, code-server runs under: |
Sorry, completely missed that, thanks for the info. Last question, is coder being accessed over the proxy port you mentioned? i.e., is it somewhere in the browser URL? |
No worries, thanks for looking into it! The Does that make sense? |
That makes sense. So is the EDIT: Yeah, this definitely seems to be the case. The HTTP client we use to dial workspaces over the tailnet will respect these envs. This is definitely a bug on our end. |
MS code-server defaults to using `--host localhost`, which was working perfectly fine with Coder. But recently Coder is failing to proxy vscode-web with the coder/coder#12790 As a workaround setting `--host 127.0.0.1` works.
MS code-server defaults to using `--host localhost`, which was working perfectly fine with Coder. But recently Coder is failing to proxy vscode-web with the coder/coder#12790 As a workaround setting `--host 127.0.0.1` works.
This is fixed now and should be included in the next |
502 - Bad Gateway
Failed to proxy request to application: proxyconnect tcp: dial context: connect tcp [fd7a:115c:a1e0:42ba:af8f:1cde:1c68:a816]:7890: connection was refused
The text was updated successfully, but these errors were encountered: