Mongo Login Failures in delete-databases.sh
If you have trouble running delete-databases.sh , such as:
./delete-databases.sh exception: login failed No pattern specified on the command line (such as ./delete-databases.sh '2018-05-31', so we will just list databases available to delete. Press enter when ready to see list. 2019-04-25T11:46:18.589-0400 Error: 18 { ok: 0.0, errmsg: "auth failed", code: 18, codeName: "AuthenticationFailed" } at src/mongo/shell/db.js:1292 Exiting.
This may be a result of a mismatch between the mongo command line client and the mongo server software. To check, run:
mongo --version
and see if you have version 3.6. If not, follow the instructions to upgrade the client at https://docs.mongodb.com/v3.6/administration/install-on-linux/ . It amounts to adding a third party package repo and then installing the “mongodb-org-shell” package.
You can tell if you were successful by running:
mongo --version
and checking that the MongoDB shell version is v3.6.x.
Direct Link to this FAQ Item: https://portal.activecountermeasures.com/support/faq/?Display_FAQ=862
Category:
Logs, Databases & Storage Management