Tags
#mongodb
Authentication failed
Databases
MongoDB "Authentication failed": the authSource is usually what's wrong
Fix MongoDB "Authentication failed": set authSource correctly, encode special characters in the URI, check which database holds the user, and handle Docker volumes.
Beginner · 4 min read
ECONNREFUSED 127.0.0.1:27017
Databases
MongoDB "connect ECONNREFUSED 127.0.0.1:27017": why it refuses, and how to fix it
Fix MongoDB "connect ECONNREFUSED 127.0.0.1:27017" and ::1:27017: start mongod, read exit code 14, check bindIp, IPv6 localhost in Node.js, and Docker service names.
Beginner · 4 min read
E11000
Databases
MongoDB "E11000 duplicate key error": read which index, and which value
Fix MongoDB "E11000 duplicate key error": read the index and value in the message, solve dup key null with a partial index, clean up duplicates, handle upsert races.
Beginner · 3 min read