意外的 mongo 退出代码 100.重新启动 [英] Unexpected mongo exit code 100. Restarting
问题描述
我试图在我的 VPS 上运行 Meteor,但出现此错误:
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.
我发现问题出在我的用户权限或类似问题上.当我尝试使用 root
访问权限运行meteor 时,它工作得非常顺利.如果我尝试使用我的custom
"用户运行meteor,它会失败.即使我授予他 sudo 权限,如 DigitalOcean.为什么会这样?背后的问题是什么?
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?
我使用的是 Ubuntu 14.04.1 LTS.Meteor 是 0.8.3 版本,我使用的是 Meteor 附带的 MongoDB.我没有单独安装MongoDB.
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.
更新:基本上我已经找到了问题,但我现在仍然不知道是什么导致了问题.我在 DigitalOcean VPS 上.如果我通过 SSH 运行 Meteor,它会失败.如果我在 Web Console Access 上运行 Meteor,它就可以工作.我不明白.
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.
推荐答案
Answer https://stackoverflow.com/a/15752736 帮助我发现 Mongo 不想在没有正确设置语言环境的情况下启动.尝试在 meteor
命令之前运行 export LC_ALL="en_US.UTF-8"
命令.
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.
这篇关于意外的 mongo 退出代码 100.重新启动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!