蒙古异常 [英] Mongo Exception

查看:306
本文介绍了蒙古异常的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近在我的电脑上有一些存储问题,所以我改变了mongo.conf文件以减少日志的大小。这些是我输入的行。

  mmapv1:
smallFiles:true

然而,每次当我尝试运行mongo与新的更改,我得到这个错误(没有改变它的工作正常)。你能告诉我有什么问题吗?







2016-02-11T22:32:14.002 +0000 I FTDC [ftdc]检测到不正常的全时诊断数据捕获关闭,发现临时文件,某些度量可能已丢失。 OK



2016-02-11T22:32:14.023 + 0000 W FTDC [ftdc]未知错误捕获的异常捕获std ::异常类型boost :: filesystem :: filesystem_error:boost :: filesystem :: file_size:没有这样的文件或目录:/data/db/diagnostic.data/metrics.interim.temp在全时诊断数据捕获子系统中。关闭全职诊断数据捕获子系统。



解决方案

我会尝试删除目录 /data/db/diagnostic.data



您还可以通过启动mongo来禁用诊断数据收集选项:

  setParameter:
diagnosticDataCollectionEnabled:false


I recently had some storage issues on my PC so I changed the mongo.conf file to reduce the size of the journal. These are the lines which I put in.

mmapv1:
    smallFiles: true

However, every time when I try to run mongo with the new changes I get this error(without the change it works just fine). Can you tell me what's the problem?


2016-02-11T22:32:14.002+0000 I FTDC [ftdc] Unclean full-time diagnostic data capture shutdown detected, found interim file, some metrics may have been lost. OK

2016-02-11T22:32:14.023+0000 W FTDC [ftdc] Uncaught exception in 'UnknownError Caught std::exception of type boost::filesystem::filesystem_error: boost::filesystem::file_size: No such file or directory: "/data/db/diagnostic.data/metrics.interim.temp"' in full-time diagnostic data capture subsystem. Shutting down the full-time diagnostic data capture subsystem.

解决方案

I would try deleting the directory /data/db/diagnostic.data.

You can also disable the diagnostic data collection by starting mongo with the option:

setParameter:
    diagnosticDataCollectionEnabled: false

这篇关于蒙古异常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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