Hi, my agent is successfully deployed on LK cloud,...
# cloud
l
Hi, my agent is successfully deployed on LK cloud, the logs shows agent is running, but I can not connect my frontend with it, and I tried playground, but it also did not work. Agent logs show there is not any connection request at all. I check credentials, but got confused, is the agent using the same credentials as the project where it is in? The credentials I used locally tested are all good, connection goes smooth. What could be the problem. My appreciation! Here is the log: {“level”: “INFO”, “name”: “livekit.agents”, “message”: “starting worker”, “version”: “1.3.3", “rtc-version”: “1.0.19", “timestamp”: “2025-11-20T153725.810818+00:00"} {“level”: “INFO”, “name”: “livekit.agents”, “message”: “preloading plugins”, “packages”: [“livekit.plugins.openai”, “livekit.plugins.deepgram”, “livekit.plugins.silero”, “livekit.plugins.turn_detector”, “av”], “timestamp”: “2025-11-20T153725.811018+00:00"} {“level”: “INFO”, “name”: “livekit.agents”, “message”: “initializing process”, “pid”: 47, “timestamp”: “2025-11-20T153727.677012+00:00”} {“level”: “INFO”, “name”: “livekit.agents”, “message”: “initializing process”, “pid”: 50, “timestamp”: “2025-11-20T153727.695706+00:00"} {“level”: “INFO”, “name”: “livekit.agents”, “message”: “process initialized”, “pid”: 47, “elapsed_time”: 0.39, “timestamp”: “2025-11-20T153728.064016+00:00"} {“level”: “INFO”, “name”: “livekit.agents”, “message”: “process initialized”, “pid”: 50, “elapsed_time”: 0.39, “timestamp”: “2025-11-20T153728.081151+00:00"} {“level”: “INFO”, “name”: “livekit.agents”, “message”: “registered worker”, “agent_name”: “”, “id”:“CAW_tEewkx5twDq8", is it because the agent uses a different set of credentials, if so, how do i find such credentials, or is there any other way for the agent to connect with the frontend, such info can not be found in the doc, it only says this: LiveKit secrets LiveKit Cloud provides the following environment variables automatically, to ensure your agent connects to its associated LiveKit Cloud project: •
LIVEKIT_URL
- Your LiveKit Cloud server URL •
LIVEKIT_API_KEY
- An API key for your project •
LIVEKIT_API_SECRET
- An API secret for your project
r
Can you provide a session id that did not get an agent. It will start with
RM_
and can be found here https://cloud.livekit.io/projects/p_/sessions
l
Hi, Wilson, thank goodness you are here, yes, the session id is: RM_ZpHEHNqjSkcY
image.png
Wilson, when you are back, please give me some idea to fix, kind of desperate at the moment.
r
Did you notice this error in you agents build log?
Copy code
2025-11-21T13:22:13.313Z
ERROR [8/8] RUN python emma-001.py download-files
Traceback (most recent call last):
  File "/app/emma-001.py", line 153, in 
    from livekit.plugins import openai, deepgram,silero, noise_cancellation
ImportError: cannot import name 'noise_cancellation' from 'livekit.plugins' (unknown location)
I think there is an issue in your agents code
Fix that import and see if things start working for you.
l
Noice cancellation, yes, I already delete this import and deploy again, but still can not connect the frontend with it. Does the frontend connect with the deployed agent just like dev with url, apikey and secret?
r
yes, it should connect. So no more errors in the latest build log
Do you have a new session ID where agent did not join after you fixed that error?
l
RM_eme6KVBsshvN, this is the latest session id
I can connect my frontend(already deployed on vercel) pretty well with the agent in local, but when the agent is deployed, they can not be connected anymore.
👀 1
the first one says active, it is the one that i am at the moment using frontend to connect to, but the agent is not joining this room. RM_SngxEpK7yH5t
is this some bug that is not solved yet: https://github.com/livekit/agents-js/issues/290
r
Are you using unique room name right. I don't think ^ is a bug it is how it is designed
l
I have not use the room name anyways in the code, the deployment doc does not say anything about using room name here: https://docs.livekit.io/agents/ops/deployment/
How should I use room name in the code, the python backend and the front(i have ios and react app). Thanks Wilson, I have been tortured by this for a whole day, reading through every piece of the doc.
r
Sorry bouncing back and forth between a few issues. Do you have logs from your agent? Do you see any errors after the last update?
Can you try now?
l
Thanks Wil, problem solved, the culprit was that I had another agent under the same project. ❤️
👍🏼 1