cancel
Showing results for 
Search instead for 
Did you mean: 

Alfresco 4.2 CE cannot start after deleted Data dictionary

alasarr
Champ in-the-making
Champ in-the-making
Hello,

By accident an admin has removed the data dictionary folder, after that I cannot start Alfresco again.


17:34:22,958 ERROR [org.springframework.web.context.ContextLoader] Context initialization failed
org.alfresco.error.AlfrescoRuntimeException: 04070001 Failed to find 'app:dictionary' node


I realized that when I tried to start Alfresco after rebooting. But I don't know when exactly this folder was removed. So it could have been removed two months ago and in the meantime users has been working uploading data.

Is there a way to start Alfresco without this folder?  If not, at least, how can I recover the files?

Regards,
9 REPLIES 9

jpotts
World-Class Innovator
World-Class Innovator
Uh-oh, I hope you have a good backup.

Others may have ideas, here is mine. What if you started Alfresco up (exact same version) on another server and created an ACP of the Data Dictionary folder. Then you could try configuring Alfresco to bootstrap that ACP. I don't recall exactly how to do this but if you look around you should find some references. It's possible that the context loader will fail before it gets a chance to load that data. If that happens, this idea won't work.

There may also be ways to essentially un-delete the folder and its children by manipulating the database and grabbing the binaries from the deleted content store.

Neither of these things are likely to be as easy as recovering from a known good backup.

Jeff

alasarr
Champ in-the-making
Champ in-the-making
Thanks a lot for the fast answer.

I've a daily backup, but unfortunately I don't know when the dictionary data was removed so the backup is useless. <b>If I restore a old backup I get a working version with missing data , if I restore the lastest version from backup I get a version which cannot start</b>

I've deployed the same version on other machine and export the dictionary data in a ACP file, but I can't import it.

I've tried to follow this guide http://wiki.alfresco.com/wiki/Bootstrap_Data and added this to the  module-context.xml:



<bean id="myModule.bootstrap"
      class="org.alfresco.repo.module.ImporterModuleComponent"
      parent="module.baseComponent">

   <!– Module Details –>
   <property name="moduleId" value="myModule" />
   <property name="name" value="myModuleBootstrap" />
   <property name="description" value="My Modules initial data requirements" />
   <property name="sinceVersion" value="1.0" />
   <property name="appliesFromVersion" value="1.0" />

   <!– Data properties –>
   <property name="importer" ref="spacesBootstrap"/>
   <property name="bootstrapViews">
      <list>
         <props>
            <prop key="path">/${spaces.company_home.childname}</prop>
            <prop key="location">alfresco/module/myModule-123/dictdata.acp</prop>
         </props>
      </list>
   </property>

</bean>



Have I something wrong here? I see nothing about this import in the log.

alasarr
Champ in-the-making
Champ in-the-making
Any answer?

Where I can get support?.

I don't care if I've to pay but I need to fix it ASAP.

jpotts
World-Class Innovator
World-Class Innovator
Looks right to me. There are no errors at all in the log? It could be that the repo is failing before it initializes your module.

On your backups, could you restore to another machine, day by day, until you find a backup that has the data dictionary?

As for support, if you send me a message with your location I can hook you up with an Alfresco account rep.

Jeff

alasarr
Champ in-the-making
Champ in-the-making
No errors.

I've already done it, I've a working version three months ago. But it doesn't have the data of the last three months…

Message sent.

Thanks a lot.

alasarr
Champ in-the-making
Champ in-the-making
I've found an error.


21:47:29,994 ERROR [org.alfresco.repo.module.ModuleComponentHelper] The component 'myModule.bootstrap' belongs to a non-existent module 'myModule'


Any ideas?

jpotts
World-Class Innovator
World-Class Innovator
Can you confirm the specific Alfresco Community Edition version you are running? 4.2.e, for example?

Also, do you know for sure that your admin deleted the data dictionary folder? Or could it be a problem that causes an error that makes it sound like the folder has been deleted?

Jeff

alasarr
Champ in-the-making
Champ in-the-making
Thanks a lot for the response Smiley Happy

My version is alfresco-community-4.2.c..

I'm not 100% sure if it was really deleted.

jpotts
World-Class Innovator
World-Class Innovator
alasarr,

There is a person in #alfresco on freenode IRC right now who has worked through this before and is willing to help you out. His IRC chat name is DarkStar1.

So if you can get into IRC while he is still there he might be of some help.

Jeff