companion_env) PS D:\Productivity_companion\backend> python start_agent_worker.py start
2025-09-07 15
2736,426 -
main - INFO - Starting KAORI LiveKit Agent Worker
2025-09-07 15
2736,470 - livekit.agents - INFO - starting worker
{"message": "starting worker", "level": "INFO", "name": "livekit.agents", "version": "1.2.8", "rtc-version": "1.0.12", "timestamp": "2025-09-07T09
5736.470933+00:00"}
2025-09-07 15
2736,480 - livekit.agents - INFO - initializing job runner
{"message": "initializing job runner", "level": "INFO", "name": "livekit.agents", "tid": 32588, "timestamp": "2025-09-07T09
5736.480976+00:00"}
2025-09-07 15
2736,483 - livekit.agents - INFO - initializing job runner
{"message": "initializing job runner", "level": "INFO", "name": "livekit.agents", "tid": 22156, "timestamp": "2025-09-07T09
5736.483020+00:00"}
2025-09-07 15
2736,485 - livekit.agents - INFO - initializing job runner
{"message": "initializing job runner", "level": "INFO", "name": "livekit.agents", "tid": 28028, "timestamp": "2025-09-07T09
5736.485044+00:00"}
2025-09-07 15
2736,485 - livekit.agents - INFO - initializing job runner
{"message": "initializing job runner", "level": "INFO", "name": "livekit.agents", "tid": 32340, "timestamp": "2025-09-07T09
5736.485044+00:00"}
2025-09-07 15
2736,489 - livekit.agents - INFO - job runner initialized
{"message": "job runner initialized", "level": "INFO", "name": "livekit.agents", "tid": 32588, "elapsed_time": 0.01, "timestamp": "2025-09-07T09
5736.489048+00:00"}
2025-09-07 15
2736,490 - livekit.agents - INFO - job runner initialized
{"message": "job runner initialized", "level": "INFO", "name": "livekit.agents", "tid": 22156, "elapsed_time": 0.01, "timestamp": "2025-09-07T09
5736.490556+00:00"}
2025-09-07 15
2736,492 - livekit.agents - INFO - job runner initialized
{"message": "job runner initialized", "level": "INFO", "name": "livekit.agents", "tid": 28028, "elapsed_time": 0.01, "timestamp": "2025-09-07T09
5736.492076+00:00"}
2025-09-07 15
2736,493 - livekit.agents - INFO - job runner initialized
{"message": "job runner initialized", "level": "INFO", "name": "livekit.agents", "tid": 32340, "elapsed_time": 0.01, "timestamp": "2025-09-07T09
5736.493085+00:00"}
2025-09-07 15
2736,803 - livekit.agents - INFO - registered worker
{"message": "registered worker", "level": "INFO", "name": "livekit.agents", "id": "AW_9imVamdG5fmZ", "url": "
wss://pravidhi-6pg4q80c.livekit.cloud", "region": "India", "protocol": 16, "timestamp": "2025-09-07T09
5736.803725+00:00"}
2025-09-07 15
2754,315 - livekit.agents - INFO - worker is at full capacity, marking as unavailable
{"message": "worker is at full capacity, marking as unavailable", "level": "INFO", "name": "livekit.agents", "load": 0.7292000000000001, "threshold": "_WorkerEnvOption(dev_default=inf, prod_default=0.7)", "timestamp": "2025-09-07T09
5754.315694+00:00"}
2025-09-07 15
2756,828 - livekit.agents - INFO - worker is below capacity, marking as available
{"message": "worker is below capacity, marking as available", "level": "INFO", "name": "livekit.agents", "load": 0.6364000000000001, "threshold": "_WorkerEnvOption(dev_default=inf, prod_default=0.7)", "timestamp": "2025-09-07T09
5756.828247+00:00"}
2025-09-07 15
2807,131 - livekit.agents - INFO - received job request
{"message": "received job request", "level": "INFO", "name": "livekit.agents", "job_id": "AJ_yo92mrz3aVMa", "dispatch_id": "", "room_name": "room_voice_3206739b-22fa-4325-8e27-e7124ba31c13_20250907_152805", "agent_name": "kaori-voice-agent", "resuming": false, "timestamp": "2025-09-07T09
5807.131323+00:00"}
2025-09-07 15
2807,190 - app.core.livekit_voice_service - INFO - Connecting to room room_voice_3206739b-22fa-4325-8e27-e7124ba31c13_20250907_152805
{"message": "Connecting to room room_voice_3206739b-22fa-4325-8e27-e7124ba31c13_20250907_152805", "level": "INFO", "name": "app.core.livekit_voice_service", "timestamp": "2025-09-07T09
5807.190645+00:00"}
2025-09-07 15
2807,278 - livekit.agents - INFO - initializing job runner
{"message": "initializing job runner", "level": "INFO", "name": "livekit.agents", "tid": 22928, "timestamp": "2025-09-07T09
5807.278121+00:00"}
2025-09-07 15
2807,279 - livekit.agents - INFO - job runner initialized
{"message": "job runner initialized", "level": "INFO", "name": "livekit.agents", "tid": 22928, "elapsed_time": 0.0, "timestamp": "2025-09-07T09
5807.279115+00:00"}
2025-09-07 15
2809,916 - livekit - WARNING - livekit:
rtc engine453
livekit:rtc_engine - received session close: "signal client closed: \"stream closed\"" UnknownReason Resume
{"message": "livekit:
rtc engine453
livekit:rtc_engine - received session close: \"signal client closed: \\\"stream closed\\\"\" UnknownReason Resume", "level": "WARNING", "name": "livekit", "timestamp": "2025-09-07T09
5809.916997+00:00"}
2025-09-07 15
2921,878 - livekit.agents - INFO - worker is at full capacity, marking as unavailable
{"message": "worker is at full capacity, marking as unavailable", "level": "INFO", "name": "livekit.agents", "load": 0.7719999999999996, "threshold": "_WorkerEnvOption(dev_default=inf, prod_default=0.7)", "timestamp": "2025-09-07T09
5921.878972+00:00"}
2025-09-07 15
2926,869 - livekit.agents - INFO - worker is below capacity, marking as available
{"message": "worker is below capacity, marking as available", "level": "INFO", "name": "livekit.agents", "load": 0.5777999999999996, "threshold": "_WorkerEnvOption(dev_default=inf, prod_default=0.7)", "timestamp": "2025-09-07T09
5926.869397+00:00"}
2025-09-07 15
2944,457 - livekit.agents - INFO - received job request
{"message": "received job request", "level": "INFO", "name": "livekit.agents", "job_id": "AJ_yg49oLatcSvF", "dispatch_id": "", "room_name": "room_voice_3206739b-22fa-4325-8e27-e7124ba31c13_20250907_152942", "agent_name": "kaori-voice-agent", "resuming": false, "timestamp": "2025-09-07T09
5944.457726+00:00"}
2025-09-07 15
2944,525 - app.core.livekit_voice_service - INFO - Connecting to room room_voice_3206739b-22fa-4325-8e27-e7124ba31c13_20250907_152942
{"message": "Connecting to room room_voice_3206739b-22fa-4325-8e27-e7124ba31c13_20250907_152942", "level": "INFO", "name": "app.core.livekit_voice_service", "timestamp": "2025-09-07T09
5944.525277+00:00"}
2025-09-07 15
2944,558 - livekit.agents - INFO - initializing job runner
{"message": "initializing job runner", "level": "INFO", "name": "livekit.agents", "tid": 4264, "timestamp": "2025-09-07T09
5944.558596+00:00"}
2025-09-07 15
2944,559 - livekit.agents - INFO - job runner initialized
{"message": "job runner initialized", "level": "INFO", "name": "livekit.agents", "tid": 4264, "elapsed_time": 0.0, "timestamp": "2025-09-07T09
5944.559596+00:00"}
2025-09-07 15
2945,226 - app.core.livekit_voice_service - INFO - Starting KAORI voice agent for participant rajendraprasad
{"message": "Starting KAORI voice agent for participant rajendraprasad", "level": "INFO", "name": "app.core.livekit_voice_service", "timestamp": "2025-09-07T09
5945.226194+00:00"}
2025-09-07 15
2945,731 - livekit - WARNING - livekit:
rtc engine453
livekit:rtc_engine - received session close: "signal client closed: \"stream closed\"" UnknownReason Resume
{"message": "livekit:
rtc engine453
livekit:rtc_engine - received session close: \"signal client closed: \\\"stream closed\\\"\" UnknownReason Resume", "level": "WARNING", "name": "livekit", "timestamp": "2025-09-07T09
5945.731023+00:00"}
2025-09-07 15
2945,844 - app.core.livekit_voice_service - INFO - KAORI agent entering room for user rajendraprasad
{"message": "KAORI agent entering room for user rajendraprasad", "level": "INFO", "name": "app.core.livekit_voice_service", "timestamp": "2025-09-07T09
5945.844146+00:00"}
2025-09-07 15
2945,849 - livekit.agents - ERROR - Error in _init_task
Traceback (most recent call last):
File "D:\conda\envs\companion_env\Lib\site-packages\livekit\agents\utils\log.py", line 16, in async_fn_logs
return await fn(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\conda\envs\companion_env\Lib\site-packages\livekit\agents\voice\room_io\room_io.py", line 382, in _init_task
await self._audio_output.start()
File "D:\conda\envs\companion_env\Lib\site-packages\livekit\agents\voice\room_io\_output.py", line 76, in start
await self._publish_track()
File "D:\conda\envs\companion_env\Lib\site-packages\livekit\agents\voice\room_io\_output.py", line 63, in _publish_track
self._publication = await self._room.local_participant.publish_track(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\conda\envs\companion_env\Lib\site-packages\livekit\rtc\participant.py", line 696, in publish_track
raise PublishTrackError(cb.publish_track.error)
livekit.rtc.participant.PublishTrackError: room error engine: connection error: engine is closed
{"message": "Error in _init_task", "level": "ERROR", "name": "livekit.agents", "exc_info": "Traceback (most recent call last):\n File \"D:\\conda\\envs\\companion_env\\Lib\\site-packages\\livekit\\agents\\utils\\log.py\", line 16, in async_fn_logs\n return await fn(*args, **kwargs)\n ^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"D:\\conda\\envs\\companion_env\\Lib\\site-packages\\livekit\\agents\\voice\\room_io\\room_io.py\", line 382, in _init_task\n await self._audio_output.start()\n File \"D:\\conda\\envs\\companion_env\\Lib\\site-packages\\livekit\\agents\\voice\\room_io\\_output.py\", line 76, in start\n await self._publish_track()\n File \"D:\\conda\\envs\\companion_env\\Lib\\site-packages\\livekit\\agents\\voice\\room_io\\_output.py\", line 63, in _publish_track\n self._publication = await self._room.local_participant.publish_track(\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"D:\\conda\\envs\\companion_env\\Lib\\site-packages\\livekit\\rtc\\participant.py\", line 696, in publish_track\n raise PublishTrackError(cb.publish_track.error)\nlivekit.rtc.participant.PublishTrackError: room error engine: connection error: engine is closed", "timestamp": "2025-09-07T09
5945.849147+00:00"}
2025-09-07 15
2946,091 - app.core.livekit_voice_service - INFO - Agent session started successfully
{"message": "Agent session started successfully", "level": "INFO", "name": "app.core.livekit_voice_service", "timestamp": "2025-09-07T09
5946.091327+00:00"}
2025-09-07 15
2946,095 - app.core.livekit_voice_service - INFO - KAORI agent exiting room for user rajendraprasad
{"message": "KAORI agent exiting room for user rajendraprasad", "level": "INFO", "name": "app.core.livekit_voice_service", "timestamp": "2025-09-07T09
5946.095327+00:00"}