Hello! We have implemented an agent that runs cor...
# cloud
b
Hello! We have implemented an agent that runs correctly in our local environment; however, after deploying it to the LiveKit service, it does not answer calls from the Playground. To isolate the issue, I created a minimal entry with only the basic setup required to start the agent. entry: async (ctx) => { console.log("ENTRY: start", { jobId: ctx.job.id, room: ctx.job.room?.name }); try { console.log("ENTRY: calling ctx.connect()"); await ctx.connect(); console.log("ENTRY: connected", { room: ctx.room.name, me: ctx.room.localParticipant?.identity }); } catch (e) { console.error("ENTRY: ctx.connect FAILED", e?.stack ?? e); throw e; } try { await ctx.room.localParticipant?.sendText("✅ conectado (debug)"); console.log("ENTRY: sendText ok"); } catch (e) { console.error("ENTRY: sendText FAILED", e?.stack ?? e); throw e; } await new Promise(() => { }); } After deploying this minimal version to LiveKit, the agent still does not respond when invoked from the Playground. The only information we get is from the service logs, which show the following output: Using project [citas] Using agent [CA_p6oU57CskwMG]
livekit-test@1.0.0 start /app
node --unhandled-rejections=strict --trace-warnings agent.js start --log-level=debug
[dotenv@17.2.4] injecting env (0) from .env.local -- tip: ✅ audit secrets and track compliance: https://dotenvx.com/ops Starting LiveKit worker with agentName="Citas" {"level":40,"time":1771261655553,"pid":69,"hostname":"deployment-p-41r151fyt6v-ca-p6ou57cskwmg-754dd45fbb-h6wng","version":"0.1.0","msg":"custom loadThreshold is not supported when deploying to Cloud, using defaults"} {"level":20,"time":1771261656737,"pid":104,"hostname":"deployment-p-41r151fyt6v-ca-p6ou57cskwmg-754dd45fbb-h6wng","pid":104,"runner":"lk_end_of_utterance_en","msg":"initializing inference runner"} {"level":20,"time":1771261656737,"pid":104,"hostname":"deployment-p-41r151fyt6v-ca-p6ou57cskwmg-754dd45fbb-h6wng","pid":104,"runner":"lk_end_of_utterance_multilingual","msg":"initializing inference runner"} {"level":20,"time":1771261656738,"pid":104,"hostname":"deployment-p-41r151fyt6v-ca-p6ou57cskwmg-754dd45fbb-h6wng","repoId":"livekit/turn-detector","path":"onnx/model_q8.onnx","revision":"v1.2.2-en","msg":"Local file only mode - checking cache"} {"level":20,"time":1771261656738,"pid":104,"hostname":"deployment-p-41r151fyt6v-ca-p6ou57cskwmg-754dd45fbb-h6wng","repoId":"livekit/turn-detector","path":"onnx/model_q8.onnx","revision":"v0.4.1-intl","msg":"Local file only mode - checking cache"} {"level":20,"time":1771261656740,"pid":104,"hostname":"deployment-p-41r151fyt6v-ca-p6ou57cskwmg-754dd45fbb-h6wng","resolvedPath":"/root/.cache/huggingface/hub/models--livekit--turn-detector/snapshots/87e35fcb1e60a569bea70346191c4886ea92e281/onnx/model_q8.onnx","resolvedHash":"87e35fcb1e60a569bea70346191c4886ea92e281","msg":"File found in cache (via refs)"} {"level":20,"time":1771261658612,"pid":104,"hostname":"deployment-p-41r151fyt6v-ca-p6ou57cskwmg-754dd45fbb-h6wng","resolvedPath":"/root/.cache/huggingface/hub/models--livekit--turn-detector/snapshots/ebcab0c09c2b62d926e92180d364df3aaae68a09/onnx/model_q8.onnx","resolvedHash":"ebcab0c09c2b62d926e92180d364df3aaae68a09","msg":"File found in cache (via refs)"} {"level":20,"time":1771261659303,"pid":104,"hostname":"deployment-p-41r151fyt6v-ca-p6ou57cskwmg-754dd45fbb-h6wng","pid":104,"msg":"all inference runners initialized"} {"level":30,"time":1771261659304,"pid":69,"hostname":"deployment-p-41r151fyt6v-ca-p6ou57cskwmg-754dd45fbb-h6wng","version":"0.1.0","msg":"starting worker"} {"level":30,"time":1771261659347,"pid":69,"hostname":"deployment-p-41r151fyt6v-ca-p6ou57cskwmg-754dd45fbb-h6wng","msg":"Server is listening on port 8081"} {"level":20,"time":1771261659413,"pid":69,"hostname":"deployment-p-41r151fyt6v-ca-p6ou57cskwmg-754dd45fbb-h6wng","version":"0.1.0","msg":"connected to LiveKit server"} {"level":30,"time":1771261659417,"pid":69,"hostname":"deployment-p-41r151fyt6v-ca-p6ou57cskwmg-754dd45fbb-h6wng","version":"0.1.0","id":"CAW_Qs9vCm24HZCz","server_info":{"edition":"Cloud","version":"1.9.11","protocol":16,"region":"Germany 2","nodeId":"NC_OFRANKFURT1B_9PXpbS5D55ok","debugInfo":"","agentProtocol":0},"msg":"registered worker"} [dotenv@17.2.4] injecting env (0) from .env.local -- tip: 👥 sync secrets across teammates & machines: https://dotenvx.com/ops {"level":20,"time":1771261660761,"pid":150,"hostname":"deployment-p-41r151fyt6v-ca-p6ou57cskwmg-754dd45fbb-h6wng","pid":150,"msg":"initializing job runner"} {"level":20,"time":1771261660841,"pid":150,"hostname":"deployment-p-41r151fyt6v-ca-p6ou57cskwmg-754dd45fbb-h6wng","pid":150,"msg":"job runner initialized"} [dotenv@17.2.4] injecting env (0) from .env.local -- tip: ⚙️ specify custom .env file path with { path: '/custom/path/.env' } {"level":20,"time":1771261662154,"pid":196,"hostname":"deployment-p-41r151fyt6v-ca-p6ou57cskwmg-754dd45fbb-h6wng","pid":196,"msg":"initializing job runner"} {"level":20,"time":1771261662224,"pid":196,"hostname":"deployment-p-41r151fyt6v-ca-p6ou57cskwmg-754dd45fbb-h6wng","pid":196,"msg":"job runner initialized"} [dotenv@17.2.4] injecting env (0) from .env.local -- tip: ⚙️ specify custom .env file path with { path: '/custom/path/.env' } {"level":20,"time":1771261663571,"pid":226,"hostname":"deployment-p-41r151fyt6v-ca-p6ou57cskwmg-754dd45fbb-h6wng","pid":226,"msg":"initializing job runner"} {"level":20,"time":1771261663662,"pid":226,"hostname":"deployment-p-41r151fyt6v-ca-p6ou57cskwmg-754dd45fbb-h6wng","pid":226,"msg":"job runner initialized"} Has anyone experienced something similar? Do you have any idea what could be causing this?