Windows event 7034 "the MongoDB Server (MongoDB) service terminated unexpectedly"

Hello,

For an unknown reason the service managing my MongoDb server crashes regularly causing a windows event 7034 “the MongoDB Server (MongoDB) service terminated unexpectedly”.
However i can’t figure out why.

I checked the logs looking for an error and got the following lines

{"t":{"$date":"2024-02-14T05:12:35.169+01:00"},"s":"F",  "c":"CONTROL",  "id":6384300, "ctx":"ftdc","msg":"Writing fatal message","attr":{"message":"DBException::toString(): FileRenameFailed: Acc\ufffds refus\ufffd\nActual exception type: class mongo::error_details::ExceptionForImpl<37,class mongo::AssertionException>\n\n"}}
{"t":{"$date":"2024-02-14T05:12:35.169+01:00"},"s":"F",  "c":"CONTROL",  "id":6384300, "ctx":"ftdc","msg":"Writing fatal message","attr":{"message":"\n"}}

{"t":{"$date":"2024-02-14T05:12:59.675+01:00"},"s":"I",  "c":"CONTROL",  "id":31380,   "ctx":"ftdc","msg":"BACKTRACE","attr":{"bt":{"backtrace":[{"a":"7FF75EE6D731","module":"mongod.exe","file":".../src/mongo/util/stacktrace_windows.cpp","line":336,"s":"mongo::printStackTrace","s+":"41"},{"a":"7FF75EE70EF8","module":"mongod.exe","file":".../src/mongo/util/signal_handlers_synchronous.cpp","line":261,"s":"mongo::`anonymous namespace'::myTerminate","s+":"E8"},{"a":"7FF75EF22CF7","module":"mongod.exe","file":".../src/mongo/stdx/set_terminate_internals.cpp","line":87,"s":"mongo::stdx::dispatch_impl","s+":"17"},{"a":"7FF75EF22CD9","module":"mongod.exe","file":".../src/mongo/stdx/set_terminate_internals.cpp","line":91,"s":"mongo::stdx::TerminateHandlerDetailsInterface::dispatch","s+":"9"},{"a":"7FFF3180DE58","module":"ucrtbase.dll","s":"terminate","s+":"18"},{"a":"7FFF234F1AAB","module":"VCRUNTIME140_1.dll","s":"_NLG_Return2","s+":"95B"},{"a":"7FFF234F2317","module":"VCRUNTIME140_1.dll","s":"_NLG_Return2","s+":"11C7"},{"a":"7FFF234F4119","module":"VCRUNTIME140_1.dll","s":"_CxxFrameHandler4","s+":"A9"},{"a":"7FF75F160EEC","module":"mongod.exe","file":"d:/a01/_work/43/s/src/vctools/crt/vcstartup/src/gs/amd64/gshandlereh4.cpp","line":86,"s":"__GSHandlerCheck_EH4","s+":"64"},{"a":"7FFF3494509F","module":"ntdll.dll","s":"_chkstk","s+":"11F"},{"a":"7FFF348A4CEF","module":"ntdll.dll","s":"RtlWalkFrameChain","s+":"14BF"},{"a":"7FFF348A8AE6","module":"ntdll.dll","s":"RtlRaiseException","s+":"316"},{"a":"7FFF30A449B9","module":"KERNELBASE.dll","s":"RaiseException","s+":"69"},{"a":"7FFF243766C0","module":"VCRUNTIME140.dll","s":"CxxThrowException","s+":"90"},{"a":"7FF75EEE8C5D","module":"mongod.exe","file":"C:/data/mci/dfefef4a18018d98a9c5c798766336c0/src/build/opt/mongo/base/error_codes.cpp","line":2592,"s":"mongo::error_details::throwExceptionForStatus","s+":"42D"},{"a":"7FF75EE7AA2E","module":"mongod.exe","file":".../src/mongo/util/assert_util.cpp","line":282,"s":"mongo::uassertedWithLocation","s+":"19E"},{"a":"7FF75CFCB450","module":"mongod.exe","file":".../src/mongo/db/ftdc/controller.cpp","line":256,"s":"mongo::FTDCController::doLoop","s+":"5B0"},{"a":"7FF75CFCAD3C","module":"mongod.exe","file":"C:/Program Files/Microsoft Visual Studio/2022/Professional/VC/Tools/MSVC/14.31.31103/include/thread","line":56,"s":"std::thread::_Invoke<std::tuple<`mongo::stdx::thread::thread<`mongo::FTDCController::start'::`2'::<lambda_2>,0>'::`1'::<lambda_4_> >,0>","s+":"2C"},{"a":"7FFF317C268A","module":"ucrtbase.dll","s":"o_exp","s+":"5A"},{"a":"7FFF32587AB4","module":"KERNEL32.DLL","s":"BaseThreadInitThunk","s+":"14"}]}},"tags":[]}

{"t":{"$date":"2024-02-14T05:12:59.675+01:00"},"s":"I",  "c":"CONTROL",  "id":31445,   "ctx":"ftdc","msg":"Frame","attr":{"frame":{"a":"7FF75EEE8C5D","module":"mongod.exe","file":"C:/data/mci/dfefef4a18018d98a9c5c798766336c0/src/build/opt/mongo/base/error_codes.cpp","line":2592,"s":"mongo::error_details::throwExceptionForStatus","s+":"42D"}}}

{"t":{"$date":"2024-02-14T05:12:59.679+01:00"},"s":"I",  "c":"CONTROL",  "id":31380,   "ctx":"ftdc","msg":"BACKTRACE","attr":{"bt":{"backtrace":[{"a":"7FFF30A449B9","module":"KERNELBASE.dll","s":"RaiseException","s+":"69"},{"a":"7FF75EE70579","module":"mongod.exe","file":".../src/mongo/util/signal_handlers_synchronous.cpp","line":103,"s":"mongo::`anonymous namespace'::endProcessWithSignal","s+":"19"},{"a":"7FF75EE70F07","module":"mongod.exe","file":".../src/mongo/util/signal_handlers_synchronous.cpp","line":262,"s":"mongo::`anonymous namespace'::myTerminate","s+":"F7"},{"a":"7FF75EF22CF7","module":"mongod.exe","file":".../src/mongo/stdx/set_terminate_internals.cpp","line":87,"s":"mongo::stdx::dispatch_impl","s+":"17"},{"a":"7FF75EF22CD9","module":"mongod.exe","file":".../src/mongo/stdx/set_terminate_internals.cpp","line":91,"s":"mongo::stdx::TerminateHandlerDetailsInterface::dispatch","s+":"9"},{"a":"7FFF3180DE58","module":"ucrtbase.dll","s":"terminate","s+":"18"},{"a":"7FFF234F1AAB","module":"VCRUNTIME140_1.dll","s":"_NLG_Return2","s+":"95B"},{"a":"7FFF234F2317","module":"VCRUNTIME140_1.dll","s":"_NLG_Return2","s+":"11C7"},{"a":"7FFF234F4119","module":"VCRUNTIME140_1.dll","s":"_CxxFrameHandler4","s+":"A9"},{"a":"7FF75F160EEC","module":"mongod.exe","file":"d:/a01/_work/43/s/src/vctools/crt/vcstartup/src/gs/amd64/gshandlereh4.cpp","line":86,"s":"__GSHandlerCheck_EH4","s+":"64"},{"a":"7FFF3494509F","module":"ntdll.dll","s":"_chkstk","s+":"11F"},{"a":"7FFF348A4CEF","module":"ntdll.dll","s":"RtlWalkFrameChain","s+":"14BF"},{"a":"7FFF348A8AE6","module":"ntdll.dll","s":"RtlRaiseException","s+":"316"},{"a":"7FFF30A449B9","module":"KERNELBASE.dll","s":"RaiseException","s+":"69"},{"a":"7FFF243766C0","module":"VCRUNTIME140.dll","s":"CxxThrowException","s+":"90"},{"a":"7FF75EEE8C5D","module":"mongod.exe","file":"C:/data/mci/dfefef4a18018d98a9c5c798766336c0/src/build/opt/mongo/base/error_codes.cpp","line":2592,"s":"mongo::error_details::throwExceptionForStatus","s+":"42D"},{"a":"7FF75EE7AA2E","module":"mongod.exe","file":".../src/mongo/util/assert_util.cpp","line":282,"s":"mongo::uassertedWithLocation","s+":"19E"},{"a":"7FF75CFCB450","module":"mongod.exe","file":".../src/mongo/db/ftdc/controller.cpp","line":256,"s":"mongo::FTDCController::doLoop","s+":"5B0"},{"a":"7FF75CFCAD3C","module":"mongod.exe","file":"C:/Program Files/Microsoft Visual Studio/2022/Professional/VC/Tools/MSVC/14.31.31103/include/thread","line":56,"s":"std::thread::_Invoke<std::tuple<`mongo::stdx::thread::thread<`mongo::FTDCController::start'::`2'::<lambda_2>,0>'::`1'::<lambda_4_> >,0>","s+":"2C"},{"a":"7FFF317C268A","module":"ucrtbase.dll","s":"o_exp","s+":"5A"},{"a":"7FFF32587AB4","module":"KERNEL32.DLL","s":"BaseThreadInitThunk","s+":"14"}]}},"tags":[]}

{"t":{"$date":"2024-02-14T05:12:59.679+01:00"},"s":"I",  "c":"CONTROL",  "id":31445,   "ctx":"ftdc","msg":"Frame","attr":{"frame":{"a":"7FF75EEE8C5D","module":"mongod.exe","file":"C:/data/mci/dfefef4a18018d98a9c5c798766336c0/src/build/opt/mongo/base/error_codes.cpp","line":2592,"s":"mongo::error_details::throwExceptionForStatus","s+":"42D"}}}

{"t":{"$date":"2024-02-14T05:12:59.680+01:00"},"s":"I",  "c":"CONTROL",  "id":23131,   "ctx":"ftdc","msg":"Failed to open minidump file","attr":{"dumpName":"C:\\Program Files\\MongoDB\\Server\\7.0\\bin\\mongod.2024-02-14T04-12-59.mdmp","error":"Acc\ufffds refus\ufffd."}}
{"t":{"$date":"2024-02-14T05:12:59.680+01:00"},"s":"F",  "c":"CONTROL",  "id":23137,   "ctx":"ftdc","msg":"*** immediate exit due to unhandled exception"}

Could the error be linked to the server not beeing able to open the file C:\Program Files\MongoDB\Server\7.0\bin\mongod.2024-02-14T04-12-59.mdmp ?