Mongodb service start issue

Earlier i use Mongodb 4.0.9 version , now i unstalled 4.0.9 and I nstalled 4.6 version.

then i changed data folder path to existing data path (4.0.9) in config file.
now issue is mongodb service is not stating

Hi Mahipal,

Welcome to the community.

Can you take a peek at the mongod log file and see if you can find any details on the exception during start up? If you are on Windows the log file should be in this location - C:\Program Files\MongoDB\Server\4.4\log

{"t":{"$date":"2021-05-21T00:49:13.148+05:30"},"s":"I",  "c":"CONTROL",  "id":23285,   "ctx":"main","msg":"Automatically disabling TLS 1.0, to force-enable TLS 1.0 specify --sslDisabledProtocols 'none'"}
{"t":{"$date":"2021-05-21T00:49:13.498+05:30"},"s":"W",  "c":"ASIO",     "id":22601,   "ctx":"main","msg":"No TransportLayer configured during NetworkInterface startup"}
{"t":{"$date":"2021-05-21T00:49:13.499+05:30"},"s":"I",  "c":"NETWORK",  "id":4648602, "ctx":"main","msg":"Implicit TCP FastOpen in use."}
{"t":{"$date":"2021-05-21T00:49:13.499+05:30"},"s":"I",  "c":"CONTROL",  "id":23316,   "ctx":"main","msg":"Trying to start Windows service '{toUtf8String_serviceName}'","attr":{"toUtf8String_serviceName":"MongoDB"}}
{"t":{"$date":"2021-05-21T00:49:13.501+05:30"},"s":"I",  "c":"STORAGE",  "id":4615611, "ctx":"initandlisten","msg":"MongoDB starting","attr":{"pid":8848,"port":27017,"dbPath":"E:/BCS Datamigration/mongodb/data","architecture":"64-bit","host":"ICSSCPU183"}}
{"t":{"$date":"2021-05-21T00:49:13.501+05:30"},"s":"I",  "c":"CONTROL",  "id":23398,   "ctx":"initandlisten","msg":"Target operating system minimum version","attr":{"targetMinOS":"Windows 7/Windows Server 2008 R2"}}
{"t":{"$date":"2021-05-21T00:49:13.501+05:30"},"s":"I",  "c":"CONTROL",  "id":23403,   "ctx":"initandlisten","msg":"Build Info","attr":{"buildInfo":{"version":"4.4.6","gitVersion":"72e66213c2c3eab37d9358d5e78ad7f5c1d0d0d7","modules":[],"allocator":"tcmalloc","environment":{"distmod":"windows","distarch":"x86_64","target_arch":"x86_64"}}}}
{"t":{"$date":"2021-05-21T00:49:13.501+05:30"},"s":"I",  "c":"CONTROL",  "id":51765,   "ctx":"initandlisten","msg":"Operating System","attr":{"os":{"name":"Microsoft Windows 10","version":"10.0 (build 18363)"}}}
{"t":{"$date":"2021-05-21T00:49:13.501+05:30"},"s":"I",  "c":"CONTROL",  "id":21951,   "ctx":"initandlisten","msg":"Options set by command line","attr":{"options":{"config":"C:\\Program Files\\MongoDB\\Server\\4.4\\bin\\mongod.cfg","net":{"bindIp":"127.0.0.1,10.10.30.62","port":27017},"service":true,"storage":{"dbPath":"E:\\BCS Datamigration\\mongodb\\data","journal":{"enabled":true}},"systemLog":{"destination":"file","logAppend":true,"path":"E:\\BCS Datamigration\\mongodb\\log\\mongod.log"}}}}
{"t":{"$date":"2021-05-21T00:49:13.502+05:30"},"s":"I",  "c":"STORAGE",  "id":22270,   "ctx":"initandlisten","msg":"Storage engine to use detected by data files","attr":{"dbpath":"E:/BCS Datamigration/mongodb/data","storageEngine":"wiredTiger"}}
{"t":{"$date":"2021-05-21T00:49:13.502+05:30"},"s":"I",  "c":"STORAGE",  "id":22315,   "ctx":"initandlisten","msg":"Opening WiredTiger","attr":{"config":"create,cache_size=15851M,session_max=33000,eviction=(threads_min=4,threads_max=4),config_base=false,statistics=(fast),log=(enabled=true,archive=true,path=journal,compressor=snappy),file_manager=(close_idle_time=100000,close_scan_interval=10,close_handle_minimum=250),statistics_log=(wait=0),verbose=[recovery_progress,checkpoint_progress,compact_progress],"}}
{"t":{"$date":"2021-05-21T00:49:13.510+05:30"},"s":"F",  "c":"STORAGE",  "id":4671205, "ctx":"initandlisten","msg":"This version of MongoDB is too recent to start up on the existing data files. Try MongoDB 4.2 or earlier."}
{"t":{"$date":"2021-05-21T00:49:13.510+05:30"},"s":"F",  "c":"-",        "id":23089,   "ctx":"initandlisten","msg":"Fatal assertion","attr":{"msgid":4671205,"file":"src\\mongo\\db\\storage\\wiredtiger\\wiredtiger_kv_engine.cpp","line":913}}
{"t":{"$date":"2021-05-21T00:49:13.510+05:30"},"s":"F",  "c":"-",        "id":23090,   "ctx":"initandlisten","msg":"\n\n***aborting after fassert() failure\n\n"}
{"t":{"$date":"2021-05-21T00:49:13.510+05:30"},"s":"F",  "c":"CONTROL",  "id":4757800, "ctx":"initandlisten","msg":"Writing fatal message","attr":{"message":"Got signal: 22 (SIGABRT).\n"}}
{"t":{"$date":"2021-05-21T00:49:13.623+05:30"},"s":"I",  "c":"CONTROL",  "id":31380,   "ctx":"initandlisten","msg":"BACKTRACE: {bt}","attr":{"bt":{"backtrace":[{"a":"7FF6C3979143","module":"mongod.exe","file":".../src/mongo/util/stacktrace_windows.cpp","line":349,"s":"mongo::`anonymous namespace'::printWindowsStackTraceImpl","s+":"43"},{"a":"7FF6C3979B76","module":"mongod.exe","file":".../src/mongo/util/signal_handlers_synchronous.cpp","line":263,"s":"mongo::`anonymous namespace'::abruptQuit","s+":"76"},{"a":"7FFA4B2ECAAD","module":"ucrtbase.dll","s":"raise","s+":"1DD"},{"a":"7FFA4B2EDAB1","module":"ucrtbase.dll","s":"abort","s+":"31"},{"a":"7FF6C39847EF","module":"mongod.exe","file":".../src/mongo/util/assert_util.cpp","line":196,"s":"mongo::fassertFailedWithLocation","s+":"16F"},{"a":"7FF6C266E171","module":"mongod.exe","file":".../src/mongo/db/storage/wiredtiger/wiredtiger_kv_engine.cpp","line":911,"s":"mongo::WiredTigerKVEngine::_openWiredTiger","s+":"911"},{"a":"7FF6C266B92F","module":"mongod.exe","file":".../src/mongo/db/storage/wiredtiger/wiredtiger_kv_engine.cpp","line":767,"s":"mongo::WiredTigerKVEngine::WiredTigerKVEngine","s+":"160F"},{"a":"7FF6C26338FA","module":"mongod.exe","file":".../src/mongo/db/storage/wiredtiger/wiredtiger_init.cpp","line":103,"s":"mongo::`anonymous namespace'::WiredTigerFactory::create","s+":"35A"},{"a":"7FF6C2C39147","module":"mongod.exe","file":".../src/mongo/db/storage/storage_engine_init.cpp","line":158,"s":"mongo::initializeStorageEngine","s+":"6D7"},{"a":"7FF6C25EE918","module":"mongod.exe","file":".../src/mongo/db/db.cpp","line":361,"s":"mongo::`anonymous namespace'::_initAndListen","s+":"978"},{"a":"7FF6C25F119E","module":"mongod.exe","file":".../src/mongo/db/db.cpp","line":786,"s":"mongo::`anonymous namespace'::initAndListen","s+":"1E"},{"a":"7FF6C2B62413","module":"mongod.exe","file":".../src/mongo/util/ntservice.cpp","line":612,"s":"mongo::ntservice::initService","s+":"53"},{"a":"7FFA4DC52DE2","module":"sechost.dll","s":"LsaLookupUserAccountType","s+":"202"},{"a":"7FFA4DB17C24","module":"KERNEL32.DLL","s":"BaseThreadInitThunk","s+":"14"}]}}}
{"t":{"$date":"2021-05-21T00:49:13.623+05:30"},"s":"I",  "c":"CONTROL",  "id":31445,   "ctx":"initandlisten","msg":"  Frame: {frame}","attr":{"frame":{"a":"7FF6C3979143","module":"mongod.exe","file":".../src/mongo/util/stacktrace_windows.cpp","line":349,"s":"mongo::`anonymous namespace'::printWindowsStackTraceImpl","s+":"43"}}}
{"t":{"$date":"2021-05-21T00:49:13.623+05:30"},"s":"I",  "c":"CONTROL",  "id":31445,   "ctx":"initandlisten","msg":"  Frame: {frame}","attr":{"frame":{"a":"7FF6C3979B76","module":"mongod.exe","file":".../src/mongo/util/signal_handlers_synchronous.cpp","line":263,"s":"mongo::`anonymous namespace'::abruptQuit","s+":"76"}}}
{"t":{"$date":"2021-05-21T00:49:13.623+05:30"},"s":"I",  "c":"CONTROL",  "id":31445,   "ctx":"initandlisten","msg":"  Frame: {frame}","attr":{"frame":{"a":"7FFA4B2ECAAD","module":"ucrtbase.dll","s":"raise","s+":"1DD"}}}
{"t":{"$date":"2021-05-21T00:49:13.623+05:30"},"s":"I",  "c":"CONTROL",  "id":31445,   "ctx":"initandlisten","msg":"  Frame: {frame}","attr":{"frame":{"a":"7FFA4B2EDAB1","module":"ucrtbase.dll","s":"abort","s+":"31"}}}
{"t":{"$date":"2021-05-21T00:49:13.623+05:30"},"s":"I",  "c":"CONTROL",  "id":31445,   "ctx":"initandlisten","msg":"  Frame: {frame}","attr":{"frame":{"a":"7FF6C39847EF","module":"mongod.exe","file":".../src/mongo/util/assert_util.cpp","line":196,"s":"mongo::fassertFailedWithLocation","s+":"16F"}}}
{"t":{"$date":"2021-05-21T00:49:13.623+05:30"},"s":"I",  "c":"CONTROL",  "id":31445,   "ctx":"initandlisten","msg":"  Frame: {frame}","attr":{"frame":{"a":"7FF6C266E171","module":"mongod.exe","file":".../src/mongo/db/storage/wiredtiger/wiredtiger_kv_engine.cpp","line":911,"s":"mongo::WiredTigerKVEngine::_openWiredTiger","s+":"911"}}}
{"t":{"$date":"2021-05-21T00:49:13.623+05:30"},"s":"I",  "c":"CONTROL",  "id":31445,   "ctx":"initandlisten","msg":"  Frame: {frame}","attr":{"frame":{"a":"7FF6C266B92F","module":"mongod.exe","file":".../src/mongo/db/storage/wiredtiger/wiredtiger_kv_engine.cpp","line":767,"s":"mongo::WiredTigerKVEngine::WiredTigerKVEngine","s+":"160F"}}}
{"t":{"$date":"2021-05-21T00:49:13.623+05:30"},"s":"I",  "c":"CONTROL",  "id":31445,   "ctx":"initandlisten","msg":"  Frame: {frame}","attr":{"frame":{"a":"7FF6C26338FA","module":"mongod.exe","file":".../src/mongo/db/storage/wiredtiger/wiredtiger_init.cpp","line":103,"s":"mongo::`anonymous namespace'::WiredTigerFactory::create","s+":"35A"}}}
{"t":{"$date":"2021-05-21T00:49:13.623+05:30"},"s":"I",  "c":"CONTROL",  "id":31445,   "ctx":"initandlisten","msg":"  Frame: {frame}","attr":{"frame":{"a":"7FF6C2C39147","module":"mongod.exe","file":".../src/mongo/db/storage/storage_engine_init.cpp","line":158,"s":"mongo::initializeStorageEngine","s+":"6D7"}}}
{"t":{"$date":"2021-05-21T00:49:13.623+05:30"},"s":"I",  "c":"CONTROL",  "id":31445,   "ctx":"initandlisten","msg":"  Frame: {frame}","attr":{"frame":{"a":"7FF6C25EE918","module":"mongod.exe","file":".../src/mongo/db/db.cpp","line":361,"s":"mongo::`anonymous namespace'::_initAndListen","s+":"978"}}}
{"t":{"$date":"2021-05-21T00:49:13.623+05:30"},"s":"I",  "c":"CONTROL",  "id":31445,   "ctx":"initandlisten","msg":"  Frame: {frame}","attr":{"frame":{"a":"7FF6C25F119E","module":"mongod.exe","file":".../src/mongo/db/db.cpp","line":786,"s":"mongo::`anonymous namespace'::initAndListen","s+":"1E"}}}
{"t":{"$date":"2021-05-21T00:49:13.623+05:30"},"s":"I",  "c":"CONTROL",  "id":31445,   "ctx":"initandlisten","msg":"  Frame: {frame}","attr":{"frame":{"a":"7FF6C2B62413","module":"mongod.exe","file":".../src/mongo/util/ntservice.cpp","line":612,"s":"mongo::ntservice::initService","s+":"53"}}}
{"t":{"$date":"2021-05-21T00:49:13.623+05:30"},"s":"I",  "c":"CONTROL",  "id":31445,   "ctx":"initandlisten","msg":"  Frame: {frame}","attr":{"frame":{"a":"7FFA4DC52DE2","module":"sechost.dll","s":"LsaLookupUserAccountType","s+":"202"}}}
{"t":{"$date":"2021-05-21T00:49:13.623+05:30"},"s":"I",  "c":"CONTROL",  "id":31445,   "ctx":"initandlisten","msg":"  Frame: {frame}","attr":{"frame":{"a":"7FFA4DB17C24","module":"KERNEL32.DLL","s":"BaseThreadInitThunk","s+":"14"}}}
{"t":{"$date":"2021-05-21T00:49:13.623+05:30"},"s":"F",  "c":"CONTROL",  "id":23134,   "ctx":"initandlisten","msg":"Unhandled exception","attr":{"exceptionString":"0xE0000001","addressString":"0x00007FFA4B013B29"}}
{"t":{"$date":"2021-05-21T00:49:13.623+05:30"},"s":"F",  "c":"CONTROL",  "id":23136,   "ctx":"initandlisten","msg":"*** stack trace for unhandled exception:"}
{"t":{"$date":"2021-05-21T00:49:13.624+05:30"},"s":"I",  "c":"CONTROL",  "id":31380,   "ctx":"initandlisten","msg":"BACKTRACE: {bt}","attr":{"bt":{"backtrace":[{"a":"7FFA4B013B29","module":"KERNELBASE.dll","s":"RaiseException","s+":"69"},{"a":"7FF6C397A819","module":"mongod.exe","file":".../src/mongo/util/signal_handlers_synchronous.cpp","line":97,"s":"mongo::`anonymous namespace'::endProcessWithSignal","s+":"19"},{"a":"7FF6C3979B82","module":"mongod.exe","file":".../src/mongo/util/signal_handlers_synchronous.cpp","line":264,"s":"mongo::`anonymous namespace'::abruptQuit","s+":"82"},{"a":"7FFA4B2ECAAD","module":"ucrtbase.dll","s":"raise","s+":"1DD"},{"a":"7FFA4B2EDAB1","module":"ucrtbase.dll","s":"abort","s+":"31"},{"a":"7FF6C39847EF","module":"mongod.exe","file":".../src/mongo/util/assert_util.cpp","line":196,"s":"mongo::fassertFailedWithLocation","s+":"16F"},{"a":"7FF6C266E171","module":"mongod.exe","file":".../src/mongo/db/storage/wiredtiger/wiredtiger_kv_engine.cpp","line":911,"s":"mongo::WiredTigerKVEngine::_openWiredTiger","s+":"911"},{"a":"7FF6C266B92F","module":"mongod.exe","file":".../src/mongo/db/storage/wiredtiger/wiredtiger_kv_engine.cpp","line":767,"s":"mongo::WiredTigerKVEngine::WiredTigerKVEngine","s+":"160F"},{"a":"7FF6C26338FA","module":"mongod.exe","file":".../src/mongo/db/storage/wiredtiger/wiredtiger_init.cpp","line":103,"s":"mongo::`anonymous namespace'::WiredTigerFactory::create","s+":"35A"},{"a":"7FF6C2C39147","module":"mongod.exe","file":".../src/mongo/db/storage/storage_engine_init.cpp","line":158,"s":"mongo::initializeStorageEngine","s+":"6D7"},{"a":"7FF6C25EE918","module":"mongod.exe","file":".../src/mongo/db/db.cpp","line":361,"s":"mongo::`anonymous namespace'::_initAndListen","s+":"978"},{"a":"7FF6C25F119E","module":"mongod.exe","file":".../src/mongo/db/db.cpp","line":786,"s":"mongo::`anonymous namespace'::initAndListen","s+":"1E"},{"a":"7FF6C2B62413","module":"mongod.exe","file":".../src/mongo/util/ntservice.cpp","line":612,"s":"mongo::ntservice::initService","s+":"53"},{"a":"7FFA4DC52DE2","module":"sechost.dll","s":"LsaLookupUserAccountType","s+":"202"},{"a":"7FFA4DB17C24","module":"KERNEL32.DLL","s":"BaseThreadInitThunk","s+":"14"}]}}}
{"t":{"$date":"2021-05-21T00:49:13.624+05:30"},"s":"I",  "c":"CONTROL",  "id":31445,   "ctx":"initandlisten","msg":"  Frame: {frame}","attr":{"frame":{"a":"7FFA4B013B29","module":"KERNELBASE.dll","s":"RaiseException","s+":"69"}}}
{"t":{"$date":"2021-05-21T00:49:13.624+05:30"},"s":"I",  "c":"CONTROL",  "id":31445,   "ctx":"initandlisten","msg":"  Frame: {frame}","attr":{"frame":{"a":"7FF6C397A819","module":"mongod.exe","file":".../src/mongo/util/signal_handlers_synchronous.cpp","line":97,"s":"mongo::`anonymous namespace'::endProcessWithSignal","s+":"19"}}}
{"t":{"$date":"2021-05-21T00:49:13.624+05:30"},"s":"I",  "c":"CONTROL",  "id":31445,   "ctx":"initandlisten","msg":"  Frame: {frame}","attr":{"frame":{"a":"7FF6C3979B82","module":"mongod.exe","file":".../src/mongo/util/signal_handlers_synchronous.cpp","line":264,"s":"mongo::`anonymous namespace'::abruptQuit","s+":"82"}}}
{"t":{"$date":"2021-05-21T00:49:13.624+05:30"},"s":"I",  "c":"CONTROL",  "id":31445,   "ctx":"initandlisten","msg":"  Frame: {frame}","attr":{"frame":{"a":"7FFA4B2ECAAD","module":"ucrtbase.dll","s":"raise","s+":"1DD"}}}
{"t":{"$date":"2021-05-21T00:49:13.624+05:30"},"s":"I",  "c":"CONTROL",  "id":31445,   "ctx":"initandlisten","msg":"  Frame: {frame}","attr":{"frame":{"a":"7FFA4B2EDAB1","module":"ucrtbase.dll","s":"abort","s+":"31"}}}
{"t":{"$date":"2021-05-21T00:49:13.624+05:30"},"s":"I",  "c":"CONTROL",  "id":31445,   "ctx":"initandlisten","msg":"  Frame: {frame}","attr":{"frame":{"a":"7FF6C39847EF","module":"mongod.exe","file":".../src/mongo/util/assert_util.cpp","line":196,"s":"mongo::fassertFailedWithLocation","s+":"16F"}}}
{"t":{"$date":"2021-05-21T00:49:13.624+05:30"},"s":"I",  "c":"CONTROL",  "id":31445,   "ctx":"initandlisten","msg":"  Frame: {frame}","attr":{"frame":{"a":"7FF6C266E171","module":"mongod.exe","file":".../src/mongo/db/storage/wiredtiger/wiredtiger_kv_engine.cpp","line":911,"s":"mongo::WiredTigerKVEngine::_openWiredTiger","s+":"911"}}}
{"t":{"$date":"2021-05-21T00:49:13.625+05:30"},"s":"I",  "c":"CONTROL",  "id":31445,   "ctx":"initandlisten","msg":"  Frame: {frame}","attr":{"frame":{"a":"7FF6C266B92F","module":"mongod.exe","file":".../src/mongo/db/storage/wiredtiger/wiredtiger_kv_engine.cpp","line":767,"s":"mongo::WiredTigerKVEngine::WiredTigerKVEngine","s+":"160F"}}}
{"t":{"$date":"2021-05-21T00:49:13.625+05:30"},"s":"I",  "c":"CONTROL",  "id":31445,   "ctx":"initandlisten","msg":"  Frame: {frame}","attr":{"frame":{"a":"7FF6C26338FA","module":"mongod.exe","file":".../src/mongo/db/storage/wiredtiger/wiredtiger_init.cpp","line":103,"s":"mongo::`anonymous namespace'::WiredTigerFactory::create","s+":"35A"}}}
{"t":{"$date":"2021-05-21T00:49:13.625+05:30"},"s":"I",  "c":"CONTROL",  "id":31445,   "ctx":"initandlisten","msg":"  Frame: {frame}","attr":{"frame":{"a":"7FF6C2C39147","module":"mongod.exe","file":".../src/mongo/db/storage/storage_engine_init.cpp","line":158,"s":"mongo::initializeStorageEngine","s+":"6D7"}}}
{"t":{"$date":"2021-05-21T00:49:13.625+05:30"},"s":"I",  "c":"CONTROL",  "id":31445,   "ctx":"initandlisten","msg":"  Frame: {frame}","attr":{"frame":{"a":"7FF6C25EE918","module":"mongod.exe","file":".../src/mongo/db/db.cpp","line":361,"s":"mongo::`anonymous namespace'::_initAndListen","s+":"978"}}}
{"t":{"$date":"2021-05-21T00:49:13.625+05:30"},"s":"I",  "c":"CONTROL",  "id":31445,   "ctx":"initandlisten","msg":"  Frame: {frame}","attr":{"frame":{"a":"7FF6C25F119E","module":"mongod.exe","file":".../src/mongo/db/db.cpp","line":786,"s":"mongo::`anonymous namespace'::initAndListen","s+":"1E"}}}
{"t":{"$date":"2021-05-21T00:49:13.625+05:30"},"s":"I",  "c":"CONTROL",  "id":31445,   "ctx":"initandlisten","msg":"  Frame: {frame}","attr":{"frame":{"a":"7FF6C2B62413","module":"mongod.exe","file":".../src/mongo/util/ntservice.cpp","line":612,"s":"mongo::ntservice::initService","s+":"53"}}}
{"t":{"$date":"2021-05-21T00:49:13.625+05:30"},"s":"I",  "c":"CONTROL",  "id":31445,   "ctx":"initandlisten","msg":"  Frame: {frame}","attr":{"frame":{"a":"7FFA4DC52DE2","module":"sechost.dll","s":"LsaLookupUserAccountType","s+":"202"}}}
{"t":{"$date":"2021-05-21T00:49:13.625+05:30"},"s":"I",  "c":"CONTROL",  "id":31445,   "ctx":"initandlisten","msg":"  Frame: {frame}","attr":{"frame":{"a":"7FFA4DB17C24","module":"KERNEL32.DLL","s":"BaseThreadInitThunk","s+":"14"}}}
{"t":{"$date":"2021-05-21T00:49:13.625+05:30"},"s":"I",  "c":"CONTROL",  "id":23132,   "ctx":"initandlisten","msg":"Writing minidump diagnostic file","attr":{"dumpName":"C:\\Program Files\\MongoDB\\Server\\4.4\\bin\\mongod.2021-05-20T19-19-13.mdmp"}}
{"t":{"$date":"2021-05-21T00:49:13.690+05:30"},"s":"F",  "c":"CONTROL",  "id":23137,   "ctx":"initandlisten","msg":"*** immediate exit due to unhandled exception"}

i am not able to attach that log file here , just i copied here

The above line indicates mongod can’t start because the upgrade path wasn’t followed. You skipped 4.2 release series when you went from 4.0 to 4.4. New releases generally come with breaking changes, so it’s highly recommended to follow the upgrade path.

According to the documentation, first, upgrade to 4.2, and make sure everything works after. If you are satisfied with 4.2 then upgrade once more, this time to 4.4.

Hopefully, that should resolve the issue.

Mahi

3 Likes