Where is the database connection? MongoError: command find requires authentication
See original GitHub issueI’m really baffled with the setup of this app.
I followed the instructions here, using the CLI method. https://v3.docs.apostrophecms.org/guide/setting-up.html#creating-a-project
Different to the guide, it installed packages itself, and seemingly create an admin user without prompting.
Then when I yarn dev
I get “MongoError: command find requires authentication”
And it occurs to me that there was no mention anywhere of putting in database details.
I’m figuring that these docs are badly out of date. What’s the state of affairs? Is the project still going?
Version of Node.js: v14.8.1
Version of MongDB: v4.4.3
Server Operating System: Win 10
Issue Analytics
- State:
- Created 2 years ago
- Comments:12 (6 by maintainers)
Top Results From Across the Web
How to solve 'command find requires authentication' using ...
1. How to connect from terminal and mongo: When you install MongoDB the authorization is disabled. So keep it like that for now....
Read more >"Command find requires Authentication" despite having ...
I've enabled authentication in the mongodb settings. Set up the usernames with password with the roles of read and dbOwner of the target...
Read more >How to setup authentication for connections on MongoDB?
First: the first access to MongoDB is made without authentication ( $ mongo ). ... use admin switched to db admin > db....
Read more >command find requires authentication' using Node.js ...
MongoDB How to solve 'command find requires authentication' using ... const db = mongoose.connect(mongoURI, { useNewUrlParser: true });.
Read more >mongoerror: command find requires authentication - You.com
Create a root user in admin database: Type: mongod in a terminal to run db, and then in another terminal run command mongo...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Here is an updated repo with .env, dotenv, cross-env (needed to run on windows), and updated readme, if apos want to use it.
https://github.com/RobertSandiford/a3-boilerplate
I’ll create a ticket in our internal system to follow up.