DEV Community

Discussion on: 🐳 mongodump and mongorestore with Docker

Collapse
 
punkte profile image
Punkte

Hi, some people may have an error running with docker compose in a dev environement.

I got the following error:
Failed: can't create session: could not connect to server: connection() : auth error: sasl conversation error: unable to authenticate using mechanism "SCRAM-SHA-1": (AuthenticationFailed) Authentication failed.

In order to resolve this I had to specify the authenticationDatabase with the flag --authenticationDatabase admin

Collapse
 
mkubdev profile image
Maxime Kubik

Yes nice spot! I will update my post.