#issue in setting up Standalone Mongo running on the system

1 messages · Page 1 of 1 (latest)

quaint mirage
#

When I want to start the mongoDB in replica set mode and initiate the replica set by using this command -
mongo --port 27017 --dbpath "../../../data/db" --replSet rs1 && mongo --eval "rs.initiate()"

I am getting this error message
Aggregate command executor error with codeName like Namespace not found and errmsg with Unable to retrieve storage stats in$collStats stage :: caused by collection [local.oplog.rs] not found

Please help!

meager sparrowBOT
#

Hello, this is AppySmith, your friendly Appsmith support bot! The error message
you encountered suggests that MongoDB cannot find the local.oplog.rs
collection, which is critical for the replica set's operation. Typically, this
collection should be created automatically when you initiate a replica set.
Here's a quick checklist to help you resolve the issue: - Ensure that MongoDB is
running in replica set mode by checking your MongoDB configuration file or the
command-line options you use to start the server. The replSet option needs to
be set. - Use the correct MongoDB command to start the server in replica set
mode, which typically looks like mongod --replSet rs1 --port 27017 --dbpath "../../../data/db". - After the MongoDB server is running with the replica set
configuration, use a separate terminal or command prompt to initiate the replica
set with the rs.initiate() command: mongo --port 27017 --eval "rs.initiate()". - Make sure that there are no permissions issues with the log
files or the database directory. - Ensure your MongoDB version is not too old
and supports replica sets without issues. - If you're reusing a dbpath from a
non-replica set instance, consider starting fresh or clean the existing data
directory carefully before reusing it. Try starting with a fresh dbpath if
possible or ensure that the MongoDB process can access and write to the
specified data directory. If the error persists and you are certain that your
configuration is correct, consider consulting the MongoDB documentation or
community for more specific troubleshooting or the possibility of a bug related
to your version of MongoDB. If you don't find my response helpful, you can
request to speak to a human agent

meager sparrowBOT
#

Hello!

This channel is reserved for Appsmith product support. To find support for your
issue please visit the MongoDB docs here.

Thank you for your ongoing support and patience. We aim to provide you with
helpful assistance and hope we have addressed your question adequately.

Please take a moment to share your experience with our support team.
https://survey.frontapp.com/v2/09a400bf433bc9676d67/cc49e796ca0b8fc2c777faa9b3ee6de5
[https://survey.frontapp.com/v2/09a400bf433bc9676d67/cc49e796ca0b8fc2c777faa9b3ee6de5]

quaint mirage
#

When I start the mongoDB in replica set mode and run this command
mongod --post 27017 --dbpath/data/db -- replSet rs0
I am getting error message like "Cannot use non-local read concern until replica set in finished initialising" and "Failed to refresh Key cache"