Skip to content

[Bug]: code-server hang #5805

Closed
Closed

Description

@ericzhucode

Is there an existing issue for this?

  • I have searched the existing issues

I know this issue may not be caused by code-server but nodejs since when process hangs, it seems no any js code is running and all nodejs environment stucks. Just post this here to see if it's possible to get professional suggestions from your team.
I will also post this issue at nodejs community
Thank you for your team's effort!

OS/Web Information

  • Web Browser: Chrome/Edge(This issue is only related to backend process on Linux system)
  • Local OS: Win10/Win11
  • Remote OS: Linux CentOS
  • Remote Architecture:
  • code-server --version: 4.1.0 / 4.2.0 / 4.4.0 (Some customers are upgrading to 4.5.3 now and we will monitor if this version also has the issue)

Steps to Reproduce

  1. start code-server
  2. use code-server as usual
  3. after about one week to one month, the code-server hangs
  4. we can't reproduce this issue manually as this always happens suddenly and unexpectedly

Troubleshooting so far

  1. We can't open code-server in browser as chrome shows no response at all, but port access is still avaiable when we use telnet
  2. We can find code-server process still exists and it is still listening on the port (with telnet 127.0.0.1 8080)
    process
  3. We even can't curl on the local linux machine and there's no response at all
    noresponse

(if it's working then we should see the direction infomation like)
redirect

  1. We generated core file of the hang process (I mean the process executing entry.js) and use gdb to debug it. When we use bt to look at the frames, we can get the following content
    core file
    We get this core files from over 20+ of our users and the contents are all the same, showing nodejs is stucking at
    write() from /lib64/libpthread.so.0

Expected

nodejs server in linux backend system should response when we use curl or open IDE in browser

Actual

nodejs process in linux backend system hangs and no response at all

Logs

from ~/.local/share/code-server/code-server-stderr.log
We found the following logs and it seems that there's network traffic issue in socket connection but I don't know how we use these information to troubleshoot. I will be appreciated it if you team can suggest something.
image

Screenshot/Video

No response

Does this issue happen in VS Code or GitHub Codespaces?

  • I cannot reproduce this in VS Code.
  • I cannot reproduce this in GitHub Codespaces.

Are you accessing code-server over HTTPS?

  • I am using HTTPS.

Notes

No response

Activity

  1. added
    bugSomething isn't working
    triageThis issue needs to be triaged by a maintainer
    on Nov 22, 2022
  2. locked and limited conversation to collaborators on Nov 30, 2022
  3. converted this issue into a discussion #5822 on Nov 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtriageThis issue needs to be triaged by a maintainer

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions