There was a problem loading the comments.

Few folder deletes failing when trying to delete multiple folders

Support Portal  »  Knowledgebase  »  Viewing Article

  Print

Original Question

or Issue:

Few folders not getting deleted when trying to delete multiple folders

Environment:

  • Product - FileCloud On-premise
  • Version - Any
  • Platform - Linux/Windows
Steps to Reproduce:

 

Select multiple folders with a large no. of files and initiate a delete operation

 

Error or Log Message:

f7789076290709fd24347f5209023e88c6041977531bda1872e8b7c31e2bb6b06d159990de560346?t=7b50d53467c4ded3540cf592a388acf4


or in the FileCloud Server logs will show below error

ERROR: [xxxxxxxxxxxx] CLFC-00004 ERROR | xxxxxxxxxxxxxxxxx | 1 | Allowed memory size of 524288000 bytes exhausted (tried to allocate 20480 bytes)

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
C:\xampp\php\php.exe C:\xampp\htdocs\resources\tools\criticalsection\criticalsectioncleanup.php -h multitenant.site2-name.com -d 0


Linux:
php /var/www/html/resources/tools/criticalsection/criticalsectioncleanup.php -h default -d 0

php /var/www/html/resources/tools/criticalsection/criticalsectioncleanup.php -h multitenant.site2-name.com -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.

PHP Memory and Execution limits can be increased from the default values to high values by editing the below files and parameters. 

Linux Path: /var/www/html/.htaccess

Windows Path: xampp\htdocs\.htaccess

Value:

php_value memory_limit 1000M
php_value max_execution_time 120

PHP.ini Path: 

/etc/php/8.2/apache2/php.ini (Ubuntu 22.04)

/etc/php.ini (RHEL)
xampp/php/php.ini (Windows)

Value:
memory_limit = 1024M
max_execution_time = 120

Once these edits are made, restart the Apache service:

Ubuntu: systemctl restart apache2

RHEL: systemctl restart httpd
Windows: From FileCloud Control panel or Windows Services

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. 

Share via

Related Articles


Self-Hosted Help Desk Software by SupportPal
© FileCloud