Page tree
Skip to end of metadata
Go to start of metadata

The FileCloud Critical Section Cleanup tool is available in FileCloud version 21.1 and later

After a move or copy operation for a large folder, the critical section is automatically released. However, if there is a server exception that interrupts regular FileCloud processing, a critical section record may remain and block other operations in the folder. The Critical Section Cleanup tool is a CLI tool that guides you in manually searching for and deleting critical section records. You may indicate how old the records must be to be included in the search.

The tool is criticalsectioncleanup.php and is located in C:\xampp\htdocs\resources\tools\criticalsection.

To run the tool, in a command line, enter the following. Note that -h multitenant.site2-name.com is optional and indicates the hostname if you want to look at a host other then the default.
for Windows:

C:\xampp\php\php.exe C:\xampp\htdocs\resources\tools\criticalsection\criticalsectioncleanup.php -h multitenant.site2-name.com

for Linux:

php /var/www/html/resources/tools/criticalsection/criticalsectioncleanup.php -h multitenant.site2-name.com


The response will appear similar to the following. Respond to the questions asked in the prompts, and specify the number in brackets when indicating which record you want to delete.

===================================================

===================================================

Looking at default host. Use option -h [HOST_NAME] to target other non default host.

>>> Please enter number of days to filter records. (e.g. 1 will fetch records older than 1 day. Leave empty to not filter by days)
>>>
>>> Please enter a partial or full FileCloud path to search critical section records. (Leave empty to not filter by path)
>>>
>>> Found 3 record(s)
>>>  ---- [1] /user0/folder1 ... 2021-03-31
>>>  ---- [2] /user0/folder2 ... 2021-03-31
>>>  ---- [3] /user0/folder3 ... 2021-03-31
>>> Do you want to select a record for removal? (Y/N):
>>> Y
>>> Please enter the number of record you want to delete:
>>> 1
>>> Deleted /user0/folder1
>>> Do you want to select a record for removal? (Y/N):
>>> Y
>>> Please enter the number of record you want to delete:
>>> 3
>>> Deleted /user0/folder3
>>> Do you want to select a record for removal? (Y/N):
>>> Y
>>> Please enter the number of record you want to delete:
>>> 2
>>> Deleted /user0/folder2
>>> Do you want to select a record for removal? (Y/N):
>>> N
>>> Exit command



  • No labels