I had recently problems with low disc space on my machine so I decided to reduce the size of the journals, therefore I put
However, I receive this error every time when I try to restart mongo with the new changes. (Without these settings in the mongo.conf file, it works fine). Could you please tell me what could be the problem and how I can solve it?
sudo -u mongod mongod --journal
2016-02-11T22:31:57.475+0000 I CONTROL [initandlisten] MongoDB starting : pid=8056 port=27017 dbpath=/data/db 64-bit host=Unknown-44-6d-57-73-86-ab
2016-02-11T22:31:57.475+0000 I CONTROL [initandlisten] db version v3.2.1
2016-02-11T22:31:57.475+0000 I CONTROL [initandlisten] git version: a14d55980c2cdc565d4704a7e3ad37e4e535c1b2
2016-02-11T22:31:57.475+0000 I CONTROL [initandlisten] OpenSSL version: OpenSSL 1.0.1k-fips 8 Jan 2015
2016-02-11T22:31:57.475+0000 I CONTROL [initandlisten] allocator: tcmalloc
2016-02-11T22:31:57.475+0000 I CONTROL [initandlisten] modules: none
2016-02-11T22:31:57.475+0000 I CONTROL [initandlisten] build environment:
2016-02-11T22:31:57.475+0000 I CONTROL [initandlisten] distmod: rhel70
2016-02-11T22:31:57.475+0000 I CONTROL [initandlisten] distarch: x86_64
2016-02-11T22:31:57.475+0000 I CONTROL [initandlisten] target_arch: x86_64
2016-02-11T22:31:57.475+0000 I CONTROL [initandlisten] options: { storage: { journal: { enabled: true } } }
2016-02-11T22:31:57.509+0000 I - [initandlisten] Detected data files in /data/db created by the 'mmapv1' storage engine, so setting the active storage engine to 'mmapv1'.
2016-02-11T22:31:57.509+0000 W - [initandlisten] Detected unclean shutdown - /data/db/mongod.lock is not empty.
2016-02-11T22:31:57.516+0000 I JOURNAL [initandlisten] journal dir=/data/db/journal
2016-02-11T22:31:57.517+0000 I JOURNAL [initandlisten] recover begin
2016-02-11T22:31:57.517+0000 I JOURNAL [initandlisten] info no lsn file in journal/ directory
2016-02-11T22:31:57.517+0000 I JOURNAL [initandlisten] recover lsn: 0
2016-02-11T22:31:57.517+0000 I JOURNAL [initandlisten] recover /data/db/journal/j._0
2016-02-11T22:31:57.553+0000 I JOURNAL [initandlisten] recover cleaning up
2016-02-11T22:31:57.553+0000 I JOURNAL [initandlisten] removeJournalFiles
2016-02-11T22:31:57.634+0000 I JOURNAL [initandlisten] recover done
2016-02-11T22:31:57.635+0000 I JOURNAL [initandlisten] preallocating a journal file /data/db/journal/prealloc.0
2016-02-11T22:32:00.173+0000 I - [initandlisten] File Preallocator Progress: 943718400/1073741824 87%
2016-02-11T22:32:13.433+0000 I JOURNAL [durability] Durability thread started
2016-02-11T22:32:13.433+0000 I JOURNAL [journal writer] Journal writer thread started
2016-02-11T22:32:13.466+0000 I FTDC [initandlisten] Initializing full-time diagnostic data capture with directory '/data/db/diagnostic.data'
2016-02-11T22:32:13.466+0000 I NETWORK [HostnameCanonicalizationWorker] Starting hostname canonicalization worker
2016-02-11T22:32:13.466+0000 I NETWORK [initandlisten] waiting for connections on port 27017
2016-02-11T22:32:14.002+0000 I FTDC [ftdc] Unclean full-time diagnostic data capture shutdown detected, found interim file, some metrics may have been lost. OK
2016-02-11T22:32:14.023+0000 W FTDC [ftdc] Uncaught exception in 'UnknownError Caught std::exception of type boost::filesystem::filesystem_error: boost::filesystem::file_size: No such file or directory: "/data/db/diagnostic.data/metrics.interim.temp"' in full-time diagnostic data capture subsystem. Shutting down the full-time diagnostic data capture subsystem.