Mongodb常见错误与解决方法小结(Mongodb中经常出现的错误)


本文整理自网络,侵删。

今天在配置MongoDB时发生了以下几个错误, 已经被我解决了,提供给大家.

2015-05-12T09:30:26.313+0800 I STORAGE [initandlisten] exception in initAndListen: 28574 Cannot start server. Detected data files in /root/Desktop/mongodb/data created by storage engine 'mmapv1'. The configured storage engine is 'wiredTiger'., terminating
2015-05-12T09:30:26.313+0800 I CONTROL [initandlisten] dbexit: rc: 100
2015-05-12T09:31:53.043+0800 I CONTROL ***** SERVER RESTARTED *****
2015-05-12T09:31:53.049+0800 I STORAGE [initandlisten] exception in initAndListen: 28574 Cannot start server. Detected data files in /root/Desktop/mongodb/data created by storage engine 'mmapv1'. The configured storage engine is 'wiredTiger'., terminating
2015-05-12T09:31:53.050+0800 I CONTROL [initandlisten] dbexit: rc: 100

补充一下:如果存储空间满了的话也会出现 rc:100错误。总线一下:rc:100是系统文件错误

错误原因: 之前使用mmapv1创建的数据库不能使用wiredTiger打开,需要重新指定dbpath

[root@localhost Desktop]# Python mongodb.py
about to fork child process, waiting until server is ready for connections.
about to fork child process, waiting until server is ready for connections.
forked process: 36411
forked process: 36412
about to fork child process, waiting until server is ready for connections.
forked process: 36414
ERROR: child process failed, exited with error number 100
ERROR: child process failed, exited with error number 100
ERROR: child process failed, exited with error number 100

错误原因: mongodb非正常关闭 删除mongod.lock文件即可.

ERROR: child process failed ,exited with error number 1

错误原因: dbpath文件的权限问题,增加写权限即可

mongodb.conf bind 不能写127.0.0.1否则其它主机连接不了

情况不唯一,这边只能当参考,大致就是这么几种解决思路

 child process failed, exited with error number 1

阅读剩余部分

相关阅读 >>

mongodb4.2.8备份恢复与导出导入(推荐)

centos系统下mongodb安装及配置教程

mongodb三分钟入门大全

mongodb教程之入门基础知识

mongodb安装图文教程

mongodb连接和创建数据库的方法讲解

mongodb入门教程之主从复制配置详解

mongodb查询字段没有创建索引导致的连接超时异常解案例分享

mongodb教程之聚合(count、distinct和group)

ubuntu 18.04安装mongodb 4.0 的教程详解

更多相关阅读请进入《mongodb》频道 >>


数据库系统概念 第6版
书籍

数据库系统概念 第6版

机械工业出版社

本书主要讲述了数据模型、基于对象的数据库和XML、数据存储和查询、事务管理、体系结构等方面的内容。



打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,您说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

分享从这里开始,精彩与您同在

评论

管理员已关闭评论功能...