mongod.log
2020-10-24T12:55:43.374+0100 I CONTROL [main] ***** SERVER RESTARTED *****
2020-10-24T12:55:43.501+0100 I CONTROL [initandlisten] MongoDB starting : pid=2608 port=27017 dbpath=/var/lib/mongodb 64-bit host=MSI
2020-10-24T12:55:43.501+0100 I CONTROL [initandlisten] db version v3.6.8
2020-10-24T12:55:43.501+0100 I CONTROL [initandlisten] git version: 8e540c0b6db93ce994cc548f000900bdc740f80a
2020-10-24T12:55:43.501+0100 I CONTROL [initandlisten] OpenSSL version: OpenSSL 1.1.1g 21 Apr 2020
2020-10-24T12:55:43.501+0100 I CONTROL [initandlisten] allocator: tcmalloc
2020-10-24T12:55:43.501+0100 I CONTROL [initandlisten] modules: none
2020-10-24T12:55:43.501+0100 I CONTROL [initandlisten] build environment:
2020-10-24T12:55:43.501+0100 I CONTROL [initandlisten] distarch: x86_64
2020-10-24T12:55:43.501+0100 I CONTROL [initandlisten] target_arch: x86_64
2020-10-24T12:55:43.501+0100 I CONTROL [initandlisten] options: { config: "/etc/mongod.conf", net: { bindIp: "127.0.0.1", port: 27017 }, processManagement: { timeZoneInfo: "/usr/share/zoneinfo" }, security: { authorization: "enabled" }, storage: { dbPath: "/var/lib/mongodb", journal: { enabled: true } }, systemLog: { destination: "file", logAppend: true, path: "/var/log/mongodb/mongod.log" } }
2020-10-24T12:55:43.501+0100 W - [initandlisten] Detected unclean shutdown - /var/lib/mongodb/mongod.lock is not empty.
2020-10-24T12:55:43.502+0100 I - [initandlisten] Detected data files in /var/lib/mongodb created by the 'wiredTiger' storage engine, so setting the active storage engine to 'wiredTiger'.
2020-10-24T12:55:43.502+0100 W STORAGE [initandlisten] Recovering data from the last clean checkpoint.
2020-10-24T12:55:43.502+0100 I STORAGE [initandlisten] wiredtiger_open config: create,cache_size=7603M,session_max=20000,eviction=(threads_min=4,threads_max=4),config_base=false,statistics=(fast),cache_cursors=false,compatibility=(release="3.0",require_max="3.0"),log=(enabled=true,archive=true,path=journal,compressor=snappy),file_manager=(close_idle_time=100000),statistics_log=(wait=0),verbose=(recovery_progress),2020-10-24T12:55:44.356+0100 E STORAGE [initandlisten] WiredTiger error (-31802) [1603540544:356261][2608:0x7f8b34b90ac0], file:WiredTiger.wt, connection: unable to read root page from file:WiredTiger.wt: WT_ERROR: non-specific WiredTiger error
2020-10-24T12:55:44.356+0100 E STORAGE [initandlisten] WiredTiger error (0) [1603540544:356397][2608:0x7f8b34b90ac0], file:WiredTiger.wt, connection: WiredTiger has failed to open its metadata
2020-10-24T12:55:44.356+0100 E STORAGE [initandlisten] WiredTiger error (0) [1603540544:356443][2608:0x7f8b34b90ac0], file:WiredTiger.wt, connection: This may be due to the database files being encrypted, being from an older version or due to corruption on disk
2020-10-24T12:55:44.356+0100 E STORAGE [initandlisten] WiredTiger error (0) [1603540544:356482][2608:0x7f8b34b90ac0], file:WiredTiger.wt, connection: You should confirm that you have opened the database with
the correct options including all encryption and compression options
2020-10-24T12:55:44.358+0100 E - [initandlisten] Assertion: 28595:-31802: WT_ERROR: non-specific WiredTiger error src/mongo/db/storage/wiredtiger/wiredtiger_kv_engine.cpp 421
2020-10-24T12:55:44.358+0100 I STORAGE [initandlisten] exception in initAndListen: Location28595: -31802: WT_ERROR: non-specific WiredTiger error, terminating
2020-10-24T12:55:44.358+0100 I NETWORK [initandlisten] shutdown: going to close listening sockets...
2020-10-24T12:55:44.358+0100 I NETWORK [initandlisten] removing socket file: /tmp/mongodb-27017.sock
2020-10-24T12:55:44.360+0100 I CONTROL [initandlisten] now exiting
2020-10-24T12:55:44.360+0100 I CONTROL [initandlisten] shutting down with code:100
I’m looking at :
Detected unclean shutdown - /var/lib/mongodb/mongod.lock is not empty
This maybe the one causing the problem ?