我正在做mongodump --host=replicasetname/host,host,host -d databasename --out=path
,它一切正常。
但我已经制作了一个新的复制品,当我这样做时,我什么也得不到。
当它起作用时会发生这种情况:
2016-02-10T11:58:29.152+0100 starting new replica set monitor for replica set ... with seeds ...:27017,...:27017,...:27017
2016-02-10T11:58:29.152+0100 creating new connection to:...:27017
2016-02-10T11:58:29.152+0100 [ReplicaSetMonitorWatcher] BackgroundJob starting: ReplicaSetMonitorWatcher
2016-02-10T11:58:29.152+0100 [ReplicaSetMonitorWatcher] starting
2016-02-10T11:58:29.213+0100 [ConnectBG] BackgroundJob starting: ConnectBG
2016-02-10T11:58:29.275+0100 connected to server ...:27017 (...)
2016-02-10T11:58:29.275+0100 connected connection!
2016-02-10T11:58:29.339+0100 changing hosts to ... from ...
connected to: ...
2016-02-10T11:58:29.339+0100 creating new connection to:...
2016-02-10T11:58:29.400+0100 [ConnectBG] BackgroundJob starting: ConnectBG
2016-02-10T11:58:29.460+0100 connected to server ...
2016-02-10T11:58:29.460+0100 connected connection!
2016-02-10T11:58:29.521+0100 DATABASE: ... to ...
2016-02-10T11:58:29.648+0100 ....system.indexes to /tmp/dump/...
...
...
当它不起作用时会发生这种情况
2016-02-10T12:03:02.181+0100 starting new replica set monitor for replica set ... with seeds ...
2016-02-10T12:03:02.181+0100 creating new connection to:...
2016-02-10T12:03:02.181+0100 [ReplicaSetMonitorWatcher] BackgroundJob starting: ReplicaSetMonitorWatcher
2016-02-10T12:03:02.181+0100 [ReplicaSetMonitorWatcher] starting
2016-02-10T12:03:02.192+0100 [ConnectBG] BackgroundJob starting: ConnectBG
2016-02-10T12:03:02.258+0100 connected to server ...
2016-02-10T12:03:02.258+0100 connected connection!
connected to: ...
2016-02-10T12:03:02.323+0100 creating new connection to:...
2016-02-10T12:03:02.323+0100 [ConnectBG] BackgroundJob starting: ConnectBG
2016-02-10T12:03:02.386+0100 connected to server ...
2016-02-10T12:03:02.386+0100 connected connection!
2016-02-10T12:03:02.450+0100 DATABASE: ... to ...
创建了out文件夹,但它是空的。
没有显示错误。 数据库存在,它有集合和文档
虽然
的配置不同这个有效
{
"settings" : {
"chainingAllowed" : true,
"heartbeatTimeoutSecs" : 10,
"getLastErrorModes" : {
},
"getLastErrorDefaults" : {
"w" : 1,
"wtimeout" : 0
}
}
}
这个没有 { " protocolVersion" :NumberLong(1), "设置" :{ " chainingAllowed" :真的, " heartbeatIntervalMillis" :2000, " heartbeatTimeoutSecs" :10, " electionTimeoutMillis" :10000, " getLastErrorModes" :{
},
"getLastErrorDefaults" : {
"w" : 1,
"wtimeout" : 0
}
}
}
这里发生了什么? 我该怎么办?
由于