Hey team, my agents are no longer working after de...
# cloud
c
Hey team, my agents are no longer working after deployment to cloud via CLI, can anyone help me on this issue?
e
what is the project or agent id?
c
CA_3bHGXPChH9AD
Agent Id ^
Project: voxology-ai
e
looks like it's a code issue, are you able to pull logs from the pod or get them sent to a log sink?
c
One second
We hadn't change any code, but it is working locally when we try
Copy code
Traceback (most recent call last):
  File "/app/main.py", line 17, in <module>
    from call.inbound import InboundAssistant
  File "/app/call/inbound.py", line 35, in <module>
    from tracing import setup_datadog_via_collector
  File "/app/tracing.py", line 18, in <module>
    from azure.monitor.opentelemetry import configure_azure_monitor
  File "/app/venv/lib/python3.13/site-packages/azure/monitor/opentelemetry/__init__.py", line 7, in <module>
    from azure.monitor.opentelemetry._configure import configure_azure_monitor
  File "/app/venv/lib/python3.13/site-packages/azure/monitor/opentelemetry/_configure.py", line 27, in <module>
    from azure.monitor.opentelemetry._constants import (
    ...<13 lines>...
    )
  File "/app/venv/lib/python3.13/site-packages/azure/monitor/opentelemetry/_constants.py", line 7, in <module>
    from azure.monitor.opentelemetry.exporter._constants import (  # pylint: disable=import-error,no-name-in-module
        _AZURE_MONITOR_DISTRO_VERSION_ARG,
    )
  File "/app/venv/lib/python3.13/site-packages/azure/monitor/opentelemetry/exporter/__init__.py", line 8, in <module>
    from azure.monitor.opentelemetry.exporter.export.metrics._exporter import AzureMonitorMetricExporter
  File "/app/venv/lib/python3.13/site-packages/azure/monitor/opentelemetry/exporter/export/metrics/_exporter.py", line 58, in <module>
    from azure.monitor.opentelemetry.exporter._performance_counters._constants import (
        _PERFORMANCE_COUNTER_METRIC_NAME_MAPPINGS
    )
  File "/app/venv/lib/python3.13/site-packages/azure/monitor/opentelemetry/exporter/_performance_counters/__init__.py", line 4, in <module>
    from azure.monitor.opentelemetry.exporter._performance_counters._manager import (
        enable_performance_counters,
    )
  File "/app/venv/lib/python3.13/site-packages/azure/monitor/opentelemetry/exporter/_performance_counters/_manager.py", line 52, in <module>
    _io_counters_initial = _PROCESS.io_counters()
  File "/app/venv/lib/python3.13/site-packages/psutil/__init__.py", line 837, in io_counters
    return self._proc.io_counters()
           ~~~~~~~~~~~~~~~~~~~~~~^^
  File "/app/venv/lib/python3.13/site-packages/psutil/_pslinux.py", line 1638, in wrapper
    return fun(self, *args, **kwargs)
  File "/app/venv/lib/python3.13/site-packages/psutil/_pslinux.py", line 1870, in io_counters
    raise ValueError(msg) from None
ValueError: b'rchar' field was not found in /proc/1/io; found fields are {b'char': 22422275, b'wchar': 16, b'syscr': 5092, b'syscw': 2, b'read_bytes': 0, b'write_bytes': 0, b'cancelled_write_bytes': 0}
We are seeing this in the docker logs, are you seeing the same?
e
yeah same issue i see
c
Its intresting, the agent still deploys, it dosen't get caught at build time
e
have you changed your dockerfile or packages recently? seems like something to do with the way the dockerfile is set up
c
no we haven't
We are trying something, might work
e
there has been a build tagged with today's date, so at least a build has happened. are your packages locked? could it be an issue with an upgraded package?
c
yea we have uv.lock
Okay so we aren't seeing the error anymore, are you still seeing it on your side? Calls still are not working however
e
yeah looks like the latest versions are starting correctly
c
any idea why the agent is not picking up?
Copy code
│ DATADOG_TOKEN                │ 2025-06-22T17:16:42Z │ 2025-10-11T01:36:28Z │
│ AZURE_STORAGE_KEY            │ 2025-06-22T17:16:45Z │ 2025-10-11T01:36:28Z │
│ AZURE_OPENAI_API_VERSION     │ 2025-10-07T20:17:16Z │ 2025-10-11T01:36:28Z │
│ DEV_CALLER_NUMBER            │ 2025-08-27T04:07:09Z │ 2025-10-11T01:36:28Z │
│ VOX_OUTBOUND_SIP_TRUNK_ID    │ 2025-10-11T01:36:23Z │ 2025-10-11T01:36:23Z │
│ AZURE_CONTAINER              │ 2025-10-07T20:17:16Z │ 2025-10-11T01:36:28Z │
│ CARTESIA_API_KEY             │ 2025-10-07T20:17:16Z │ 2025-10-11T01:36:28Z │
│ TELNYX_OUTBOUND_SIP_TRUNK_ID │ 2025-10-07T20:17:16Z │ 2025-10-11T01:36:28Z │
│ AZURE_OPENAI_API_KEY         │ 2025-06-22T17:16:35Z │ 2025-10-11T01:36:28Z │
│ TELNYX_API_KEY               │ 2025-06-22T17:16:34Z │ 2025-10-11T01:36:28Z │
│ LOCAL_PRACTICE_ID            │ 2025-07-28T06:13:19Z │ 2025-10-11T01:36:28Z │
│ LOCAL_DIRECTION              │ 2025-07-28T06:13:20Z │ 2025-10-11T01:36:28Z │
│ AZURE_STORAGE_ACCOUNT        │ 2025-10-07T20:17:16Z │ 2025-10-11T01:36:28Z │
│ ELEVEN_API_KEY               │ 2025-10-11T01:36:22Z │ 2025-10-11T01:36:22Z │
│ DATADOG_ENDPOINT             │ 2025-10-07T20:17:16Z │ 2025-10-11T01:36:28Z │
│ AZURE_STORAGE_KEY            │ 2025-10-11T01:36:16Z │ 2025-10-11T01:41:13Z │
│ AGENT_NAME                   │ 2025-10-07T20:17:16Z │ 2025-10-11T01:36:28Z │
│ DEV_AGENT_NUMBER             │ 2025-10-07T20:17:16Z │ 2025-10-11T01:36:28Z │
│ DATADOG_ENDPOINT             │ 2025-10-11T01:36:13Z │ 2025-10-11T01:41:13Z │
│ DEEPGRAM_API_KEY             │ 2025-10-07T20:17:16Z │ 2025-10-11T01:36:28Z │
│ DEEPGRAM_API_KEY             │ 2025-10-11T01:36:12Z │ 2025-10-11T01:41:13Z │
│ ENDPOINT                     │ 2025-10-07T20:17:16Z │ 2025-10-11T01:36:28Z │
│ OPENAI_API_KEY               │ 2025-06-22T17:16:38Z │ 2025-10-11T01:36:28Z │
│ LOCAL_PRACTICE_ID            │ 2025-10-11T01:36:20Z │ 2025-10-11T01:41:13Z │
│ DATADOG_TOKEN                │ 2025-10-11T01:36:17Z │ 2025-10-11T01:41:13Z │
│ AZURE_STORAGE_ACCOUNT        │ 2025-10-11T01:36:15Z │ 2025-10-11T01:41:13Z │
│ LOCAL_DIRECTION              │ 2025-10-11T01:36:07Z │ 2025-10-11T01:41:13Z │
│ TELNYX_OUTBOUND_SIP_TRUNK_ID │ 2025-10-11T01:36:21Z │ 2025-10-11T01:41:13Z │
│ ENDPOINT                     │ 2025-10-11T01:36:26Z │ 2025-10-11T01:41:13Z │
│ AGENT_NAME                   │ 2025-10-11T01:36:24Z │ 2025-10-11T01:41:13Z │
│ ELEVEN_API_KEY               │ 2025-10-07T20:17:16Z │ 2025-10-11T01:41:13Z │
│ AZURE_OPENAI_ENDPOINT        │ 2025-10-11T01:36:08Z │ 2025-10-11T01:36:08Z │
│ DEV_CALLER_NUMBER            │ 2025-10-11T01:36:11Z │ 2025-10-11T01:41:13Z │
│ TELNYX_API_KEY               │ 2025-10-11T01:36:14Z │ 2025-10-11T01:41:13Z │
│ AZURE_CONTAINER              │ 2025-10-11T01:36:10Z │ 2025-10-11T01:41:13Z │
│ DEV_AGENT_NUMBER             │ 2025-10-11T01:36:27Z │ 2025-10-11T01:41:13Z │
│ AZURE_OPENAI_ENDPOINT        │ 2025-06-22T17:16:39Z │ 2025-10-11T01:41:13Z │
│ CARTESIA_API_KEY             │ 2025-10-11T01:36:25Z │ 2025-10-11T01:41:13Z │
│ OPENAI_API_KEY               │ 2025-10-11T01:36:18Z │ 2025-10-11T01:41:13Z │
│ VOX_OUTBOUND_SIP_TRUNK_ID    │ 2025-09-11T22:35:32Z │ 2025-10-11T01:41:13Z │
│ AZURE_OPENAI_API_VERSION     │ 2025-10-11T01:36:19Z │ 2025-10-11T01:41:13Z │
│ AZURE_OPENAI_API_KEY         │ 2025-10-11T01:36:09Z │ 2025-10-11T01:41:13Z │
│ ENV                          │ 2025-10-07T20:17:16Z │ 2025-10-07T20:17:16Z │
│ ENV                          │ 2025-06-22T17:16:37Z │ 2025-10-11T01:41:13Z │
└──────────────────────────────┴──────────────────────┴──────────────────────
We also noticed that our envs are getting duped, we tried the overwrite method and that didn't seem to solve it
Copy code
{"message": "Using selector: EpollSelector", "level": "DEBUG", "name": "asyncio", "pid": 253, "timestamp": "2025-10-11T01:52:18.752622+00:00"}
{"message": "registered worker", "level": "INFO", "name": "livekit.agents", "id": "CAW_gPyQuLo5me3s", "url": "wss://voxology-agents-5b26c7vm.livekit.cloud", "region": "US East B", "protocol": 16, "timestamp": "2025-10-11T01:52:18.850011+00:00"}
Could this be the culprit? the url here is different then our prod url
e
what is your prod url?
c
e
hmm ok one min
c
Thank you! I am wondering if the something is getting mixed up with the ENV's.
Becuase the one its using is our dev url
e
yeah we try to not let you set that url but perhaps we have missed a place that let you update it
could you try to just recreate this agent?
c
If we recreate, our trunks and dispatch rules shouldn't change right?
e
no, those are all at the project level
recreating the agent won't do anythign to those
c
okay let me do that
👍 1
creating
Screenshot 2025-10-10 at 9.04.59 PM.png
Screenshot 2025-10-10 at 9.08.02 PM.png
Its running
Okay it works now
e
ok great
apologies for the issues. seems like we need to do some better bookkeeping here with the env vars
c
Was it the env?
e
yeah
c
ah okay
i
Thanks a ton Dan !
c
no problem Dan, we really appreciate the quick support
e
any chance you did some secret updates this week with the overwrite flag? we had some regressions we solved regarding this on the 6th and 7th https://status.livekit.io/
c
i don't believe we did
e
ok sounds good, i'll get a bug filed on our end and track this down 🙏
ah also for the first issue with the strange error message, was that something we need to find a fix for as well?
c
That was something on our end, although I am wondering why we did not get that on build
It was just a import issue
👍 1
Thanks a lot again Dan, super clutch!
i
Thanks Dan! 🫡🫡
e
np, glad we got it working again!
🙌 2
e
Hey @echoing-kitchen-90064, facing the same issues even when running the example docs. Stuck at "registered worker". {"message": "registered worker", "level": "INFO", "name": "livekit.agents", "id": "AW_UDnuNDpTtsER", "url": "wss://livekiet-ohevdcmr.livekit.cloud", "region": "India South", "protocol": 16, "timestamp": "2025-10-13T220019.447511+00:00"} I tried recreating the agent for the second time as well. Doesnt help, even in the playground it doesnt connect
This is what im following to create it for the second time, just to see if I messed up somewhere https://docs.livekit.io/agents/start/voice-ai/
e
this is not the same issue. that log line indicates the agent has connected to the core livekit services. it is also not a cloud agent, indicated by the agent id, you may be running it locally...
e
In the hosted version while trying the playground after deploying it just keep connecting
its been some time probably over 15mins and still connecting
Ive setup a token server , if you wanna debug : https://livetest-token-2n232k.sandbox.livekit.io/
e
this project does not have any cloud agents set up. you may have local networking/firewall issues causing the problem
e
Also this different agent, that i intially tried to deploy, before trying an example.
This one has a cloud setup
e
you have a code error, please run
lk a logs
to view the error that is being thrown
e
My bad! Thanks for pointer. It never clicked my mind to actually check that, that it might be a startup issues. Fixed, and works as expected and was able run it on the playground. Just another quick followup, you might noticed it get connected to "India South", is there possibility to force the region to be us-east , since all the API and models are hosted there. Any pointers ?
e
nice, glad you got it fixed. the region it connects to is based on geo dns routing. when running in cloud agents it will always select us east (for now), depending on your local region you will connect to our nearest datacenter
e
Gotcha! Appreciate the help Dan!
👍 1