Connect arbiter mongosh

Good morning
I configured a replica set with 3 nodes and 1 arbiter. I’m using mongodb 5
If I connect from the linux machine where mongo is installed with the arbiter via command
mongo -u admin --authenticationDatabase admin
i can do the rs.status command
while if I connect with the command
mongosh "mongodb://pmarbiter1a:27017/admin" -u admin -p (or from any other client) that command doesn’t work and gives me error

MongoServerError: command replSetGetStatus requires authentication

but I am authenticated.

Where could the problem be and how can it be solved?

Thanks Alessio

Hi Alessio.

Could you please share your mongosh log file? Please double-check that it does not contain any sensitive information. If there is info in the log file that you’d rather not share here, email compass at mongodb dot com, attach the file there and reference this thread.

tail -n 50 /mongodb/log/mongod.log
{"t":{"$date":"2023-06-19T13:27:18.153+02:00"},"s":"I",  "c":"STORAGE",  "id":22430,   "ctx":"Checkpointer","msg":"WiredTiger message","attr":{"message":"[1687174038:153735][3635:0x7f896e3e0700], WT_SESSION.checkpoint: [WT_VERB_CHECKPOINT_PROGRESS] saving checkpoint snapshot min: 8994, snapshot max: 8994 snapshot count: 0, oldest timestamp: (1687174015, 1) , meta checkpoint timestamp: (1687174015, 1) base write gen: 452500"}}
{"t":{"$date":"2023-06-19T13:27:40.600+02:00"},"s":"I",  "c":"NETWORK",  "id":51800,   "ctx":"conn1127","msg":"client metadata","attr":{"remote":"10.214.1.219:58140","client":"conn1127","doc":{"driver":{"name":"mongo-java-driver|mongo-scala-driver","version":"unknown|2.3.0"},"os":{"type":"Linux","name":"Linux","architecture":"amd64","version":"3.10.0-957.27.2.el7.x86_64"},"platform":"Java/Oracle Corporation/1.8.0_151-b12|Scala/2.12.6"}}}
{"t":{"$date":"2023-06-19T13:27:40.602+02:00"},"s":"I",  "c":"NETWORK",  "id":51800,   "ctx":"conn1128","msg":"client metadata","attr":{"remote":"10.214.1.219:58142","client":"conn1128","doc":{"driver":{"name":"mongo-java-driver|mongo-scala-driver","version":"unknown|2.3.0"},"os":{"type":"Linux","name":"Linux","architecture":"amd64","version":"3.10.0-957.27.2.el7.x86_64"},"platform":"Java/Oracle Corporation/1.8.0_151-b12|Scala/2.12.6"}}}
{"t":{"$date":"2023-06-19T13:27:40.605+02:00"},"s":"I",  "c":"NETWORK",  "id":51800,   "ctx":"conn1129","msg":"client metadata","attr":{"remote":"10.214.1.219:58144","client":"conn1129","doc":{"driver":{"name":"mongo-java-driver|mongo-scala-driver","version":"unknown|2.3.0"},"os":{"type":"Linux","name":"Linux","architecture":"amd64","version":"3.10.0-957.27.2.el7.x86_64"},"platform":"Java/Oracle Corporation/1.8.0_151-b12|Scala/2.12.6"}}}
{"t":{"$date":"2023-06-19T13:28:18.156+02:00"},"s":"I",  "c":"STORAGE",  "id":22430,   "ctx":"Checkpointer","msg":"WiredTiger message","attr":{"message":"[1687174098:156445][3635:0x7f896e3e0700], WT_SESSION.checkpoint: [WT_VERB_CHECKPOINT_PROGRESS] saving checkpoint snapshot min: 8996, snapshot max: 8996 snapshot count: 0, oldest timestamp: (1687174069, 5) , meta checkpoint timestamp: (1687174069, 5) base write gen: 452500"}}
{"t":{"$date":"2023-06-19T13:29:18.158+02:00"},"s":"I",  "c":"STORAGE",  "id":22430,   "ctx":"Checkpointer","msg":"WiredTiger message","attr":{"message":"[1687174158:158883][3635:0x7f896e3e0700], WT_SESSION.checkpoint: [WT_VERB_CHECKPOINT_PROGRESS] saving checkpoint snapshot min: 8998, snapshot max: 8998 snapshot count: 0, oldest timestamp: (1687174135, 1) , meta checkpoint timestamp: (1687174135, 1) base write gen: 452500"}}
{"t":{"$date":"2023-06-19T13:30:18.161+02:00"},"s":"I",  "c":"STORAGE",  "id":22430,   "ctx":"Checkpointer","msg":"WiredTiger message","attr":{"message":"[1687174218:161389][3635:0x7f896e3e0700], WT_SESSION.checkpoint: [WT_VERB_CHECKPOINT_PROGRESS] saving checkpoint snapshot min: 9000, snapshot max: 9000 snapshot count: 0, oldest timestamp: (1687174195, 1) , meta checkpoint timestamp: (1687174195, 1) base write gen: 452500"}}
{"t":{"$date":"2023-06-19T13:31:18.163+02:00"},"s":"I",  "c":"STORAGE",  "id":22430,   "ctx":"Checkpointer","msg":"WiredTiger message","attr":{"message":"[1687174278:163953][3635:0x7f896e3e0700], WT_SESSION.checkpoint: [WT_VERB_CHECKPOINT_PROGRESS] saving checkpoint snapshot min: 9002, snapshot max: 9002 snapshot count: 0, oldest timestamp: (1687174255, 1) , meta checkpoint timestamp: (1687174255, 1) base write gen: 452500"}}
{"t":{"$date":"2023-06-19T13:32:18.167+02:00"},"s":"I",  "c":"STORAGE",  "id":22430,   "ctx":"Checkpointer","msg":"WiredTiger message","attr":{"message":"[1687174338:167381][3635:0x7f896e3e0700], WT_SESSION.checkpoint: [WT_VERB_CHECKPOINT_PROGRESS] saving checkpoint snapshot min: 9004, snapshot max: 9004 snapshot count: 0, oldest timestamp: (1687174307, 2) , meta checkpoint timestamp: (1687174307, 2) base write gen: 452500"}}
{"t":{"$date":"2023-06-19T13:33:18.170+02:00"},"s":"I",  "c":"STORAGE",  "id":22430,   "ctx":"Checkpointer","msg":"WiredTiger message","attr":{"message":"[1687174398:170481][3635:0x7f896e3e0700], WT_SESSION.checkpoint: [WT_VERB_CHECKPOINT_PROGRESS] saving checkpoint snapshot min: 9006, snapshot max: 9006 snapshot count: 0, oldest timestamp: (1687174383, 2) , meta checkpoint timestamp: (1687174383, 2) base write gen: 452500"}}
{"t":{"$date":"2023-06-19T13:34:18.173+02:00"},"s":"I",  "c":"STORAGE",  "id":22430,   "ctx":"Checkpointer","msg":"WiredTiger message","attr":{"message":"[1687174458:173267][3635:0x7f896e3e0700], WT_SESSION.checkpoint: [WT_VERB_CHECKPOINT_PROGRESS] saving checkpoint snapshot min: 9008, snapshot max: 9008 snapshot count: 0, oldest timestamp: (1687174438, 2) , meta checkpoint timestamp: (1687174438, 2) base write gen: 452500"}}
{"t":{"$date":"2023-06-19T13:35:18.176+02:00"},"s":"I",  "c":"STORAGE",  "id":22430,   "ctx":"Checkpointer","msg":"WiredTiger message","attr":{"message":"[1687174518:176214][3635:0x7f896e3e0700], WT_SESSION.checkpoint: [WT_VERB_CHECKPOINT_PROGRESS] saving checkpoint snapshot min: 9010, snapshot max: 9010 snapshot count: 0, oldest timestamp: (1687174495, 1) , meta checkpoint timestamp: (1687174495, 1) base write gen: 452500"}}
{"t":{"$date":"2023-06-19T13:36:18.178+02:00"},"s":"I",  "c":"STORAGE",  "id":22430,   "ctx":"Checkpointer","msg":"WiredTiger message","attr":{"message":"[1687174578:178701][3635:0x7f896e3e0700], WT_SESSION.checkpoint: [WT_VERB_CHECKPOINT_PROGRESS] saving checkpoint snapshot min: 9012, snapshot max: 9012 snapshot count: 0, oldest timestamp: (1687174555, 1) , meta checkpoint timestamp: (1687174555, 1) base write gen: 452500"}}
{"t":{"$date":"2023-06-19T13:37:18.181+02:00"},"s":"I",  "c":"STORAGE",  "id":22430,   "ctx":"Checkpointer","msg":"WiredTiger message","attr":{"message":"[1687174638:181108][3635:0x7f896e3e0700], WT_SESSION.checkpoint: [WT_VERB_CHECKPOINT_PROGRESS] saving checkpoint snapshot min: 9014, snapshot max: 9014 snapshot count: 0, oldest timestamp: (1687174615, 1) , meta checkpoint timestamp: (1687174615, 1) base write gen: 452500"}}
{"t":{"$date":"2023-06-19T13:38:18.183+02:00"},"s":"I",  "c":"STORAGE",  "id":22430,   "ctx":"Checkpointer","msg":"WiredTiger message","attr":{"message":"[1687174698:183795][3635:0x7f896e3e0700], WT_SESSION.checkpoint: [WT_VERB_CHECKPOINT_PROGRESS] saving checkpoint snapshot min: 9016, snapshot max: 9016 snapshot count: 0, oldest timestamp: (1687174679, 2) , meta checkpoint timestamp: (1687174679, 2) base write gen: 452500"}}
{"t":{"$date":"2023-06-19T13:39:18.186+02:00"},"s":"I",  "c":"STORAGE",  "id":22430,   "ctx":"Checkpointer","msg":"WiredTiger message","attr":{"message":"[1687174758:186412][3635:0x7f896e3e0700], WT_SESSION.checkpoint: [WT_VERB_CHECKPOINT_PROGRESS] saving checkpoint snapshot min: 9018, snapshot max: 9018 snapshot count: 0, oldest timestamp: (1687174734, 2) , meta checkpoint timestamp: (1687174734, 2) base write gen: 452500"}}
{"t":{"$date":"2023-06-19T13:40:18.189+02:00"},"s":"I",  "c":"STORAGE",  "id":22430,   "ctx":"Checkpointer","msg":"WiredTiger message","attr":{"message":"[1687174818:189018][3635:0x7f896e3e0700], WT_SESSION.checkpoint: [WT_VERB_CHECKPOINT_PROGRESS] saving checkpoint snapshot min: 9020, snapshot max: 9020 snapshot count: 0, oldest timestamp: (1687174798, 2) , meta checkpoint timestamp: (1687174798, 2) base write gen: 452500"}}
{"t":{"$date":"2023-06-19T13:41:18.192+02:00"},"s":"I",  "c":"STORAGE",  "id":22430,   "ctx":"Checkpointer","msg":"WiredTiger message","attr":{"message":"[1687174878:192064][3635:0x7f896e3e0700], WT_SESSION.checkpoint: [WT_VERB_CHECKPOINT_PROGRESS] saving checkpoint snapshot min: 9022, snapshot max: 9022 snapshot count: 0, oldest timestamp: (1687174851, 2) , meta checkpoint timestamp: (1687174851, 2) base write gen: 452500"}}
{"t":{"$date":"2023-06-19T13:42:18.194+02:00"},"s":"I",  "c":"STORAGE",  "id":22430,   "ctx":"Checkpointer","msg":"WiredTiger message","attr":{"message":"[1687174938:194623][3635:0x7f896e3e0700], WT_SESSION.checkpoint: [WT_VERB_CHECKPOINT_PROGRESS] saving checkpoint snapshot min: 9024, snapshot max: 9024 snapshot count: 0, oldest timestamp: (1687174914, 1) , meta checkpoint timestamp: (1687174914, 1) base write gen: 452500"}}
{"t":{"$date":"2023-06-19T13:43:18.197+02:00"},"s":"I",  "c":"STORAGE",  "id":22430,   "ctx":"Checkpointer","msg":"WiredTiger message","attr":{"message":"[1687174998:197359][3635:0x7f896e3e0700], WT_SESSION.checkpoint: [WT_VERB_CHECKPOINT_PROGRESS] saving checkpoint snapshot min: 9026, snapshot max: 9026 snapshot count: 0, oldest timestamp: (1687174969, 5) , meta checkpoint timestamp: (1687174969, 5) base write gen: 452500"}}
{"t":{"$date":"2023-06-19T13:43:40.592+02:00"},"s":"I",  "c":"NETWORK",  "id":51800,   "ctx":"conn1130","msg":"client metadata","attr":{"remote":"10.214.1.219:58488","client":"conn1130","doc":{"driver":{"name":"mongo-java-driver|mongo-scala-driver","version":"unknown|2.3.0"},"os":{"type":"Linux","name":"Linux","architecture":"amd64","version":"3.10.0-957.27.2.el7.x86_64"},"platform":"Java/Oracle Corporation/1.8.0_151-b12|Scala/2.12.6"}}}
{"t":{"$date":"2023-06-19T13:43:40.594+02:00"},"s":"I",  "c":"NETWORK",  "id":51800,   "ctx":"conn1131","msg":"client metadata","attr":{"remote":"10.214.1.219:58490","client":"conn1131","doc":{"driver":{"name":"mongo-java-driver|mongo-scala-driver","version":"unknown|2.3.0"},"os":{"type":"Linux","name":"Linux","architecture":"amd64","version":"3.10.0-957.27.2.el7.x86_64"},"platform":"Java/Oracle Corporation/1.8.0_151-b12|Scala/2.12.6"}}}
{"t":{"$date":"2023-06-19T13:43:40.596+02:00"},"s":"I",  "c":"NETWORK",  "id":51800,   "ctx":"conn1132","msg":"client metadata","attr":{"remote":"10.214.1.219:58492","client":"conn1132","doc":{"driver":{"name":"mongo-java-driver|mongo-scala-driver","version":"unknown|2.3.0"},"os":{"type":"Linux","name":"Linux","architecture":"amd64","version":"3.10.0-957.27.2.el7.x86_64"},"platform":"Java/Oracle Corporation/1.8.0_151-b12|Scala/2.12.6"}}}
{"t":{"$date":"2023-06-19T13:44:18.200+02:00"},"s":"I",  "c":"STORAGE",  "id":22430,   "ctx":"Checkpointer","msg":"WiredTiger message","attr":{"message":"[1687175058:200252][3635:0x7f896e3e0700], WT_SESSION.checkpoint: [WT_VERB_CHECKPOINT_PROGRESS] saving checkpoint snapshot min: 9028, snapshot max: 9028 snapshot count: 0, oldest timestamp: (1687175029, 2) , meta checkpoint timestamp: (1687175029, 2) base write gen: 452500"}}
{"t":{"$date":"2023-06-19T13:45:18.202+02:00"},"s":"I",  "c":"STORAGE",  "id":22430,   "ctx":"Checkpointer","msg":"WiredTiger message","attr":{"message":"[1687175118:202631][3635:0x7f896e3e0700], WT_SESSION.checkpoint: [WT_VERB_CHECKPOINT_PROGRESS] saving checkpoint snapshot min: 9030, snapshot max: 9030 snapshot count: 0, oldest timestamp: (1687175102, 2) , meta checkpoint timestamp: (1687175102, 2) base write gen: 452500"}}
{"t":{"$date":"2023-06-19T13:46:18.205+02:00"},"s":"I",  "c":"STORAGE",  "id":22430,   "ctx":"Checkpointer","msg":"WiredTiger message","attr":{"message":"[1687175178:205476][3635:0x7f896e3e0700], WT_SESSION.checkpoint: [WT_VERB_CHECKPOINT_PROGRESS] saving checkpoint snapshot min: 9032, snapshot max: 9032 snapshot count: 0, oldest timestamp: (1687175147, 2) , meta checkpoint timestamp: (1687175147, 2) base write gen: 452500"}}
{"t":{"$date":"2023-06-19T13:47:18.207+02:00"},"s":"I",  "c":"STORAGE",  "id":22430,   "ctx":"Checkpointer","msg":"WiredTiger message","attr":{"message":"[1687175238:207945][3635:0x7f896e3e0700], WT_SESSION.checkpoint: [WT_VERB_CHECKPOINT_PROGRESS] saving checkpoint snapshot min: 9034, snapshot max: 9034 snapshot count: 0, oldest timestamp: (1687175215, 1) , meta checkpoint timestamp: (1687175215, 1) base write gen: 452500"}}
{"t":{"$date":"2023-06-19T13:48:18.211+02:00"},"s":"I",  "c":"STORAGE",  "id":22430,   "ctx":"Checkpointer","msg":"WiredTiger message","attr":{"message":"[1687175298:211092][3635:0x7f896e3e0700], WT_SESSION.checkpoint: [WT_VERB_CHECKPOINT_PROGRESS] saving checkpoint snapshot min: 9036, snapshot max: 9036 snapshot count: 0, oldest timestamp: (1687175269, 7) , meta checkpoint timestamp: (1687175269, 7) base write gen: 452500"}}
{"t":{"$date":"2023-06-19T13:49:18.213+02:00"},"s":"I",  "c":"STORAGE",  "id":22430,   "ctx":"Checkpointer","msg":"WiredTiger message","attr":{"message":"[1687175358:213716][3635:0x7f896e3e0700], WT_SESSION.checkpoint: [WT_VERB_CHECKPOINT_PROGRESS] saving checkpoint snapshot min: 9038, snapshot max: 9038 snapshot count: 0, oldest timestamp: (1687175335, 1) , meta checkpoint timestamp: (1687175335, 1) base write gen: 452500"}}
{"t":{"$date":"2023-06-19T13:50:18.216+02:00"},"s":"I",  "c":"STORAGE",  "id":22430,   "ctx":"Checkpointer","msg":"WiredTiger message","attr":{"message":"[1687175418:216104][3635:0x7f896e3e0700], WT_SESSION.checkpoint: [WT_VERB_CHECKPOINT_PROGRESS] saving checkpoint snapshot min: 9040, snapshot max: 9040 snapshot count: 0, oldest timestamp: (1687175393, 2) , meta checkpoint timestamp: (1687175393, 2) base write gen: 452500"}}
{"t":{"$date":"2023-06-19T13:51:18.218+02:00"},"s":"I",  "c":"STORAGE",  "id":22430,   "ctx":"Checkpointer","msg":"WiredTiger message","attr":{"message":"[1687175478:218486][3635:0x7f896e3e0700], WT_SESSION.checkpoint: [WT_VERB_CHECKPOINT_PROGRESS] saving checkpoint snapshot min: 9042, snapshot max: 9042 snapshot count: 0, oldest timestamp: (1687175446, 2) , meta checkpoint timestamp: (1687175446, 2) base write gen: 452500"}}
{"t":{"$date":"2023-06-19T13:52:18.221+02:00"},"s":"I",  "c":"STORAGE",  "id":22430,   "ctx":"Checkpointer","msg":"WiredTiger message","attr":{"message":"[1687175538:221206][3635:0x7f896e3e0700], WT_SESSION.checkpoint: [WT_VERB_CHECKPOINT_PROGRESS] saving checkpoint snapshot min: 9044, snapshot max: 9044 snapshot count: 0, oldest timestamp: (1687175515, 1) , meta checkpoint timestamp: (1687175515, 1) base write gen: 452500"}}
{"t":{"$date":"2023-06-19T13:53:18.224+02:00"},"s":"I",  "c":"STORAGE",  "id":22430,   "ctx":"Checkpointer","msg":"WiredTiger message","attr":{"message":"[1687175598:224014][3635:0x7f896e3e0700], WT_SESSION.checkpoint: [WT_VERB_CHECKPOINT_PROGRESS] saving checkpoint snapshot min: 9046, snapshot max: 9046 snapshot count: 0, oldest timestamp: (1687175573, 2) , meta checkpoint timestamp: (1687175573, 2) base write gen: 452500"}}
{"t":{"$date":"2023-06-19T13:54:18.226+02:00"},"s":"I",  "c":"STORAGE",  "id":22430,   "ctx":"Checkpointer","msg":"WiredTiger message","attr":{"message":"[1687175658:226806][3635:0x7f896e3e0700], WT_SESSION.checkpoint: [WT_VERB_CHECKPOINT_PROGRESS] saving checkpoint snapshot min: 9048, snapshot max: 9048 snapshot count: 0, oldest timestamp: (1687175635, 1) , meta checkpoint timestamp: (1687175635, 1) base write gen: 452500"}}
{"t":{"$date":"2023-06-19T13:55:18.229+02:00"},"s":"I",  "c":"STORAGE",  "id":22430,   "ctx":"Checkpointer","msg":"WiredTiger message","attr":{"message":"[1687175718:229328][3635:0x7f896e3e0700], WT_SESSION.checkpoint: [WT_VERB_CHECKPOINT_PROGRESS] saving checkpoint snapshot min: 9050, snapshot max: 9050 snapshot count: 0, oldest timestamp: (1687175696, 2) , meta checkpoint timestamp: (1687175696, 2) base write gen: 452500"}}
{"t":{"$date":"2023-06-19T13:56:18.231+02:00"},"s":"I",  "c":"STORAGE",  "id":22430,   "ctx":"Checkpointer","msg":"WiredTiger message","attr":{"message":"[1687175778:231698][3635:0x7f896e3e0700], WT_SESSION.checkpoint: [WT_VERB_CHECKPOINT_PROGRESS] saving checkpoint snapshot min: 9052, snapshot max: 9052 snapshot count: 0, oldest timestamp: (1687175760, 2) , meta checkpoint timestamp: (1687175760, 2) base write gen: 452500"}}
{"t":{"$date":"2023-06-19T13:56:39.817+02:00"},"s":"I",  "c":"-",        "id":20883,   "ctx":"conn1112","msg":"Interrupted operation as its client disconnected","attr":{"opId":8277079}}
{"t":{"$date":"2023-06-19T13:57:18.234+02:00"},"s":"I",  "c":"STORAGE",  "id":22430,   "ctx":"Checkpointer","msg":"WiredTiger message","attr":{"message":"[1687175838:234214][3635:0x7f896e3e0700], WT_SESSION.checkpoint: [WT_VERB_CHECKPOINT_PROGRESS] saving checkpoint snapshot min: 9054, snapshot max: 9054 snapshot count: 0, oldest timestamp: (1687175815, 1) , meta checkpoint timestamp: (1687175815, 1) base write gen: 452500"}}
{"t":{"$date":"2023-06-19T13:58:18.236+02:00"},"s":"I",  "c":"STORAGE",  "id":22430,   "ctx":"Checkpointer","msg":"WiredTiger message","attr":{"message":"[1687175898:236535][3635:0x7f896e3e0700], WT_SESSION.checkpoint: [WT_VERB_CHECKPOINT_PROGRESS] saving checkpoint snapshot min: 9056, snapshot max: 9056 snapshot count: 0, oldest timestamp: (1687175874, 2) , meta checkpoint timestamp: (1687175874, 2) base write gen: 452500"}}
{"t":{"$date":"2023-06-19T13:58:28.319+02:00"},"s":"I",  "c":"NETWORK",  "id":51800,   "ctx":"conn1133","msg":"client metadata","attr":{"remote":"10.214.3.145:39278","client":"conn1133","doc":{"driver":{"name":"nodejs|mongosh","version":"5.1.0"},"os":{"type":"Linux","name":"linux","architecture":"x64","version":"3.10.0-1160.88.1.el7.x86_64"},"platform":"Node.js v16.19.1, LE (unified)","version":"5.1.0|1.8.0","application":{"name":"mongosh 1.8.0"}}}}
{"t":{"$date":"2023-06-19T13:58:28.327+02:00"},"s":"I",  "c":"NETWORK",  "id":51800,   "ctx":"conn1134","msg":"client metadata","attr":{"remote":"10.214.3.145:39280","client":"conn1134","doc":{"driver":{"name":"nodejs|mongosh","version":"5.1.0"},"os":{"type":"Linux","name":"linux","architecture":"x64","version":"3.10.0-1160.88.1.el7.x86_64"},"platform":"Node.js v16.19.1, LE (unified)","version":"5.1.0|1.8.0","application":{"name":"mongosh 1.8.0"}}}}
{"t":{"$date":"2023-06-19T13:58:28.343+02:00"},"s":"I",  "c":"NETWORK",  "id":51800,   "ctx":"conn1135","msg":"client metadata","attr":{"remote":"10.214.3.145:39282","client":"conn1135","doc":{"driver":{"name":"nodejs|mongosh","version":"5.1.0"},"os":{"type":"Linux","name":"linux","architecture":"x64","version":"3.10.0-1160.88.1.el7.x86_64"},"platform":"Node.js v16.19.1, LE (unified)","version":"5.1.0|1.8.0","application":{"name":"mongosh 1.8.0"}}}}
{"t":{"$date":"2023-06-19T13:58:28.343+02:00"},"s":"I",  "c":"NETWORK",  "id":51800,   "ctx":"conn1136","msg":"client metadata","attr":{"remote":"10.214.3.145:39284","client":"conn1136","doc":{"driver":{"name":"nodejs|mongosh","version":"5.1.0"},"os":{"type":"Linux","name":"linux","architecture":"x64","version":"3.10.0-1160.88.1.el7.x86_64"},"platform":"Node.js v16.19.1, LE (unified)","version":"5.1.0|1.8.0","application":{"name":"mongosh 1.8.0"}}}}
{"t":{"$date":"2023-06-19T13:58:36.978+02:00"},"s":"I",  "c":"-",        "id":20883,   "ctx":"conn1133","msg":"Interrupted operation as its client disconnected","attr":{"opId":8280485}}
{"t":{"$date":"2023-06-19T13:58:48.357+02:00"},"s":"I",  "c":"NETWORK",  "id":51800,   "ctx":"conn1137","msg":"client metadata","attr":{"remote":"127.0.0.1:53442","client":"conn1137","doc":{"application":{"name":"MongoDB Shell"},"driver":{"name":"MongoDB Internal Client","version":"5.0.15"},"os":{"type":"Linux","name":"CentOS Linux release 7.9.2009 (Core)","architecture":"x86_64","version":"Kernel 3.10.0-1160.88.1.el7.x86_64"}}}}
{"t":{"$date":"2023-06-19T13:59:18.239+02:00"},"s":"I",  "c":"STORAGE",  "id":22430,   "ctx":"Checkpointer","msg":"WiredTiger message","attr":{"message":"[1687175958:239604][3635:0x7f896e3e0700], WT_SESSION.checkpoint: [WT_VERB_CHECKPOINT_PROGRESS] saving checkpoint snapshot min: 9058, snapshot max: 9058 snapshot count: 0, oldest timestamp: (1687175938, 2) , meta checkpoint timestamp: (1687175938, 2) base write gen: 452500"}}
{"t":{"$date":"2023-06-19T13:59:40.584+02:00"},"s":"I",  "c":"NETWORK",  "id":51800,   "ctx":"conn1138","msg":"client metadata","attr":{"remote":"10.214.1.219:58824","client":"conn1138","doc":{"driver":{"name":"mongo-java-driver|mongo-scala-driver","version":"unknown|2.3.0"},"os":{"type":"Linux","name":"Linux","architecture":"amd64","version":"3.10.0-957.27.2.el7.x86_64"},"platform":"Java/Oracle Corporation/1.8.0_151-b12|Scala/2.12.6"}}}
{"t":{"$date":"2023-06-19T13:59:40.587+02:00"},"s":"I",  "c":"NETWORK",  "id":51800,   "ctx":"conn1139","msg":"client metadata","attr":{"remote":"10.214.1.219:58826","client":"conn1139","doc":{"driver":{"name":"mongo-java-driver|mongo-scala-driver","version":"unknown|2.3.0"},"os":{"type":"Linux","name":"Linux","architecture":"amd64","version":"3.10.0-957.27.2.el7.x86_64"},"platform":"Java/Oracle Corporation/1.8.0_151-b12|Scala/2.12.6"}}}
{"t":{"$date":"2023-06-19T13:59:40.589+02:00"},"s":"I",  "c":"NETWORK",  "id":51800,   "ctx":"conn1140","msg":"client metadata","attr":{"remote":"10.214.1.219:58828","client":"conn1140","doc":{"driver":{"name":"mongo-java-driver|mongo-scala-driver","version":"unknown|2.3.0"},"os":{"type":"Linux","name":"Linux","architecture":"amd64","version":"3.10.0-957.27.2.el7.x86_64"},"platform":"Java/Oracle Corporation/1.8.0_151-b12|Scala/2.12.6"}}}
{"t":{"$date":"2023-06-19T14:00:18.242+02:00"},"s":"I",  "c":"STORAGE",  "id":22430,   "ctx":"Checkpointer","msg":"WiredTiger message","attr":{"message":"[1687176018:242184][3635:0x7f896e3e0700], WT_SESSION.checkpoint: [WT_VERB_CHECKPOINT_PROGRESS] saving checkpoint snapshot min: 9060, snapshot max: 9060 snapshot count: 0, oldest timestamp: (1687175995, 1) , meta checkpoint timestamp: (1687175995, 1) base write gen: 452500"}}

@Alessio_Rossato that’s the mongod log. Can you share the mongosh log (https://www.mongodb.com/docs/mongodb-shell/logs/) for a session where the connection to the arbiter fails?

{"t":{"$date":"2023-06-21T09:03:29.839Z"},"s":"I","c":"MONGOSH","id":1000000000,"ctx":"log","msg":"Starting log","attr":{"execPath":"/usr/bin/mongosh","envInfo":{"EDITOR":null,"NODE_OPTIONS":null,"TERM":"xterm"},"version":"1.8.0","distributionKind":"compiled","buildArch":"x64","buildPlatform":"linux","buildTarget":"linux-x64","buildTime":"2023-02-28T13:57:25.355Z","gitVersion":"9cf53bc336c79e505cf034bf5e6f3b3b3796cf25","nodeVersion":"v16.19.1","opensslVersion":"1.1.1t+quic","sharedOpenssl":false}}
{"t":{"$date":"2023-06-21T09:03:29.843Z"},"s":"I","c":"MONGOSH","id":1000000005,"ctx":"config","msg":"User updated"}
{"t":{"$date":"2023-06-21T09:03:29.843Z"},"s":"I","c":"MONGOSH","id":1000000048,"ctx":"config","msg":"Loading global configuration file","attr":{"filename":"/etc/mongosh.conf","found":false}}
{"t":{"$date":"2023-06-21T09:03:29.868Z"},"s":"I","c":"DEVTOOLS-CONNECT","id":1000000042,"ctx":"mongosh-connect","msg":"Initiating connection attempt","attr":{"uri":"mongodb://<credentials>@127.0.0.1:27017/admin?directConnection=true&serverSelectionTimeoutMS=2000&appName=mongosh+1.8.0","driver":{"name":"nodejs|mongosh","version":"5.1.0"},"devtoolsConnectVersion":"1.4.4","host":"127.0.0.1:27017"}}
{"t":{"$date":"2023-06-21T09:03:29.875Z"},"s":"I","c":"DEVTOOLS-CONNECT","id":1000000035,"ctx":"mongosh-connect","msg":"Server heartbeat succeeded","attr":{"connectionId":"127.0.0.1:27017"}}
{"t":{"$date":"2023-06-21T09:03:29.881Z"},"s":"I","c":"DEVTOOLS-CONNECT","id":1000000037,"ctx":"mongosh-connect","msg":"Connection attempt finished"}
{"t":{"$date":"2023-06-21T09:03:29.903Z"},"s":"I","c":"MONGOSH","id":1000000004,"ctx":"connect","msg":"Connecting to server","attr":{"session_id":"6492bce1d996ea5d77380059","userId":null,"telemetryAnonymousId":"642438a6fba198fe090614bf","connectionUri":"<mongodb uri><ip address>:27017/admin?directConnection=true&serverSelectionTimeoutMS=2000&appName=mongosh+1.8.0","is_atlas":false,"is_localhost":true,"is_do":false,"server_version":"5.0.15","node_version":"v16.19.1","mongosh_version":"1.8.0","server_os":"linux","server_arch":"x86_64","is_enterprise":false,"auth_type":"DEFAULT","is_data_federation":false,"dl_version":null,"atlas_version":null,"is_genuine":true,"non_genuine_server_name":"mongodb","fcv":null,"api_version":null,"api_strict":null,"api_deprecation_errors":null}}
{"t":{"$date":"2023-06-21T09:03:29.907Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"adminCommand","class":"Database","db":"admin","arguments":{"cmd":{"ping":1}}}}
{"t":{"$date":"2023-06-21T09:03:29.908Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"getSiblingDB","class":"Database","db":"admin","arguments":{"db":"admin"}}}
{"t":{"$date":"2023-06-21T09:03:29.962Z"},"s":"I","c":"MONGOSH","id":1000000010,"ctx":"shell-api","msg":"Initialized context","attr":{"method":"setCtx","arguments":{}}}
{"t":{"$date":"2023-06-21T09:03:29.965Z"},"s":"I","c":"MONGOSH","id":1000000009,"ctx":"shell-api","msg":"Used \"show\" command","attr":{"method":"show startupWarnings"}}
{"t":{"$date":"2023-06-21T09:03:29.966Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"adminCommand","class":"Database","db":"admin","arguments":{"cmd":{"getLog":"startupWarnings"}}}}
{"t":{"$date":"2023-06-21T09:03:29.967Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"getSiblingDB","class":"Database","db":"admin","arguments":{"db":"admin"}}}
{"t":{"$date":"2023-06-21T09:03:29.968Z"},"s":"I","c":"MONGOSH","id":1000000009,"ctx":"shell-api","msg":"Used \"show\" command","attr":{"method":"show freeMonitoring"}}
{"t":{"$date":"2023-06-21T09:03:29.968Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"adminCommand","class":"Database","db":"admin","arguments":{"cmd":{"getFreeMonitoringStatus":1}}}}
{"t":{"$date":"2023-06-21T09:03:29.969Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"getSiblingDB","class":"Database","db":"admin","arguments":{"db":"admin"}}}
{"t":{"$date":"2023-06-21T09:03:29.969Z"},"s":"I","c":"MONGOSH","id":1000000009,"ctx":"shell-api","msg":"Used \"show\" command","attr":{"method":"show automationNotices"}}
{"t":{"$date":"2023-06-21T09:03:29.970Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"hello","class":"Database","db":"admin","arguments":{}}}
{"t":{"$date":"2023-06-21T09:03:29.985Z"},"s":"I","c":"MONGOSH","id":1000000009,"ctx":"shell-api","msg":"Used \"show\" command","attr":{"method":"show nonGenuineMongoDBCheck"}}
{"t":{"$date":"2023-06-21T09:03:29.985Z"},"s":"E","c":"MONGOSH","id":1000000006,"ctx":"shell-api","msg":"MongoServerError: command getLog requires authentication","attr":{"stack":"MongoServerError: command getLog requires authentication\n    at Connection.onMessage (/tmp/m/boxednode/mongosh/node-v16.19.1/out/Release/node:3902:1267623)\n    at MessageStream.<anonymous> (/tmp/m/boxednode/mongosh/node-v16.19.1/out/Release/node:3902:1265503)\n    at MessageStream.emit (node:events:513:28)\n    at MessageStream.emit (node:domain:489:12)\n    at p (/tmp/m/boxednode/mongosh/node-v16.19.1/out/Release/node:3902:1287145)\n    at MessageStream._write (/tmp/m/boxednode/mongosh/node-v16.19.1/out/Release/node:3902:1285766)\n    at writeOrBuffer (node:internal/streams/writable:391:12)\n    at _write (node:internal/streams/writable:332:10)\n    at MessageStream.Writable.write (node:internal/streams/writable:336:10)\n    at Socket.ondata (node:internal/streams/readable:754:22)","name":"MongoServerError","message":"command getLog requires authentication","code":13,"ok":0,"codeName":"Unauthorized"}}
{"t":{"$date":"2023-06-21T09:03:29.986Z"},"s":"E","c":"MONGOSH","id":1000000006,"ctx":"shell-api","msg":"MongoServerError: command getFreeMonitoringStatus requires authentication","attr":{"stack":"MongoServerError: command getFreeMonitoringStatus requires authentication\n    at Connection.onMessage (/tmp/m/boxednode/mongosh/node-v16.19.1/out/Release/node:3902:1267623)\n    at MessageStream.<anonymous> (/tmp/m/boxednode/mongosh/node-v16.19.1/out/Release/node:3902:1265503)\n    at MessageStream.emit (node:events:513:28)\n    at MessageStream.emit (node:domain:489:12)\n    at p (/tmp/m/boxednode/mongosh/node-v16.19.1/out/Release/node:3902:1287145)\n    at MessageStream._write (/tmp/m/boxednode/mongosh/node-v16.19.1/out/Release/node:3902:1285766)\n    at writeOrBuffer (node:internal/streams/writable:391:12)\n    at _write (node:internal/streams/writable:332:10)\n    at MessageStream.Writable.write (node:internal/streams/writable:336:10)\n    at Socket.ondata (node:internal/streams/readable:754:22)","name":"MongoServerError","message":"command getFreeMonitoringStatus requires authentication","code":13,"ok":0,"codeName":"Unauthorized"}}
{"t":{"$date":"2023-06-21T09:03:29.987Z"},"s":"I","c":"MONGOSH-SNIPPETS","id":1000000024,"ctx":"snippets","msg":"Fetching snippet index","attr":{"refreshMode":"allow-cached"}}
{"t":{"$date":"2023-06-21T09:03:29.987Z"},"s":"I","c":"MONGOSH-SNIPPETS","id":1000000019,"ctx":"snippets","msg":"Loaded snippets","attr":{"installdir":"/root/.mongodb/mongosh/snippets"}}
{"t":{"$date":"2023-06-21T09:03:29.987Z"},"s":"I","c":"MONGOSH","id":1000000015,"ctx":"repl","msg":"Warning about .mongorc.js/.mongoshrc.js mismatch"}
{"t":{"$date":"2023-06-21T09:03:30Z"},"s":"I","c":"MONGOSH","id":1000000002,"ctx":"repl","msg":"Started REPL","attr":{"version":"1.8.0"}}
{"t":{"$date":"2023-06-21T09:03:34.385Z"},"s":"I","c":"MONGOSH","id":1000000007,"ctx":"repl","msg":"Evaluating input","attr":{"input":"rs.status()"}}
{"t":{"$date":"2023-06-21T09:03:34.470Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"status","class":"ReplicaSet","arguments":{}}}
{"t":{"$date":"2023-06-21T09:03:34.482Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"getSiblingDB","class":"Database","db":"admin","arguments":{"db":"admin"}}}
{"t":{"$date":"2023-06-21T09:03:34.517Z"},"s":"E","c":"MONGOSH","id":1000000006,"ctx":"repl","msg":"MongoServerError: command replSetGetStatus requires authentication","attr":{"ok":0,"code":13,"codeName":"Unauthorized","message":"command replSetGetStatus requires authentication","name":"MongoServerError","stack":"MongoServerError: command replSetGetStatus requires authentication\n    at Connection.onMessage (/tmp/m/boxednode/mongosh/node-v16.19.1/out/Release/node:3902:1267623)\n    at MessageStream.<anonymous> (/tmp/m/boxednode/mongosh/node-v16.19.1/out/Release/node:3902:1265503)\n    at MessageStream.emit (node:events:513:28)\n    at MessageStream.emit (node:domain:489:12)\n    at p (/tmp/m/boxednode/mongosh/node-v16.19.1/out/Release/node:3902:1287145)\n    at MessageStream._write (/tmp/m/boxednode/mongosh/node-v16.19.1/out/Release/node:3902:1285766)\n    at writeOrBuffer (node:internal/streams/writable:391:12)\n    at _write (node:internal/streams/writable:332:10)\n    at MessageStream.Writable.write (node:internal/streams/writable:336:10)\n    at Socket.ondata (node:internal/streams/readable:754:22)"}}
{"t":{"$date":"2023-06-21T09:03:37.525Z"},"s":"I","c":"MONGOSH","id":1000000045,"ctx":"analytics","msg":"Flushed outstanding data","attr":{"flushError":"read ECONNRESET","flushDuration":350}}

This is the log mongosh