I’m seeing those logs where a worker is being shut...
# ask-ai
c
I’m seeing those logs where a worker is being shutdown right after being spun up. What could be causing this?
t
Thanks for reaching out, Guillaume. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
It looks like the log message "Shutting down user disabled instance" indicates that the worker shutdown was probably triggered by an external action, such as an administrative configuration change or an orchestration system stepping in. Let’s walk through some possible reasons and helpful steps to investigate: • Orchestration Systems: It’s a good idea to check if platforms like Kubernetes or Docker might be stopping the worker due to health check issues or scaling decisions. • Configuration Issues: Please double-check that all necessary credentials (like
apiKey
,
apiSecret
,
wsURL
) are correctly set. Sometimes missing or incorrect credentials can prevent the worker from registering properly and cause it to shut down. • Worker Token: If you’re using a
workerToken
, make sure it matches your deployment setup, as it can lead to specific cloud-managed behaviors. • Load Threshold: Take a look to ensure the worker’s internal load isn’t exceeding the configured
loadThreshold
, which is usually set to 0.7 in production. • Health Checks: It’s also helpful to verify that the worker’s HTTP health check endpoint is accessible and returning a healthy status. Going through these steps should help uncover what’s causing the shutdown. Please don’t hesitate to reach out if you’d like a hand with any of these checks—I’m here to help! Sources: agents/src/worker.ts | Distributed Setup | LiveKit docs | livekit-protocol/src/livekit.rs | examples/voice_agents/session_close_callback.py