DataBase Keeps Crashing Due to Security Software
Original Question or Issue:
The FileCloud Server database service (MongoDB) crashes unexpectedly, preventing the server from functioning.
Environment:
- Product - FileCloud Server
- Version - Any
- Platform - Any
Steps to Reproduce:
This issue occurs when anti-virus or security software interferes with MongoDB's file rename operations during startup or during FTDC (Full-Time Diagnostic Data Capture) logging. To reproduce: install or enable an anti-virus solution that scans the XAMPP directory, then attempt to start the FileCloud Server database service.
Error or Log Message:
{"t":{"$date":"XX"},"s":"F", "c":"CONTROL", "id":4757800, "ctx":"ftdc","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"}}
Defect or Enhancement Number:
Cause:
Anti-virus or security software was blocking MongoDB's ability to rename files in the XAMPP directory, causing a fatal FileRenameFailed: Access is denied error that crashes the database service.
Resolution or Workaround:
Add the /xampp folder as an exclusion (whitelist) in your anti-virus or security software, then restart the FileCloud Server database service. This prevents the security software from interfering with MongoDB's file operations. If your FileCloud installation uses a non-default path, exclude that directory instead.
Notes:
This issue has been reported on Windows installations of FileCloud Server. Ensure that all subdirectories under the XAMPP installation path are also excluded, not just the root /xampp folder, as some anti-virus tools apply exclusions non-recursively.