menu

Tuesday, December 23, 2014

Error running meteor : Unexpected mongo exit code 1. Restarting.

hey peopple,

yup the title says it, if you have searched for this specific error and came here
i know the feeling bro, FRUSTATED

here's a little background of the issue

* you installed the latest meteor version
* you created a new app
* when you try to run it

Unexpected mongo exit code 1. Restarting.
Unexpected mongo exit code 1. Restarting.
Unexpected mongo exit code 1. Restarting.

3 times in your face

DONT WORRY i got the solution

as i found out on a internet forum, this can be solved by updating your c/c++ compilers uptodate. For some stupid reason mongodb wants it that way. So lets do it.
i am assuming ubuntu environment


  1. sudo add-apt-repository ppa:ubuntu-toolchain-r/test
  2. sudo apt-get update
  3. sudo apt-get install gcc-4.6
  4. sudo apt-get install g++-4.6


and then run the meteor as usual
VIOLA!! :D


PS: there's another version of this problem

Unexpected mongo exit code 100. Restarting.

see the error code is 100 not 1
this isnt your error, this error is something related to access violation stuff and you can probably find it in internet everywhere

Happy Meteoring 

3 comments:

  1. Did not work, same error continues.. and my frustrations too.

    ReplyDelete
    Replies
    1. can you post the exact error you are getting and the platform?

      Delete
  2. Hi! Having the same issue when running meteor.js
    thiago@thiago-X551CAP:~$ cd myapp
    thiago@thiago-X551CAP:~/myapp$ meteor
    [[[[[ ~/myapp ]]]]]

    => Started proxy.
    Unexpected mongo exit code 1. Restarting.
    Unexpected mongo exit code 1. Restarting.
    Unexpected mongo exit code 1. Restarting.
    Can't start Mongo server.
    I tried your fix but still got the same errorAny hope for me?
    Btw, running Elementary OS freya dual boot in a Win8.1 machine(ASUS X551C)

    ReplyDelete