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