-
Notifications
You must be signed in to change notification settings - Fork 875
bug: coder show <workspace name> returns a
panic: runtime error: invalid memory address or nil pointer dereference`
#4315
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Facing a segfault (maybe a related error?), I am on View logs2022-10-30 16:45:17.817 [INFO] (coderd.tailnet) <./tailnet/conn.go:456> (*Conn).sendNode.func1 sending node {"node": {"id": 7225411017662463757, "as_of": "2022-10-31T00:45:17.817071903+08:00", "key": "nodekey:c8851329075acb7ca561df58792916b85202be1c0462b1cf9811cde8da2bfe5d", "disco": "discokey:926c8cf04290d166a69e41d7c854b8c10bd35bc238c2dcaf87d9e6e640401761", "preferred_derp": 999, "derp_latency": {"999-v4": 0.004041021}, "addresses": ["fd7a:115c:a1e0:451e:9928:80aa:773:aac8/128"], "allowed_ips": ["fd7a:115c:a1e0:451e:9928:80aa:773:aac8/128"], "endpoints": ["redacted:43765", "172.17.0.1:43765"]}} 2022-10-30 16:45:24.288 [DEBUG] (coderd) <./coderd/httpmw/logger.go:54> Logger.func1.1 GET {"host": "redacted", "path": "/api/v2/workspaceagents/7b20332c-21a6-41a5-bc54-977889500feb/pty", "proto": "HTTP/1.1", "remote_addr": "223.187.113.150", "took": "2h4m3.070873064s", "status_code": 101, "latency_ms": 7443070, "request_id": "539d1b89-41f1-4758-955f-a3f7e9afa3b7"} 2022-10-30 16:45:35.551 [DEBUG] (coderd.tailnet.wgengine) <./tailnet/conn.go:615> Logger.func1 [v1] magicsock: starting endpoint update (periodic) 2022-10-30 16:45:35.560 [DEBUG] (coderd.tailnet.wgengine) <./tailnet/conn.go:615> Logger.func1 netcheck: [v1] report: udp=true v6=false mapvarydest= hair=true portmap= v4a=redacted:43765 derp=999 derpdist=999v4:5ms 2022-10-30 16:45:36.141 [DEBUG] <./coderd/autobuild/executor/lifecycle_executor.go:75> (*Executor).Run.func1 run stats {"elapsed": "0s", "transitions": {}} 2022-10-30 16:45:36.256 [DEBUG] (coderd) <./enterprise/coderd/coderd.go:357> (*API).runEntitlementsLoop syncing licensed entitlements 2022-10-30 16:45:36.257 [DEBUG] (coderd) <./enterprise/coderd/coderd.go:365> (*API).runEntitlementsLoop synced licensed entitlements 2022-10-30 16:45:36.575 [DEBUG] (coderd) <./coderd/httpmw/logger.go:54> Logger.func1.1 GET {"host": "redacted", "path": "/api/v2/workspaces/be2a98a9-ccfd-4b01-a34f-e71584e49141/watch", "proto": "HTTP/1.1", "remote_addr": "223.187.113.150", "took": "2h7m26.976954557s", "status_code": 200, "latency_ms": 7646976, "request_id": "c6be72a5-a71e-4a19-ad18-c9325355ca54"} panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x18 pc=0x6831b6]goroutine 59825 [running]: |
Oofta, not good! Fixing now. |
@kylecarbs |
Version:
v0.9.1+27c8345
I want to see details about a workspace.
The CLI is also 0.9.1
When I type
coder show <workspace name>
e.g.,coder show admin/go
or frankly even an incorrect workspace name, I get this:The text was updated successfully, but these errors were encountered: