migrate-mongo
migrate-mongo copied to clipboard
ERROR: command find requires authentication
I setup a mongo db via docker. Using the basic example from docker-hub. Using the mongo-express web interface I can correctly see the initial databases 'admin', 'config', etc.
But when I try to simply check the migrations with npx migrate-mongo status
my terminal just return the error in the title ERROR: command find requires authentication
I couldnt find a way to add my mongo credentials. I set them up via the docker-compose file. Is it trying to use any credentials saved locally somewhere?
Using the url property inside migrate-mongo-config.js
like this makes it work.
Is their any way to configure the password without writing it in plain-text inside the config?
Hi Tagman, are you able to run migrations inside docker? I am getting the following error even if the migrate-mongo is installed globally inside docker.
const utf8Encoder = new TextEncoder();
api | ^
api |
api | ReferenceError: TextEncoder is not defined
api | at Object.
Closing this. Issue is not caused by migrate-mongo IMHO.