Hey team :wave: I've been running a deployed agent...
# agents
e
Hey team šŸ‘‹ I've been running a deployed agent on LiveKit Cloud for several months without issues. About 2–3 weeks ago it stopped working completely, and after extensive debugging I can confirm it's not a code or config problem. Details: Agent ID:
CA_kdH3VYVKtzsr
Project ID:
p_5wnpagm7zno
Region:
us-east
Plan: Build (free) Agent: Python SDK
livekit-agents==1.5.1
, explicit dispatch with
agent_name="outbound-caller"
• Dispatched from: .NET backend via
AgentDispatchServiceClient
What's happening: 1.
lk agent status
always shows
Sleeping
with
CPU: 0m
,
Mem: 0
AgentDispatchServiceClient.CreateDispatch()
returns a valid
AD_
ID with no errors 1. The agent never joins the room — dispatch is orphaned
lk agent restart
returns "Restarted" but status stays
Sleeping
immediately after Runtime logs are inaccessible: "The agent has shut down due to inactivity. It will automatically start again when a new session begins." — but it never does 1. Build logs are completely clean — all 9 Docker steps succeed, no errors Confirmed NOT the issue: āœ… All secrets present and valid (
OPENAI_API_KEY
,
DEEPGRAM_API_KEY
,
ASSEMBLYAI_API_KEY
,
SIP_OUTBOUND_TRUNK_ID
, AWS keys) āœ… `LIVEKIT_URL`/`API_KEY`/`SECRET` are project-level — not needed in secrets āœ… Free plan quota not exceeded āœ… Room stays open for several minutes after dispatch (not an
emptyTimeout
issue) • āœ… Dispatch API works correctly — valid
AD_
IDs returned every time Self-hosted works perfectly: When I run the exact same agent code locally with
python agent.py dev
pointing to the same LiveKit Cloud project, it works flawlessly — registers as a worker, receives the dispatch, joins the room, completes the full session including DTMF, STT, TTS, S3 upload. Zero issues. So the code is correct. The cloud deployment of the same code is broken. My conclusion: The deployment
CA_kdH3VYVKtzsr
appears stuck in a broken infrastructure state where the cold start mechanism silently fails — the container is triggered to wake up on dispatch but never actually boots, never registers as a worker, and the pending dispatch expires with nobody to claim it. This started happening ~2–3 weeks ago with no changes on my end. Questions: 1. Can you investigate what's happening with this specific deployment on your infrastructure? 2. Is there a known issue with cold start + explicit dispatch on the Build plan recently? 3. Would deleting and redeploying fix this, or is it a broader platform issue? Thanks šŸ™
t
Hi Abhishek, āš ļø This channel will be deleted soon āš ļø Please use our new community at https://community.livekit.io for technical discussions and to post technical questions. The Slack community is not going away, but we are migrating technical questions to our new forum. Please see full details here.
p
When I've had a similar problem, I discovered that clients were connecting to the agent running on my localhost rather than LiveKit Cloud, as determined by my logs. Assuming you dialed up the logging and
lk agent tail
it? Also try
lk agent deploy
to see if that resets things.