Error: couldn't connect to server mongodb0:50001, connection attempt failed: SocketException: Error connecting to mongodb0:50001 (172.16.229.131:50001) :: caused by :: Connection refused : code example
Example: SocketException: Error connecting to 127.0.0.1:27017 :: caused by :: Connection refused :
sudo rm /var/lib/mongodb/mongod.lock