Paul
Paul

Reputation: 1355

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

Upvotes: 1

Views: 1022

Answers (3)

Arthur
Arthur

Reputation: 1

In my case, I solved this problem by recreating the app on my home folder.

Upvotes: 0

Paul
Paul

Reputation: 1355

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
    

Upvotes: 1

Mikkel
Mikkel

Reputation: 7777

One of the threads about Mongo exit code 14 suggests that you also need to delete the file:

/tmp/mongodb-<port>.sock

Which will normally be

/tmp/mongodb-3001.sock

if you are running on the default meteor port, 3000

Upvotes: 1

Related Questions