Meteor: Unexpected mongo exit code 14. Restarting.Can't start mongo server

☆樱花仙子☆ 提交于 2020-01-13 07:42:30

问题


when i try to start meteor app i get this error

=> Started proxy.                             
Unexpected mongo exit code 14. Restarting.    
Unexpected mongo exit code 14. Restarting.  

and i when try to access mongodb via shell everything is ok and shell opens and connects to mongodb

mongodb log file is also clean and doesn't show any error

i'm running mongo with

my os is Ubuntu 16.04

mongod --fork --logpath /var/log/mongodb.log

回答1:


Try:

meteor update --release *LAST STABLE VERSION FOR YOU*
meteor

If it's still not working, try:

meteor reset
meteor

Otherwise, if that still doesn't work, try removing the local db folder then running meteor again like this:

rm -r .meteor/local/db folder
meteor



回答2:


If you're having this issue running Ubuntu inside Vagrant/VirtualBox, then the problem come from working in the synced vagrant folder. The workaround is to initialize the .meteor directory in the home directory and to mount it in the synced folder. Assuming your meteor app is called MyApp and the /vagrant is the synced folder, here's how to do it:

cd ~  
meteor create MyApp  
cd MyApp  
meteor  
cd /vagrant/MyApp  
sudo mount --bind ~/MyApp/.meteor/ .meteor  
meteor  



回答3:


Also experienced this problem. To fix the problem in my case i needed to remove /tmp/mongodb-<port>.sock file




回答4:


In my case it was a problem with db after upgrading meteor from 1.6 to 1.7. To solve the issue I had to repair my local db with the next command:

~/.meteor/packages/meteor-tool/1.6.0_1/mt-os.osx.x86_64/dev_bundle/mongodb/bin/mongod --dbpath /my-app/.meteor/local/db --repair

/1.6.0_1/ stands for Meteor release I was trying to run.



来源:https://stackoverflow.com/questions/38988365/meteor-unexpected-mongo-exit-code-14-restarting-cant-start-mongo-server

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