Could not find host matching read preference { mode: "primary" }

Yes it is. Also, now I am not facing this issue (used security and authentication using keyFile within each instance of config server, shard and router) but another one.
I am unable to run any mongosh command as it shows below
MongoServerError: command createUser requires authentication