cancel
Showing results for 
Search instead for 
Did you mean: 

Error 05170000 Failed to create store root: "C:\Tomcat\alf_data\contentstore.deleted" on Windows

FrancoisFL
Champ on-the-rise
Champ on-the-rise

Hello there,

I am trying to install Alfresco Content Services 6.2 for development purposes
I used the distribution zip (alfresco-content-services-community-distribution-6.2.0-ga.zip) with Tomcat 8.5.46 on a local Windows Server 2016.

I followed the instructions in https://docs.alfresco.com/6.2/concepts/ch-install.html and its various subsections, at least to a certain point because a lot of it is apparently intended for Linux (so the paths in my config files are those I got to after many many attempts...). Anyway, I have not gotten to the point where both Tomcat and Solr start up and apparently talk to each other, but then the alfresco webapp fails with "Context initialization failed" and throws errors 05170000 Failed to create store root: "C:\Tomcat\alf_data\contentstore.deleted":

2020-06-17 19:21:30,511 WARN  [org.springframework.web.context.support.XmlWebApplicationContext] [vm-alfresco6-startStop-1] Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'authorityBridgeTableCache' defined in class path resource [alfresco/cache-context.xml]: Cannot resolve reference to bean 'authorityBridgeDAO' while setting bean property 'authorityBridgeDAO'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'authorityBridgeDAO' defined in class path resource [alfresco/authority-services-context.xml]: Cannot resolve reference to bean 'nodeDAO' while setting bean property 'nodeDAO'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'nodeDAO': FactoryBean threw exception on object creation; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'nodeDAO.org.alfresco.repo.domain.dialect.Dialect' defined in class path resource [alfresco/dao/dao-context.xml]: Cannot resolve reference to bean 'contentDataDAO' while setting bean property 'contentDataDAO'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'contentDataDAO' defined in class path resource [alfresco/dao/dao-context.xml]: Cannot resolve reference to bean 'eagerContentStoreCleaner' while setting bean property 'contentStoreCleaner'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'eagerContentStoreCleaner' defined in class path resource [alfresco/content-services-context.xml]: Cannot resolve reference to bean 'deletedContentBackupListeners' while setting bean property 'listeners'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'deletedContentBackupListeners' defined in class path resource [alfresco/content-services-context.xml]: Cannot resolve reference to bean 'deletedContentBackupListener' while setting constructor argument with key [0]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'deletedContentBackupListener' defined in class path resource [alfresco/content-services-context.xml]: Cannot resolve reference to bean 'deletedContentStore' while setting bean property 'store'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'deletedContentStore' defined in class path resource [alfresco/content-services-context.xml]: Bean instantiation via constructor failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.alfresco.repo.content.filestore.FileContentStore]: Constructor threw exception; nested exception is org.alfresco.service.cmr.repository.ContentIOException: 05170000 Failed to create store root: "C:\Tomcat\alf_data\contentstore.deleted"
2020-06-17 19:21:30,526 ERROR [org.springframework.web.context.ContextLoader] [vm-alfresco6-startStop-1] Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'authorityBridgeTableCache' defined in class path resource [alfresco/cache-context.xml]: Cannot resolve reference to bean 'authorityBridgeDAO' while setting bean property 'authorityBridgeDAO'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'authorityBridgeDAO' defined in class path resource [alfresco/authority-services-context.xml]: Cannot resolve reference to bean 'nodeDAO' while setting bean property 'nodeDAO'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'nodeDAO': FactoryBean threw exception on object creation; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'nodeDAO.org.alfresco.repo.domain.dialect.Dialect' defined in class path resource [alfresco/dao/dao-context.xml]: Cannot resolve reference to bean 'contentDataDAO' while setting bean property 'contentDataDAO'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'contentDataDAO' defined in class path resource [alfresco/dao/dao-context.xml]: Cannot resolve reference to bean 'eagerContentStoreCleaner' while setting bean property 'contentStoreCleaner'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'eagerContentStoreCleaner' defined in class path resource [alfresco/content-services-context.xml]: Cannot resolve reference to bean 'deletedContentBackupListeners' while setting bean property 'listeners'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'deletedContentBackupListeners' defined in class path resource [alfresco/content-services-context.xml]: Cannot resolve reference to bean 'deletedContentBackupListener' while setting constructor argument with key [0]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'deletedContentBackupListener' defined in class path resource [alfresco/content-services-context.xml]: Cannot resolve reference to bean 'deletedContentStore' while setting bean property 'store'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'deletedContentStore' defined in class path resource [alfresco/content-services-context.xml]: Bean instantiation via constructor failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.alfresco.repo.content.filestore.FileContentStore]: Constructor threw exception; nested exception is org.alfresco.service.cmr.repository.ContentIOException: 05170000 Failed to create store root: "C:\Tomcat\alf_data\contentstore.deleted"
	at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:314)
	at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:110)
(...)
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'authorityBridgeDAO' defined in class path resource [alfresco/authority-services-context.xml]: Cannot resolve reference to bean 'nodeDAO' while setting bean property 'nodeDAO'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'nodeDAO': FactoryBean threw exception on object creation; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'nodeDAO.org.alfresco.repo.domain.dialect.Dialect' defined in class path resource [alfresco/dao/dao-context.xml]: Cannot resolve reference to bean 'contentDataDAO' while setting bean property 'contentDataDAO'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'contentDataDAO' defined in class path resource [alfresco/dao/dao-context.xml]: Cannot resolve reference to bean 'eagerContentStoreCleaner' while setting bean property 'contentStoreCleaner'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'eagerContentStoreCleaner' defined in class path resource [alfresco/content-services-context.xml]: Cannot resolve reference to bean 'deletedContentBackupListeners' while setting bean property 'listeners'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'deletedContentBackupListeners' defined in class path resource [alfresco/content-services-context.xml]: Cannot resolve reference to bean 'deletedContentBackupListener' while setting constructor argument with key [0]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'deletedContentBackupListener' defined in class path resource [alfresco/content-services-context.xml]: Cannot resolve reference to bean 'deletedContentStore' while setting bean property 'store'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'deletedContentStore' defined in class path resource [alfresco/content-services-context.xml]: Bean instantiation via constructor failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.alfresco.repo.content.filestore.FileContentStore]: Constructor threw exception; nested exception is org.alfresco.service.cmr.repository.ContentIOException: 05170000 Failed to create store root: "C:\Tomcat\alf_data\contentstore.deleted"
	at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:314)
	at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:110)
(...)
	... 29 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'nodeDAO': FactoryBean threw exception on object creation; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'nodeDAO.org.alfresco.repo.domain.dialect.Dialect' defined in class path resource [alfresco/dao/dao-context.xml]: Cannot resolve reference to bean 'contentDataDAO' while setting bean property 'contentDataDAO'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'contentDataDAO' defined in class path resource [alfresco/dao/dao-context.xml]: Cannot resolve reference to bean 'eagerContentStoreCleaner' while setting bean property 'contentStoreCleaner'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'eagerContentStoreCleaner' defined in class path resource [alfresco/content-services-context.xml]: Cannot resolve reference to bean 'deletedContentBackupListeners' while setting bean property 'listeners'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'deletedContentBackupListeners' defined in class path resource [alfresco/content-services-context.xml]: Cannot resolve reference to bean 'deletedContentBackupListener' while setting constructor argument with key [0]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'deletedContentBackupListener' defined in class path resource [alfresco/content-services-context.xml]: Cannot resolve reference to bean 'deletedContentStore' while setting bean property 'store'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'deletedContentStore' defined in class path resource [alfresco/content-services-context.xml]: Bean instantiation via constructor failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.alfresco.repo.content.filestore.FileContentStore]: Constructor threw exception; nested exception is org.alfresco.service.cmr.repository.ContentIOException: 05170000 Failed to create store root: "C:\Tomcat\alf_data\contentstore.deleted"
	at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanRegistrySupport.java:178)
	at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.getObjectFromFactoryBean(FactoryBeanRegistrySupport.java:101)
(...)
	... 39 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'nodeDAO.org.alfresco.repo.domain.dialect.Dialect' defined in class path resource [alfresco/dao/dao-context.xml]: Cannot resolve reference to bean 'contentDataDAO' while setting bean property 'contentDataDAO'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'contentDataDAO' defined in class path resource [alfresco/dao/dao-context.xml]: Cannot resolve reference to bean 'eagerContentStoreCleaner' while setting bean property 'contentStoreCleaner'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'eagerContentStoreCleaner' defined in class path resource [alfresco/content-services-context.xml]: Cannot resolve reference to bean 'deletedContentBackupListeners' while setting bean property 'listeners'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'deletedContentBackupListeners' defined in class path resource [alfresco/content-services-context.xml]: Cannot resolve reference to bean 'deletedContentBackupListener' while setting constructor argument with key [0]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'deletedContentBackupListener' defined in class path resource [alfresco/content-services-context.xml]: Cannot resolve reference to bean 'deletedContentStore' while setting bean property 'store'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'deletedContentStore' defined in class path resource [alfresco/content-services-context.xml]: Bean instantiation via constructor failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.alfresco.repo.content.filestore.FileContentStore]: Constructor threw exception; nested exception is org.alfresco.service.cmr.repository.ContentIOException: 05170000 Failed to create store root: "C:\Tomcat\alf_data\contentstore.deleted"
	at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:314)
	at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:110)
(...)
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'deletedContentStore' defined in class path resource [alfresco/content-services-context.xml]: Bean instantiation via constructor failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.alfresco.repo.content.filestore.FileContentStore]: Constructor threw exception; nested exception is org.alfresco.service.cmr.repository.ContentIOException: 05170000 Failed to create store root: "C:\Tomcat\alf_data\contentstore.deleted"
	at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:304)
	at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:285)
(...)
	... 101 more
Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.alfresco.repo.content.filestore.FileContentStore]: Constructor threw exception; nested exception is org.alfresco.service.cmr.repository.ContentIOException: 05170000 Failed to create store root: "C:\Tomcat\alf_data\contentstore.deleted"
	at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:184)
	at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:117)
	at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:300)
	... 111 more
Caused by: org.alfresco.service.cmr.repository.ContentIOException: 05170000 Failed to create store root: "C:\Tomcat\alf_data\contentstore.deleted"
	at org.alfresco.repo.content.filestore.FileContentStore.<init>(FileContentStore.java:117)
	at org.alfresco.repo.content.filestore.FileContentStore.<init>(FileContentStore.java:102)
(...)
	... 113 more

(I had to truncate the log at the "(...)" marks because it exceeds the 20K characters limit for a post)

The contents of C:\Tomcat\shared\classes\alfresco-global.properties are as follows:

solr.secureComms=https
dir.root="C:/Tomcat/alf_data/"
dir.keystore=${ALF_DATA_DIR}/keystore
dir.contentstore="C:/Tomcat/alf_data/contentstore"
dir.contentstore.deleted="C:/Tomcat/alf_data/contentstore.deleted"
db.username=alfresco
db.password=alfresco
db.driver=org.postgresql.Driver
db.url=jdbc:postgresql://localhost:5432/alfresco
alfresco.context=alfresco
alfresco.host=vm-Alfresco6
alfresco.port=8080
alfresco.protocol=http
share.context=share
share.host=vm-Alfresco6
share.port=8080
share.protocol=http
index.subsystem.name=solr6
solr.secureComms=https
solr.port=8983
solr.host=vm-Alfresco6
solr.base.url=/solr
encryption.ssl.keystore.location=${dir.keystore}
encryption.ssl.keystore.type=JCEKS
encryption.ssl.keystore.keyMetaData.location=${dir.keystore}/ssl-keystore-passwords.properties
encryption.ssl.truststore.location=${dir.keystore}
encryption.ssl.truststore.type=JCEKS
encryption.ssl.truststore.keyMetaData.location=${dir.keystore}/ssl-truststore-passwords.properties
encryption.keystore.location=${dir.keystore}/keystore
encryption.keystore.keyMetaData.location=${dir.keystore}/keystore-passwords.properties
encryption.keystore.type=JCEKS
solr.host=localhost
solr.port.ssl=8983

and I did add the line

shared.loader=${catalina.base}/shared/classes,${catalina.base}/shared/lib/*.jar

to C:\Tomcat\conf\catalina.properties.

Tomcat is running as the LOCAL SERVICE account (which has full control over the C:\Tomcat directory), restarting it makes no difference.
The error also remains if I create the contentstore.deleted manually inside C:\Tomcat\alf_data (at which point it inherits the permissions from its parent directories).

I have tried many variations in the syntax of the paths, tried restarting the app server as wel las the host OS, tried granting permissions beyond reasonable... Nothing seems to help.

I am completely new to Alfresco, am I missing something obvious? I would greatly appreciate any help sorting this out Smiley Happy

Thanks!

Fancois

1 ACCEPTED ANSWER

After making the following changes to alfresco-global.properties :

1 -adding

db.name=alfresco
db.host=vm-Alfresco6
db.port=5432

which had probably gone missing after I reverted a snapshot, and

transform.service.enabled=false
local.transform.service.enabled=false
legacy.transform.service.enabled=false

(a suggestion found on the web)

2 - replacing 

dir.root="C:/Tomcat/alf_data/"

with 

dir.root=C:\Tomcat\alf_data\

and 

dir.contentstore=C:\Tomcat\alf_data\contentstore
dir.contentstore.deleted=C:\Tomcat\alf_data\contentstore.deleted

with

dir.contentstore=${dir.root}/contentstore
dir.contentstore.deleted=${dir.root}/contentstore.deleted

The alfresco WAR now goes a little further into deployment, although the webapp eventually hangs at:

2020-06-19 15:41:43,726 INFO  [org.alfresco.service.descriptor.DescriptorService] [vm-alfresco6-startStop-1] Alfresco Content Services started (Community). Current version: 6.2.0 (r05dbaf43-b368) schema 13 001. Originally installed version: 6.2.0 (r05dbaf43-b368) schema 13 001.
2020-06-19 15:41:43,736 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] [vm-alfresco6-startStop-1] Starting 'ActivitiesFeed' subsystem, ID: [ActivitiesFeed, default]
2020-06-19 15:41:44,076 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] [vm-alfresco6-startStop-1] Startup of 'ActivitiesFeed' subsystem, ID: [ActivitiesFeed, default] complete
2020-06-19 15:41:44,077 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] [vm-alfresco6-startStop-1] Starting 'Replication' subsystem, ID: [Replication, default]
2020-06-19 15:41:44,095 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] [vm-alfresco6-startStop-1] Startup of 'Replication' subsystem, ID: [Replication, default] complete
2020-06-19 15:41:45,212 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] [vm-alfresco6-startStop-1] Starting 'Messaging' subsystem, ID: [Messaging, default]

But this is a different issue so I'll investigate it and I'm closing this post.

View answer in original post

4 REPLIES 4

EddieMay
World-Class Innovator
World-Class Innovator

Hi @FrancoisFL,

Do you know if postgres is running correctly?

Thanks,

Digital Community Manager, Alfresco Software.
Problem solved? Click Accept as Solution!

Hi Eddie,

Yes it is, I can connect to it using pgAdmin and browse the Alfresco database I created at an early stage of the installation.

After making the following changes to alfresco-global.properties :

1 -adding

db.name=alfresco
db.host=vm-Alfresco6
db.port=5432

which had probably gone missing after I reverted a snapshot, and

transform.service.enabled=false
local.transform.service.enabled=false
legacy.transform.service.enabled=false

(a suggestion found on the web)

2 - replacing 

dir.root="C:/Tomcat/alf_data/"

with 

dir.root=C:\Tomcat\alf_data\

and 

dir.contentstore=C:\Tomcat\alf_data\contentstore
dir.contentstore.deleted=C:\Tomcat\alf_data\contentstore.deleted

with

dir.contentstore=${dir.root}/contentstore
dir.contentstore.deleted=${dir.root}/contentstore.deleted

The alfresco WAR now goes a little further into deployment, although the webapp eventually hangs at:

2020-06-19 15:41:43,726 INFO  [org.alfresco.service.descriptor.DescriptorService] [vm-alfresco6-startStop-1] Alfresco Content Services started (Community). Current version: 6.2.0 (r05dbaf43-b368) schema 13 001. Originally installed version: 6.2.0 (r05dbaf43-b368) schema 13 001.
2020-06-19 15:41:43,736 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] [vm-alfresco6-startStop-1] Starting 'ActivitiesFeed' subsystem, ID: [ActivitiesFeed, default]
2020-06-19 15:41:44,076 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] [vm-alfresco6-startStop-1] Startup of 'ActivitiesFeed' subsystem, ID: [ActivitiesFeed, default] complete
2020-06-19 15:41:44,077 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] [vm-alfresco6-startStop-1] Starting 'Replication' subsystem, ID: [Replication, default]
2020-06-19 15:41:44,095 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] [vm-alfresco6-startStop-1] Startup of 'Replication' subsystem, ID: [Replication, default] complete
2020-06-19 15:41:45,212 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] [vm-alfresco6-startStop-1] Starting 'Messaging' subsystem, ID: [Messaging, default]

But this is a different issue so I'll investigate it and I'm closing this post.

EddieMay
World-Class Innovator
World-Class Innovator

Hi @FrancoisFL,

Well done for resolving you issue & thanks for showing how you did it - really useful to other users.

Thanks & have a great weekend, 

Digital Community Manager, Alfresco Software.
Problem solved? Click Accept as Solution!