square-activity-46232
12/15/2025, 8:54 PM2025-12-15 20:25:34,322 - ai-server - INFO - Starting AI in DEV mode
{"level": "INFO", "name": "livekit.agents", "message": "starting worker", "version": "1.3.6", "rtc-version": "1.0.20", "timestamp": "2025-12-15T20:25:37.463740+00:00"}
{"level": "INFO", "name": "livekit.agents", "message": "preloading plugins", "packages": ["livekit.plugins.silero", "livekit.plugins.openai", "livekit.plugins.deepgram", "livekit.plugins.cartesia", "livekit.plugins.turn_detector", "av"], "timestamp": "2025-12-15T20:25:37.464001+00:00"}
{"level": "INFO", "name": "livekit.agents", "message": "starting inference executor", "timestamp": "2025-12-15T20:25:37.491301+00:00"}
{"level": "INFO", "name": "livekit.agents", "message": "initializing process", "pid": 27, "inference": true, "timestamp": "2025-12-15T20:25:40.963724+00:00"}
{"level": "INFO", "name": "livekit.agents", "message": "process initialized", "pid": 27, "inference": true, "elapsed_time": 6.75, "timestamp": "2025-12-15T20:25:47.710531+00:00"}
{"level": "INFO", "name": "livekit.agents", "message": "HTTP server listening on :8081", "timestamp": "2025-12-15T20:25:47.713294+00:00"}
{"level": "INFO", "name": "livekit.agents", "message": "initializing process", "pid": 30, "timestamp": "2025-12-15T20:25:47.720787+00:00"}
{"level": "INFO", "name": "livekit.agents", "message": "process initialized", "pid": 30, "elapsed_time": 0.22, "timestamp": "2025-12-15T20:25:47.943491+00:00"}
{"level": "INFO", "name": "livekit.agents", "message": "registered worker", "agent_name": "", "id": "AW_vEpvQ2324sZw", "url": "<wss://demo-re02a3bf.livekit.cloud>", "region": "US West B", "protocol": 16, "timestamp": "2025-12-15T20:25:48.027801+00:00"}
When I try to connect from my local client using the same keys and url, the worker never receives the jobs.
If I run the worker locally (with the same keys and url) the client is able to connect to it.
Am I missing something?tall-airline-16756
12/15/2025, 8:54 PMtall-airline-16756
12/15/2025, 8:55 PM"agent_name": "". Jobs are routed by agent name; a blank name will prevent dispatch. Redeploy the worker with a non-empty agent_name (e.g., voice-assistant) in your Worker/WorkerOptions config and verify the registration log shows that name.
2) Verify the room/token requests that agent_name
• Ensure the room configuration or access token used by your client requests dispatch for the same agent_name. If dispatch rules don't include that name, the worker won't get jobs.
If you want, after updating the agent_name please share:
• The new registration log line showing "agent_name": "...".
• The client-side token/room config (redact secrets) or the exact code where you set room agents.
Optional additional checks (only if the above doesn't fix it):
• Confirm no outbound/firewall restrictions on your GCP instance that might block media ports or TURN (see LiveKit ports and firewall). Your logs show the worker can reach the LiveKit server, so this is less likely but worth verifying if dispatch still fails.
Which would you like to try first — set agent_name and redeploy, or share your token/room config so I can check dispatch settings?
Sources: Agents Framework | livekit/livekit_composite | DeepWiki | Ports and firewall | LiveKit docssquare-activity-46232
12/15/2025, 9:01 PM{"message": "job runner initialized", "level": "INFO", "name": "livekit.agents", "tid": 31544, "elapsed_time": 1.32, "timestamp": "2025-12-15T20:33:49.406541+00:00"}
{"message": "registered worker", "level": "INFO", "name": "livekit.agents", "id": "AW_hemuc7A3rWwu", "url": "<wss://demo-re02a3bf.livekit.cloud>", "region": "Brazil", "protocol": 16, "timestamp": "2025-12-15T20:33:49.674790+00:00"}
{"message": "worker is at full capacity, marking as unavailable", "level": "INFO", "name": "livekit.agents", "load": 0.9130000000000003, "threshold": "_WorkerEnvOption(dev_default=inf, prod_default=0.75)", "timestamp": "2025-12-15T20:34:22.323854+00:00"}
{"message": "worker is below capacity, marking as available", "level": "INFO", "name": "livekit.agents", "load": 0.28500000000000025, "threshold": "_WorkerEnvOption(dev_default=inf, prod_default=0.75)", "timestamp": "2025-12-15T20:34:24.830251+00:00"}
{"message": "received job request", "level": "INFO", "name": "livekit.agents", "job_id": "AJ_awtst3hmfCYp", "dispatch_id": "AD_5ZgkFwgC24Bu", "room_name": "voice_assistant_room_2851_72dbf1f216ce5dfafa0e76ee2cbd031638a4c1209d06628d1630beaac12ec27e", "agent_name": "", "resuming": false, "timestamp": "2025-12-15T20:34:25.676662+00:00"}
{"message": "connecting to room voice_assistant_room_2851_72dbf1f216ce5dfafa0e76ee2cbd031638a4c1209d06628d1630beaac12ec27e", "level": "INFO", "name": "voice-agent", "timestamp": "2025-12-15T20:34:25.732122+00:00"}tall-airline-16756
12/15/2025, 9:02 PMagent_name but still receives jobs, while the GCP-deployed worker registers but doesn't. I’ll help narrow this down.
Quick diagnostic steps — please check and share the first item you can:
1. How you create the room / token
◦ Paste (redact keys) the code or JSON you use to create the access token or room config, especially any RoomAgentDispatch/agents fields.
1. Environment mode and agent options on GCP vs local
◦ Are you running the deployed worker with the same env vars and flags as locally (e.g., LIVEKIT_ENV=dev vs prod)? Share the worker start command or relevant env vars.
1. Recent worker logs around capacity/availability on GCP
◦ You previously saw messages about “worker is at full capacity, marking as unavailable” locally. Do the GCP logs show similar capacity/availability transitions after registration?
1. Dispatch behavior you expect
◦ Do you expect automatic dispatch (any agent) or explicit dispatch to a named agent? If the latter, are you setting agent_name in the room/token?
What I’ll look for after you share any of the above:
• If tokens/room config request explicit agent dispatch that doesn't match the deployed worker, that explains no jobs.
• If GCP is running in prod mode or hitting the load threshold, the worker may mark unavailable even though it registered.
• If tokens use automatic dispatch, we’ll check why the GCP worker is marked unavailable or filtered by region/other rules.
Which of the four items can you provide first?
Sources: Agent dispatch | LiveKit docs | Agent server options | LiveKit docs | Still Have Questionssquare-activity-46232
12/15/2025, 9:03 PMtall-airline-16756
12/15/2025, 9:04 PMsquare-activity-46232
12/15/2025, 9:08 PM<wss://cloudx-demo-re02a3bf.livekit.cloud> . Where can I check the region of my livekit cloud?tall-airline-16756
12/15/2025, 9:08 PM<wss://cloudx-demo-re02a3bf.livekit.cloud> — the re02a3bf portion indicates the project is in the US East B region.
Ways to confirm:
• Project page in the LiveKit Cloud dashboard (Project Settings shows region and server URL).
• LiveKit CLI: lk project list to view configured projects and their URLs.
Next checks to resolve dispatch issues:
• Confirm your GCP instance region (you said us-west4) — if it differs from US East B, region affinity may route jobs elsewhere.
• Ensure LIVEKIT_URL, API key and secret used by the worker match that project.
• Check GCP worker logs for any availability transitions (e.g., marked unavailable due to load) after registration.
If you want, share the GCP region and a redacted copy of the token/room creation code and I’ll check dispatch alignment.
Sources: SIP cloud and region pinning | LiveKit docs | LiveKit CLI project management | LiveKit docs | Deploying to production | LiveKit Docs