Steps to do after adding a shard (MongoDB 3.4)

25 views
Skip to first unread message

Aise Bouma

unread,
Jan 24, 2018, 4:08:04 AM1/24/18
to mongodb-user
I recently added a shard to my cluster. 

Everything seems to work, but the logs of the primary configserver show errors like:

2018-01-24T09:28:33.125+0100 I ACCESS   [conn21] Unauthorized: not authorized on config to execute command { find: "shards", readConcern: { level: "majority", afterOpTime: { ts: Timestamp 1516782507000|4, t: 5 } }, maxTimeMS: 30000 }

Do I need to restart the config servers or the mongo routers after adding a shard to the cluster?

Wan Bachtiar

unread,
Feb 14, 2018, 8:21:23 PM2/14/18
to mongodb-user

Do I need to restart the config servers or the mongo routers after adding a shard to the cluster?

Hi Aise,

Please see the steps required on MongoDB v3.4: Add a shard to a cluster

the logs of the primary config server show errors like:

Make sure that the user you’re using to view the shards information have the correct Role-Based Access Control permission. See also Cluster Administration Roles

Regards,
Wan.

Reply all
Reply to author
Forward
0 new messages