cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to create a store that already exists

omegerard
Champ in-the-making
Champ in-the-making
When upgrading from version 1.1.2 to  1.2.1, I get the following error message:


10:43:51,587 ERROR [org.springframework.web.context.ContextLoader] Context initialization failed
org.alfresco.service.cmr.repository.StoreExistsException: Unable to create a store that already exists


What does it mean? And how can it be solved?

Ludo
7 REPLIES 7

larteaga
Champ in-the-making
Champ in-the-making
Hi, I am getting the same error..I am upgrading v1.o to 1.2 ( as specified as best practice for v1.3)
OS: Mandriva 2006
Tomcat 5

Log:

20:54:58,435 ERROR [org.springframework.web.context.ContextLoader] Context initialization failed
org.alfresco.service.cmr.repository.StoreExistsException: Unable to create a store that already exists
        at org.alfresco.repo.node.db.DbNodeServiceImpl.createStore(DbNodeServiceImpl.java:168)
        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:585)
        at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:335)
        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:165)
        at $Proxy2.createStore(Unknown Source)
        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:585)
        at org.alfresco.repo.service.StoreRedirectorProxyFactory$RedirectorInvocationHandler.invoke(StoreRedirectorProxyFactory.java:212)
        at $Proxy3.createStore(Unknown Source)
        at org.alfresco.repo.descriptor.DescriptorServiceImpl.getDescriptorNodeRef(DescriptorServiceImpl.java:325)
        at org.alfresco.repo.descriptor.DescriptorServiceImpl.updateCurrentRepositoryDescriptor(DescriptorServiceImpl.java:254)
        at org.alfresco.repo.descriptor.DescriptorServiceImpl.access$300(DescriptorServiceImpl.java:61)
        at org.alfresco.repo.descriptor.DescriptorServiceImpl$1.doWork(DescriptorServiceImpl.java:185)
        at org.alfresco.repo.descriptor.DescriptorServiceImpl$1.doWork(DescriptorServiceImpl.java:176)
        at org.alfresco.repo.transaction.TransactionUtil.executeInTransaction(TransactionUtil.java:168)
        at org.alfresco.repo.transaction.TransactionUtil.executeInUserTransaction(TransactionUtil.java:74)
        at org.alfresco.repo.descriptor.DescriptorServiceImpl.onApplicationEvent(DescriptorServiceImpl.java:191)
        at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:45)
        at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:225)
        at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:323)
        at org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:134)
        at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:246)
        at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:184)
        at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49)
        at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3827)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4343)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:823)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)
        at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:277)
        at org.apache.catalina.core.StandardHost.install(StandardHost.java:832)
        at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:625)
        at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:431)
        at org.apache.catalina.startup.HostConfig.start(HostConfig.java:983)
        at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:349)
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1091)
        at org.apache.catalina.core.StandardHost.start(StandardHost.java:789)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)
        at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478)
        at org.apache.catalina.core.StandardService.start(StandardService.java:480)
        at org.apache.catalina.core.StandardServer.start(StandardServer.java:2313)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:556)
        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:585)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)


Thanks in advance

larteaga
Champ in-the-making
Champ in-the-making
After change log file I can see the following :

22:36:56,403 DEBUG [org.alfresco.repo.service.StoreRedirectorProxyFactory] Redirecting method public abstract boolean org.alfresco.service.cmr.repository.NodeService.exists(org.alfresco.service.cmr.repository.StoreRef) based on store type workspace://lightWeightVersionStore
…..
22:37:00,013 DEBUG [org.alfresco.repo.service.StoreRedirectorProxyFactory] Redirecting method public abstract boolean org.alfresco.service.cmr.repository.N
odeService.exists(org.alfresco.service.cmr.repository.StoreRef) based on store type user://alfrescoUserStore

22:37:00,044 DEBUG [org.alfresco.repo.service.StoreRedirectorProxyFactory] Redirecting method public abstract boolean org.alfresco.service.cmr.repository.NodeService.exists(org.alfresco.service.cmr.repository.StoreRef) based on store type system://system
……
22:37:00,057 DEBUG [org.alfresco.repo.service.StoreRedirectorProxyFactory] Redirecting method public abstract boolean org.alfresco.service.cmr.repository.NodeService.exists(org.alfresco.service.cmr.repository.StoreRef) based on store type workspace://SpacesStore
…..
22:37:00,069 DEBUG [org.alfresco.repo.service.StoreRedirectorProxyFactory] Redirecting method public abstract boolean org.alfresco.service.cmr.repository.NodeService.exists(org.alfresco.service.cmr.repository.StoreRef) based on store type system://system
22:37:00,073 DEBUG [org.alfresco.repo.service.StoreRedirectorProxyFactory] Redirecting method public abstract org.alfresco.service.cmr.repository.NodeRef org.alfresco.service.cmr.repository.NodeService.getRootNode(org.alfresco.service.cmr.repository.StoreRef) throws org.alfresco.service.cmr.repository.InvalidStoreRefException based on store type system://system
22:37:00,074 DEBUG [org.alfresco.repo.service.StoreRedirectorProxyFactory] Redirecting method public abstract org.alfresco.service.cmr.search.SearchService org.alfresco.repo.search.IndexerAndSearcher.getSearcher(org.alfresco.service.cmr.repository.StoreRef,boolean) throws org.alfresco.repo.search.SearcherException based on store type system://system
22:37:00,215 DEBUG [org.alfresco.repo.service.StoreRedirectorProxyFactory] Redirecting method public abstract org.alfresco.service.cmr.repository.ChildAssociationRef org.alfresco.service.cmr.repository.NodeService.getPrimaryParent(org.alfresco.service.cmr.repository.NodeRef) throws org.alfresco.service.cmr.repository.InvalidNodeRefException based on store type system://system
22:37:00,221 DEBUG [org.alfresco.repo.service.StoreRedirectorProxyFactory] Redirecting method public abstract org.alfresco.service.cmr.repository.NodeRef org.alfresco.service.cmr.repository.NodeService.getRootNode(org.alfresco.service.cmr.repository.StoreRef) throws org.alfresco.service.cmr.repository.InvalidStoreRefException based on store type system://system
22:37:00,223 DEBUG [org.alfresco.repo.service.StoreRedirectorProxyFactory] Redirecting method public abstract java.util.List org.alfresco.service.cmr.repository.NodeService.getChildAssocs(org.alfresco.service.cmr.repository.NodeRef) throws org.alfresco.service.cmr.repository.InvalidNodeRefException based on store type system://system
…….
22:37:00,246 DEBUG [org.alfresco.repo.descriptor.DescriptorServiceImpl] Descriptor not found:
   store: system://system
   path: /sys:descriptor-current
22:37:00,246 DEBUG [org.alfresco.repo.service.StoreRedirectorProxyFactory] Redirecting method public abstract org.alfresco.service.cmr.repository.StoreRef org.alfresco.service.cmr.repository.NodeService.createStore(java.lang.String,java.lang.String) throws org.alfresco.service.cmr.repository.StoreExistsException based on store type null
22:37:00,250 ERROR [org.springframework.web.context.ContextLoader] Context initialization failed
org.alfresco.service.cmr.repository.StoreExistsException: Unable to create a store that already exists

I was looking at the repository.properties file and found that there are some variations between v1.0 and v1.2, since I didn't install the first one, don't know if there are some changes that I am not aware of here.
v1.0
# System Configuration

system.store=system://system
system.descriptor.childname=sys:descriptor

# Spaces Configuration

spaces.store=workspace://SpacesStore
spaces.company_home.childname=app:company_home
spaces.dictionary.childname=app:dictionary
spaces.templates.childname=app:space_templates
spaces.templates.content.childname=app:content_templates

v1.2

# System Configuration

system.store=system://system
system.descriptor.childname=sys:descriptor
system.descriptor.current.childname=sys:descriptor-current

# User config

alfresco_user_store.store=user://alfrescoUserStore
alfresco_user_store.system_container.childname=sys:system
alfresco_user_store.user_container.childname=sysSmiley Tongueeople
alfresco_user_store.authorities_container.childname=sys:authorities

# Spaces Configuration

spaces.store=workspace://SpacesStore
spaces.company_home.childname=app:company_home
spaces.guest_home.childname=app:guest_home
spaces.dictionary.childname=app:dictionary
spaces.templates.childname=app:space_templates
spaces.templates.content.childname=app:content_templates
spaces.savedsearches.childname=app:saved_searches

# Folders for storing people

system.system_container.childname=sys:system
system.people_container.childname=sysSmiley Tongueeople


Does any one have any idea what can be wrong?

matafagafo
Champ in-the-making
Champ in-the-making
The same error happens to me too.
StoreExistsException
Have you solved this problem ?
I'm too upgrading from 1.0 to 1.2
Any help is welcome

generichuman
Champ in-the-making
Champ in-the-making
Hey Alfresco People!!

I find it troubling that, as I go to upgrade my faithful alfresco to a more current version, there is a serious hitch that other people have had and that has been totally ignored in the forum.

I too am getting the errors described in this thread and yet there is no answer posted. Am I just plain out of luck?

Since several of us have experienced the same issue I can not believe it is a fluke of my set-up. What did the others who posted do? Give up and go to a different solution? Give up and manually recreate their old structures in a new version? (this is not a great option for me)

Do I tell my boss that, "yup, those nay-sayers about lack of support for an open-source solution were right. I guess we're just screwed"?  That isn't a happy prospect for me as an open-source advocate in my company's IT group.

HELP… please.

rdanner
Champ in-the-making
Champ in-the-making
Hey Alfresco People!!

I find it troubling that, as I go to upgrade my faithful alfresco to a more current version, there is a serious hitch that other people have had and that has been totally ignored in the forum.

I too am getting the errors described in this thread and yet there is no answer posted. Am I just plain out of luck?

Since several of us have experienced the same issue I can not believe it is a fluke of my set-up. What did the others who posted do? Give up and go to a different solution? Give up and manually recreate their old structures in a new version? (this is not a great option for me)

Do I tell my boss that, "yup, those nay-sayers about lack of support for an open-source solution were right. I guess we're just screwed"?  That isn't a happy prospect for me as an open-source advocate in my company's IT group.

HELP… please.

Sorry this has been missed for so long.  What version are you on currently? Are you trying to get to 1.4 at this point?  Howabout the others in this thread?  are you now moving to 1.4?  Did you find a solution? Give up and re-build? What is your current status?

I think its important to point out a couple of things here. 

First:
It is not easy to keep tabs on stale posts via PHP BB.  I suspect many people like myself use the feature that allows us to see the posts since our last visit.  Once a post is viewed it doesn’t show up again.  If I don’t have an immediate answer for a question, likely I will end up missing it.

The view unanswered posts is not a good mechanism.  We eventually need something better.  Like a way for people to indicate that they have not found a solution.  In the mean time I suggest checking up and re-posting a request for help at reasonable intervals.

Second,
Community support is NOT a guarantee; it’s a benefit of the open source model. It’s not perfect, and we do the best we (the community including the alfresco engineers) can.

If you need support and need it now you can pay for it.  My company pays for support – We have channels we can go through when we need help and need it now. Community version users don’t have this ability.  I don’t think anyone is ignoring anyone on purpose; it’s just very easy to miss long standing posts with our current toolset.  I do expect Alfresco to support the community and I expect the community to support Alfresco.  It’s not altruism, its business – I support Alfresco and the community to minimize my risk and maximize my returns. I pay for support to cover my butt when I have serious bugs and short deadlines.

generichuman
Champ in-the-making
Champ in-the-making
Russ,

well said, and I agree that the open support is 'best effort' and not any kind of guarentee. As for paying for support, I am advocating this with my company. We are small and struggling and the current discussion is over immediate ease of use of M$ products versus a predominantly open stack. We have not yet evolved to more nuanced discussions of what we ought to be doing to fully participate in the open source community. We will get there…. I hope.

As for the versions. Just as the first poster, I am trying to get from 1.1.2 to 1.2.1. I am on my way to running 1.4, but it looked like the wiki entries strongly recommended a step-wise approach.

Thanks for the reply.

Generically Human

generichuman
Champ in-the-making
Champ in-the-making
Luis,

thank you kindly for the offer of direct support. I am, indeed, doing this upgrade on a parallel system to our production server. I shall look into your suggestion of an export and then import to 1.4. If I have not gotten it solved in two weeks, I will take you up on your kind offer.

Generically Human