Codespace does not resume

My codespace lost its connection at around 35 minutes’ use (when I finished work and was right typing my commit message! ), and it always fails to resume whenever I try.
Have tried Mozilla and chromium browsers.

The logs go like:

[2020-10-04 22:47:01.714] [window] [error] [remote-connection][Management   ][ed22f…][initial][vsonline+cc9c14c3-699d-41f9-b61d-82dbab40d430:80] socketFactory.connect() failed. Error:
[2020-10-04 22:47:01.762] [window] [error] Error: Failed to connect to relay.
    at WebSocket.n.onerror (https://agflore-rsshub-jgfh.github.dev/static/js/workbench.3413484b.chunk.js:11:48130)
[2020-10-04 22:47:01.790] [window] [error] [remote-connection][ExtensionHost][59501…][initial][vsonline+cc9c14c3-699d-41f9-b61d-82dbab40d430:80] socketFactory.connect() failed. Error:
[2020-10-04 22:47:01.815] [window] [error] Error: Failed to connect to relay.
    at WebSocket.n.onerror (https://agflore-rsshub-jgfh.github.dev/static/js/workbench.3413484b.chunk.js:11:48130)
[2020-10-04 22:47:01.838] [window] [error] [remote-connection] An error occurred in the very first connect attempt, it will be treated as a permanent error! Error:
[2020-10-04 22:47:01.855] [window] [error] Error: Failed to connect to relay.
    at WebSocket.n.onerror (https://agflore-rsshub-jgfh.github.dev/static/js/workbench.3413484b.chunk.js:11:48130)
[2020-10-04 22:47:01.878] [window] [error] [remote-connection] An error occurred in the very first connect attempt, it will be treated as a permanent error! Error:
[2020-10-04 22:47:01.898] [window] [error] Error: Failed to connect to relay.
    at WebSocket.n.onerror (https://agflore-rsshub-jgfh.github.dev/static/js/workbench.3413484b.chunk.js:11:48130)
[2020-10-04 22:47:01.915] [window] [error] Error: Failed to connect to relay.
    at WebSocket.n.onerror (https://agflore-rsshub-jgfh.github.dev/static/js/workbench.3413484b.chunk.js:11:48130)
[2020-10-04 22:47:01.931] [window] [warning] Ignoring the error while validating workspace folder vscode-remote://vsonline%2Bcc9c14c3-699d-41f9-b61d-82dbab40d430/home/codespace/workspace/RSSHub - Failed to connect to relay.
[2020-10-04 22:47:01.946] [window] [error] Unable to read file 'vscode-remote://vsonline+cc9c14c3-699d-41f9-b61d-82dbab40d430/home/codespace/workspace/RSSHub/.vscode/settings.json' (Error: Failed to connect to relay.): Error: Unable to read file 'vscode-remote://vsonline+cc9c14c3-699d-41f9-b61d-82dbab40d430/home/codespace/workspace/RSSHub/.vscode/settings.json' (Error: Failed to connect to relay.)
    at _.doReadAsFileStream (https://agflore-rsshub-jgfh.github.dev/workbench-page/web-standalone/insider-403a689/out/vs/workbench/workbench.web.api.js?v=2:1680:809)
    at async _.readFile (https://agflore-rsshub-jgfh.github.dev/workbench-page/web-standalone/insider-403a689/out/vs/workbench/workbench.web.api.js?v=2:1679:933)
    at async https://agflore-rsshub-jgfh.github.dev/workbench-page/web-standalone/insider-403a689/out/vs/workbench/workbench.web.api.js?v=2:3691:416
    at async Promise.all (index 0)
    at async Promise.all (index 0)
    at async m.loadConfiguration (https://agflore-rsshub-jgfh.github.dev/workbench-page/web-standalone/insider-403a689/out/vs/workbench/workbench.web.api.js?v=2:3691:576)
[2020-10-04 22:47:01.962] [window] [error] Unable to read file 'vscode-remote://vsonline+cc9c14c3-699d-41f9-b61d-82dbab40d430/home/codespace/workspace/RSSHub/.vscode/tasks.json' (Error: Failed to connect to relay.): Error: Unable to read file 'vscode-remote://vsonline+cc9c14c3-699d-41f9-b61d-82dbab40d430/home/codespace/workspace/RSSHub/.vscode/tasks.json' (Error: Failed to connect to relay.)
    at _.doReadAsFileStream (https://agflore-rsshub-jgfh.github.dev/workbench-page/web-standalone/insider-403a689/out/vs/workbench/workbench.web.api.js?v=2:1680:809)
    at async _.readFile (https://agflore-rsshub-jgfh.github.dev/workbench-page/web-standalone/insider-403a689/out/vs/workbench/workbench.web.api.js?v=2:1679:933)
    at async https://agflore-rsshub-jgfh.github.dev/workbench-page/web-standalone/insider-403a689/out/vs/workbench/workbench.web.api.js?v=2:3691:416
    at async Promise.all (index 0)
    at async Promise.all (index 1)
    at async m.loadConfiguration (https://agflore-rsshub-jgfh.github.dev/workbench-page/web-standalone/insider-403a689/out/vs/workbench/workbench.web.api.js?v=2:3691:576)
[2020-10-04 22:47:01.979] [window] [error] Unable to read file 'vscode-remote://vsonline+cc9c14c3-699d-41f9-b61d-82dbab40d430/home/codespace/workspace/RSSHub/.vscode/launch.json' (Error: Failed to connect to relay.): Error: Unable to read file 'vscode-remote://vsonline+cc9c14c3-699d-41f9-b61d-82dbab40d430/home/codespace/workspace/RSSHub/.vscode/launch.json' (Error: Failed to connect to relay.)
    at _.doReadAsFileStream (https://agflore-rsshub-jgfh.github.dev/workbench-page/web-standalone/insider-403a689/out/vs/workbench/workbench.web.api.js?v=2:1680:809)
    at async _.readFile (https://agflore-rsshub-jgfh.github.dev/workbench-page/web-standalone/insider-403a689/out/vs/workbench/workbench.web.api.js?v=2:1679:933)
    at async https://agflore-rsshub-jgfh.github.dev/workbench-page/web-standalone/insider-403a689/out/vs/workbench/workbench.web.api.js?v=2:3691:416
    at async Promise.all (index 1)
    at async Promise.all (index 1)
    at async m.loadConfiguration (https://agflore-rsshub-jgfh.github.dev/workbench-page/web-standalone/insider-403a689/out/vs/workbench/workbench.web.api.js?v=2:3691:576)
[2020-10-04 22:47:01.994] [window] [error] Unable to read file 'vscode-remote://vsonline+cc9c14c3-699d-41f9-b61d-82dbab40d430/home/codespace/workspace/RSSHub/.vscode/settings.json' (Error: Failed to connect to relay.): Error: Unable to read file 'vscode-remote://vsonline+cc9c14c3-699d-41f9-b61d-82dbab40d430/home/codespace/workspace/RSSHub/.vscode/settings.json' (Error: Failed to connect to relay.)
    at _.doReadAsFileStream (https://agflore-rsshub-jgfh.github.dev/workbench-page/web-standalone/insider-403a689/out/vs/workbench/workbench.web.api.js?v=2:1680:809)
    at async _.readFile (https://agflore-rsshub-jgfh.github.dev/workbench-page/web-standalone/insider-403a689/out/vs/workbench/workbench.web.api.js?v=2:1679:933)
    at async https://agflore-rsshub-jgfh.github.dev/workbench-page/web-standalone/insider-403a689/out/vs/workbench/workbench.web.api.js?v=2:3691:416
    at async Promise.all (index 0)
    at async Promise.all (index 0)
    at async m.loadConfiguration (https://agflore-rsshub-jgfh.github.dev/workbench-page/web-standalone/insider-403a689/out/vs/workbench/workbench.web.api.js?v=2:3691:576)
    at async Promise.all (index 0)
[2020-10-04 22:47:02.006] [window] [error] Unable to read file 'vscode-remote://vsonline+cc9c14c3-699d-41f9-b61d-82dbab40d430/home/codespace/workspace/RSSHub/.vscode/tasks.json' (Error: Failed to connect to relay.): Error: Unable to read file 'vscode-remote://vsonline+cc9c14c3-699d-41f9-b61d-82dbab40d430/home/codespace/workspace/RSSHub/.vscode/tasks.json' (Error: Failed to connect to relay.)
    at _.doReadAsFileStream (https://agflore-rsshub-jgfh.github.dev/workbench-page/web-standalone/insider-403a689/out/vs/workbench/workbench.web.api.js?v=2:1680:809)
    at async _.readFile (https://agflore-rsshub-jgfh.github.dev/workbench-page/web-standalone/insider-403a689/out/vs/workbench/workbench.web.api.js?v=2:1679:933)
    at async https://agflore-rsshub-jgfh.github.dev/workbench-page/web-standalone/insider-403a689/out/vs/workbench/workbench.web.api.js?v=2:3691:416
    at async Promise.all (index 0)
    at async Promise.all (index 1)
    at async m.loadConfiguration (https://agflore-rsshub-jgfh.github.dev/workbench-page/web-standalone/insider-403a689/out/vs/workbench/workbench.web.api.js?v=2:3691:576)
    at async Promise.all (index 0)
[2020-10-04 22:47:02.021] [window] [error] Unable to read file 'vscode-remote://vsonline+cc9c14c3-699d-41f9-b61d-82dbab40d430/home/codespace/workspace/RSSHub/.vscode/launch.json' (Error: Failed to connect to relay.): Error: Unable to read file 'vscode-remote://vsonline+cc9c14c3-699d-41f9-b61d-82dbab40d430/home/codespace/workspace/RSSHub/.vscode/launch.json' (Error: Failed to connect to relay.)
    at _.doReadAsFileStream (https://agflore-rsshub-jgfh.github.dev/workbench-page/web-standalone/insider-403a689/out/vs/workbench/workbench.web.api.js?v=2:1680:809)
    at async _.readFile (https://agflore-rsshub-jgfh.github.dev/workbench-page/web-standalone/insider-403a689/out/vs/workbench/workbench.web.api.js?v=2:1679:933)
    at async https://agflore-rsshub-jgfh.github.dev/workbench-page/web-standalone/insider-403a689/out/vs/workbench/workbench.web.api.js?v=2:3691:416
    at async Promise.all (index 1)
    at async Promise.all (index 1)
    at async m.loadConfiguration (https://agflore-rsshub-jgfh.github.dev/workbench-page/web-standalone/insider-403a689/out/vs/workbench/workbench.web.api.js?v=2:3691:576)
    at async Promise.all (index 0)
[2020-10-04 22:47:02.036] [window] [error] Failed to connect to relay.: Error: Failed to connect to relay.
    at WebSocket.n.onerror (https://agflore-rsshub-jgfh.github.dev/static/js/workbench.3413484b.chunk.js:11:48130)
[2020-10-04 22:47:06.465] [window] [error] Failed to connect to relay.: Error: Failed to connect to relay.
    at WebSocket.n.onerror (https://agflore-rsshub-jgfh.github.dev/static/js/workbench.3413484b.chunk.js:11:48130)
[2020-10-04 22:47:11.487] [window] [error] Failed to connect to relay.: Error: Failed to connect to relay.
    at WebSocket.n.onerror (https://agflore-rsshub-jgfh.github.dev/static/js/workbench.3413484b.chunk.js:11:48130)

HI @AgFlore - I’m looking into this now, thanks for giving all the details!

1 Like

@AgFlore - I’ve done some manual steps to attempt to repair the Codespace. Could you please try to start it again now and let me know if it works this time?

The issue got resolved the next day (perhaps before you noticed and replied lol), and I managed to finish my work.

Since this was not the first time I ran into this issue, I would let you know should this arise again.

Thank you.

1 Like