Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Meteor: unexpected mongo exit code null. Restarting. What is this?

Tags:

mongodb

meteor

The title pretty much says it - when I try to start a newly created meteor app, this appears when starting the proxy and I get the message that the mongo server can't be started.

I created some swap space already (that was mentioned in the only other thread realted to that problem) and even reinstalled it - no further success. Weird thing is, on my normal laptop this works. The laptop I'm having trouble with is a Pentium III with 1GB RAM, maybe this matters.

Any thoughts? Is the machine too old?

EDIT:

My setup:
Thinkpad T23, PIII 1.13 GHz, 1GB RAM.
Debian Stretch/testing, Linux Kernel 4.1.0-1-686-pae

My log:

[[[[[ ~/Server/sample ]]]]] => Started proxy. Unexpected mongo exit code null. Restarting. Unexpected mongo exit code null. Restarting. Unexpected mongo exit code null. Restarting. Can't start Mongo Server.

like image 822
freistil90 Avatar asked Aug 30 '25 18:08

freistil90


2 Answers

This command will reset your database

meteor reset

like image 64
Literally Illiterate Avatar answered Sep 02 '25 13:09

Literally Illiterate


Have you tried setting your LANG environment variable? As shown in Mongo can't be started when starting Meteor, which explains the following:

<snip>

If you get an error like

terminate called after throwing an instance of 'std::runtime_error'
what():  locale::facet::_S_create_c_locale name not valid
Unexpected mongo exit code null. Restarting.
...
Can't start Mongo server.

the solution is very easy but not easy to know:

You have not set your LANG settings in current shell.

Set your LANG env vars before starting meteor manually or permanent in your profile settings.

export LANG=C
export LC_ALL=C

Now you can run meteor and it should be able to start the mongo development process.

</snip>

It might be worth trying. HTH.

like image 41
Chip Castle Avatar answered Sep 02 '25 14:09

Chip Castle