Hello Support! I have setup a self-hosted vm live...
# self-hosting
r
Hello Support! I have setup a self-hosted vm livekit, and my setup includes a FastAPI livekit_token generator, a livekit agent, a frontend node js app. My issue is whenever I try to join the room on the frontend app, my livekit agent returns the following error:
Copy code
2025-11-25 14:32:56,485 - DEBUG asyncio - Using selector: EpollSelector 
2025-11-25 14:32:56,487 - DEV  livekit.agents - Watching /home/USER/projects/PROJECT_NAME/agents 
2025-11-25 14:33:06,688 - DEBUG asyncio - Using selector: EpollSelector 
/home/USER/projects/PROJECT_NAME/.venv/lib/python3.13/site-packages/livekit/agents/utils/http_server.py:13: DeprecationWarning: loop argument is deprecated
  self._app = web.Application(loop=self._loop)
2025-11-25 14:33:06,695 - INFO livekit.agents - starting worker {"version": "1.2.5", "rtc-version": "1.0.12"}
2025-11-25 14:33:06,695 - INFO livekit.agents - preloading plugins {"packages": ["livekit.plugins.langchain", "livekit.plugins.openai", "livekit.plugins.silero", "livekit.plugins.turn_detector", "av"]}
2025-11-25 14:33:06,696 - INFO livekit.agents - starting inference executor 
2025-11-25 14:33:10,528 - INFO livekit.agents - initializing process {"pid": 4187619, "inference": true}
2025-11-25 14:33:13,275 - DEBUG livekit.agents - initializing inference runner {"runner": "lk_end_of_utterance_multilingual", "pid": 4187619, "inference": true}
None of PyTorch, TensorFlow >= 2.0, or Flax have been found. Models won't be available and only tokenizers, configuration and file/data utilities can be used.
2025-11-25 14:33:14,620 - INFO livekit.agents - process initialized {"pid": 4187619, "inference": true, "elapsed_time": 4.09}
/home/USER/projects/PROJECT_NAME/.venv/lib/python3.13/site-packages/livekit/agents/utils/http_server.py:26: DeprecationWarning: Application.make_handler(...) is deprecated, use AppRunner API instead
  handler = self._app.make_handler()
2025-11-25 14:33:14,620 - DEBUG livekit.agents - inference runner initialized {"runner": "lk_end_of_utterance_multilingual", "elapsed_time": 1.3442534310743213, "pid": 4187619, "inference": true}
2025-11-25 14:33:14,620 - DEBUG asyncio - Using selector: EpollSelector {"pid": 4187619, "inference": true}
2025-11-25 14:33:14,629 - INFO livekit.agents - registered worker {"id": "AW_XXXXXXXXXXXXXX", "url": "ws://livekit.example.local:7880", "region": "", "protocol": 16}

2025-11-25 14:37:46,862 - INFO livekit.agents - received job request {"job_id": "AJ_XXXXXXXXXXXXXX", "dispatch_id": "AD_XXXXXXXXXXXXXX", "room_name": "room-UUID-REDACTED", "agent_name": "", "resuming": false}
2025-11-25 14:37:46,868 - INFO livekit.agents - initializing process {"pid": 4190560}
2025-11-25 14:37:49,164 - INFO livekit.agents - process initialized {"pid": 4190560, "elapsed_time": 2.3}
2025-11-25 14:37:49,164 - DEBUG asyncio - Using selector: EpollSelector {"pid": 4190560, "job_id": "AJ_XXXXXXXXXXXXXX"}
2025-11-25 14:37:49.171 | DEBUG    | agents.mem0stt:entrypoint:92 - [*] Starting the entrypoint
error: failed to fetch server settings: http status: 404
2025-11-25 14:37:51.908 | DEBUG    | agents.mem0stt:entrypoint:94 - [*] Awaiting connection
2025-11-25 14:37:51.909 | DEBUG    | agents.mem0stt:entrypoint:96 - Found participant: rtc.RemoteParticipant(sid=PA_XXXXXXXXXXXX, identity=user@example.com, name=user@example.com)
2025-11-25 14:37:51.909 | INFO     | agents.mem0stt:entrypoint:98 - user@example.com
2025-11-25 14:37:51,908 - ERROR livekit - livekit_ffi::server::room:149:livekit_ffi::server::room - audio filter cannot be enabled: LiveKit Cloud is required {"pid": 4190560, "job_id": "AJ_XXXXXXXXXXXXXX"}
2025-11-25 14:37:52,079 - INFO mem0.vector_stores.pgvector - Using psycopg2 for PostgreSQL connections {"pid": 4190560, "job_id": "AJ_XXXXXXXXXXXXXX"}
2025-11-25 14:37:52.110 | DEBUG    | src.memory.mem0_memory:__init__:46 - Initialized MemoryEnabledAgent for user_id: user@example.com
2025-11-25 14:37:52.110 | DEBUG    | agents.mem0stt:__init__:51 - Mem0 Agent initialized. Using user_id: user@example.com
2025-11-25 14:37:52,113 - DEBUG livekit.agents - input stream attached {"participant": null, "source": "SOURCE_UNKNOWN", "accepted_sources": ["SOURCE_MICROPHONE"], "pid": 4190560, "job_id": "AJ_XXXXXXXXXXXXXX"}
2025-11-25 14:37:52.129 | DEBUG    | src.memory.mem0_memory:search_memory:68 - Searching memory store
2025-11-25 14:37:52,186 - DEBUG livekit.agents - using audio io: `RoomIO` -> `AgentSession` -> `TranscriptSynchronizer` -> `RoomIO` {"pid": 4190560, "job_id": "AJ_XXXXXXXXXXXXXX"}
2025-11-25 14:37:52,186 - DEBUG livekit.agents - using transcript io: `AgentSession` -> `TranscriptSynchronizer` -> `RoomIO` {"pid": 4190560, "job_id": "AJ_XXXXXXXXXXXXXX"}
2025-11-25 14:37:53.579 | DEBUG    | src.memory.mem0_memory:search_memory:68 - Searching memory store
2025-11-25 14:38:21,684 - INFO livekit.agents - process exiting {"reason": "", "pid": 4190560, "job_id": "AJ_XXXXXXXXXXXXXX"}
2025-11-25 14:38:21,683 - DEBUG livekit.agents - shutting down job task {"reason": "", "user_initiated": false, "pid": 4190560, "job_id": "AJ_XXXXXXXXXXXXXX"}