trashcancleaner

cancel
Showing results for 
Search instead for 
Did you mean: 
Danilo87
Active Member

trashcancleaner

Salve,

Per Alfresco community edition 6021 ho aggiunto nel alfresco-global.properties la parte per l'abilitazione del trashcancleaner:

trashcan-cleaner.cron=0 30 * * * ?
trashcan-cleaner.keepPeriod=P1D
trashcan-cleaner.deleteBatchCount=100000

Seguendo la documentazione ufficiale in:

https://docs.alfresco.com/6.0/concepts/trashcan-cleaner.html

Ma non viene cancellato nulla.

Su github  ho trovato un'altra procedura da eseguire per abilitarlo con il modulo "alfrescotrashcancleaner2.amp"  ma non funziona ugualmente 

Potete aiutarmi?

 

Grazie mille

4 Replies
abhinavmishra14
Advanced

Re: trashcancleaner

For community edition, i think you need to install the module. It comes ootb with enterprise version only as far as i can recall.

Have a look at these links:

https://hub.alfresco.com/t5/alfresco-content-services-forum/trashcan-cleaner-not-working/td-p/183344

https://github.com/Alfresco/alfresco-trashcan-cleaner-module

 

~Abhinav
(ACSCE, AWS SAA, Azure Admin)
Danilo87
Active Member

Re: trashcancleaner

 
 
Hello,
Thanks a lot for the answer.
the problem persists because the basket is too big what else can i do?
i also tried installing this:
https://github.com/pdubois/trashcancleaner
abhinavmishra14
Advanced

Re: trashcancleaner

You can try to delete in batch of 100 if that works. I had written a script long back to call Alfresco's archieve API and delete the nodes from trashcan in batches. 

https://github.com/abhinavmishra14/alfresco-scripts/blob/master/src/main/java/com/github/abhinavmish... 

It worked for ACS 5.2, hoping that it would work for latest versions as well. 

~Abhinav
(ACSCE, AWS SAA, Azure Admin)
Danilo87
Active Member

Re: trashcancleaner

Hello,

Now I see that:

INFO 2020-03-24 16:23:24 : deleted b15c50cd-4c7f-40f2-bc36-b18a99ae6cbe
DEBUG 2020-03-24 16:23:24 : DELETE -> http://127.0.0.1:8080/alfresco/service/api/archive/archive/SpacesStore/27aa738b-87eb-4e05-a163-de1b1651dbd8?alf_ticket=TICKET_d399fc357f193753cc8c50d10
with the query: select * from alf_node where uuid = 'b15c50cd-4c7f-40f2-bc36-b18a99ae6cbe'
select * from alf_node where uuid = 'b15c50cd-4c7f-40f2-bc36-b18a99ae6cbe'

I find 2 records. but the db always increases in size