MongoDB Failed to authenticate
Previously my MongoDB service crashed with
/data/db/mongod.lock is not empty
, even after restart and with --repair
. So I decided to unmount the volume and delete the service.
Then I create new MongoDB service and remount the volume to the service. And I got Failed to authenticate
error.9 Replies
Project ID:
08cf1e80-4d26-4b13-a8d5-538fe619b250
08cf1e80-4d26-4b13-a8d5-538fe619b250
you would need to use the old credentials
Ahh, is there a way to recover that? Or any way to connect to my volume to retrieve the data?
did you keep the old username and password?
sadly i didnt
well the username and password isnt stored on the volume in plain text, so i dont see how accessing the volume would help, and theres not much railway can do for you if you locked yourself out of your database
I see, then its my fault for deleting the service before asking here first. Lesson learnt
Thanks man
no problem