Mongos not configured correctly - make sure you have only added one shard to your cluster

I only added one shard. In total I have two shards, I followed every step of the lab. I don’t understand why I get that error on the validator

Screen Shot 2019-12-24 at 3.11.57 PM Screen Shot 2019-12-24 at 3.12.31 PM Screen Shot 2019-12-24 at 3.13.51 PM

What’s the title of the lab @Diego_Hernandez_O_Hagan_03051?

Your snapshot clearly shows you added second shard

You would have completed first shard in previous lab
3.Reconfigure m103-repl
4. Add m103-repl as the first shard
Please check your steps

Chapter 3: Sharding
Lab - Shard a Collection

You definitely need two shards. You’re just running the wrong validator:


I see! I was using the last lab as a reference, that’s why I copied that validator. Thank you, it works now :smiley:

Hi @Diego_Hernandez_O_Hagan_03051,

I’m glad your issue got resolved. If you have any other issue then please feel free to create another thread.

Happy Learning :slight_smile:

Shubham Ranjan
Curriculum Support Engineer