【发布时间】:2014-10-23 01:12:53
【问题描述】:
我最近更新了 Meteor,但遇到了一些烦人的错误,这使得我的项目难以工作。例如,当我运行
meteor
它给了我这个:
=> Started proxy.
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.
我在 debian 上以 root 身份运行它,所以它不应该是权限错误...但我是 Linux 新手,所以也许就是这样...。
我跑:
meteor reset
它会运行我的程序,但只要我运行
meteor mongo
访问我的数据库,但后来我得到了这个:
=> Exited from signal : SIGKILL
Killed
它破坏了我的项目,我又得到了意外的 mongo 退出代码 100。
直到 Meteor 0.9.0 才发生这种情况,这是一个错误,还是 Linux 权限错误?
谢谢!
【问题讨论】:
-
你检查过 '.meteor/local` 的权限了吗?您的 Debian 环境是否在 VM 中运行(例如 VirtualBox 或 VMware)?
-
您之前是否使用
sudo启动meteor 而现在不使用它?更改该文件夹的权限,以便您不必使用 sudo。 -
我是 root,所以我不需要 sudo 我的命令,是的,它在 VM (Oracle VirtualBox) 中