Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error with Mongo starting Meteor

I am using a fresh Linux install. I am trying to install Meteor. Using Ubuntu 12.04, Centos and Ubuntu 13.04. I installed Node.js, Meteor and Meteorite.

Error:

Unexpected mongo exit code 100. Restarting.

Unexpected mongo exit code 100. Restarting.

Unexpected mongo exit code 100. Restarting.

Can't start mongod

MongoDB had an unspecified uncaught exception.
This can be caused by MongoDB being unable to write to a local database.
Check that you have permissions to write to .meteor/local. MongoDB does
not support filesystems like NFS that do not allow file locking.

I've tried:

Deleting .meteor/local/db/mongod.lock Also I tried to change the permissions for the whole project with chmod.

Do you recommend any Ubuntu distribution?

Thanks in advance.

like image 283
Daniel Rojas Avatar asked Jan 22 '14 01:01

Daniel Rojas


4 Answers

It some time depends on your locale settings.

Meteor reset and delete mongod.lock didn't help in my case.

I've fixed it by running

export LC_ALL=C

you can add this line to

sudo vim /usr/local/bin/meteor
like image 24
ivan133 Avatar answered Nov 15 '22 19:11

ivan133


I have run in this problem before (after meteor update or abnormal meteor termination) and these solutions worked for me before.

  1. Restart your machine.
  2. Delete the file .meteor/local/db/mongod.lock and run meteor again.
  3. Execute meteor reset and start again, but this command will erase your database.

Hope it helps.

like image 115
Oscar Saraza Avatar answered Nov 15 '22 20:11

Oscar Saraza


All I had to do was run "killall mongod" in the terminal. After that it worked again. I believe it may have cleared parts of the database though.

like image 5
Magnus Buvarp Avatar answered Nov 15 '22 19:11

Magnus Buvarp


For me a combination of the suggestions worked out. The answer that has gotten 2 down votes! and this one from another page.

sudo vim /usr/local/bin/meteor
export LC_ALL="en_US.UTF-8"

then make sure which port your mongodb is running at by issuing the following:

meteor mongo

You will get a response like this:

connecting to: 127.0.0.1:3001/meteor

now that you know the port on which the mongo is configured, add the following to the same file we have been editing:

export MONGO_URL=mongodb://127.0.0.1:3001/meteor

Now you are good to go. Of course "meteor reset" works but if you dont want to loose your data, stick with those two export lines.

like image 3
Max.Mirkia Avatar answered Nov 15 '22 20:11

Max.Mirkia