Issue
Cleanup is failed with the following error message: "Failed to store original"
The console.log also generates the following warning related to the cleanup:
WARNING [2021-10-25 12:36:10,921] defence360agent.malwarelib.cleanup.storage: Failed to store file before cleanup: "MalwareHit(orig_file='/var/www/vhosts/domain.com/subdir/file.php')" -- [Errno 13] Permission denied: 'file.php'
Environment
- Environment supported by ImunifyAV/Imunify360.
Solution
Make sure to check the files failed to be cleaned and their parent directories are accessible.
If those are owned by root, use the chown command to correct the ownership as Imunify does not have permissions to change the system files and files owned by root. Chmod permissions should not be a 000.
Cause
Imunify cannot store the original file before the cleanup process because of the denied permission.
Comments
1 comment
and it is not recommended to run scans in "/*" path as well
Please sign in to leave a comment.