question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Code-server is starting but cannot be opened in browser (endless loading)

See original GitHub issue
  • code-server version: 1.32.0-282-linuxx64
  • OS Version: Manjaro-VM installed in Windows 10 VMware 14 Host

Description

After starting the code-server it’s not reachable via browser (endless loading). Last output from code-server: INFO Starting shared process [1/5]...

Steps to Reproduce

  1. extract code-server-1.32.0-282-linux-x64.tar.gz
  2. cd into folder
  3. Run ./codes-server
  4. Open browser: https://localhost:8443

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:3
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
dcrouch79commented, May 12, 2019

For me, it turns out the Linux firewall was enabled and blocking the port. Nothing to do with IPv4 vs IPv6!

sudo ufw status will show whether Linux firewall is enabled or not.

I think the firewall was installed for me because I chose the Ubuntu + Docker base image for the droplet instead of the default Ubuntu image. Docker handles the firewall automatically.

3reactions
EvgeniyMakhmudovcommented, Mar 19, 2019

I have similar situation. Ubuntu linux, the latest code-server-1.32.0-310-linux-x64.tar.gz Starting looks correct

INFO  Additional documentation: http://github.com/codercom/code-server
INFO  Initializing {"data-dir":"/root/.local/share/code-server","working-dir":"/root/Projects/test","log-dir":"/root/.cache/code-server/logs/20190319200527399"}
INFO  Starting shared process [1/5]...
INFO  Starting webserver... {"host":"0.0.0.0","port":8443}
WARN  No certificate specified. This could be insecure.
WARN  Documentation on securing your setup: https://coder.com/docs
INFO   
INFO  Password: c3f830fe4349151b2b4ac984
INFO   
INFO  Started (click the link below to open):
INFO  http://localhost:8443/
INFO   

From lsof command i see that port is used code-serv 2736 root 12u IPv4 21487 0t0 TCP *:8443 (LISTEN)

But request of / have no response

Read more comments on GitHub >

github_iconTop Results From Across the Web

Code-server is starting but cannot be opened in browser ...
After starting the code-server it's not reachable via browser (endless loading). Last output from code-server: INFO Starting shared process [1/5] ...
Read more >
FAQ - code-server v4.8.0 docs - Coder
Though code-server takes the open-source core of VS Code and allows you to run it in the browser, it is not entirely equivalent...
Read more >
VSCode | The editor cannot be opened due to an unexpected ...
This can be solved by restarting the WSL container's network. Open Powershell from in Windows and type the following command:.
Read more >
User and Workspace Settings - Visual Studio Code
The Settings editor is the UI that lets you review and modify setting values that are stored in a settings.json file. You can...
Read more >
Why Visual Studio Code Live Server Not Working? - YouTube
Live Server extension works fine with most of the machines but some of you might face an issue, it's not working perfectly on...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found