Unexpected mongo exit code 100. Restarting
Asked Answered
W

4

8

I was trying to run Meteor on my VPS and I was getting this error:

Unexpected mongo exit code 100. Restarting.
Unexpected mongo exit code 100. Restarting.
Unexpected mongo exit code 100. Restarting.
Can't start Mongo server.
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 have figured out that the problem is in my user permissions or something like that. It works very smoothly when I try to run meteor with root access. If I try to run meteor with my "custom" user, it fails. Even though I grant him sudo privileges as listed on DigitalOcean. Why is it so? What is the problem behind?

I am on Ubuntu 14.04.1 LTS. Meteor is version 0.8.3 and I am using MongoDB coming with Meteor. I do not have seperated instalation of MongoDB.


Update: Basicly I have found the problem but I still do not now what is causing the problem. I am on DigitalOcean VPS. If I run Meteor over SSH, it fails. If I run Meteor on web Console Access, it works. I do not get it.

Woermer answered 3/8, 2014 at 6:58 Comment(5)
Can you make sure that the owner of .meteor/local is yourself and not root?Maseru
Yes, I am the owner of entire folder and all files in it.Woermer
Lack of available disk space also causes this error. Still doesn't explain why you'd see it over SSH but not web console, but it's worth investigating.Slipover
It is completely new Meteor app and virtual machine has 20GB disk. This should not be a problem.Woermer
possible duplicate of Meteor: unexpected mongo exit code 100Merta
S
10

Answer https://stackoverflow.com/a/15752736 helped me to find out that Mongo doesn't want to start without properly set locale. Try to run export LC_ALL="en_US.UTF-8" command before meteor command.

Seif answered 26/11, 2014 at 1:13 Comment(1)
if you use digitalocaen this is the solutionLanalanae
D
5

WARNING: This deletes the database and all of the application's data.

rm -rf .meteor/local 

Solved it for me when none of the above solutions did.

Diaconicum answered 17/4, 2015 at 2:12 Comment(2)
WARNING: this deletes the database and all of the application's dataStairwell
This is the solution that finally worked for me on my OSX machine. It would be good if someone listed out all the things to check or try before resorting to this as the last step.Loiret
B
0

I would guess that the custom user you created cannot remove the mongod.lock file due to insufficient premissions.

Brion answered 3/8, 2014 at 7:18 Comment(1)
I have tried right now. I can delete everything because I am the owner.Woermer
B
0

Also check that you have space on your HD, That was my problem.

Beslobber answered 24/10, 2014 at 5:23 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.