Thanks Ramachandra,
I changed the mongos config file as you suggested and am not getting the following error message in the mongos.log:
2022-07-28T20:12:52.255+0000 W NETWORK [mongosMain] node: localhost:27006 isn’t a part of set: shard1 ismaster: { hosts: [ “localhost:27004”, “localhost:27005”, “localhost:27006” ], setName: “csrs”, setVersion: 3, ismaster: false, secondary: true, primary: “localhost:27004”, me: “localhost:27006”, lastWrite: { opTime: { ts: Timestamp(1659039170, 1), t: 1 }, lastWriteDate: new Date(1659039170000), majorityOpTime: { ts: Timestamp(1659039170, 1), t: 1 }, majorityWriteDate: new Date(1659039170000) }, configsvr: 2, maxBsonObjectSize: 16777216, maxMessageSizeBytes: 48000000, maxWriteBatchSize: 100000, localTime: new Date(1659039172255), logicalSessionTimeoutMinutes: 30, minWireVersion: 7, maxWireVersion: 7, readOnly: false, compression: [ “snappy” ], ok: 1.0, operationTime: Timestamp(1659039170, 1), $gleStats: { lastOpTime: Timestamp(0, 0), electionId: ObjectId(‘000000000000000000000000’) }, lastCommittedOpTime: Timestamp(1659039170, 1), $clusterTime: { clusterTime: Timestamp(1659039170, 1), signature: { hash: BinData(0, 0000000000000000000000000000000000000000), keyId: 0 } } }
2022-07-28T20:12:52.255+0000 W NETWORK [mongosMain] Unable to reach primary for set shard1
What am I missing?