question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Where is the database connection? MongoError: command find requires authentication

See original GitHub issue

I’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:open
  • Created 2 years ago
  • Comments:12 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
RobertSandifordcommented, Oct 28, 2021

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

0reactions
abeacommented, Oct 28, 2021

I’ll create a ticket in our internal system to follow up.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found