Title: SSH to workspace not working anymore with Cloudflare proxying enabled · Issue #9337 · coder/coder · GitHub
Open Graph Title: SSH to workspace not working anymore with Cloudflare proxying enabled · Issue #9337 · coder/coder
X Title: SSH to workspace not working anymore with Cloudflare proxying enabled · Issue #9337 · coder/coder
Description: From one day to the other I cannot connect to my workspace via SSH anymore. I can SSH into other containers but my main workspace is not connecting. I downgraded, rebooted the whole instance, restarted the workspace but nothing helped th...
Open Graph Description: From one day to the other I cannot connect to my workspace via SSH anymore. I can SSH into other containers but my main workspace is not connecting. I downgraded, rebooted the whole instance, resta...
X Description: From one day to the other I cannot connect to my workspace via SSH anymore. I can SSH into other containers but my main workspace is not connecting. I downgraded, rebooted the whole instance, resta...
Mail addresses
curve25519-sha256@libssh.org
curve25519-sha256@libssh.org
curve25519-sha256@libssh.org
ssh-ed25519-cert-v01@openssh.com
ecdsa-sha2-nistp256-cert-v01@openssh.com
ecdsa-sha2-nistp384-cert-v01@openssh.com
ecdsa-sha2-nistp521-cert-v01@openssh.com
sk-ssh-ed25519-cert-v01@openssh.com
sk-ecdsa-sha2-nistp256-cert-v01@openssh.com
rsa-sha2-512-cert-v01@openssh.com
rsa-sha2-256-cert-v01@openssh.com
sk-ssh-ed25519@openssh.com
sk-ecdsa-sha2-nistp256@openssh.com
aes256-gcm@openssh.com
chacha20-poly1305@openssh.com
aes128-gcm@openssh.com
aes256-gcm@openssh.com
chacha20-poly1305@openssh.com
aes128-gcm@openssh.com
hmac-sha2-256-etm@openssh.com
hmac-sha1-etm@openssh.com
umac-128-etm@openssh.com
hmac-sha2-512-etm@openssh.com
umac-128@openssh.com
hmac-sha2-256-etm@openssh.com
hmac-sha1-etm@openssh.com
umac-128-etm@openssh.com
hmac-sha2-512-etm@openssh.com
umac-128@openssh.com
zlib@openssh.com
zlib@openssh.com
curve25519-sha256@libssh.org
aes128-gcm@openssh.com
aes256-gcm@openssh.com
chacha20-poly1305@openssh.com
aes128-gcm@openssh.com
aes256-gcm@openssh.com
chacha20-poly1305@openssh.com
hmac-sha2-256-etm@openssh.com
hmac-sha2-512-etm@openssh.com
hmac-sha2-256-etm@openssh.com
hmac-sha2-512-etm@openssh.com
aes256-gcm@openssh.com
aes256-gcm@openssh.com
sk-ssh-ed25519@openssh.com
sk-ecdsa-sha2-nistp256@openssh.com
Opengraph URL: https://github.com/coder/coder/issues/9337
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"SSH to workspace not working anymore with Cloudflare proxying enabled","articleBody":"From one day to the other I cannot connect to my workspace via SSH anymore. I can SSH into other containers but my main workspace is not connecting. I downgraded, rebooted the whole instance, restarted the workspace but nothing helped though it's indicated as running:\r\n\r\n\r\nNeither the Terminal button (or any other button) nor `coder ssh jaulz.workspace` is working. Both basically return not even an error message. When I'm checking the logs of the Docker container I can see this output of the agent:\r\n```\r\n2023-08-25 14:15:56.198 [debu] net.tailnet.net.wgengine: derphttp.Client.Recv: connecting to derp-999 (coder)\r\n2023-08-25 14:15:56.266 [debu] net.tailnet.net.wgengine: magicsock: [0xc0003c32c0] derp.Recv(derp-999): derp.Recv: unexpectedly large frame of 1414811695 bytes returned\r\n2023-08-25 14:15:56.266 [debu] net.tailnet.net.wgengine: derp-999: [v1] backoff: 5697 msec\r\n2023-08-25 14:15:56.278 [debu] net.tailnet.net.wgengine: netcheck: netcheck.runProbe: got STUN response for 1000stun0 from 167.235.129.2:57958 (1c14801356802acb4ae1ba97) in 10.998169ms\r\n2023-08-25 14:15:56.303 [debu] net.tailnet.net.wgengine: netcheck: netcheck.runProbe: got STUN response for 1001stun0 from 167.235.129.2:57958 (7e84418b23ab8c0e48696dca) in 36.522108ms\r\n2023-08-25 14:15:56.493 [debu] net.tailnet.net.wgengine: netcheck: [v1] measuring ICMP latency of coder (999): no address for node 999b\r\n2023-08-25 14:15:56.548 [debu] net.tailnet.net.wgengine: netcheck: [v1] report: udp=true v6=false v6os=false mapvarydest=false hair= portmap= v4a=167.235.129.2:57958 derp=999 derpdist=999v4:19ms\r\n2023-08-25 14:16:01.965 [debu] net.tailnet.net.wgengine: derphttp.Client.Recv: connecting to derp-999 (coder)\r\n2023-08-25 14:16:02.051 [debu] net.tailnet.net.wgengine: magicsock: [0xc0003c32c0] derp.Recv(derp-999): derp.Recv: unexpectedly large frame of 1414811695 bytes returned\r\n2023-08-25 14:16:02.051 [debu] net.tailnet.net.wgengine: derp-999: [v1] backoff: 5150 msec\r\n2023-08-25 14:16:02.063 [debu] net.tailnet.net.wgengine: netcheck: netcheck.runProbe: got STUN response for 1000stun0 from 167.235.129.2:57958 (7757ffae0f447c677f87d0fd) in 11.04406ms\r\n2023-08-25 14:16:02.272 [debu] net.tailnet.net.wgengine: netcheck: [v1] measuring ICMP latency of coder (999): no address for node 999b\r\n2023-08-25 14:16:02.320 [debu] net.tailnet.net.wgengine: netcheck: [v1] report: udp=true v6=false v6os=false mapvarydest= hair= portmap= v4a=167.235.129.2:57958 derp=999 derpdist=999v4:23ms\r\n2023-08-25 14:16:02.321 [debu] net.tailnet: netinfo callback netinfo=\"NetInfo{varies= hairpin= ipv6=false ipv6os=false udp=true icmpv4=false derp=#999 portmap= link=\\\"\\\"}\"\r\n2023-08-25 14:16:02.321 [debu] net.tailnet: sending node node=\"&{ID:nodeid:4be00bc6922401af AsOf:2023-08-25 14:16:02.321403 +0000 UTC Key:nodekey:30b321849632e6672891c1696bf0ac5dd4785b8f4bc8b80fe26a54f5e64d7b63 DiscoKey:discokey:4d5786f5d6f02e50372f6dc0da59bd31874763f61a76d68ff40458721c5d4f18 PreferredDERP:999 DERPLatency:map[999-v4:0.023000846] DERPForcedWebsocket:map[] Addresses:[fd7a:115c:a1e0:4270:b41f:f439:6ddb:fe51/128 fd7a:115c:a1e0:49d6:b259:b7ac:b1b2:48f4/128] AllowedIPs:[fd7a:115c:a1e0:4270:b41f:f439:6ddb:fe51/128 fd7a:115c:a1e0:49d6:b259:b7ac:b1b2:48f4/128] Endpoints:[167.235.129.2:57958 192.168.176.5:57958]}\"\r\n2023-08-25 14:16:07.202 [debu] net.tailnet.net.wgengine: derphttp.Client.Recv: connecting to derp-999 (coder)\r\n2023-08-25 14:16:07.268 [debu] net.tailnet.net.wgengine: magicsock: [0xc0003c32c0] derp.Recv(derp-999): derp.Recv: unexpectedly large frame of 1414811695 bytes returned\r\n2023-08-25 14:16:07.268 [debu] net.tailnet.net.wgengine: derp-999: [v1] backoff: 4659 msec\r\n2023-08-25 14:16:07.306 [debu] net.tailnet.net.wgengine: netcheck: netcheck.runProbe: got STUN response for 1001stun0 from 167.235.129.2:57958 (5ebfbbea8624a955074f5a09) in 36.667137ms\r\n2023-08-25 14:16:07.328 [debu] net.tailnet.net.wgengine: netcheck: netcheck.runProbe: got STUN response for 1002stun0 from 167.235.129.2:57958 (b23e39419eeceb4b133924f2) in 59.409467ms\r\n2023-08-25 14:16:07.503 [debu] net.tailnet.net.wgengine: netcheck: [v1] measuring ICMP latency of coder (999): no address for node 999b\r\n2023-08-25 14:16:07.569 [debu] net.tailnet.net.wgengine: netcheck: [v1] report: udp=true v6=false v6os=false mapvarydest=false hair= portmap= v4a=167.235.129.2:57958 derp=999 derpdist=999v4:23ms\r\n2023-08-25 14:16:07.570 [debu] net.tailnet: netinfo callback netinfo=\"NetInfo{varies=false hairpin= ipv6=false ipv6os=false udp=true icmpv4=false derp=#999 portmap= link=\\\"\\\"}\"\r\n2023-08-25 14:16:07.570 [debu] net.tailnet: sending node node=\"&{ID:nodeid:4be00bc6922401af AsOf:2023-08-25 14:16:07.570705 +0000 UTC Key:nodekey:30b321849632e6672891c1696bf0ac5dd4785b8f4bc8b80fe26a54f5e64d7b63 DiscoKey:discokey:4d5786f5d6f02e50372f6dc0da59bd31874763f61a76d68ff40458721c5d4f18 PreferredDERP:999 DERPLatency:map[999-v4:0.023359301] DERPForcedWebsocket:map[] Addresses:[fd7a:115c:a1e0:4270:b41f:f439:6ddb:fe51/128 fd7a:115c:a1e0:49d6:b259:b7ac:b1b2:48f4/128] AllowedIPs:[fd7a:115c:a1e0:4270:b41f:f439:6ddb:fe51/128 fd7a:115c:a1e0:49d6:b259:b7ac:b1b2:48f4/128] Endpoints:[167.235.129.2:57958 192.168.176.5:57958]}\"\r\n```\r\n\r\nIs maybe this error `unexpectedly large frame of 1414811695 bytes returned` causing any issues?\r\n\r\nThe workspace itself is created via this template:\r\n```terraform\r\nresource \"docker_container\" \"workspace\" {\r\n count = data.coder_workspace.me.start_count\r\n image = docker_image.workspace.image_id\r\n # Uses lower() to avoid Docker restriction on container names.\r\n name = \"${data.coder_parameter.namespace.value}-${data.coder_workspace.me.owner}-${lower(data.coder_workspace.me.name)}-workspace\"\r\n hostname = lower(data.coder_workspace.me.name)\r\n dns = [\"1.1.1.1\"]\r\n memory = 10000\r\n memory_swap = -1\r\n # Use the docker gateway if the access URL is 127.0.0.1\r\n command = [\"sh\", \"-c\", replace(coder_agent.workspace.init_script, \"/localhost|127\\\\.0\\\\.0\\\\.1/\", \"host.docker.internal\")]\r\n env = [\r\n \"CODER_AGENT_TOKEN=${coder_agent.workspace.token}\"\r\n ]\r\n host {\r\n host = \"host.docker.internal\"\r\n ip = \"host-gateway\"\r\n }\r\n volumes {\r\n container_path = \"/home/coder/\"\r\n volume_name = docker_volume.home.name\r\n read_only = false\r\n }\r\n networks_advanced {\r\n name = docker_network.internal.name\r\n }\r\n host {\r\n host = \"${data.coder_parameter.workspace_host.value}\"\r\n ip = \"127.0.0.1\"\r\n }\r\n restart = \"unless-stopped\"\r\n}\r\n```\r\n\r\nHas anything changed during recent updates which could cause this misbehaviour? Thanks a lot for your feedback!","author":{"url":"https://github.com/jaulz","@type":"Person","name":"jaulz"},"datePublished":"2023-08-25T14:21:17Z","url":"https://github.com/coder/coder/issues/9337"}
| 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:81893793-f71e-d7da-6f2d-6768e9952ddc |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DEA0:3C21B:2053C73:294949F:6B015F43 |
| html-safe-nonce | 0d85831ed56528240dae0e2576c7332e9bbe96aa4da8571bee50fd4f2b7abec3 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERUEwOjNDMjFCOjIwNTNDNzM6Mjk0OTQ5Rjo2QjAxNUY0MyIsInZpc2l0b3JfaWQiOiI4MjMyNDQwOTYzNjg4MTI4MzIzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 4c51ec3106230797e17de1d2828fee81142e4011655eea9c06b964ced58346d1 |
| hovercard-subject-tag | issue:1867148072 |
| 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/coder/9337/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a2b1a0244698a6d0006356aa90b6bea12a3b599e18d35e74a6872d15d08abd9d/coder/coder/issues/9337 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a2b1a0244698a6d0006356aa90b6bea12a3b599e18d35e74a6872d15d08abd9d/coder/coder/issues/9337 |
| og:image:alt | From one day to the other I cannot connect to my workspace via SSH anymore. I can SSH into other containers but my main workspace is not connecting. I downgraded, rebooted the whole instance, resta... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jaulz |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/coder/coder git https://github.com/coder/coder.git |
| octolytics-dimension-user_id | 95932066 |
| octolytics-dimension-user_login | coder |
| octolytics-dimension-repository_id | 440752086 |
| octolytics-dimension-repository_nwo | coder/coder |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 440752086 |
| octolytics-dimension-repository_network_root_nwo | coder/coder |
| 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