Original Question or Issue: |
Few folders not getting deleted when trying to delete multiple folders | ||
Environment: |
|
||
Steps to Reproduce: |
Select multiple folders with a large no. of files and initiate a delete operation
|
||
Error or Log Message: |
|
||
Defect or Enhancement Number: |
|||
Cause: | File deletes can fail due to multiple reasons, two common reasons are: 1. System locks that are unreleased during a large delete operation 2. Exhausted php memory or execution limits |
||
Resolution or Workaround: |
If the delete operation shows errors related to system locks or fails on the first try, execute the critical section tool to clear the existing locks. Windows: C:\xampp\php\php.exe C:\xampp\htdocs\resources\tools\criticalsection\criticalsectioncleanup.php -h default -d 0
Refer documentation link for more details on the usage.
If the delete is failing even after clearing the system locks, php limits can be a cause. Related error can be found in the FileCloud Server logs. Linux Path: /var/www/html/.htaccess Windows Path: xampp\htdocs\.htaccess php_value memory_limit 1000M /etc/php/8.2/apache2/php.ini (Ubuntu 22.04) /etc/php.ini (RHEL) Ubuntu: systemctl restart apache2 RHEL: systemctl restart httpd |
||
Notes: | Limits need to be modified only based on the specific error in the logs, i.e., either memory_limit or max_execution_time, and reverted back after a successful file operation. |