Title: Web socket fails to connect through Apache · Issue #4723 · coder/code-server · GitHub
Open Graph Title: Web socket fails to connect through Apache · Issue #4723 · coder/code-server
X Title: Web socket fails to connect through Apache · Issue #4723 · coder/code-server
Description: OS/Web Information Web Browser: Chrome Local OS: MacOS 12.2 Remote OS: Ubuntu 20.04 LTS Remote Architecture: amd64 code-server --version: 4.0.1 Logs code-server --log debug [2022-01-11T03:38:43.612Z] info code-server 4.0.1 735c6da [2022-...
Open Graph Description: OS/Web Information Web Browser: Chrome Local OS: MacOS 12.2 Remote OS: Ubuntu 20.04 LTS Remote Architecture: amd64 code-server --version: 4.0.1 Logs code-server --log debug [2022-01-11T03:38:43.612...
X Description: OS/Web Information Web Browser: Chrome Local OS: MacOS 12.2 Remote OS: Ubuntu 20.04 LTS Remote Architecture: amd64 code-server --version: 4.0.1 Logs code-server --log debug [2022-01-11T03:38:43.612...
Opengraph URL: https://github.com/coder/code-server/issues/4723
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Web socket fails to connect through Apache","articleBody":"## OS/Web Information\r\n\r\n- Web Browser: Chrome\r\n- Local OS: MacOS 12.2\r\n- Remote OS: Ubuntu 20.04 LTS\r\n- Remote Architecture: amd64\r\n- `code-server --version`: 4.0.1\r\n\r\n## Logs\r\n\r\ncode-server --log debug\r\n[2022-01-11T03:38:43.612Z] info code-server 4.0.1 735c6da829535969ff7193c79379299e4a1cb9bc\r\n[2022-01-11T03:38:43.613Z] info Using user-data-dir ~/.local/share/code-server\r\n[2022-01-11T03:38:43.628Z] info Using config file ~/.config/code-server/config.yaml\r\n[2022-01-11T03:38:43.628Z] info HTTP server listening on http://0.0.0.0:8080/ \r\n[2022-01-11T03:38:43.628Z] info - Authentication is enabled\r\n[2022-01-11T03:38:43.628Z] info - Using password from ~/.config/code-server/config.yaml\r\n[2022-01-11T03:38:43.628Z] info - Not serving HTTPS \r\n[22:38:51] Extension host agent started.\r\n[22:38:51] [Theme Service] Scanning for theme extension...\r\n[22:38:51] [Theme Service] theme-abyss\r\n[22:38:51] [Theme Service] theme-defaults\r\n[22:38:51] [Theme Service] theme-kimbie-dark\r\n[22:38:51] [Theme Service] theme-monokai\r\n[22:38:51] [Theme Service] theme-monokai-dimmed\r\n[22:38:51] [Theme Service] theme-quietlight\r\n[22:38:51] [Theme Service] theme-red\r\n[22:38:51] [Theme Service] theme-solarized-dark\r\n[22:38:51] [Theme Service] theme-solarized-light\r\n[22:38:51] [Theme Service] theme-tomorrow-night-blue\r\n[22:38:51] [Theme Service] Attempting to find user's active theme: Default Dark+\r\n[2022-01-11T03:38:54.949Z] debug got latest version {\"latest\":\"4.0.1\"}\r\n[2022-01-11T03:38:54.949Z] debug comparing versions {\"current\":\"4.0.1\",\"latest\":\"4.0.1\"}\r\n[2022-01-11T03:39:51.007Z] debug 0 active connections\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## Screenshot\r\n\r\n\u003cimg width=\"1440\" alt=\"Screen Shot 2022-01-10 at 10 47 35 PM\" src=\"https://user-images.githubusercontent.com/40614799/148878490-56346c97-dad7-443e-8093-1d982656e8c8.png\">\r\n\u003cimg width=\"1440\" alt=\"Screen Shot 2022-01-10 at 10 48 36 PM\" src=\"https://user-images.githubusercontent.com/40614799/148878499-1ccb6079-82a5-4a03-876b-9ebbb18a7867.png\">\r\n\r\n\r\n## Notes\r\nI currently only experience this error on code-server 4.0.1. code-server 3.12.0 works without issue. \r\nI am currently using apache2 with a reverse proxy. The current config for the apache2 virtual host is below:\r\n\r\n\r\n\u003cLocation \"/\">\r\n ProxyPass http://127.0.0.1:8080/\r\n ProxyPassReverse http://127.0.0.1:8080/\r\n ProxyPassReverse /\r\n RewriteEngine on\r\n RewriteCond %{HTTP:Upgrade} websocket [NC]\r\n RewriteCond %{HTTP:Connection} upgrade [NC]\r\n RewriteRule ^/?(.*) \"ws://127.0.0.1:8080/\" [P,L]\r\n\u003c/Location>\r\n\r\nI also made sure all the websockets modules are loaded in apache2 and working without problems. No errors occur on the Apache web server. Any suggestions on how to get this working with Apache2?\r\n\r\nThis issue can be reproduced in VS Code: No\r\n","author":{"url":"https://github.com/lplassman","@type":"Person","name":"lplassman"},"datePublished":"2022-01-11T04:02:17Z","url":"https://github.com/coder/code-server/issues/4723"}
| 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:fe82df7a-e907-2e75-955c-77829a7a4611 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AEFC:EDA7A:35A6694:442ABD6:6B01E59C |
| html-safe-nonce | 9789199b3a19d62bc2f7601c6839782548f907e3b6523f5b13e9281d9cce1098 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRUZDOkVEQTdBOjM1QTY2OTQ6NDQyQUJENjo2QjAxRTU5QyIsInZpc2l0b3JfaWQiOiI2MDkyMDMyODQwNTE2NjI1ODIwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 99e9c02dbedee3b6692886456a880e8e2845f4f4f39f013056dbe06520174080 |
| hovercard-subject-tag | issue:1098624687 |
| 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/4723/issue_layout |
| twitter:image | https://opengraph.githubassets.com/91710445a7e6c338c4b9952a9ee6203e86ddbf7064e4e97d2fde64dcd204a0dd/coder/code-server/issues/4723 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/91710445a7e6c338c4b9952a9ee6203e86ddbf7064e4e97d2fde64dcd204a0dd/coder/code-server/issues/4723 |
| og:image:alt | OS/Web Information Web Browser: Chrome Local OS: MacOS 12.2 Remote OS: Ubuntu 20.04 LTS Remote Architecture: amd64 code-server --version: 4.0.1 Logs code-server --log debug [2022-01-11T03:38:43.612... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | lplassman |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| 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 | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width