Hi livekit community and AI, here's my question: n...
# ask-ai
p
Hi livekit community and AI, here's my question: nodejs based livekit agent running on host laptop is able to connect to a room and participate in conversations but same agent running inside docker container is unable to participate in conversations. It is however able to register work via websocket connection with livekit cloud server. What can I do to debug this ? I even tried mapping all these ports (7880, 7881, 7882, 5349, 3478, 80 and 443) listed in Ports and Firewall in livekit docs but to no avail.
g
To debug the issue where a Node.js-based LiveKit agent running inside a Docker container is unable to participate in conversations, consider the following steps: 1. Check Network Configuration: Ensure that the Docker container's network settings allow it to communicate with the LiveKit server. According to LiveKit's deployment documentation, using host networking can help, but this is not available on macOS. Instead, ensure that the container can access the necessary ports and that the
ws_url
is correctly set to the Docker host's IP. 2. Environment Variables: Verify that all necessary environment variables, such as
LIVEKIT_URL
,
LIVEKIT_API_KEY
, and
LIVEKIT_API_SECRET
, are correctly set within the Docker container. As per LiveKit Agents documentation, these are crucial for establishing a connection. 3. Firewall and Port Mapping: Double-check that the ports are correctly mapped and open. The Ports and Firewall documentation specifies the necessary ports for LiveKit operations. Ensure that the Docker container can access these ports and that there are no firewall rules blocking them. 4. Logs and Debugging: Run the agent in debug mode to get more detailed logs. This can help identify where the connection is failing. According to LiveKit's troubleshooting guide, checking logs can provide insights into connection issues. Would you like more detailed guidance on any of these steps? Sources: - LiveKit Deployment Configuration - LiveKit Ports and Firewall - LiveKit Agents documentation - LiveKit's troubleshooting guide 👍 0 button 👎 1 button 💡 Hint: Mention @millions-hair-24956 in the thread for followups.