Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to initialize a MongoDB replica set. #6837

Open
Imtiyaz94 opened this issue May 11, 2023 · 1 comment
Open

Failed to initialize a MongoDB replica set. #6837

Imtiyaz94 opened this issue May 11, 2023 · 1 comment

Comments

@Imtiyaz94
Copy link

Imtiyaz94 commented May 11, 2023

While starting my fresh project using reaction develop . It is not starting instead showing error

Failed to initialize a MongoDB replica set. This may result in errors or some things not working. Error: Error checking replica set config: not running with --replSet (NoReplicationEnabled)

MongoError: The $changeStream stage is only supported on replica sets at MessageStream.messageHandler (/home/dev/Desktop/Office/demo projects/Reaction Ecommerce/project1/server/node_modules/mongodb/lib/cmap/connection.js:268:20) at MessageStream.emit (events.js:400:28) at MessageStream.emit (domain.js:475:12) at processIncomingData (/home/dev/Desktop/Office/demo projects/Reaction Ecommerce/project1/server/node_modules/mongodb/lib/cmap/message_stream.js:144:12) at MessageStream._write (/home/dev/Desktop/Office/demo projects/Reaction Ecommerce/project1/server/node_modules/mongodb/lib/cmap/message_stream.js:42:5) at writeOrBuffer (internal/streams/writable.js:358:12) at MessageStream.Writable.write (internal/streams/writable.js:303:10) at Socket.ondata (internal/streams/readable.js:731:22) at Socket.emit (events.js:400:28) at Socket.emit (domain.js:475:12) { ok: 0, code: 40573, codeName: 'Location40573' }
Is there anyone got issue?

@fetrarij
Copy link

I think you have already running your mongodb server without the replica set config.
I have encoutered the same probleme because I already have mongodb installed on my system (without replica set) , and the app will always use that, so my solution was to stop it first before running reaction api.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants