cancel
Showing results for 
Search instead for 
Did you mean: 

Linux: Accidentally removed a content store file.

henrychoi_yw
Champ in-the-making
Champ in-the-making
Dear All,
I was trying to clean up the Linux storage the other day and I accidentally removed a directory in content store, after that when i start Alfresco, it gives me an error message:

2015-06-01 23:40:15,845  INFO  [repo.admin.ConfigurationChecker] [main] The Alfresco root data directory ('dir.root') is: /opt/alfresco-4.0.d/alf_data
2015-06-01 23:40:15,851  ERROR [repo.admin.ConfigurationChecker] [main] CONTENT INTEGRITY ERROR: System content not found in content store.
2015-06-01 23:40:15,851  ERROR [repo.admin.ConfigurationChecker] [main] Ensure that the 'dir.root' property is pointing to the correct data location.
2015-06-01 23:40:15,853  ERROR [web.context.ContextLoader] [main] Context initialization failed
org.alfresco.error.AlfrescoRuntimeException: 05010000 Ensure that the 'dir.root' property is pointing to the correct data location.
   at org.alfresco.repo.admin.ConfigurationChecker.check(ConfigurationChecker.java:248)
   at org.alfresco.repo.admin.ConfigurationChecker.access$000(ConfigurationChecker.java:68)
   at org.alfresco.repo.admin.ConfigurationChecker$1.execute(ConfigurationChecker.java:179)
   at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:388)
   at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:278)
   at org.alfresco.repo.admin.ConfigurationChecker.onBootstrap(ConfigurationChecker.java:183)
   at org.springframework.extensions.surf.util.AbstractLifecycleBean.onApplicationEvent(AbstractLifecycleBean.java:56)
   at org.alfresco.repo.management.SafeApplicationEventMulticaster.multicastEventInternal(SafeApplicationEventMulticaster.java:209)
   at org.alfresco.repo.management.SafeApplicationEventMulticaster.multicastEvent(SafeApplicationEventMulticaster.java:180)
   at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:303)
   at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:911)
   at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:428)
   at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:276)
   at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197)
   at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)
   at org.alfresco.web.app.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:63)
   at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4135)
   at org.apache.catalina.core.StandardContext.start(StandardContext.java:4630)
   at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
   at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
   at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:546)
   at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:637)
   at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:563)
   at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:498)
   at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)
   at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321)
   at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
   at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
   at org.apache.catalina.core.StandardHost.start(StandardHost.java:785)
   at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
   at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:445)
   at org.apache.catalina.core.StandardService.start(StandardService.java:519)
   at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
   at org.apache.catalina.startup.Catalina.start(Catalina.java:581)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:597)
   at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
   at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)

What can I do next ? Is there anyway I can recover the content store back or modify the database to skip scanning the files?
I do need the latest files back.
Please if there is anyone that can help.
Really urgent, thanks alot.
12 REPLIES 12

henrychoi_yw
Champ in-the-making
Champ in-the-making
Or is there anyway I can extract the Alfresco files and get my documents back ?

mrogers
Star Contributor
Star Contributor
you need to restore your file from backup.   Its gone.

henrychoi_yw
Champ in-the-making
Champ in-the-making
Is there anyway to skip that directory (only lose those files) and start up alfresco to get the other files out ?

mrogers
Star Contributor
Star Contributor
Depends what files you have deleted.

henrychoi_yw
Champ in-the-making
Champ in-the-making
Accidentally deleted the file inside contentstore/2012/11;
Is there anyway to save the files ?

henrychoi_yw
Champ in-the-making
Champ in-the-making
Hi mrogers,
I want to ask if Alfresco has any once off pay support to fix the above error ?

mrogers
Star Contributor
Star Contributor
You need to restore the files from backup.   If you don't have a backup then unfortunately it is probably going to be hard work to recover.

No alfresco does not have a "once off" support.   Support is provided for Alfresco Enterprise customers.  

henrychoi_yw
Champ in-the-making
Champ in-the-making
Hi mrogers,
I think I am in a really bad situation. The backup NAS hard drive failure a week before this happen and I found out the backup script wasn't work. Basically there is no backup for now.
Is there anyway to guide me to do the recover ?

If we are willing to move on from community version to enterprise version, will there be any support for data migration and solve the above issue ?

Sorry for asking too much questions. My boss is pushing me hard and need to know can we at least get some of the files back.

mrogers
Star Contributor
Star Contributor
One thing to try would be turning "strict" mode off on the ConfigurationChecker bean.  By setting system.bootstrap.config_check.strict=false in your alfresco-global.properties. That may get your repo up and running so at least you have access to your content.

Unfortunately you appear to be missing some important content.   You may be able to patch in equivalent stuff from another instance of alfresco.