Hi Team, I am trying to deploy an agent to livekit...
# cloud
a
Hi Team, I am trying to deploy an agent to livekit cloud, it is not letting set LIVEKIT_* env using update-secrets. I was told It is set by the system. However I am getting following error. api_key is required, or add LIVEKIT_API_KEY in your environment
e
hello, can you send me your project id? also where are you seeing this error?
🙏 1
a
Using project [preporadev] Using agent [CA_pvjH7w6KNUsT]
File "/home/appuser/.venv/lib/python3.11/site-packages/livekit/agents/worker.py", line 267, in init raise ValueError("api_key is required, or add LIVEKIT_API_KEY in your environment") ValueError: api_key is required, or add LIVEKIT_API_KEY in your environment
e
thanks, taking a look
curious if you ran an
lk agent update-secrets
command with the
--overwrite
flag set?
a
Yes
e
ah yeah, that's a bug on our end. we'll have a fix out for that within a day or two.
a
How do I reset it?
e
in the meantime can you delete this agent and recreate? that will solve the issue for now
a
Thank you @echoing-kitchen-90064!
Update me here if you can when it is fixed.
e
no problem, and will do! 🙏
a
agent create command with secret file should work right?
e
yep, it's just the
overwrite
flag that has the bug
the fix for this issues has been deployed
a
Thanks @echoing-kitchen-90064