Confluence server fails during/after database setup

Stéphane Dubois October 10, 2019

My fresh install of Confluence does not work.

I can fill in the setup screens until the database setup

dbsetup.png

When I click next, it runs for a few seconds and then I get this error page

dberror.png

2019-10-09 17:57:38,217 INFO [Catalina-utility-1] [com.atlassian.confluence.lifecycle] contextInitialized Starting Confluence 7.0.2 [build 8202 based on commit hash acab2c864c42e4af386f37e1f28db0e52c85b2ff] - synchrony version 3.1.0-master-8becbfc8
2019-10-09 17:57:42,505 WARN [Catalina-utility-1] [com.atlassian.config.ApplicationConfig] setApplicationHome Application home does not exist. Creating directory: /var/atlassian/application-data/confluence/shared-home
2019-10-09 17:57:42,511 INFO [Catalina-utility-1] [atlassian.confluence.cluster.DefaultClusterConfigurationHelper] lambda$saveSetupConfigIntoSharedHome$9 Writing setup configuration into shared home...
2019-10-09 17:57:42,601 INFO [Catalina-utility-1] [atlassian.confluence.cluster.DefaultClusterConfigurationHelper] lambda$saveSetupConfigIntoSharedHome$9 Finished writing setup configuration into shared home
2019-10-09 17:57:45,039 INFO [Catalina-utility-1] [atlassian.plugin.manager.DefaultPluginManager] lambda$earlyStartup$3 Plugin system earlyStartup begun
2019-10-09 17:57:48,463 WARN [FelixStartLevel] [extender.internal.support.ExtenderConfiguration] addDefaultDependencyFactories Gemini Blueprint extensions bundle not present, annotation processing disabled.
2019-10-09 17:57:50,896 INFO [Catalina-utility-1] [atlassian.plugin.manager.DefaultPluginManager] logTime Plugin system earlyStartup ended
2019-10-09 17:57:50,898 INFO [Catalina-utility-1] [atlassian.plugin.manager.DefaultPluginManager] lambda$lateStartup$4 Plugin system lateStartup begun
2019-10-09 17:57:52,857 INFO [Catalina-utility-1] [atlassian.plugin.manager.DefaultPluginManager] logTime Plugin system lateStartup ended
2019-10-09 17:57:53,531 INFO [Catalina-utility-1] [com.atlassian.confluence.lifecycle] init Confluence is ready to serve
2019-10-09 17:59:25,273 INFO [http-nio-8090-exec-8] [springframework.web.context.ContextLoader] initWebApplicationContext Root WebApplicationContext: initialization started
2019-10-09 17:59:28,606 INFO [http-nio-8090-exec-8] [com.atlassian.confluence.lifecycle] <init> Loading EhCache cache manager
2019-10-09 17:59:41,912 INFO [http-nio-8090-exec-8] [springframework.web.context.ContextLoader] initWebApplicationContext Root WebApplicationContext initialized in 16638 ms
2019-10-09 17:59:41,933 INFO [http-nio-8090-exec-8] [atlassian.plugin.manager.DefaultPluginManager] lambda$shutdown$5 Preparing to shut down the plugin system
2019-10-09 17:59:41,935 INFO [http-nio-8090-exec-8] [atlassian.plugin.manager.DefaultPluginManager] lambda$shutdown$5 Shutting down the plugin system
2019-10-09 17:59:42,050 WARN [FelixStartLevel] [plugin.osgi.factory.OsgiBundlePlugin] disableInternal Cannot disable Bundle 'com.atlassian.platform.spring-velocity-support-0.0.7', not ACTIVE
2019-10-09 17:59:42,090 INFO [http-nio-8090-exec-8] [atlassian.plugin.manager.DefaultPluginManager] lambda$earlyStartup$3 Plugin system earlyStartup begun
2019-10-09 17:59:44,746 WARN [FelixStartLevel] [extender.internal.support.ExtenderConfiguration] addDefaultDependencyFactories Gemini Blueprint extensions bundle not present, annotation processing disabled.
-- referer: http://confluence-spot-dev.scale-eu.xxxx.com/setup/setupdbtype-start.action | url: /setup/setupdbtype.action | traceId: 005edd284c010073 | userName: anonymous | action: setupdbtype
2019-10-09 18:00:06,563 WARN [http-nio-8090-exec-8] [plugin.osgi.util.OsgiHeaderUtil] stripDuplicatePackages removing duplicate import package com.atlassian.confluence.api.service.network~ for plugin com.atlassian.streams.confluence - it is likely that a duplicate package was supplied in the OSGi instructions in the plugin's MANIFEST.MF
-- referer: http://confluence-spot-dev.scale-eu.xxxx.com/setup/setupdbtype-start.action | url: /setup/setupdbtype.action | traceId: 005edd284c010073 | userName: anonymous | action: setupdbtype
2019-10-09 18:00:26,025 WARN [http-nio-8090-exec-6] [confluence.impl.vcache.SynchronousExternalCache] lambda$get$11 Failed to read entry from cache 'com.atlassian.bandana.BandanaPersister': Failed due to UNCLASSIFIED_FAILURE
-- referer: http://confluence-spot-dev.scale-eu.xxxx.com/setup/setupdbtype-start.action | url: /setup/setupdbtype.action | traceId: 00729520c9d96287 | userName: anonymous
2019-10-09 18:00:26,114 ERROR [http-nio-8090-exec-6] [atlassian.confluence.servlet.ConfluenceServletDispatcher] sendError Could not execute action
-- referer: http://confluence-spot-dev.scale-eu.xxxx.com/setup/setupdbtype-start.action | url: /setup/setupdbtype.action | traceId: 00729520c9d96287 | userName: anonymous
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'i18NBean' defined in class path resource [i18NContext.xml]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.atlassian.confluence.util.i18n.I18NBean]: Factory method 'getI18NBean' threw exception; nested exception is java.util.concurrent.CompletionException: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'tenantedTransactionManager' defined in class path resource [databaseSubsystemContext.xml]: Invocation of init method failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'tenantedLocalSessionFactoryBean5' defined in class path resource [productionDatabaseContext.xml]: Invocation of init method failed; nested exception is java.lang.IllegalStateException: premature SessionFactory initialisation, Hibernate properties have not yet been persisted in confluence.cfg.xml
at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:627)
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:607)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1321)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1160)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:555)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:515)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:338)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:273)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)

1 answer

0 votes
Diego
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 11, 2019

Hello @Stéphane Dubois ! Thanks for sharing your situation here with our community.

As I understand, you are currently unable to finish your Confluence initial setup. This issue can be caused by a number of variables. With this in mind, let us start by ruling some of those out. Here is a list of things for us to check:

  • Database user permissions
  • Proxy in front of your instance
  • Database version compatibility with your Confluence version
  • Database setup for PostgreSQL

 

Here is our documentation to assist you with the application setup. Here it is:

 

It seems that Confluence does start, but faces some issues when dealing with the database itself. We can see the “Confluence is ready to serve” line. This leads me to believe that we have something wrong within the database settings rather than Confluence itself.

For good measure, make sure that your setup steps match these:

Hopefully, this reply will serve as a guide for your setup! Looking forward to your reply, Stéphane.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events