Failed to create keystore while alfresco startup

cancel
Showing results for 
Search instead for 
Did you mean: 
Active Member II

Failed to create keystore while alfresco startup

Hi,

I am getting the below error when I try to setup alfresco 5.2.3 . Is there any setup I need to do with my content store. 

I have followed the below two link for my setup but don't see any keystore related changes except for the director setup in alfresco global properties file. 

dir.root=C:\\dev\\tools\\alfresco\\ALFRESCO_LOCAL_DATA
dir.keystore=${dir.root}\\keystore

I have also attached my alfresco-global.properties file .

018-06-29 17:42:39,534 INFO [alfresco.repo.admin] [localhost-startStop-1] Using database URL 'jdbcSmiley Tongueostgresql://localhost:5432/alfresco' with user 'alfresco'.
2018-06-29 17:42:39,537 INFO [alfresco.repo.admin] [localhost-startStop-1] Connected to database PostgreSQL version 9.3.23
2018-06-29 17:42:42,587 INFO [domain.schema.SchemaBootstrap] [localhost-startStop-1] Ignoring script patch (post-Hibernate): patch.db-V4.2-metadata-query-indexes
2018-06-29 17:42:42,588 INFO [domain.schema.SchemaBootstrap] [localhost-startStop-1] Ignoring script patch (post-Hibernate): patch.db-V5.1-metadata-query-indexes
2018-06-29 17:42:42,591 INFO [domain.schema.SchemaBootstrap] [localhost-startStop-1] Ignoring script patch (post-Hibernate): patch.db-V5.2-remove-jbpm-tables-from-db
2018-06-29 17:42:46,297 INFO [management.subsystems.ChildApplicationContextFactory] [localhost-startStop-1] Starting 'Authentication' subsystem, ID: [Authentication, managed, alfrescoNtlm1]
2018-06-29 17:42:46,415 INFO [management.subsystems.ChildApplicationContextFactory] [localhost-startStop-1] Startup of 'Authentication' subsystem, ID: [Authentication, managed, alfrescoNtlm1] complete
2018-06-29 17:42:48,134 INFO [management.subsystems.ChildApplicationContextFactory] [localhost-startStop-1] Starting 'sysAdmin' subsystem, ID: [sysAdmin, default]
2018-06-29 17:42:48,153 INFO [management.subsystems.ChildApplicationContextFactory] [localhost-startStop-1] Startup of 'sysAdmin' subsystem, ID: [sysAdmin, default] complete
2018-06-29 17:42:48,383 INFO [extensions.webscripts.TemplateProcessorRegistry] [localhost-startStop-1] Registered template processor Repository Template Processor for extension ftl
2018-06-29 17:42:48,386 INFO [extensions.webscripts.ScriptProcessorRegistry] [localhost-startStop-1] Registered script processor Repository Script Processor for extension js
2018-06-29 17:42:50,049 INFO [management.subsystems.ChildApplicationContextFactory] [localhost-startStop-1] Starting 'ContentStore' subsystem, ID: [ContentStore, managed, unencrypted]
2018-06-29 17:42:50,072 INFO [management.subsystems.ChildApplicationContextFactory] [localhost-startStop-1] Startup of 'ContentStore' subsystem, ID: [ContentStore, managed, unencrypted] complete
2018-06-29 17:42:50,118 INFO [domain.schema.SchemaBootstrap] [localhost-startStop-1] Connecting to database: jdbcSmiley Tongueostgresql://localhost:5432/alfresco, UserName=alfresco, PostgreSQL Native Driver
2018-06-29 17:42:50,118 INFO [domain.schema.SchemaBootstrap] [localhost-startStop-1] Schema managed by database dialect org.hibernate.dialect.PostgreSQLDialect.
2018-06-29 17:42:50,187 INFO [domain.schema.SchemaBootstrap] [localhost-startStop-1] No changes were made to the schema.
2018-06-29 17:42:50,309 ERROR [web.context.ContextLoader] [localhost-startStop-1] Context initialization failed
org.alfresco.error.AlfrescoRuntimeException: 05290001 Keystores are invalid
at org.alfresco.encryption.EncryptionChecker$1.execute(EncryptionChecker.java:78)
at org.alfresco.encryption.EncryptionChecker$1.execute(EncryptionChecker.java:1)
at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelperThanks

2 Replies
Established Member II

Re: Failed to create keystore while alfresco startup

Hi ,

Rather than the below:

dir.root=C:\\dev\tools\alfresco\ALFRESCO_LOCAL_DATA
dir.keystore=${dir.root}\\keystore

Can you use:

dir.root=C:/dev/tools/alfresco/ALFRESCO_LOCAL_DATA
dir.keystore=${dir.root}/keystore

Member II

Re: Failed to create keystore while alfresco startup

Since Alfresco 5, you may try to comment dir.keystore so it use the default value : dir.keystore=classpath:alfresco/keystore