Tags
#mongosh
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
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