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
Percy
Percy7mo ago
Project ID: 08cf1e80-4d26-4b13-a8d5-538fe619b250
akupenguin
akupenguin7mo ago
08cf1e80-4d26-4b13-a8d5-538fe619b250
Brody
Brody7mo ago
you would need to use the old credentials
akupenguin
akupenguin7mo ago
Ahh, is there a way to recover that? Or any way to connect to my volume to retrieve the data?
Brody
Brody7mo ago
did you keep the old username and password?
akupenguin
akupenguin7mo ago
sadly i didnt
Brody
Brody7mo ago
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
akupenguin
akupenguin7mo ago
I see, then its my fault for deleting the service before asking here first. Lesson learnt Thanks man
Brody
Brody7mo ago
no problem