Hi LiveKit team :wave: We’re currently facing an i...
# agents
o
Hi LiveKit team 👋 We’re currently facing an issue with uploading the transcript and JSON file from our voice agent jobs. The logs are showing repeated warnings like the following:
Copy code
PublishTranscriptionError: failed to send transcription, room closed: channel closed
ConnectionError: engine: connection error: engine is closed
These errors occur during the transcript upload phase — it seems the room connection is closing before the transcription or JSON data is fully published. Sample log details: • `job_id`: AJ_s3kBt9kbLU3q • `timestamp`: 2025-10-03T142826–30 UTC • `file`:
/app/.venv/lib/python3.11/site-packages/livekit/agents/voice/room_io/_output.py
Could you please help us understand what might cause the “room closed: channel closed” and “engine is closed” errors during transcription publishing? Is there any recommended way to ensure the transcription is flushed before the room teardown, or to safely retry publishing after disconnection?
for all these cases we saw this message also "message": "process is unresponsive, killing process", "level": "ERROR", "name": "livekit.agents", "pid": 1299, "job_id": "AJ_XNGYH4n6YssB", "timestamp":
r
For the job ids you reference It looks like the client was having connectivity issues. Seems the session ended before there were interactions.
o
@refined-appointment-81829 is there any way we can retry upload transcript for these kind of cases ?
r
I don't believe there was a transcript in this case from what I saw in your session.
o
Thanks, @refined-appointment-81829 — understood 👍 Just to confirm, when the session ends early or the room closes before the transcription fully uploads, does that mean no transcript data is generated at all on the agent side? We’re planning to implement a fallback where the agent saves the transcript and JSON files locally from the in-memory chat context, then uploads them to S3 even after the room is closed. Would that conflict in any way with LiveKit’s session cleanup or post-processing logic?
Hi @refined-appointment-81829 👋 Just to update — the video was uploaded successfully, so the media side seems fine. However, the transcript and log files were not generated/uploaded for that session.
r
Sorry I don't really know what you are talking about