Creating new agent Using secrets file [.env] panic...
# agents
f
Creating new agent Using secrets file [.env] panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x2 addr=0x8 pc=0x1037ad524] goroutine 1 [running]: main.getClientSettings({0x104fea578, 0x14000320870}, 0x0) github.com/livekit/livekit-cli/v2/cmd/lk/agent.go:1185 +0x1a4 main.createAgent({0x104fea578, 0x14000320870}, 0x105e4e520) github.com/livekit/livekit-cli/v2/cmd/lk/agent.go:375 +0x650 github.com/urfave/cli/v3.(*Command).run(0x105e4e520, {0x104fea578, 0x14000320870}, {0x140004eb000, 0x1, 0x1}) github.com/urfave/cli/v3@v3.3.8/command_run.go:340 +0x1cf0 github.com/urfave/cli/v3.(*Command).run(0x105e4e2a0, {0x104fea578, 0x14000320750}, {0x1400048d6c0, 0x2, 0x2}) github.com/urfave/cli/v3@v3.3.8/command_run.go:278 +0x1758 github.com/urfave/cli/v3.(*Command).run(0x14000037188, {0x104fea578, 0x140006880f0}, {0x14000196330, 0x3, 0x3}) github.com/urfave/cli/v3@v3.3.8/command_run.go:278 +0x1758 github.com/urfave/cli/v3.(*Command).Run(...) github.com/urfave/cli/v3@v3.3.8/command_run.go:94 main.main() github.com/livekit/livekit-cli/v2/cmd/lk/main.go:90 +0xcdc
r
Do you see LiveKit credentials (
LIVEKIT_URL
,
LIVEKIT_API_KEY
,
LIVEKIT_API_SECRET
) in your
.env
file
@loud-breakfast-60455 Have you seen this before or have any ideas what might cause it?
l
No, could you try running
lk --version
?
And could you share the exact command you ran?
e
this looks like an issue with some of the older versions of lk cli, please upgrade to the latest lk cli release. we'll add a fix that should solve the panic for these older versions, but lk-cli will still just ask you to upgrade at that point.