"errmsg" : "Our replica set config is invalid or we are not a member of it"
2016-11-07 14:58
1771 查看
查看副本集状态,报错:
> rs.status();
{
"state" : 10,
"stateStr" : "REMOVED",
"uptime" : 93,
"optime" : Timestamp(1478239977, 594),
"optimeDate" : ISODate("2016-11-04T06:12:57Z"),
"ok" : 0,
"errmsg" : "Our replica set config is invalid or we are not a member of it",
"code" : 93
}
查看日志,发现:
2016-11-07T14:43:25.497+0800 W REPL [ReplicationExecutor] Local replica set configuration document reports set name of MyReplset, but command line reports MyReplicate; waitng for reconfig or remote heartbeat
我之前启动mongo命令是:/usr/local/mongodb/bin/mongod --config /usr/local/mongodb/bin/mongod.cnf --repliSet MyReplset
这回命令是:/usr/local/mongodb/bin/mongod --config /usr/local/mongodb/bin/mongod.cnf --repliSet MyReplicate
所以两次指定的副本集名称不一致,导致出错。
> rs.status();
{
"state" : 10,
"stateStr" : "REMOVED",
"uptime" : 93,
"optime" : Timestamp(1478239977, 594),
"optimeDate" : ISODate("2016-11-04T06:12:57Z"),
"ok" : 0,
"errmsg" : "Our replica set config is invalid or we are not a member of it",
"code" : 93
}
查看日志,发现:
2016-11-07T14:43:25.497+0800 W REPL [ReplicationExecutor] Local replica set configuration document reports set name of MyReplset, but command line reports MyReplicate; waitng for reconfig or remote heartbeat
我之前启动mongo命令是:/usr/local/mongodb/bin/mongod --config /usr/local/mongodb/bin/mongod.cnf --repliSet MyReplset
这回命令是:/usr/local/mongodb/bin/mongod --config /usr/local/mongodb/bin/mongod.cnf --repliSet MyReplicate
所以两次指定的副本集名称不一致,导致出错。
相关文章推荐
- mongo "errmsg" : "None of the hosts for replica set configReplSet could be contact
- Sharepoint Error : The URL "filename" is invalid. It may refer to a nonexistent file or folder, or refer to a valid file or folder that is not in the current Web
- Solution to "Could not load file or assembly or one of its dependencies. Access is denied"
- 安装Visual Studio 2010时提示"The location specified for the help content store is invalid or you do not have access to it".
- bug: {"errcode":40001,"errmsg":"invalid credential, access_token is invalid or not latest hint: xxx
- 异常-----Can't convert the date to string, because it is not known which parts of the date variable are in use. Use ?date, ?time or ?datetime built-in, or ?string.\u003Cformat> or ?string(format) built-
- The URL "filename" is invalid. It may refer to a nonexistent file or folder, or refer to a valid file or folder that is not in the current Web
- VideoError: 1008: VideoPlayer.iNCManagerClass has not been set or its value is invalid
- Could not load file or assembly "\win32_x86\dotnet1\crdb_adoplus.dll' or one of its dependencies.
- The service cannot be activated because it does not support ASP.NET compatibility. ASP.NET compatibility is enabled for this application. Turn off ASP.NET compatibility mode in the web.config or add the AspNetCompatibilityRequirements attribute to the ser
- Could not load file or assembly 'XXX' or one of its dependencies. Access is denied.
- 'SetWindowTextA' : is not a member of 'CString'
- MPI编译C++程序出现#error "SEEK_SET is #defined but must not be for the C++ binding of MPI" 的解决方法
- /linux/module.h is not being included, or CONFIG_MODULES is not set
- Could not load file or assembly ‘AjaxControlToolkit’ or one of its dependencies. The parameter is incorrect. (Exception
- 20140528 repo sync后发现的bug "replace is not a member of std"
- org.openqa.selenium.remote.UnreachableBrowserException: Could not start a new session. Possible causes are invalid address of the remote server or br
- Kernel configuration is invalid. include/linux/autoconf.h or include/config/auto.conf are m
- Could not load file or assembly "xxx" or one of its dependencies. The system cannot find the file sp
- Installing Windows Identity Foundation on Windows 8 - The Certificate for the signer of the message is invalid or not found.