Search code examples
mongodbubuntumeteorangular-meteor

Can't start meteor app due to mongo exit


I'm trying to run the angular2-boilerplate example on my virtual machine, on which I have Ubuntu 16.04.1 LTS, but the app can't start due to following error:

[[[[[ ~/Personal/myApp ]]]]]

=> Started proxy.
Unexpected mongo exit code 14. Restarting.
Unexpected mongo exit code 14. Restarting.
Unexpected mongo exit code 14. Restarting.
Unexpected mongo exit code 14. Restarting.
Unexpected mongo exit code 14. Restarting.
Can't start Mongo server.
Unspecified unrecoverable error. Exit was not clean

My meteor version is 1.4.2.3

I tried the solutions proposed in other questions, but none of them worked.

meteor resetor .meteor/local/db

mongod --fork --logpath /var/log/mongodb.log
about to fork child process, waiting until server is ready for connections.
forked process: 1001
ERROR: child process failed, exited with error number 1

Solution

  • I solved the problem in the following way:

    • reinstalled mongodb
    • started defined the MONGO_UR when starting meteor app

      MONGO_URL=mongodb://localhost:27017 meteor