Repository navigation
3.9.2 not working with code-server running in Kubernetes via Helm #3004
Copy link
Copy link
Closed
Labels
bugSomething isn't workingSomething isn't working
Milestone
Description
Reporting on behalf of @nodesocket
OS/Web Information
- Web Browser: Chrome 89.0.4389.90/Firefox 87.0
- Local OS: MacOS Big Sur
- Remote OS: Docker / Kubernetes using official container 3.9.2.
- Remote Architecture:
code-server --version: 3.9.2
Steps to Reproduce
- Upgrade Kubernetes images from 3.9.1 to 3.9.2.
- Then logged into my code-server and seeing these
WebSocket close with status code 1006
Expected
code-server 3.9.2 should work
Actual
ERR [remote-connection][ExtensionHost][47c0b…][initial][<hidden>:80] socketFactory.connect() failed or timed out. Error:
log.ts:296 ERR Error: WebSocket close with status code 1006
at WebSocket.<anonymous> (browserSocketFactory.ts:129)browserSocketFactory.ts:162 WebSocket connection to 'wss://<hidden>/?reconnectionToken=2cb654bd-29f1-4132-b584-f156eb9a4df6&reconnection=false&skipWebSocketFrames=false' failed:
create @ browserSocketFactory.ts:162
connect @ browserSocketFactory.ts:212
s @ remoteAgentConnection.ts:192
r @ remoteAgentConnection.ts:233
i @ remoteAgentConnection.ts:310
o @ remoteAgentConnection.ts:334
w @ remoteAgentConnection.ts:407
log.ts:296 ERR [remote-connection][Management ][2cb65…][initial][<hidden>:80] socketFactory.connect() failed or timed out. Error:
log.ts:296 ERR Error: WebSocket close with status code 1006
at WebSocket.<anonymous> (browserSocketFactory.ts:129)
log.ts:296 ERR [remote-connection] An error occurred in the very first connect attempt, it will be treated as a permanent error! Error:
log.ts:296 ERR Error: WebSocket close with status code 1006
at WebSocket.<anonymous> (browserSocketFactory.ts:129)
log.ts:296 ERR Error: WebSocket close with status code 1006
at WebSocket.<anonymous> (browserSocketFactory.ts:129)
log.ts:290 WARN Ignoring the error while validating workspace folder vscode-remote:/<hidden>/home/coder - WebSocket close with status code 1006
webWorkerExtensionHost.ts:125 The web worker extension host is started without an iframe sandbox!
start @ webWorkerExtensionHost.ts:125
Kn @ extensionHostManager.ts:67
_createInstance @ instantiationService.ts:110
createInstance @ instantiationService.ts:76
(anonymous) @ abstractExtensionService.ts:447
_startExtensionHosts @ abstractExtensionService.ts:446
_initialize @ abstractExtensionService.ts:411
(anonymous) @ extensionService.ts:74
Promise.then (async)
Xs @ extensionService.ts:74
_createInstance @ instantiationService.ts:110
_createServiceInstance @ instantiationService.ts:230
_createServiceInstanceWithOwner @ instantiationService.ts:219
_createAndCacheServiceInstance @ instantiationService.ts:208
_safeCreateAndCacheServiceInstance @ instantiationService.ts:151
_getOrCreateServiceInstance @ instantiationService.ts:135
get @ instantiationService.ts:54
initLayout @ layout.ts:255
(anonymous) @ workbench.ts:137
invokeFunction @ instantiationService.ts:61
startup @ workbench.ts:130
open @ web.main.ts:95
async function (async)
open @ web.main.ts:83
Se @ web.main.ts:359
g @ workbench.web.api.ts:498
(anonymous) @ workbench.ts:498
(anonymous) @ workbench.ts:505
r._invokeFactory @ loader.js:1114
r.complete @ loader.js:1124
r._onModuleComplete @ loader.js:1750
r._onModuleComplete @ loader.js:1762
r._resolve @ loader.js:1710
r.defineModule @ loader.js:1353
o @ loader.js:1638
v @ loader.js:2145
r._invokeFactory @ loader.js:1114
r.complete @ loader.js:1124
r._onModuleComplete @ loader.js:1750
r._onModuleComplete @ loader.js:1762
r._resolve @ loader.js:1710
r.defineModule @ loader.js:1353
p @ loader.js:1800
(anonymous) @ workbench.nls.js:7Screenshot
Related
- New 3.9.2 not work on iPadOS, Safari #2975 (comment)
- New 3.9.2 not work on iPadOS, Safari #2975 (comment)
- New 3.9.2 not work on iPadOS, Safari #2975 (comment)
This issue can be reproduced in VS Code: Yes/No
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working

Activity
jsjoeio commentedon Mar 30, 2021
@nodesocket do you mind providing the following information so I can update the issue?
nodesocket commentedon Mar 30, 2021
OS/Web Information
code-server --version:Steps to Reproduce
WebSocket close with status code 1006jsjoeio commentedon Mar 30, 2021
@bpmct I know you're a Kubernetes guru so if you have any interest in helping with this one, let us know!
bpmct commentedon Mar 31, 2021
@nodesocket are you using the helm chart?
nodesocket commentedon Apr 5, 2021
@bpmct correct, using https://github.com/cdr/code-server/tree/main/ci/helm-chart. I think the problem is not related to Kubernetes, Helm, or Docker, but the
code-serverfiles itself. See #2975 (comment)nodesocket commentedon Apr 8, 2021
@bpmct I just started from scratch.
And re-installed (after confirming it freshly created a new volume). To my surprise, I am having the same exact error and issue as above. I think something is actually broken in the
3.9.2source code build.Logs from the pod:
bpmct commentedon Apr 8, 2021
if you change the image to 3.9.1 in the helm chart do you still run into these issues?
Yamilquery commentedon Apr 8, 2021
I have the same issue with 3.9.2.
I can't downgrade to 3.9.1 because is not available on homebrew.
jsjoeio commentedon Apr 8, 2021
@yamajik you can uninstall with homebrew:
and reinstall with yarn/npm:
nodesocket commentedon Apr 8, 2021
@bpmct just upgrade my Helm chart to use
3.9.3and did a Helm upgrade and things are working now. So, it appears the fix added in3.9.3fixed the issue.jsjoeio commentedon Apr 8, 2021
Awesome! Thanks for checking and letting us know. Going to close this for now. Feel free to open a new issue or post in the v3.9.3 Discussion if you see anything funky.