gpt4 book ai didi

mongodb服务没有启动

转载 作者:行者123 更新时间:2023-12-04 18:44:22 34 4
gpt4 key购买 nike

我做了一个mongodb 4.2.1在我的 digital ocean 上全新安装ubuntu 18.04 LTS水滴。由于某些奇怪的原因,服务守护程序没有启动。

019-12-05T11:35:31.148+0000 I  CONTROL  [main] ***** SERVER RESTARTED *****
2019-12-05T11:35:31.153+0000 I CONTROL [main] Automatically disabling TLS 1.0, to force-enable TLS 1.0 specify --sslDisabledProtocols 'none'
2019-12-05T11:35:31.167+0000 I CONTROL [initandlisten] MongoDB starting : pid=1291 port=27017 dbpath=/var/lib/mongodb 64-bit host=ubuntu-s-1vcpu-2gb-blr1-01
2019-12-05T11:35:31.167+0000 I CONTROL [initandlisten] db version v4.2.1
2019-12-05T11:35:31.167+0000 I CONTROL [initandlisten] git version: edf6d45851c0b9ee15548f0f847df141764a317e
2019-12-05T11:35:31.167+0000 I CONTROL [initandlisten] OpenSSL version: OpenSSL 1.1.1 11 Sep 2018
2019-12-05T11:35:31.167+0000 I CONTROL [initandlisten] allocator: tcmalloc
2019-12-05T11:35:31.167+0000 I CONTROL [initandlisten] modules: none
2019-12-05T11:35:31.167+0000 I CONTROL [initandlisten] build environment:
2019-12-05T11:35:31.167+0000 I CONTROL [initandlisten] distmod: ubuntu1804
2019-12-05T11:35:31.167+0000 I CONTROL [initandlisten] distarch: x86_64
2019-12-05T11:35:31.167+0000 I CONTROL [initandlisten] target_arch: x86_64
2019-12-05T11:35:31.167+0000 I CONTROL [initandlisten] options: { config: "/etc/mongod.conf", net: { bindIp: "0.0.0.0", port: 27017 }, processManagement: { timeZoneInfo: "/usr/share/zoneinfo" }, storage: $
2019-12-05T11:35:31.169+0000 E STORAGE [initandlisten] Unable to read the storage engine metadata file: FileNotOpen: Failed to read metadata from /var/lib/mongodb/storage.bson
2019-12-05T11:35:31.169+0000 F - [initandlisten] Fatal Assertion 28661 at src/mongo/db/storage/storage_engine_metadata.cpp 89
2019-12-05T11:35:31.169+0000 F - [initandlisten]

最佳答案

Unable to read the storage engine metadata file: FileNotOpen: Failed to read metadata from /var/lib/mongodb/storage.bson - v3.6 的文件格式不适用于 v4.2。

阅读 how to upgrade .本质上:

To upgrade from a version earlier than the 4.0-series, you must successively upgrade major releases until you have upgraded to 4.0-series. For example, if you are running a 3.6-series, you must upgrade first to 4.0 before you can upgrade to 4.2.

关于mongodb服务没有启动,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59194373/

34 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com