MongoDB is not shutdown cleanly
MongoDB does not seem to be getting the SIGTERM
signal.
Logs show:
I CONTROL [main] ***** SERVER RESTARTED *****
I CONTROL [initandlisten] MongoDB starting : pid=862 port=27117 dbpath=/usr/lib/unifi/data/db 64-bit host=unifi
I CONTROL [initandlisten] db version v3.2.11
I CONTROL [initandlisten] git version: 009580ad490190ba33d1c6253ebd8d91808923e4
I CONTROL [initandlisten] OpenSSL version: OpenSSL 1.0.2l 25 May 2017
I CONTROL [initandlisten] allocator: tcmalloc
I CONTROL [initandlisten] modules: none
I CONTROL [initandlisten] build environment:
I CONTROL [initandlisten] distarch: x86_64
I CONTROL [initandlisten] target_arch: x86_64
I CONTROL [initandlisten] options: { net: { bindIp: "127.0.0.1", http: { enabled: false }, port: 27117 }, storage: { dbPath: "/usr/lib/unifi/data/db" }, systemLog: { destination: "file", logAppend: true, path: "/usr/lib/unifi/logs/mongod.log" } }
I - [initandlisten] Detected data files in /usr/lib/unifi/data/db created by the 'mmapv1' storage engine, so setting the active storage engine to 'mmapv1'.
W - [initandlisten] Detected unclean shutdown - /usr/lib/unifi/data/db/mongod.lock is not empty.
I JOURNAL [initandlisten] journal dir=/usr/lib/unifi/data/db/journal
I JOURNAL [initandlisten] recover begin
(redacted)
I JOURNAL [initandlisten] recover cleaning up
I JOURNAL [initandlisten] removeJournalFiles
I JOURNAL [initandlisten] recover done