流星:意外的mongo退出代码100.正在重新启动.无法启动mongo服务器 [英] Meteor: Unexpected mongo exit code 100. Restarting.Can't start mongo server

查看:162
本文介绍了流星:意外的mongo退出代码100.正在重新启动.无法启动mongo服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不得不强制重新启动Mac,现在尝试在localhost上启动一个特定的流星应用程序时遇到以下错误.

I had to force reboot my mac and now get the following error when trying to start one particular meteor app on localhost.

意外的mongo退出代码100.重新启动.无法启动Mongo服务器.MongoDB有未指定的未捕获异常.这可能是由于MongoDB无法写入本地数据库引起的.请检查您是否具有写入.meteor的权限. /当地的. MongoDB不支持不允许文件锁定的文件系统,例如NFS.

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 doesnot support filesystems like NFS that do not allow file locking.

一切正常,在出现错误之前未进行任何重大更改. 已经查看了与该问题有关的其他线程,但是到目前为止,我发现的所有答案都没有解决该问题. 主要建议似乎是删除mongod.lock文件,然后像平常一样重新启动应用程序,但这没有用.我还检查并验证了我对该文件具有读/写权限.

Everything was working fine and no major changes were made before the error appeared. Have looked around at other threads relating to the problem but so far none of the answers I found have fixed it. The main suggestion seems to be deleting the mongod.lock file and re-tstarting app as normal but that hasn't worked. I also checked and verified that I have read/write permissions for the file.

另一个建议是使用meteor reset,但我不能使用它,因为我需要当前在apps db中的数据,并且重置后会清除它.

Another suggestion is using meteor reset but I can't use that because I need the data currently in the apps db and a reset will wipe it.

我尝试过的其他东西都没有成功. 通常,此线程上的所有内容. 在流星中运行示例的问题.

Other stuff I tried without success. Mostly everything on this thread. Problems to run examples in Meteor.

还尝试简单地将sudo meteor作为上面线程中建议的最新答案之一运行.

also tried simply running sudo meteor as one of the most recent answers suggested in thread above.

我直接从系统上的流星安装目录中运行了mongod,它启动了mongodb on port 27017,没有任何问题.

I ran mongod directly from the meteor installation directory on my system and it starts up mongodb on port 27017 without any issues.

无奈之下,我也尝试过制作一个新的应用程序,并将文件/文件夹从坏掉的文件/文件夹中导入.可以正常启动,但我无法登录,这表明相关的mongodb未连接到新的应用程序实例.

In desperation I've also tried making a new app and importing the files/folders from the broken one into it. That boots fine but I can't log which suggests the related mongodb is not connected to the new app instance.

是否有一种方法可以从终端专门停止所有流星特定的mongo进程,以确保没有隐藏的进程引起此问题?我似乎记得在以这种方式解决该问题之前,postgres遇到了类似的问题.但是目前我还没有主意.

Is there a way to stop all meteor specific mongo processes from the terminal specifically to make sure no hidden process is causing the problem? I seem to remember having a similar problem with postgres before that was solved in this way. But for the moment I am out of ideas.

以前在此问题上的大多数线程都已经相当老,因此,如果有人最近遇到了此问题并以某种建议以外的其他方式解决了该问题,我将非常感谢帮助我重新启动我的应用程序.如果不是这样,那么在不运行流星应用程序的情况下如何进行数据转储/还原到新应用程序的一些建议就非常受欢迎.

Most of the previous threads on this issue are fairly old so if any one has ran into this problem recently and fixed it in some way other than those suggested I'd be really grateful for help getting my app up and running again. If not some advice on how to do a data dump/restore to a new app without needing the meteor app to be running is much appreciated.

很抱歉长时间提出问题,并在此先感谢!

Sorry for long winded question and thanks in advance!

编辑:该问题被标记为可能重复,并在此处被解决

This question was flagged as a possible duplicate and as being solved here Meteor: unexpected mongo exit code 100. None of the answers supplied there directly solved it for me though. A bit of extra trial and a combination of several previous answers fixed it for my case. I will post my answer below.

推荐答案

以下是解决我对此问题的实例的步骤.

These are the steps that solved my instance of this problem.

  1. 删除.meteor/local/db/mongod.lock
  2. 删除.meteor/local/db/journal/j.*(注意:我只是为了以防万一!; D)将其移动了
  3. sudo meteor
  1. Delete .meteor/local/db/mongod.lock
  2. Delete .meteor/local/db/journal/j.*(note: I only moved it just in case! ;D)
  3. sudo meteor

sudo可能不是必需的,但对我而言,这是回到应用程序的唯一途径. 希望这样可以节省一些人重新启动和运行的时间.

sudo might not be necessary but it was the only way back into the app for me. Hope that saves someone a bit of time getting back up and running.

这篇关于流星:意外的mongo退出代码100.正在重新启动.无法启动mongo服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆