SocketException: OS Error: Connection refused, errno = 111, address = 127.0.0.1, port = 56470 code example
Example: SocketException: Error connecting to 127.0.0.1:27017 :: caused by :: Connection refused :
sudo rm /var/lib/mongodb/mongod.lock
sudo rm /var/lib/mongodb/mongod.lock