When Mongo.conf is replicaset, pbm-agent works. when mongo.conf set: clusterRole: shardsvr. Pbm-agent error:
Error: connect to mongodb: get config server connetion URI: mongo: no documents in result
what should i do?
When Mongo.conf is replicaset, pbm-agent works. when mongo.conf set: clusterRole: shardsvr. Pbm-agent error:
Error: connect to mongodb: get config server connetion URI: mongo: no documents in result
what should i do?
Hi, I’ve seen this happen if you have a server running with clusterRole: shardsvr but it hasn’t been added to the cluster yet with sh.addShard() command. Can you validate from a mongos router that you see this shard when you run sh.status() ?
sh.status() is ok on mongos.
this error only occurs in shard servers. Configserver is ok.
ConfigReplSet:
Example on shard server:
pbm config
Error: connect to mongodb: get config server connetion URI: mongo: no documents in result
observation:
if i change mongo.conf clusterRole to configsvr pbm-agent works but when i change the clusterRole to shardsvr the problem occurs
databases
[
{
database: { _id: ‘config’, primary: ‘config’, partitioned: true },
collections: {
‘config.system.sessions’: {
shardKey: { _id: 1 },
unique: false,
balancing: true,
chunkMetadata: [ { shard: ‘ShardReplSet_A’, nChunks: 1024 } ],
chunks: [
‘too many chunks to print, use verbose if you want to force print’
],
tags:
}
}
}
]
Can you share the PBM_MONGODB_URI you are using? the agents should always point to localhost as per Set up and configure - Percona Backup for MongoDB
PBM_MONGODB_URI=“mongodb://usr_pbmuser_pro:pwd@localhost:27017/?authSource=admin&replicaSet=ShardReplSet_A”
That kind of URI is ok for the CLI but not for the agent. Try using something like:
PBM_MONGODB_URI=“mongodb://usr_pbmuser_pro:pwd@localhost:27017/?authSource=admin
taking out the replset part.
[root@spcdsrvv6968 72250518149]# pbm status --mongodb-uri=mongodb://usr_pbmuser_pro
:pwd@localhost:27017/?authSource=admin
Error: connect to mongodb: get config server connetion URI: mongo: no documents in result
Thanks for your help @Ivan_Groenewold but i’m still stuck. Do you know someone who could help me ?
I instaled the new version and work
Unanswered | Unsolved | Solved
MySQL, InnoDB, MariaDB and MongoDB are trademarks of their respective owners.
Copyright © 2006 - 2024 Percona LLC. All rights reserved.