-
Type: Task
-
Resolution: Done
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
Hi
I am having an error while setting dbpath for mongodb.
I run the command
mongod --dbpath /datadrive/mongodb/data/db
and I am getting the error is as below:
[initandlisten] Detected data files in /datadrive/mongodb/data/db created by the 'wiredTiger' storage engine, so setting the active storage engine to 'wiredTiger'. [initandlisten] [initandlisten] ** WARNING: Using the XFS filesystem is strongly recommended with the WiredTiger storage engine [initandlisten] ** See http://dochub.mongodb.org/core/prodnotes-filesystem [initandlisten] wiredtiger_open config: create,cache_size=452M,cache_overflow=(file_max=0M),session_max=20000,eviction=(threads_min=4,threads_max=4),config_base=false,statistics=(fast),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), [initandlisten] WiredTiger error (-31802) [1655792408:635220][16578:0x7f1e1c175a40], connection: __log_open_verify, 1028: Version incompatibility detected: unsupported WiredTiger file version: this build requires a maximum version of 2, and the file is version 3: WT_ERROR: non-specific WiredTiger error Raw: [1655792408:635220][16578:0x7f1e1c175a40], connection: __log_open_verify, 1028: Version incompatibility detected: unsupported WiredTiger file version: this build requires a maximum version of 2, and the file is version 3: WT_ERROR: non-specific WiredTiger error [initandlisten] An unsupported journal format detected - If you are trying to rollback from version 4.0 to 3.6, please re-start a 4.0 binary and cleanly shut it down so that the journal format will be downgraded. [initandlisten] Assertion: 28595:-31802: WT_ERROR: non-specific WiredTiger error src/mongo/db/storage/wiredtiger/wiredtiger_kv_engine.cpp 488 [initandlisten] exception in initAndListen: Location28595: -31802: WT_ERROR: non-specific WiredTiger error, terminating [initandlisten] shutdown: going to close listening sockets... [initandlisten] removing socket file: /tmp/mongodb-27017.sock [initandlisten] now exiting [initandlisten] shutting down with code:100
Any help would be much appreciated.