cancel
Showing results for 
Search instead for 
Did you mean: 

Empty Contentstore.deleted

valfontanette
Champ in-the-making
Champ in-the-making
Hello everyone!

I deleted my files, deleted from trashcan and my contentstore.deleted folder is always empty. Is there another place they can go???

In this case, I am using Alfresco 3.2r and tenants. They are located at tenantstores\tenant-name. Even after deleting the files from trashcan, they continue in the (contentstore) folder and the contentstore.deleted is empty. I set protectDays = 2. But files never appear in contentstore.deleted.

Where are my deleted files? (Not in trashcan)
Which folder files can I delete in this case? I need space.


Please any help about this? I'm running out of space.

5 REPLIES 5

marco_altieri
Star Contributor
Star Contributor
Hi,

I haven't been using the community edition for several years, but I do not think that it is different.

The spring context file alfresco/WEB-INF/classes/alfresco/content-services-context.xml defines the bean "contentStoreCleaner"

For example in my version of alfresco the bean is configured with the following snippet:


   <!– Performs the content cleanup –>
   <bean id="contentStoreCleaner" class="org.alfresco.repo.content.cleanup.ContentStoreCleaner" init-method="init">
      <property name="protectDays" >
         <value>${system.content.orphanProtectDays}</value>
      </property>
      <property name="deletionFailureAction" >
         <value>${system.content.deletionFailureAction}</value>
      </property>
      <property name="eagerContentStoreCleaner" >
         <ref bean="eagerContentStoreCleaner" />
      </property>
      <property name="jobLockService">
         <ref bean="jobLockService" />
      </property>
      <property name="contentDataDAO">
           <ref bean="contentDataDAO"/>
      </property>
      <property name="dictionaryService">
         <ref bean="dictionaryService" />
      </property>
      <property name="contentService" >
         <ref bean="contentService" />
      </property>
      <property name="avmNodeDAO">
            <ref bean="newAvmNodeDAO"/>
      </property>
      <property name="transactionService" >
         <ref bean="transactionService" />
      </property>
   </bean>


As you can see the instance variable is called protectDays but the property to set is called system.content.orphanProtectDays.
This property is set to 14 by default (in repository.properties).
Of course, be careful to change this configuration.

I think that 14 days are not too much in general and it would be better not to change it. If you have deleted a lot of documents, you can probably modify this property temporarily.
Because the community edition does not have the jmx interface, as far as I know, you need to restart the server to change this configuration.

valfontanette
Champ in-the-making
Champ in-the-making
Hi Marco.altieri

I have done this already. Smiley Happy
Today I found a forum post saing that Alfresco has by default disabled trigger that launches the process of cleaning permanently deleted files. To activate it I need to edit the file / Alfresco / tomcat / webapps / alfresco / WEB-INF / classes / alfresco / scheduled-jobs-context.xml

I just did that. Now I am waiting. My protectDays = 1. I'll see it tomorrow.

Thanks a lot for your attention,

Hi,

I activated the trigger that launches the process of cleaning permanently deleted files by editing the file / Alfresco / tomcat / webapps / alfresco / WEB-INF / classes / alfresco / scheduled-jobs-context.xml
It worked!

omkar
Champ in-the-making
Champ in-the-making
Hi valfontanette. Can you tell how to activate the trigger that launches the process of cleaning permanently deleted files? Even I need to free some space. When I changed the "protectDays" property to 1, nothing appears in the "contentstore.deleted" folder. I am using Alfresco 3.2 which has Lucene indexes in it. Attaching the "scheduled-jobs-context" herewith for reference.

Regards,
   Omkar v. Kulkarni

You are looking in the wrong file for the protectDays parameter. For that, you should look into content-services-context.xml. Or set "system.content.orphanProtectDays=1" in repository.properties, which imho is a better solution than editing the xml file.

Regarding scheduled-jobs-context.xml, here the relevant parameter to set is: system.content.orphanCleanup.cronExpression. This should also be set in repository.properties. (In your xml file, there is no such parameter as "protectDays".)