cancel
Showing results for 
Search instead for 
Did you mean: 

Error 408 - read time out on deleting top level folder

skushnerenko
Confirmed Champ
Confirmed Champ

I have to clean repository, so I try to delete top-level folder, which contains thousands of folders and documents.

After about a minute of popup window "Please, wait, Files being deleted" another popup window shows "Could not delete item".

The log contains

2019-07-16 18:41:04,741 INFO [webscripts.connector.RemoteClient] [http-apr-8181-exec-21] Exception calling (POST) http://localhost:8181/alfresco/s/slingshot/doclib/action/files?alf_method=delete&alf_ticket=TICKET_09ccfcd64c65f8c59ba8a7957077cbf480858d2e
2019-07-16 18:41:04,742 INFO [webscripts.connector.RemoteClient] [http-apr-8181-exec-21] Error status 408 Read timed out
java.net.SocketTimeoutException: Read timed out

Before this I have tried to clean folder by java script on folder rule with the same error.

https://community.alfresco.com/thread/242348-error-status-408-read-time-out-executing-script

1 ACCEPTED ANSWER

angelborroy
Community Manager Community Manager
Community Manager

Deleting thousands of folder / files at the same time is not recommended in Alfresco. The main problem is that every operation is subscribed to the same database transaction, so the server will freeze (this means that 408) before completing the removing operation as transactional cache and other resources are full.

The alternative is to create a process to remove nodes in batches, like this project:

GitHub - keensoft/MassiveDelete: A simple Alfresco massive deletion batch 

Hyland Developer Evangelist

View answer in original post

3 REPLIES 3

angelborroy
Community Manager Community Manager
Community Manager

Deleting thousands of folder / files at the same time is not recommended in Alfresco. The main problem is that every operation is subscribed to the same database transaction, so the server will freeze (this means that 408) before completing the removing operation as transactional cache and other resources are full.

The alternative is to create a process to remove nodes in batches, like this project:

GitHub - keensoft/MassiveDelete: A simple Alfresco massive deletion batch 

Hyland Developer Evangelist

skushnerenko
Confirmed Champ
Confirmed Champ

The proposed solution is complete, but I have additional question, may I use this solution instead of trashcan cleaner?

As far as I understand  REST Delete 

s/slingshot/doclib/action/file/node/archive/SpacesStore/{uuid}

should completely remove document from trashcan, should it?

Besides, should I clean versionstore by REST Delete

s/slingshot/doclib/action/file/node/workspace/version2Store/{uuid}

The purpose is to completely remove information from repository

I prefer to leave Alfresco be aware of that.

Probably this diagram can help to understand what happens when a node is removed:

GitHub - keensoft/alfresco-deleted-content-store-cleaner: Alfresco Deleted Content Store Cleaner job 

Hyland Developer Evangelist