10-30-2020 05:42 PM
Hi All,
I just started using ACS 6 (last 2 days or so), and I found this link to clean up orphan files:
https://docs.alfresco.com/6.0/concepts/clean-content.html
But I have no idea where / how to use this, I've been going through docs all day, without any luck.
Can someone tell me / point me to a step by step guide on how to do this? Basically, I'm looking to add the above to the admin console page at admin/admin-scheduledjobs, where you can hit 'run' to run the job immediately.
Any help is greatly appreciated, the server I am working on has run out of space (due to lots deleted files), and I need to free it up ASAP.
10-31-2020 03:00 PM
Can you elobrate what you want to achive?
If you are enterprise user, you should see the option already in enterprise admin console:
Content store cleaner job be default runs everyday at 4 am as part of node lifecycle. it cleans up 14 days old orphand node. I recommend to read the post given below.
Must read:
https://blog.dbi-services.com/understand-the-lifecycle-of-alfresco-nodes/
https://blyx.com/2014/08/18/understanding-alfresco-content-deletion/
You also have ability to adjust the protectedDays and other stuffs as well via global properties and spring bean context.
If you are a community user, you won't the the above options by default. But you can use this add-on to see the options:
https://github.com/OrderOfTheBee/ootbee-support-tools
10-31-2020 06:06 PM
Thanks for the reply, I'm not on my work laptop so I can't check, but I think that option is there.
I'm trying to remove the orphan files immediately because I need the space, they have not been orpaned for 14 days so this button will not do anything, how can I achieve this exactly?
10-31-2020 08:14 PM
This is not recommended for prodcuction environment and as long as you have appropriate backup/restore strategy. In general Its not recommended.
Hope you also read the blog post i recommended.
However to your very specific case, you can copy the bean definition in your spring bean context file and override the number of protected days as given here: https://docs.alfresco.com/6.0/concepts/clean-content.html
or simply set following properties in alfresco-global.properties file and restart:
system.content.orphanProtectDays=14 #default value, change it as per your need
Also note that, deleting the orphand nodes won't reclaim the space unless you also cleanup "contentstore.deleted" folder. ContentStoreCleaner will move orphand nodes from /contentstore/ to /contentstore.deleted/ folder.
If you want, orphand files to be deleted completely without being moved to contentstore.deleted folder, add the following in alfresco-global.properties:
system.content.eagerOrphanCleanup=true
Note that, it is not recommended as long as you have appropriate backup/restore strategy in place.
11-01-2020 09:52 AM
I added the option to alfresco-global.properties (in tomcat/shared/classes, I assume this is correct?) and set the days to 1, I also checked the license tab and this is what it has:
License: Enterprise - v6.0
but I don't have the 'contentStoreCleanerJobDetail' in my scheduled tasks for some reason!
Explore our Alfresco products with the links below. Use labels to filter content by product module.