cancel
Showing results for 
Search instead for 
Did you mean: 

Deleted Files aren't moved in contentstore.deleted

luca_vallongo
Champ in-the-making
Champ in-the-making
In my alfresco environment it looks like not all the deleted files are moved to the contentstore.deleted directory.
Can anybody help me please?
This is the situation:
A lot of files were deleted from the workspace store as well as from the archive store.
Currently the archive store is completly empty (I can verify this with the "Node Browser" functionality).
The contentStoreCleaner is configured with the protectDays property set to 1.
The day after the deletion only a few of the files were actually moved by the contentstoreCleaner from the contentstore to the contentstore.deleted directory.
Does anybody know how the contentstoreCleaner work in the deep? (I mean something more than "it moves orphaned contents in the deleted directory").

Thanks
Luca Vallongo
10 REPLIES 10

rgouyet
Champ in-the-making
Champ in-the-making
Hi,

I am testing the 3.0 Labs stable and I get the same issue. No files are moved to the contentstore.deleted even when emptying the archive contentstore with the recycler and with protectDays  to 1 and waiting for  several days, server running 24/24.

The batch is launched :
04:00:00,011 DEBUG [org.quartz.core.JobRunShell] Calling execute on job DEFAULT.fileContentStoreCleanerJobDetail

Is it a bug or a misconfiguration ?

Thanks

derek
Star Contributor
Star Contributor
Hi,

Double check that the listeners property for bean baseContentStoreCleaner in WEB-INF/classes/alfresco/content-services-context.xml is set.

Turn on DEBUG logging for org.alfresco.repo.content.cleanup in WEB-INF/classes/log.properties.  This should show what it gets up to as it determines which content to delete.

Regards

sergisat
Champ in-the-making
Champ in-the-making
Hi, I change log4j.properties adding:


log4j.logger.org.alfresco.repo.content.cleanup=debug

Changed protectDays=2 in /var/lib/tomcat5/webapps/alfresco/WEB-INF/classes/alfresco/content-services-context.xml

   <bean id="fileContentStore" class="org.alfresco.repo.content.filestore.FileContentStore">
      <constructor-arg>
         <value>${dir.contentstore}</value>
      </constructor-arg>
   </bean>

   <!– deleted content will get pushed into this store, where it can be cleaned up at will –>
   <bean id="deletedContentStore" class="org.alfresco.repo.content.filestore.FileContentStore">
      <constructor-arg>
         <value>${dir.contentstore.deleted}</value>
      </constructor-arg>
   </bean>

   <!– bean to move deleted content into the the backup store –>
   <bean id="deletedContentBackupListener" class="org.alfresco.repo.content.cleanup.DeletedContentBackupCleanerListener" >
      <property name="store">
         <ref bean="deletedContentStore" />
      </property>
   </bean>

   <bean id="baseContentStoreCleaner" class="org.alfresco.repo.content.cleanup.ContentStoreCleaner" abstract="true">
      <property name="dictionaryService">
         <ref bean="dictionaryService" />
      </property>
      <property name="nodeDaoService" >
         <ref bean="nodeDaoService" />
      </property>
      <property name="avmNodeDAO">
            <ref bean="avmNodeDAO"/>
      </property>
      <property name="contentUrlDAO">
          <ref bean="contentUrlDAO"/>
      </property>
      <property name="transactionService" >
         <ref bean="transactionService" />
      </property>
      <property name="protectDays" >
<!–         <value>14</value> –>
         <value>2</value>
      </property>
      <property name="listeners" >
         <list>
            <ref bean="deletedContentBackupListener" />
         </list>
      </property>
   </bean>

   <bean id="contentStoreCleaner" parent="baseContentStoreCleaner">
      <property name="stores" >
         <list>
            <ref bean="fileContentStore" />
         </list>
      </property>
   </bean>

………………
………………
………………

I don't see nothing in log about content cleanup.
I removed last day 5Gb and nothing in contentstore.deleted and size of my repository don't change.

Thanks.

etzapata
Champ in-the-making
Champ in-the-making
Hi, Sorry for popping up here. I have posted this question already in another thread but i got no reply from anyone yet. I was hoping someone in this thread can help me. My problem is quite simple to many of you.

I have deleted a space (some via alfresco-web and some via ftp cli).
Normally,
1. after deletion of the space/content,
2. it goes to deleted items (Manage Deleted Items)
3. then after deletion from the Managed Deleted Items,
4. it goes to alf_data/contentstore.deleted.

My problem is this: after deletion of the space, I can see the space in Manage Deleted Items but I cannot delete it. Error says: A system error happened during the operation: could not delete: [org.alfresco.repo.domain.hibernate.NodeImpl#82370]; nested exception is org.hibernate.exception.ConstraintViolationException: could not delete: [org.alfresco.repo.domain.hibernate.NodeImpl#82370]

I am using admin access and I have been doing this process since last year but only this week that I cannot delete anymore. I've been doing full reindex twice already but still I cannot delete.

Please help. I need to clean this already as I am running out of disk space.  Am using alfresco v2.1 with centOS.

Any input is greatly appreciated. Thank you very much and really sorry for popping up in this thread.

EriC

derek
Star Contributor
Star Contributor
Hi,
The first thing to check is that you don't have multiple references to that node ID in the alf_node_status table.  Even better, upgrade to a more recent version of Alfresco.
Regards

sergisat
Champ in-the-making
Champ in-the-making
Hi, my files don't go to alf_data/contentstore.deleted after deleted from Managed Deleted Items as admin user.

How can I see node ID from a folder to see if exists some references to that node?

My version is Alfresco 3 Stable Community version in Centos 5.3 x86_64

derek
Star Contributor
Star Contributor
Hi, my files don't go to alf_data/contentstore.deleted after deleted from Managed Deleted Items as admin user.

How can I see node ID from a folder to see if exists some references to that node?

My version is Alfresco 3 Stable Community version in Centos 5.3 x86_64
Can you confirm that the retention time has been exceeded and that the cleanup job has run?

etzapata
Champ in-the-making
Champ in-the-making
Hi Derek,

Hi,
The first thing to check is that you don't have multiple references to that node ID in the alf_node_status table. Even better, upgrade to a more recent version of Alfresco.
Regards


Thank you very much Sir for your reply. I would like to make a followup question: if the content/space deleted don't have multiple references in the alf_node_status table, what steps needed to be done to clear all my files in "Managed Deleted Items"? I think it would eat up my hard disk space so I need them deleted. How should i do it? I still cannot upgrade to higher version of Alfresco as we don't have extra machine yet.

Kindly enlighten me Sir.

Thank you very much for the help.

EriC

ps. As for the problem of sergisat, I don't have any idea why. My config are just default except for the protectDays which I changed from 14 to 1. Also made minor config but has nothing to do with the deleted items not going to contentstore.deleted but I would love to know.

derek
Star Contributor
Star Contributor
I would like to make a followup question: if the content/space deleted don't have multiple references in the alf_node_status table, what steps needed to be done to clear all my files in "Managed Deleted Items"? I think it would eat up my hard disk space so I need them deleted. How should i do it? I still cannot upgrade to higher version of Alfresco as we don't have extra machine yet.
If you want to automatically clean the trashcan, give this a try:
http://forge.alfresco.com/projects/trashcancleaner/

Have you sorted out the errant node org.alfresco.repo.domain.hibernate.NodeImpl#82370?

Regards