Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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
like image 623
shalbafzadeh Avatar asked Aug 17 '16 04:08

shalbafzadeh


3 Answers

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  
like image 114
Bilal El Tayara Avatar answered Nov 19 '22 10:11

Bilal El Tayara


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
like image 35
Mussser Avatar answered Nov 19 '22 09:11

Mussser


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

like image 8
alexey Avatar answered Nov 19 '22 09:11

alexey