getting this error when running lk load-test: 2025...
# ask-ai
g
getting this error when running lk load-test: 2025-11-28T115638.768Z ERROR livekit service/signal.go:186 could not handle new participant {"room": "load-test", "participant": "tzqhh_pub_28", "connID": "CO_xXMQyeu3GGCE", "error": "could not restart participant", "errorVerbose": "could not restart participant\ngithub.com/livekit/livekit-server/pkg/service.(*RoomManager).StartSession\n\t/workspace/pkg/service/roommanager.go:398\ngithub.com/livekit/livekit-server/pkg/service.(*defaultSessionHandler).HandleSession\n\t/workspace/pkg/service/signal.go:115\ngithub.com/livekit/livekit-server/pkg/service.(*signalService).RelaySignal\n\t/workspace/pkg/service/signal.go:183\ngithub.com/livekit/psrpc/pkg/server.(*streamHandler[...]).handleOpenRequest\n\t/go/pkg/mod/github.com/livekit/psrpc@v0.7.0/pkg/server/stream.go:202\ngithub.com/livekit/psrpc/pkg/server.(*streamHandler[...]).handleRequest.func1\n\t/go/pkg/mod/github.com/livekit/psrpc@v0.7.0/pkg/server/stream.go141\nruntime.goexit\n\t/usr/local/go/src/runtime/asm amd64.s1693"} github.com/livekit/livekit-server/pkg/service.(*signalService).RelaySignal /workspace/pkg/service/signal.go:186 github.com/livekit/psrpc/pkg/server.(*streamHandler[...]).handleOpenRequest /go/pkg/mod/github.com/livekit/psrpc@v0.7.0/pkg/server/stream.go:202 github.com/livekit/psrpc/pkg/server.(*streamHandler[...]).handleRequest.func1 /go/pkg/mod/github.com/livekit/psrpc@v0.7.0/pkg/server/stream.go:141
t
Thanks for reaching out, Harsh. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Thanks — you're hitting the "could not restart participant" error from the server when running
lk load-test
. I can help diagnose it, but I need a few details to narrow the cause. Please provide: 1. LiveKit server version (output of
livekit-server --version
or image tag). 2. Exact
lk load-test
command/flags you used and number of simulated participants. 3. Server environment: CPU cores, memory, and whether you're running single-instance or scaled (k8s, Docker, bare metal). 4. Any recent config changes (turns on/off SFU features, participant limits, auth changes). 5. A fuller server log around the error (30–60s before/after) if available. 6. Does the error happen immediately for every participant or intermittently under higher load? With those I’ll suggest targeted checks (resource limits, session restart failures, race conditions) and next steps to reproduce or mitigate. Sources: Call forwarding | LiveKit docs
g
lk load-test \ --url <YOUR-SERVER-URL> \ --api-key <YOUR-KEY> \ --api-secret <YOUR-SECRET> \ --room load-test \ --video-publishers 150 \ --subscribers 150 running on 4vcpu
t
Thanks — helpful details. You're running 150 publishers + 150 subscribers from a 4 vCPU server, and seeing "could not restart participant." That points at either resource limits or identity/session conflicts. A few quick checks to narrow it down: Please share: • LiveKit server version (output of
livekit-server --version
or your image tag). • Are you re-using the same room name across test runs (yes/no)? If yes, try a unique room name for this run. • Did you run a previous load-test that may have left participants connected? • A 30–60s excerpt of server logs around the error (showing any
DUPLICATE_IDENTITY
, WebSocket/ICE, or connection error lines). • Does the error happen immediately for all simulated participants or only under higher concurrency? If you want an immediate experiment: reduce the test to 50 publishers + 50 subscribers or run the same test but on a machine with more CPU (e.g., 16 cores) to see whether the error disappears — that will quickly indicate if it's CPU/resource related. Sources: Benchmarking | LiveKit docs | livekit/livekit_composite | DeepWiki | Server-side | livekit/livekit_composite | DeepWiki | Going beyond a single-core | Connecting to LiveKit | LiveKit docs