Unable to backup the shard server - mongodb 5.0.13 mongodump ver 100.6.1

get the following error while doing a backup of shard server.

error :
Failed: error creating intents to dump: error creating intents for database config: error counting config.system.sharding_ddl_coordinators: (Unauthorized) not authorized on config to execute command { count: “system.sharding_ddl_coordinators”,

user that is doing the backup has the following roles
“roles” : [
{
“role” : “backup”,
“db” : “admin”
},
{
“role” : “read”,
“db” : “config”
}
]
}

also tried upgrading mongodump to 100.7.0, but get the same error

Check this jira ticket
https://jira.mongodb.org/browse/TOOLS-3203
Try the workaround or upgrade to latest tools version

Thank you Ramachandra!.. the solution worked after creating a custom role and granting find privileges on system.sharding_ddl_coordinators

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.