Skip to content

remote extension host terminated unexpectedly 3 times within the last 5 minutes. #7907

Description

@heavyelement

Is there an existing issue for this?

  • I have searched the existing issues

OS/Web Information

  • Web Browser: Tried both Brave and Firefox
  • Local OS: Windows 11, Fedora
  • Remote OS: Ubuntu 24.04
  • Remote Architecture: amd64
  • code-server --version: 4.130.0 197ef3e with Code 1.130.0

Steps to Reproduce

  1. Open code-server in Brave/Firefox
  2. Let Extensions try to initialize
  3. Experience failure

Expected

Extensions should initialize without issue.

Actual

The failure happens all on its own.

Logs

`code-server --verbose` output

[TypeError: Converting circular structure to JSON
    --> starting at object with constructor 'Object'
    --- property 'issuerCertificate' closes the circle
        at JSON.stringify (<anonymous>)
        at L2 (file:///usr/lib/code-server/lib/vscode/out/vs/workbench/api/node/extensionHostProcess.js:435:106513)
        at Sr.serializeRequestArguments (file:///usr/lib/code-server/lib/vscode/out/vs/workbench/api/node/extensionHostProcess.js:435:116364)
        at i._remoteCall (file:///usr/lib/code-server/lib/vscode/out/vs/workbench/api/node/extensionHostProcess.js:435:112184)
        at r.<computed>.s.charCodeAt.r.<computed> (file:///usr/lib/code-server/lib/vscode/out/vs/workbench/api/node/extensionHostProcess.js:435:108829)
        at file:///usr/lib/code-server/lib/vscode/out/vs/workbench/api/node/extensionHostProcess.js:541:157
        at file:///usr/lib/code-server/lib/vscode/out/vs/workbench/api/node/extensionHostProcess.js:411:129
        at Array.forEach (<anonymous>)
        at N_.emit (file:///usr/lib/code-server/lib/vscode/out/vs/workbench/api/node/extensionHostProcess.js:411:117)
        at N_.onUnexpectedError (file:///usr/lib/code-server/lib/vscode/out/vs/workbench/api/node/extensionHostProcess.js:411:385)
        at je (file:///usr/lib/code-server/lib/vscode/out/vs/workbench/api/node/extensionHostProcess.js:411:694)
        at process.<anonymous> (file:///usr/lib/code-server/lib/vscode/out/vs/workbench/api/node/extensionHostProcess.js:852:11163)
        at process.emit (node:events:509:28)
        at process._fatalException (node:internal/process/execution:159:25)]

Node.js v24.18.0

[16:06:08] [127.0.0.1][b75cf46d][ExtensionHostConnection] <6324> Extension Host Process exited with code: 7, signal: null.
[16:06:08] ServerLifetime: consumer 'ExtensionHost:b75cf46d' inactive (total: 0)
[16:06:08] [127.0.0.1][b75cf46d][ExtensionHostConnection] - startParams language: en
[16:06:08] [127.0.0.1][b75cf46d][ExtensionHostConnection] - startParams env: {"VSCODE_PROXY_URI":"http://localhost:8880/proxy/{{port}}/"}
[16:06:08] [127.0.0.1][b75cf46d][ExtensionHostConnection] Unknown reconnection token (seen before).
[16:06:08] [File Watcher (node.js)] Request to stop watching: /srv/development/lynn.heavyelement.cloud/.git (excludes: /var/www/.local/share/code-server/extensions/**, includes: [{"base":"/srv/development/lynn.heavyelement.cloud","pattern":".git/objects/**/**"},{"base":"/srv/development/lynn.heavyelement.cloud","pattern":".git/subtree-cache/**/**"},{"base":"/srv/development/lynn.heavyelement.cloud","pattern":".hg/store/**/**"},{"base":"/srv/development/lynn.heavyelement.cloud","pattern":"*/.git/objects/**/**"},{"base":"/srv/development/lynn.heavyelement.cloud","pattern":"*/.git/subtree-cache/**/**"},{"base":"/srv/development/lynn.heavyelement.cloud","pattern":"*/.hg/store/**/**"}], filter: <none>, correlationId: <none>),/srv/development/lynn.heavyelement.cloud/.git/refs/remotes/origin/main (excludes: /var/www/.local/share/code-server/extensions/**, includes: [{"base":"/srv/development/lynn.heavyelement.cloud","pattern":".git/objects/**/**"},{"base":"/srv/development/lynn.heavyelement.cloud","pattern":".git/subtree-cache/**/**"},{"base":"/srv/development/lynn.heavyelement.cloud","pattern":".hg/store/**/**"},{"base":"/srv/development/lynn.heavyelement.cloud","pattern":"*/.git/objects/**/**"},{"base":"/srv/development/lynn.heavyelement.cloud","pattern":"*/.git/subtree-cache/**/**"},{"base":"/srv/development/lynn.heavyelement.cloud","pattern":"*/.hg/store/**/**"}], filter: <none>, correlationId: <none>),/srv/development/cobalt-core/.git (excludes: /var/www/.local/share/code-server/extensions/**, includes: [{"base":"/srv/development/cobalt-core","pattern":".git/objects/**/**"},{"base":"/srv/development/cobalt-core","pattern":".git/subtree-cache/**/**"},{"base":"/srv/development/cobalt-core","pattern":".hg/store/**/**"},{"base":"/srv/development/cobalt-core","pattern":"*/.git/objects/**/**"},{"base":"/srv/development/cobalt-core","pattern":"*/.git/subtree-cache/**/**"},{"base":"/srv/development/cobalt-core","pattern":"*/.hg/store/**/**"}], filter: <none>, correlationId: <none>),/srv/development/cobalt-core/.git/refs/remotes/origin/datamodel (excludes: /var/www/.local/share/code-server/extensions/**, includes: [{"base":"/srv/development/cobalt-core","pattern":".git/objects/**/**"},{"base":"/srv/development/cobalt-core","pattern":".git/subtree-cache/**/**"},{"base":"/srv/development/cobalt-core","pattern":".hg/store/**/**"},{"base":"/srv/development/cobalt-core","pattern":"*/.git/objects/**/**"},{"base":"/srv/development/cobalt-core","pattern":"*/.git/subtree-cache/**/**"},{"base":"/srv/development/cobalt-core","pattern":"*/.hg/store/**/**"}], filter: <none>, correlationId: <none>)
[16:06:08] [File Watcher (node.js)] stopping file watcher (/srv/development/lynn.heavyelement.cloud/.git (excludes: /var/www/.local/share/code-server/extensions/**, includes: [{"base":"/srv/development/lynn.heavyelement.cloud","pattern":".git/objects/**/**"},{"base":"/srv/development/lynn.heavyelement.cloud","pattern":".git/subtree-cache/**/**"},{"base":"/srv/development/lynn.heavyelement.cloud","pattern":".hg/store/**/**"},{"base":"/srv/development/lynn.heavyelement.cloud","pattern":"*/.git/objects/**/**"},{"base":"/srv/development/lynn.heavyelement.cloud","pattern":"*/.git/subtree-cache/**/**"},{"base":"/srv/development/lynn.heavyelement.cloud","pattern":"*/.hg/store/**/**"}], filter: <none>, correlationId: <none>))
[16:06:08] [File Watcher (node.js)] stopping file watcher (/srv/development/lynn.heavyelement.cloud/.git/refs/remotes/origin/main (excludes: /var/www/.local/share/code-server/extensions/**, includes: [{"base":"/srv/development/lynn.heavyelement.cloud","pattern":".git/objects/**/**"},{"base":"/srv/development/lynn.heavyelement.cloud","pattern":".git/subtree-cache/**/**"},{"base":"/srv/development/lynn.heavyelement.cloud","pattern":".hg/store/**/**"},{"base":"/srv/development/lynn.heavyelement.cloud","pattern":"*/.git/objects/**/**"},{"base":"/srv/development/lynn.heavyelement.cloud","pattern":"*/.git/subtree-cache/**/**"},{"base":"/srv/development/lynn.heavyelement.cloud","pattern":"*/.hg/store/**/**"}], filter: <none>, correlationId: <none>))
[16:06:08] [File Watcher (node.js)] stopping file watcher (/srv/development/cobalt-core/.git (excludes: /var/www/.local/share/code-server/extensions/**, includes: [{"base":"/srv/development/cobalt-core","pattern":".git/objects/**/**"},{"base":"/srv/development/cobalt-core","pattern":".git/subtree-cache/**/**"},{"base":"/srv/development/cobalt-core","pattern":".hg/store/**/**"},{"base":"/srv/development/cobalt-core","pattern":"*/.git/objects/**/**"},{"base":"/srv/development/cobalt-core","pattern":"*/.git/subtree-cache/**/**"},{"base":"/srv/development/cobalt-core","pattern":"*/.hg/store/**/**"}], filter: <none>, correlationId: <none>))
[16:06:08] [File Watcher (node.js)] stopping file watcher (/srv/development/cobalt-core/.git/refs/remotes/origin/datamodel (excludes: /var/www/.local/share/code-server/extensions/**, includes: [{"base":"/srv/development/cobalt-core","pattern":".git/objects/**/**"},{"base":"/srv/development/cobalt-core","pattern":".git/subtree-cache/**/**"},{"base":"/srv/development/cobalt-core","pattern":".hg/store/**/**"},{"base":"/srv/development/cobalt-core","pattern":"*/.git/objects/**/**"},{"base":"/srv/development/cobalt-core","pattern":"*/.git/subtree-cache/**/**"},{"base":"/srv/development/cobalt-core","pattern":"*/.hg/store/**/**"}], filter: <none>, correlationId: <none>))

Screenshot/Video

Image

Does this bug reproduce in native VS Code?

I did not test native VS Code

Does this bug reproduce in VS Code web?

I did not test VS Code web

Does this bug reproduce in GitHub Codespaces?

I did not test GitHub Codespaces

Are you accessing code-server over a secure context?

  • I am using a secure context.

Notes

I looked up this specific issue and found this but the underlying issue seemed different and their solution didn't work for me.

I had a number of third party extensions installed including Intelephense. In diagnosing this issue I disabled all third party extensions and the problem still exists.

I've also tried with other workspaces and project directories.

Activity

  1. added
    bugSomething isn't working
    triageThis issue needs to be triaged by a maintainer
    on Jul 24, 2026
  2. linear-code commented on Jul 24, 2026

    @linear-code
  3. heavyelement commented on Jul 24, 2026

    @heavyelement
    Author

    So I was desperate to get some work done. I went in and downloaded the code CLI and set up a tunnel through vscode.dev. I'm experiencing the exact same issue running code tunnel on my remote machine. It's an LXC container if that matters.

  4. code-asher commented on Jul 27, 2026

    @code-asher
    Member

    If you get the same issues with code it is probably a problem with core VS Code or VS Code web and you might get better support at the upstream repo: https://github.com/microsoft/vscode (code-server just wraps VS Code after doing a bit of patching).

    That said, it looks like a certificate issue with your remote machine. Does disabling telemetry help at all? It looks like an extension is trying to hit telemetry endpoints. If you want to keep it enabled, do you have certificates installed on the machine? On Ubuntu I think this would look something like (untested):

    sudo apt install ca-certificates
    sudo update-ca-certificates # not sure if this is required
    

    But the altname errors could be unrelated to the JSON error, so this might not help.

  5. njelassi commented on Jul 28, 2026

    @njelassi

    Hello @code-asher

    I am facing the same issue with the same error while building Code Server as a Docker image inside a Linux container.

    I am currently using version 4.126.0. Do I need to upgrade to the latest version (4.130.0)? Is there a fix for this issue?

    Thanks,

  6. code-asher commented on Jul 28, 2026

    @code-asher
    Member

    You get the same certificate errors? Did you try disabling telemetry?

    If you are able to provide the Dockerfile I can run it and see if I get the same error.

  7. njelassi commented on Aug 12, 2026

    @njelassi

    Its not about the certificate, i have the same refresh and reconnection with the same error message [08:49:08] [127.0.0.6][76447ada][ExtensionHostConnection] <306> Extension Host Process exited with code: , signal: null.

    and yes, the telemetry is disabled :

    /app/code-server/bin/code-server
    --user-data-dir /home/project/code-server/data
    --extensions-dir /home/project/code-server/extensions
    --disable-telemetry \

    Full log:

    [07:21:59] [127.0.0.6][76447ada][ExtensionHostConnection] <306> Launched Extension Host Process.
    [07:21:59] [127.0.0.6][76447ada][ExtensionHostConnection] <306> [reconnection-grace-time] Extension host: read VSCODE_RECONNECTION_GRACE_TIME=10800000ms (10800s)
    [07:32:05] [127.0.0.6][56c4d7bb][ManagementConnection] New connection established.
    [07:32:06] [127.0.0.6][b65eb7d1][ExtensionHostConnection] New connection established.
    [07:32:06] [127.0.0.6][b65eb7d1][ExtensionHostConnection] Starting extension host process...
    [07:32:06] [127.0.0.6][b65eb7d1][ExtensionHostConnection] <4160> Launched Extension Host Process.
    [07:32:06] [127.0.0.6][b65eb7d1][ExtensionHostConnection] <4160> [reconnection-grace-time] Extension host: read VSCODE_RECONNECTION_GRACE_TIME=10800000ms (10800s)
    [07:32:08] RequestStore#acceptReply was called without receiving a matching request 37
    [07:32:08] RequestStore#acceptReply was called without receiving a matching request 38
    [07:32:08] RequestStore#acceptReply was called without receiving a matching request 39
    [07:32:08] RequestStore#acceptReply was called without receiving a matching request 40
    [07:32:08] RequestStore#acceptReply was called without receiving a matching request 41
    [07:32:08] RequestStore#acceptReply was called without receiving a matching request 42
    [07:32:08] RequestStore#acceptReply was called without receiving a matching request 43
    [07:32:08] RequestStore#acceptReply was called without receiving a matching request 44
    [07:32:08] RequestStore#acceptReply was called without receiving a matching request 45
    [07:32:08] RequestStore#acceptReply was called without receiving a matching request 46
    [07:32:08] RequestStore#acceptReply was called without receiving a matching request 47
    [07:32:08] RequestStore#acceptReply was called without receiving a matching request 48
    [07:32:08] RequestStore#acceptReply was called without receiving a matching request 49
    [07:32:08] RequestStore#acceptReply was called without receiving a matching request 50
    [07:32:08] RequestStore#acceptReply was called without receiving a matching request 51
    [07:32:08] RequestStore#acceptReply was called without receiving a matching request 52
    [07:32:08] RequestStore#acceptReply was called without receiving a matching request 53
    [07:32:08] RequestStore#acceptReply was called without receiving a matching request 54
    [07:32:08] RequestStore#acceptReply was called without receiving a matching request 55
    [07:32:08] RequestStore#acceptReply was called without receiving a matching request 56
    [07:32:08] RequestStore#acceptReply was called without receiving a matching request 57
    [07:32:08] RequestStore#acceptReply was called without receiving a matching request 58
    [07:32:08] RequestStore#acceptReply was called without receiving a matching request 59
    [07:32:08] RequestStore#acceptReply was called without receiving a matching request 60
    [07:32:11] [127.0.0.6][bf58ad1d][ManagementConnection] The client has disconnected gracefully, so the connection will be disposed.
    [08:44:06] [127.0.0.6][56c4d7bb][ManagementConnection] The client has reconnected.
    [08:44:06] [127.0.0.6][b65eb7d1][ExtensionHostConnection] The client has reconnected.
    [08:49:08] [127.0.0.6][76447ada][ExtensionHostConnection] <306> Extension Host Process exited with code: , signal: null.

  8. code-asher commented on Aug 17, 2026

    @code-asher
    Member

    Hmm I am not sure, might be a different bug. I think it is probably a core VS Code issue rather than something in code-server, although it is not impossible our patches messed something up.

    Does it happen without any extensions installed?

    If you add --log-level debug (or maybe even verbose) then we might get more logs about what is going on.

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 workingneeds-investigationThis issue needs to be further investigatedtriageThis 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