salmon-leather-15461
07/22/2025, 8:25 AMtall-airline-16756
07/22/2025, 8:25 AMtall-airline-16756
07/22/2025, 8:26 AMraise DuplexClosed() from e in livekit.agents.utils.aio.duplex_unix.DuplexClosed means that a duplex communication channel—used for inter-process communication (IPC) in LiveKit Agents—has been closed or has encountered a connection failure.
This exception is raised when the underlying socket connection becomes unavailable. Common causes include:
• The remote process or thread has terminated unexpectedly
• The network connection has been lost
• The socket has been forcibly closed
• There is a communication timeout
• The process is shutting down gracefully
This error is typically expected during normal shutdowns or when processes terminate, and the LiveKit Agents framework is designed to handle it gracefully as part of its IPC cleanup process. The from e part preserves the original exception for debugging purposes.
If you are seeing this error outside of expected shutdown or process termination scenarios, it may indicate an unexpected loss of connection or a process crash.
Sources: livekit-plugins/livekit-plugins-deepgram/livekit/plugins/deepgram/tts.py