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

99封情书 提交于 2019-12-24 03:32:23

问题


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.


回答1:


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.




回答2:


I think your suspicion about the machine being too old is correct.

You can reproduce the same error by trying to build a meteor app on a digitalocean droplet with 512mb of ram. On an otherwise identical machine with 8gb of ram, the app builds without error.




回答3:


Just remove the @w=majority param in your connection string




回答4:


This command will reset your database

meteor reset



来源:https://stackoverflow.com/questions/32408266/meteor-unexpected-mongo-exit-code-null-restarting-what-is-this

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!