Title: The workbench failed to connect to the server (Error: WebSocket close with status code 1006) · Issue #4763 · coder/code-server · GitHub
Open Graph Title: The workbench failed to connect to the server (Error: WebSocket close with status code 1006) · Issue #4763 · coder/code-server
X Title: The workbench failed to connect to the server (Error: WebSocket close with status code 1006) · Issue #4763 · coder/code-server
Description: Fix added the following lines to my site's .conf in /etc/nginx/sites-available : proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection upgrade; proxy_set_header Accept-Encoding gzip; ✅ OS/Web Information Web Browser: Google...
Open Graph Description: Fix added the following lines to my site's .conf in /etc/nginx/sites-available : proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection upgrade; proxy_set_header Accept-Encoding gzip; ...
X Description: Fix added the following lines to my site's .conf in /etc/nginx/sites-available : proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection upgrade; proxy_set_header Accept-Encoding gz...
Opengraph URL: https://github.com/coder/code-server/issues/4763
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"The workbench failed to connect to the server (Error: WebSocket close with status code 1006)","articleBody":"\u003c!--\r\n\r\nHi there! 👋\r\n\r\nThanks for reporting a bug.\r\n\r\nPlease search for existing issues before filing, as they may contain additional\r\ninformation about the problem and descriptions of workarounds. Provide as much\r\ninformation as you can, so that we can reproduce the issue. Otherwise, we may\r\nnot be able to help diagnose the problem, and may close the issue as\r\nunreproducible or incomplete. For visual defects, please include screenshots to\r\nhelp us understand the issue.\r\n-->\r\n\r\n## Fix\r\n\r\nadded the following lines to my site's .conf in /etc/nginx/sites-available :\r\n```\r\nproxy_set_header Upgrade $http_upgrade;\r\nproxy_set_header Connection upgrade;\r\nproxy_set_header Accept-Encoding gzip;\r\n```\r\n✅\r\n## OS/Web Information\r\n\r\n- Web Browser: Google chrome\r\n- Local OS: Windows 10\r\n- Remote OS: Ubuntu Server 20.04\r\n- Remote Architecture: amd64\r\n- `code-server --version`: 4.0.1\r\n\r\n## Steps to Reproduce\r\n\r\n1. run install script\r\n2. start code-server service\r\n3. open browser to code-server website (nginx reverse proxy)\r\n4. get error The workbench failed to connect to the server (Error: WebSocket close with status code 1006)\r\n5. remote service error reads ENOENT no such file or directory, open '/usr/lib/code-server/vendor/modules/code-oss-dev/out/vs/code/browser/workbench/workbench.html'\r\n\r\n## Expected\r\n\r\n\u003c!-- What should happen? -->\r\nCode server should open and run on a fresh install. This is a new install of code-server and I think it's attempting to load extensions from the old install that have not been installed yet. I had tried to move the install location under bad stack overflow advice and ever since it's not been working correctly\r\n\r\n## Actual\r\n\r\n\u003c!-- What actually happens? -->\r\nRepeatedly reloads page and immediately throws same exception. Again, this is a new install of code-server and I think it's attempting to load extensions from the old install that have not been installed yet. I had tried to move the install location under bad stack overflow advice and ever since it's not been working correctly\r\n## Logs Screenshot\r\n\r\n\u003c!--\r\nFirst run code-server with at least debug logging (or trace to be really\r\nthorough) by setting the --log flag or the LOG_LEVEL environment variable. -vvv\r\nand --verbose are aliases for --log trace. For example:\r\n\r\ncode-server --log debug\r\n\r\nOnce this is done, replicate the issue you're having then collect logging\r\ninformation from the following places:\r\n\r\n 1. The most recent files from ~/.local/share/code-server/coder-logs.\r\n 2. The browser console.\r\n 3. The browser network tab.\r\n\r\nAdditionally, collecting core dumps (you may need to enable them first) if\r\ncode-server crashes can be helpful.\r\n-->\r\n\r\n\r\n\u003c!--\r\nIf you're having issues with installation please include the installation logs\r\ni.e. the output of `yarn global add code-server` if you installed with `yarn`\r\n -->\r\n\r\n## Notes\r\n\r\n\u003c!-- If you can reproduce the issue on vanilla VS Code,\r\nplease file the issue at the VS Code repository instead. -->\r\nOnce again, this is a new install of code-server and I think it's attempting to load extensions from the old install that have not been installed yet. I had tried to move the install location under bad stack overflow advice and ever since it's not been working correctly. Can be reproduced across versions 3.12.0, 3.6.2, 3.9.1 and 4.0.1. Webserver config: Nginx reverse proxy with Oauth2-proxy default config and google oauth 2.0\r\nThis issue can be reproduced in VS Code: No\r\n","author":{"url":"https://github.com/dokastho","@type":"Person","name":"dokastho"},"datePublished":"2022-01-19T07:26:39Z","url":"https://github.com/coder/code-server/issues/4763"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:d0ff764e-639a-98ac-8fd3-7d86b5612cc4 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9262:D1D28:11D2432:17AEC61:6B01E9A8 |
| html-safe-nonce | 7d62d88219f90ecbb1307fba4abb70716b488916164f439ddbc41c21eac367a5 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MjYyOkQxRDI4OjExRDI0MzI6MTdBRUM2MTo2QjAxRTlBOCIsInZpc2l0b3JfaWQiOiI4ODA1MTg0NzM5NjI0NDc5MTQ0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 071492a4bb1aa68b7ce336165544ed2c1559205c810274e57936ab991459e768 |
| hovercard-subject-tag | issue:1107750958 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/coder/code-server/4763/issue_layout |
| twitter:image | https://opengraph.githubassets.com/84d07c7b1fabf1da25df8f99f844268c26d2399cc6da4090f32ca880e7d08323/coder/code-server/issues/4763 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/84d07c7b1fabf1da25df8f99f844268c26d2399cc6da4090f32ca880e7d08323/coder/code-server/issues/4763 |
| og:image:alt | Fix added the following lines to my site's .conf in /etc/nginx/sites-available : proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection upgrade; proxy_set_header Accept-Encoding gzip; ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | dokastho |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-preview |
| go-import | github.com/coder/code-server git https://github.com/coder/code-server.git |
| octolytics-dimension-user_id | 95932066 |
| octolytics-dimension-user_login | coder |
| octolytics-dimension-repository_id | 172953845 |
| octolytics-dimension-repository_nwo | coder/code-server |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 172953845 |
| octolytics-dimension-repository_network_root_nwo | coder/code-server |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width