Hello Team,
I hope this message finds you well. Congratulations on the launch of OpenVidu version 3! I am excited about the updates and am currently in the process of deploying the new version as a single node on-premises, following the instructions from OpenVidu Single Node installation on-premises - openVidu.
However, I am encountering an issue with the dashboard container. When I initiate the deployment using the command systemctl start openvidu
, the process initially runs smoothly. Unfortunately, the dashboard container does not maintain stability and restarts every 30 seconds. This repetitive restarting happens without fail—30 seconds of uptime followed by a restart.
Upon examining the logs via docker logs -f dashboard
, the primary error seems to be related to a connection failure with MongoDB. Here is the pertinent log information:
2025-01-16 19:59:35.461 info: Pinging MongoDB...
2025-01-16 20:00:05.469 error: Error while trying to connect to MongoDB: connect ECONNREFUSED ::1:20000
{"reason":{"type":"Unknown","servers":{"localhost:20000":{"address":"localhost:20000","type":"Unknown","hosts":[],"passives":[],"arbiters":[],"tags":{},"minWireVersion":0,"maxWireVersion":0,"roundTripTime":-1,"minRoundTripTime":0,"lastUpdateTime":46050652,"lastWriteDate":0,"error":{},"topologyVersion":null,"setName":null,"setVersion":null,"electionId":null,"logicalSessionTimeoutMinutes":null,"maxMessageSizeBytes":null,"maxWriteBatchSize":null,"maxBsonObjectSize":null,"primary":null,"me":null,"$clusterTime":null,"iscryptd":false}},"stale":false,"compatible":true,"heartbeatFrequencyMS":10000,"localThresholdMS":15,"setName":null,"maxElectionId":null,"maxSetVersion":null,"commonWireVersion":0,"logicalSessionTimeoutMinutes":null},"cause":{}}
MongoServerSelectionError: connect ECONNREFUSED ::1:20000
at Topology.selectServer (/snapshot/backend/node_modules/mongodb/lib/sdam/topology.js:320:38)
at async Topology._connect (/snapshot/backend/node_modules/mongodb/lib/sdam/topology.js:204:28)
at async Topology.connect (/snapshot/backend/node_modules/mongodb/lib/sdam/topology.js:156:13)
at async topologyConnect (/snapshot/backend/node_modules/mongodb/lib/mongo_client.js:233:17)
at async MongoClient._connect (/snapshot/backend/node_modules/mongodb/lib/mongo_client.js:246:13)
at async MongoClient.connect (/snapshot/backend/node_modules/mongodb/lib/mongo_client.js:171:13)
2025-01-16 20:00:05.470 error: Shutting down OpenVidu Dashboard
Could you please assist me in resolving this issue? Any guidance on configuring MongoDB correctly or troubleshooting potential network issues that might be causing this connection refusal would be greatly appreciated.
Thank you for your support.