Skip to Main Content

MongoByte MongoDB Logo

Welcome to the new MongoDB Feedback Portal!

{Improvement: "Your idea"}
We’ve upgraded our system to better capture and act on your feedback.
Your feedback is meaningful and helps us build better products.

Status Submitted
Categories Database
Created by Guest
Created on Dec 16, 2022

sharding error shardsvr

Make it clear which node is causing the "shardsvr" error. Spawned from support case 01042995 Our error occurred when the user tried to connect using Compass. The failure was to list the collection names on one database. The error presented back to the user was merely `Cannot accept sharding commands if not started with --shardsvr` We found eventually that the primary changed on one of the shards, and that primary did not have the appropriate `clusterRole` in the mongod.conf file. My concerns are that this took too long to track down and would be impossible in a 100-shard environment. * Nothing in sh.status() indicated that there was any problem connecting to those nodes * Nothing in the mongos.log file indicated which node was providing that error
  • Attach files