Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Bamboo Stuck with screen "Please wait while Bamboo sets up your database"

Parth Padhiyar
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 3, 2019

Hi everyone,

 

I am trying to setup bamboo on Ubuntu with postgresql database.

I followed the installation process but I am getting this issue:

 

Once I fill out the postgresql database into, setup screen stuck at

"Please wait while Bamboo sets up your database" and doesn't move for hours.

If anyone can help me to understand the problem that will  really helpful.

------------------------------------------------------------------------------------------------------------------------------

2019-09-03 16:11:31,214 INFO [localhost-startStop-1] [BootstrapLoaderListener] Starting BootstrapLoaderListener
2019-09-03 16:11:31,215 INFO [localhost-startStop-1] [lifecycle] *******************************
2019-09-03 16:11:31,215 INFO [localhost-startStop-1] [lifecycle] * Bamboo is starting up *
2019-09-03 16:11:31,215 INFO [localhost-startStop-1] [lifecycle] *******************************
2019-09-03 16:11:31,217 INFO [localhost-startStop-1] [ServletContextHolder] Setting servlet context: Bamboo
2019-09-03 16:11:31,313 INFO [localhost-startStop-1] [lifecycle] atlassian.org.osgi.framework.bootdelegation set to javax.servlet,javax.servlet.*,sun.*,com.sun.*,org.w3c.dom.*,org.apache.xerces.*,org.jboss.byteman.*,jdk.internal.reflect
2019-09-03 16:11:31,430 INFO [localhost-startStop-1] [BootstrapLoaderListener] App classloader is the same as web app classloader
2019-09-03 16:11:32,935 INFO [localhost-startStop-1] [lifecycle] Starting Bamboo 6.9.2 (build #60911 Thu Jul 04 08:20:29 UTC 2019) using Java 11.0.4 from Ubuntu
2019-09-03 16:11:32,935 INFO [localhost-startStop-1] [lifecycle] Real path of servlet context: /home/parthp/Documents/bamboo-install/atlassian-bamboo/
2019-09-03 16:11:33,061 INFO [localhost-startStop-1] [DefaultSetupPersister] Current setup step: setupLicense
2019-09-03 16:11:33,063 INFO [localhost-startStop-1] [lifecycle] Bamboo home directory: /var/atlassian/bamboo
2019-09-03 16:11:33,063 INFO [localhost-startStop-1] [lifecycle] Default charset: UTF-8, file name ecoding: UTF-8
2019-09-03 16:11:33,073 INFO [localhost-startStop-1] [UpgradeLauncher] Upgrades not performed since the application has not been set up yet.
2019-09-03 16:11:33,104 INFO [localhost-startStop-1] [CompressingFilter] CompressingFilter has initialized
2019-09-03 16:11:33,894 INFO [localhost-startStop-1] [SpringObjectFactoryProxy] Deferring initialisation of com.atlassian.bamboo.plugin.xwork.SpringObjectFactoryProxy
2019-09-03 16:11:35,063 INFO [localhost-startStop-1] [Dispatchers] Dispatcher org.apache.struts2.dispatcher.Dispatcher initialised
2019-09-03 16:11:35,255 INFO [localhost-startStop-1] [SpringObjectFactoryProxy] Deferring initialisation of com.atlassian.bamboo.plugin.xwork.SpringObjectFactoryProxy
2019-09-03 16:11:36,234 INFO [localhost-startStop-1] [AccessLogFilter] AccessLogFilter initialized. Format is: <user> <url> <starting memory free (kb)> +- <difference in free mem (kb)> <query time (ms)>
2019-09-03 16:11:36,348 INFO [localhost-startStop-1] [SpringObjectFactoryProxy] Deferring initialisation of com.atlassian.bamboo.plugin.xwork.SpringObjectFactoryProxy
2019-09-03 16:11:36,522 INFO [localhost-startStop-1] [Dispatchers] Dispatcher org.apache.struts2.dispatcher.Dispatcher initialised
2019-09-03 16:11:36,588 INFO [localhost-startStop-1] [SpringObjectFactoryProxy] Deferring initialisation of com.atlassian.bamboo.plugin.xwork.SpringObjectFactoryProxy
2019-09-03 16:11:37,045 INFO [http-nio-8085-exec-1] [JohnsonFilter] The application is not yet setup. Redirecting request from '/start.action' to '/bootstrap/selectSetupStep.action'
2019-09-03 16:11:37,066 INFO [http-nio-8085-exec-2] [AccessLogFilter] 127.0.0.1 GET http://localhost:8085/bootstrap/selectSetupStep.action 350941kb
2019-09-03 16:11:37,413 INFO [http-nio-8085-exec-2] [SelectSetupStepAction] Current setup step is /setup/setupLicense.action
2019-09-03 16:11:37,440 INFO [http-nio-8085-exec-3] [AccessLogFilter] 127.0.0.1 GET http://localhost:8085/setup/setupLicense.action 283871kb
2019-09-03 16:11:50,500 INFO [http-nio-8085-exec-8] [AccessLogFilter] 127.0.0.1 POST http://localhost:8085/setup/validateLicense.action 434783kb
2019-09-03 16:11:50,834 INFO [http-nio-8085-exec-8] [DefaultSetupPersister] Current setup step: setupGeneralConfiguration
2019-09-03 16:11:50,856 INFO [http-nio-8085-exec-9] [AccessLogFilter] 127.0.0.1 GET http://localhost:8085/setup/setupGeneralConfiguration.action 388674kb
2019-09-03 16:11:56,620 INFO [http-nio-8085-exec-10] [AccessLogFilter] 127.0.0.1 POST http://localhost:8085/setup/validateGeneralConfiguration.action 350847kb
2019-09-03 16:11:56,750 INFO [http-nio-8085-exec-10] [SetupUtilityBean] Creating the directory structure...
2019-09-03 16:11:58,085 INFO [http-nio-8085-exec-10] [DefaultSetupPersister] Current setup step: setupDatabase
2019-09-03 16:11:58,102 INFO [http-nio-8085-exec-11] [AccessLogFilter] 127.0.0.1 GET http://localhost:8085/setup/setupDatabase.action 421870kb
2019-09-03 16:11:58,603 WARN [http-nio-8085-exec-11] [TextProviderHelper] The first TextProvider in the ValueStack (com.atlassian.bamboo.ww2.actions.setup.SetupDatabaseAction) could not locate the message resource with key 'help.prefix'
2019-09-03 16:11:58,606 WARN [http-nio-8085-exec-11] [TextProviderHelper] The default value expression 'help.prefix' was evaluated and did not match a property. The literal value 'help.prefix' will be used.
2019-09-03 16:11:58,608 WARN [http-nio-8085-exec-11] [TextProviderHelper] The first TextProvider in the ValueStack (com.atlassian.bamboo.ww2.actions.setup.SetupDatabaseAction) could not locate the message resource with key 'db.mysql'
2019-09-03 16:11:58,608 WARN [http-nio-8085-exec-11] [TextProviderHelper] The default value expression 'db.mysql' was evaluated and did not match a property. The literal value 'db.mysql' will be used.
2019-09-03 16:12:06,837 INFO [http-nio-8085-exec-12] [AccessLogFilter] 127.0.0.1 POST http://localhost:8085/setup/chooseDatabaseType.action 337737kb
2019-09-03 16:12:07,134 INFO [http-nio-8085-exec-13] [AccessLogFilter] 127.0.0.1 GET http://localhost:8085/setup/setupDatabaseConnection.action?selectedDatabase=postgresql 296688kb
2019-09-03 16:12:07,410 WARN [http-nio-8085-exec-13] [TextProviderHelper] The first TextProvider in the ValueStack (com.atlassian.bamboo.ww2.actions.setup.SetupDatabaseConnectionAction) could not locate the message resource with key 'help.prefix'
2019-09-03 16:12:07,413 WARN [http-nio-8085-exec-13] [TextProviderHelper] The default value expression 'help.prefix' was evaluated and did not match a property. The literal value 'help.prefix' will be used.
2019-09-03 16:12:07,414 WARN [http-nio-8085-exec-13] [TextProviderHelper] The first TextProvider in the ValueStack (com.atlassian.bamboo.ww2.actions.setup.SetupDatabaseConnectionAction) could not locate the message resource with key 'db.mysql'
2019-09-03 16:12:07,414 WARN [http-nio-8085-exec-13] [TextProviderHelper] The default value expression 'db.mysql' was evaluated and did not match a property. The literal value 'db.mysql' will be used.
2019-09-03 16:12:16,613 INFO [http-nio-8085-exec-14] [AccessLogFilter] 127.0.0.1 POST http://localhost:8085/setup/performSetupDatabaseConnection.action 265455kb
2019-09-03 16:12:16,742 INFO [performSetupDatabaseConnectionBackgroundThread] [SetupDatabaseConnectionAction] Validating database configuration...
2019-09-03 16:12:16,754 INFO [performSetupDatabaseConnectionBackgroundThread] [SetupDatabaseConnectionAction] Validating connection to url: [jdbc:postgresql://localhost:5432/bamboo]
2019-09-03 16:12:17,093 INFO [performSetupDatabaseConnectionBackgroundThread] [SetupDatabaseConnectionAction] Database configuration is valid.
2019-09-03 16:12:17,093 INFO [performSetupDatabaseConnectionBackgroundThread] [SetupUtilityBean] Setting up database: postgresql
2019-09-03 16:12:17,095 INFO [performSetupDatabaseConnectionBackgroundThread] [SetupUtilityBean] Bootstrapping database: postgresql
2019-09-03 16:12:17,095 INFO [performSetupDatabaseConnectionBackgroundThread] [DefaultHibernateConfigurator] Saving bootstrap configuration...
2019-09-03 16:12:17,112 INFO [performSetupDatabaseConnectionBackgroundThread] [DefaultHibernateConfigurator] Refreshing Spring context...
2019-09-03 16:12:18,748 WARN [http-nio-8085-exec-14] [TokenHelper] Could not find token mapped to token name: token
2019-09-03 16:12:21,026 WARN [performSetupDatabaseConnectionBackgroundThread] [GenericTypeAwarePropertyDescriptor] Invalid JavaBean property 'mappingResources' being accessed! Ambiguous write methods found next to actually used [public void bucket.core.persistence.hibernate.ConfigurableLocalSessionFactoryBean.setMappingResources(bucket.core.persistence.hibernate.MappingResources)]: [public void org.springframework.orm.hibernate5.LocalSessionFactoryBean.setMappingResources(java.lang.String[])]
2019-09-03 16:12:21,184 WARN [performSetupDatabaseConnectionBackgroundThread] [XmlWebApplicationContext] Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'reloadableBeanFactories' defined in class path resource [applicationContextPlugin.xml]: BeanPostProcessor before instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.transaction.config.internalTransactionAdvisor': Cannot resolve reference to bean 'org.springframework.transaction.annotation.AnnotationTransactionAttributeSource#0' while setting bean property 'transactionAttributeSource'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.transaction.annotation.AnnotationTransactionAttributeSource#0': BeanPostProcessor before instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'customBuildCompleteActionAdvisor' defined in class path resource [applicationContextManagers.xml]: Cannot resolve reference to bean 'hibernateInterceptor' while setting bean property 'advice'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hibernateInterceptor' defined in class path resource [applicationContextPersistence.xml]: Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [applicationContextPersistence.xml]: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException
2019-09-03 16:12:21,185 INFO [http-nio-8085-exec-15] [AccessLogFilter] 127.0.0.1 POST http://localhost:8085/setup/performSetupDatabaseConnection.action 363403kb
2019-09-03 16:12:21,185 ERROR [performSetupDatabaseConnectionBackgroundThread] [ContextLoader] Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'reloadableBeanFactories' defined in class path resource [applicationContextPlugin.xml]: BeanPostProcessor before instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.transaction.config.internalTransactionAdvisor': Cannot resolve reference to bean 'org.springframework.transaction.annotation.AnnotationTransactionAttributeSource#0' while setting bean property 'transactionAttributeSource'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.transaction.annotation.AnnotationTransactionAttributeSource#0': BeanPostProcessor before instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'customBuildCompleteActionAdvisor' defined in class path resource [applicationContextManagers.xml]: Cannot resolve reference to bean 'hibernateInterceptor' while setting bean property 'advice'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hibernateInterceptor' defined in class path resource [applicationContextPersistence.xml]: Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [applicationContextPersistence.xml]: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:490)
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:317)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:315)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:204)
at org.springframework.context.support.PostProcessorRegistrationDelegate.registerBeanPostProcessors(PostProcessorRegistrationDelegate.java:236)
at org.springframework.context.support.AbstractApplicationContext.registerBeanPostProcessors(AbstractApplicationContext.java:708)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:533)
at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:409)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:291)
at com.atlassian.config.spring.BootstrappedContainerContext.refresh(BootstrappedContainerContext.java:22)
at com.atlassian.bamboo.setup.DefaultHibernateConfigurator.refreshSpringContextAndCreateDatabase(DefaultHibernateConfigurator.java:120)
at com.atlassian.bamboo.setup.DefaultHibernateConfigurator.configureDatabase(DefaultHibernateConfigurator.java:63)
at com.atlassian.config.bootstrap.DefaultAtlassianBootstrapManager.bootstrapDatabase(DefaultAtlassianBootstrapManager.java:258)
at com.atlassian.bamboo.ww2.actions.setup.SetupUtilityBean.setupStandardDatabase(SetupUtilityBean.java:187)
at

1 answer

1 accepted

0 votes
Answer accepted
Daniel Santos
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 4, 2019

Hi @Parth Padhiyar

It seems that the problem you are facing is caused by the wrong JAVA version referenced by the Bamboo process. 
Bamboo 6.9.2 only supports JAVA 1.8 as per Supported platforms - Atlassian Documentation.

You can have other versions of JAVA in your server, but Bamboo should use the 1.8 to start your Bamboo instance. If you have the JAVA 1.8 installation available, you just need to declare the variable JAVA_HOME with the correct path, inside the <Bamboo_Install>/bin/setenv.sh file. 

I hope that helps.

Parth Padhiyar
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 5, 2019

Hi Daniel,

 

Thank you so much for the detailed reply.

I changed my JAVA_HOME to use "java-8-OpenJDK-amd64" instead of "java11-OpenJDK-amd64," and this resolved my issue with the installation.

 

Thanks again :)

Like Daniel Santos likes this
Daniel Santos
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 5, 2019

Hey @Parth Padhiyar

You are always welcome!!!
I'm glad that the issue is now solved =]

I hope you enjoy Bamboo now that you can use it.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events