MongoSocketOpenException: Exception opening socket

You have to start mongod first.