Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Everything works fine, but the final connection keeps loading. #16655

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

Closed
1 task done
ShuaiQA opened this issue Feb 21, 2025 · 0 comments
Closed
1 task done

Everything works fine, but the final connection keeps loading. #16655

ShuaiQA opened this issue Feb 21, 2025 · 0 comments
Labels
needs-triage Issue that require triage

Comments

@ShuaiQA
Copy link

ShuaiQA commented Feb 21, 2025

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

I deployed it using docker. The health check displayed by opening the interface through the web page was normal. I downloaded Docker (Devcontainer) Templates and created Workspaces. When I clicked on vscode, the local vscode could not be connected and when I clicked on the code-server, the web page kept loading.

Relevant Log Output

last workspaces logs:
=== No onCreateCommand script specified
=== No updateContentCommand script specified
=== Running postCreateCommand as the "root" user...
=== Running init command as user "root": ["/bin/sh" "-c" "#!/usr/bin/env sh\nset -eux\n# Sleep for a good long while before exiting.\n# This is to allow folks to exec into a failed workspace and poke around to\n# troubleshoot.\nwaitonexit() {\n\techo \"=== Agent script exited with non-zero code ($?). Sleeping 24h to preserve logs...\"\n\tsleep 86400\n}\ntrap waitonexit EXIT\nBINARY_DIR=\"${BINARY_DIR:-$(mktemp -d -t coder.XXXXXX)}\"\nBINARY_NAME=coder\nBINARY_URL=http://103.106.191.182:7080/bin/coder-linux-amd64\ncd \"$BINARY_DIR\"\n# Attempt to download the coder agent.\n# This could fail for a number of reasons, many of which are likely transient.\n# So just keep trying!\nwhile :; do\n\t# Try a number of different download tools, as we don not know what we\n\t# will have available.\n\tstatus=\"\"\n\tif command -v curl >/dev/null 2>&1; then\n\t\tcurl -fsSL --compressed \"${BINARY_URL}\" -o \"${BINARY_NAME}\" && break\n\t\tstatus=$?\n\telif command -v wget >/dev/null 2>&1; then\n\t\twget -q \"${BINARY_URL}\" 

⚙️ Creating settings file...
Installing code-server!
######                                                             
🥳 code-server has been installed in /tmp/code-server
👷 Running code-server in the background...
Check logs at /tmp/code-server.log!


open terminal /tmp/code-server.log:
 cat /tmp/code-server.log 
[2025-02-21T16:50:01.721Z] info  code-server 4.97.2 34b8d2ed69811c3315a465f01492e9448c9254aa
[2025-02-21T16:50:01.724Z] info  Using user-data-dir /root/.local/share/code-server
[2025-02-21T16:50:01.759Z] info  Using config file /root/.config/code-server/config.yaml
[2025-02-21T16:50:01.759Z] info  HTTP server listening on http://127.0.0.1:13337/
[2025-02-21T16:50:01.760Z] info    - Authentication is disabled
[2025-02-21T16:50:01.760Z] info    - Not serving HTTPS
[2025-02-21T16:50:01.760Z] info  Session server listening on /root/.local/share/code-server/code-server-ipc.sock
[16:50:10] 




[16:50:10] Extension host agent started.

Expected Behavior

It is expected that clicking on the local vscode of VS Code Desktop can connect to the remote one, and clicking on the URL redirected by code-server can load the content.

Steps to Reproduce

Image The URL that you click on code-server to jump to is still loading.

Image
Click VS Code, the local vscode cannot be connected.

Image

Environment

  • Host OS: Ubuntu 24.04
  • Coder version: images: ghcr.io/coder/coder:latest、ghcr.io/coder/envbuilder:latest、

Additional Context

No response

@ShuaiQA ShuaiQA added the needs-triage Issue that require triage label Feb 21, 2025
@coder coder locked and limited conversation to collaborators Feb 24, 2025
@matifali matifali converted this issue into discussion #16669 Feb 24, 2025

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
needs-triage Issue that require triage
Projects
None yet
Development

No branches or pull requests

1 participant