彩信无法连接到本地计算机以进行备份

时间:2014-10-21 14:38:35

标签: mongodb mongodb-mms

我正在尝试使用mongoDB MMS备份功能。尝试连接"添加主机时,我收到以下错误#34;向导的一部分。

无法在检查间隔内检测到主机。

我在Windows 7笔记本电脑上安装了MongoDB 2.6.4。我创建了一个具有以下权限的管理员用户:

> db.createUser(
... {
... user: "admin",
... pwd: "xxx"
... roles: [
... "clusterAdmin",
... "readAnyDatabase",
... "dbAdminAnyDatabase",
... "userAdminAnyDatabase"
... ]
... }
... );

我运行mongod --auth

现在我尝试使用MONGODB-CR Auth机制通过MMS连接并获得上述错误。

在日志中我收到许多错误,如下所示:

[2014/10/21 09:13:59] [monitoring.info] [monitoring-agent/components/agent.go:551] 
Starting 2 marshal handlers
[2014/10/21 09:14:21] [monitoring.error] [monitoring-agent/components/agent.go:314] 
Failed to fetch Conf
Failure getting conf. Op: Get Err: dial tcp [I've hide the IP]:443: ConnectEx tcp:
 A connection attempt failed because the connected party did not properly respond after
 a period of time, or established connection failed because connected host has failed 
 to respond.
at monitoring-agent/components/conf.go:249
at monitoring-agent/components/agent.go:312
at mongodb.com/monitoring-agent/monitoring-agent-service.go:129
at winsvc/svc/service.go:200
at pkg/runtime/proc.c:1445

使用Robomongo 0.8.4客户端我可以使用用户登录并传递。

我希望MMS能够连接到我的本地计算机,并在我的计算机上初始化数据库的备份。

提前致谢。

1 个答案:

答案 0 :(得分:0)

配置mongodb-mms时出现此错误。在我的Ops Manager服务器上,我已经正确配置了TLS连接,但是在受监视的mongo服务器上,我使用了错误的TLS证书。我尝试监视的代理上的日志/var/log/mongodb-mms-automation/monitoring-agent.log帮助我:

[2020/04/26 02:05:47.363] [discovery.collector-mongo2:27017.error] [components/discovery.go:contexts:580] Discovery commands requiring authentication will be skipped.
Failed to get connectionStatus. Err: `auth error: round trip error: (UserNotFound) Could not find user "CN=mms,OU=TestClientCertificateOrgUnit,O=TestClientCertificateOrg,L=TestClientCertificateLocality,ST=TestClientCertificateState,C=US" for db "$external"`
        at monitoring-agent/components/dialing.go:442
        at monitoring-agent/components/dialing.go:200
        at monitoring-agent/components/dialing.go:306
        at monitoring-agent/components/dialing.go:323
        at louisaberger/procexec/concurrency.go:45
        at src/runtime/asm_amd64.s:1357

请参见this page以添加您的mms用户,以便该用户可以正确地进行身份验证(如果只是混淆,则可以修复您的证书)。