簡體   English   中英

mongodb 服務沒有啟動

[英]mongodb service does not start

我在我的數字海洋ubuntu 18.04 LTS Droplet 上全新安裝了mongodb 4.2.1 由於某種奇怪的原因,服務守護進程沒有啟動。

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 - Unable to read the storage engine metadata file: FileNotOpen: Failed to read metadata from /var/lib/mongodb/storage.bson的文件格式不適合 v4.2。

閱讀如何升級 本質上:

要從 4.0 系列之前的版本升級,您必須連續升級主要版本,直到升級到 4.0 系列。 例如,如果您運行的是 3.6 系列,則必須先升級到 4.0,然后才能升級到 4.2。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM