Welcome to the community forum @Abdelrahman_N_A and @STEVE_HELDEBAUME1.
I added some formatting to make your logs more readable (see Formatting code and log snippets in posts), but both of your deployments appear to have a similar problem with file permissions.
If the MongoDB process is unable to write to an expected file or path, the process will shut down. The relevant log message in both cases includes:
“msg”:“Writing fatal message”,“attr”:{“message”:“DBException::toString(): FileRenameFailed: Access is denied\nActual exception type: class mongo::error_details::ExceptionForImpl<37,class mongo::AssertionException>\n”}}
I expect there may be more context on the operation attempted in the log lines immediately preceding the “Writing fatal error” message, but the solution should be to ensure the file & directory permissions for your MongoDB storage.dbPath
and system.logPath
match the user you are running the mongod.exe
process as.
Regards,
Stennie