Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error: Network error while attempting to run command 'saslStart' on host 'localhost:27017'

Tags:

mongodb

When I run mongo I can able to lists the DBs using show dbs command, and perform write and read actions.

But when using the client (Robot 3T) I receive the next error:

Error:
Network error while attempting to run command 'saslStart' on host 'localhost:27017' 

Localhost DB, using macOS Catalina.

like image 946
Raz Buchnik Avatar asked Oct 28 '19 17:10

Raz Buchnik


2 Answers

I had the same problem today and solved it by upgrading Robo3T from 1.2 to latest 1.3.1.

like image 38
Teppo Kauppinen Avatar answered Oct 04 '22 13:10

Teppo Kauppinen


I believe this is because of version mismatch between mongoclient and mongo. I was able to reproduce this error by using different versions of mongoclient and mongo.

You need to upgrade your mongoclient in every part of your project including python, node and Robo3T etc.

like image 199
Shyam Swaroop Avatar answered Oct 04 '22 13:10

Shyam Swaroop