我正在尝试从下面的代码中修复命令...
mongod --dbpath /someser/arbiterDB/project/data --config /mongoDB/config/pro/mongo.conf --repair
我收到以下异常
2019-08-08T15:19:27.045+0800 I STORAGE [initandlisten] exception in
initAndListen: NotMaster: Not primary while creating collection
admin.system.version, terminating
2019-08-08T15:19:27.045+0800 I REPL [initandlisten] shutting down
replication subsystems
2019-08-08T15:19:27.045+0800 W REPL [initandlisten]
ReplicationCoordinatorImpl::shutdown() called before startup() finished.
Shutting down without cleaning up the replication system
2019-08-08T15:19:27.045+0800 I STORAGE [initandlisten] WiredTigerKVEngine
shutting down
可能是什么错误?在配置文件中,我设置了BindIp
and Replication
。