API fails to connect to mongodb in authenticated mode
On the current version, api fails to start when an admin user is defined for database authentication
blog-api_1 | - Connecting to MongoDB at mongo:27017, database: meteor
blog-api_1 | Database user is admin
blog-api_1 | (node:1) [MONGODB DRIVER] Warning: Top-level use of w, wtimeout, j, and fsync is deprecated. Use writeConcern instead.
blog-api_1 | (Use `node --trace-warnings ...` to show where the warning was created)
blog-api_1 | - Server is running at http://127.0.0.1:5000 (Version 1.1.3)
blog-api_1 | - Try http://127.0.0.1:5000/ping
blog-api_1 | Connection fails: MongoError: Authentication failed.
blog-api_1 | It will be retried for the next request.
blog-api_1 | /home/node/app/node_modules/mongodb/lib/utils.js:691
blog-api_1 | throw error;
blog-api_1 | ^
blog-api_1 |
blog-api_1 | MongoError: Authentication failed.