-
Notifications
You must be signed in to change notification settings - Fork 0
Troubleshooting
Azita Abdollahi edited this page Apr 15, 2025
·
1 revision
Common issues and solutions.
This error means the replica set is already configured. You can verify with:
rs.status()
Ensure all nodes are reachable over the network
Check logs: docker logs mongodbX
Wait a bit longer for all services to initialize
Inspect logs:
docker logs mongodb1
Replica Set Status
docker exec -it mongodb1 mongosh --eval "rs.status()"
Replica Set Configuration
docker exec -it mongodb1 mongosh --eval "rs.conf()"
MongoDB Shell
docker exec -it mongodb1 mongosh -u root -p yourpass