You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
During scaletesting where the coder server was under heavy load from multiple agents and API responses very slow, we observed the following nil pointer dereference:
❯ coder ssh scaletest/runner==> ⧗ The workspace agent lost connection2023-09-27 10:49:47.956Z Wait for it to reconnect or restart your workspace.2023-09-27 10:49:47.956Z For more information and troubleshooting, see https://coder.com/docs/v2/latest/templates#agent-connection-issues and https://coder.com/docs/coder-oss/latest/templates#troubleshooting-templatespanic: runtime error: invalid memory address or nil pointer dereference[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x12ef680]goroutine 1 [running]:github.com/coder/coder/v2/cli/cliui.Agent({0x1c60878?, 0xc00070d1d0?}, {0x1c51540?, 0xc000130010}, {0x62, 0xf6, 0x9c, 0x9a, 0xd8, 0xac, ...}, ...) /home/runner/actions-runner/_work/coder/coder/cli/cliui/agent.go:233 +0xb00github.com/coder/coder/v2/cli.(*RootCmd).ssh.func1(0xc0003b1e00) /home/runner/actions-runner/_work/coder/coder/cli/ssh.go:186 +0x113egithub.com/coder/coder/v2/cli.(*RootCmd).Command.func6.1(0xc0001c36c0?) /home/runner/actions-runner/_work/coder/coder/cli/root.go:277 +0xd1github.com/coder/coder/v2/cli.(*RootCmd).initClientInternal.func1.1(0xc0003b1e00) /home/runner/actions-runner/_work/coder/coder/cli/root.go:596 +0x882github.com/coder/coder/v2/cli/clibase.RequireRangeArgs.func1.1(0x0?) /home/runner/actions-runner/_work/coder/coder/cli/clibase/cmd.go:574 +0x362github.com/coder/coder/v2/cli/clibase.(*Invocation).run(0xc0003b1e00, 0xc0002ade00) /home/runner/actions-runner/_work/coder/coder/cli/clibase/cmd.go:388 +0x10b2github.com/coder/coder/v2/cli/clibase.(*Invocation).run(0xc0003b1b00, 0xc0002ade00) /home/runner/actions-runner/_work/coder/coder/cli/clibase/cmd.go:325 +0xb5egithub.com/coder/coder/v2/cli/clibase.(*Invocation).Run(0xc0002adeb8?) /home/runner/actions-runner/_work/coder/coder/cli/clibase/cmd.go:478 +0xe5github.com/coder/coder/v2/cli.(*RootCmd).RunMain(0xc000547e30?, {0xc00053ae00, 0x25, 0x40}) /home/runner/actions-runner/_work/coder/coder/cli/root.go:134 +0x1a5main.main() /home/runner/actions-runner/_work/coder/coder/enterprise/cmd/coder/main.go:11 +0x45
The coder client version used was the latest (at the time of writing): v2.1.5+66019ef
mafredri
changed the title
coder ssh nil pointer dereference under heavy load or agent disconnected
coder ssh nil pointer dereference under heavy load / agent disconnected
Sep 27, 2023
During scaletesting where the coder server was under heavy load from multiple agents and API responses very slow, we observed the following nil pointer dereference:
The coder client version used was the latest (at the time of writing):
v2.1.5+66019ef
The nil pointer deref happens at:
coder/cli/cliui/agent.go
Line 245 in c67db6e
This suggests last connected or disconnected may be nil.
The text was updated successfully, but these errors were encountered: