Bamboo bootstrap failed: Failed to run pre-bootstrap upgrade tasks.

After cloning a server and trying to build out a dev environment, I keep getting this error. I have upgraded the license in the bamboo.cfg.xml file, unfortunately this changed nothing.

 

Logs show this:
2017-01-23 15:13:50,494 WARN [C3P0PooledConnectionPoolManager[identityToken->1bqrpw69l1kv26yy1stgbfb|18be1fee]-HelperThread-#0] [BasicResourcePool] Having failed to acquire a resource, com.mchange.v2.resourcepool.BasicResourcePool@4c806491 is interrupting all Threads waiting on a resource to check out. Will try again in response to new client requests. 2017-01-23 15:13:50,510 WARN [C3P0PooledConnectionPoolManager[identityToken->1bqrpw69l1kv26yy1stgbfb|18be1fee]-HelperThread-#1] [BasicResourcePool] com.mchange.v2.resourcepool.BasicResourcePool$ScatteredAcquireTask@4722c38e -- Acquisition Attempt Failed!!! Clearing pending acquires. While trying to acquire a needed new resource, we failed to succeed more than the maximum number of allowed acquisition attempts (30). Last acquisition attempt exception: java.sql.SQLException: Cannot open database "Bamboo" requested by the login. The login failed.  at net.sourceforge.jtds.jdbc.SQLDiagnostic.addDiagnostic(SQLDiagnostic.java:372)  at net.sourceforge.jtds.jdbc.TdsCore.tdsErrorToken(TdsCore.java:2988)  at net.sourceforge.jtds.jdbc.TdsCore.nextToken(TdsCore.java:2421)  at net.sourceforge.jtds.jdbc.TdsCore.login(TdsCore.java:632)  at net.sourceforge.jtds.jdbc.JtdsConnection.<init>(JtdsConnection.java:371)  at net.sourceforge.jtds.jdbc.Driver.connect(Driver.java:184)  at com.mchange.v2.c3p0.DriverManagerDataSource.getConnection(DriverManagerDataSource.java:175)  at com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:220)  at com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:206)  at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1PooledConnectionResourcePoolManager.acquireResource(C3P0PooledConnectionPool.java:203)  at com.mchange.v2.resourcepool.BasicResourcePool.doAcquire(BasicResourcePool.java:1138)  at com.mchange.v2.resourcepool.BasicResourcePool.doAcquireAndDecrementPendingAcquiresWithinLockOnSuccess(BasicResourcePool.java:1125)  at com.mchange.v2.resourcepool.BasicResourcePool.access$700(BasicResourcePool.java:44)  at com.mchange.v2.resourcepool.BasicResourcePool$ScatteredAcquireTask.run(BasicResourcePool.java:1870)  at com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:696) 2017-01-23 15:13:50,510 WARN [C3P0PooledConnectionPoolManager[identityToken->1bqrpw69l1kv26yy1stgbfb|18be1fee]-HelperThread-#1] [BasicResourcePool] Having failed to acquire a resource, com.mchange.v2.resourcepool.BasicResourcePool@4c806491 is interrupting all Threads waiting on a resource to check out. Will try again in response to new client requests. 2017-01-23 15:14:20,683 INFO [localhost-startStop-2] [Dispatchers] Dispatcher org.apache.struts2.dispatcher.Dispatcher destroyed 2017-01-23 15:14:20,683 INFO [localhost-startStop-2] [CompressingFilter] CompressingFilter is being destroyed... 2017-01-23 15:14:20,683 INFO [localhost-startStop-2] [Dispatchers] Dispatcher org.apache.struts2.dispatcher.Dispatcher destroyed 2017-01-23 15:14:20,792 INFO [localhost-startStop-2] [BambooPluginManager] Plugin state will no longer be persisted.

1 answer

This widget could not be displayed.

Hello Sean,

The issue seems to be related to database connectivity.

Could you please confirm the database settings in "bamboo.cfg.xml" are correct and you are able to connect to the database from the same box where running Bamboo?

Kind regards,

Rafael

2017-08-17 13:53:31,462 INFO [localhost-startStop-1] [lifecycle] Bamboo home directory: /home/mk7/Bamboo/Bamboo_Home
2017-08-17 13:53:31,463 INFO [localhost-startStop-1] [lifecycle] Default charset: UTF-8, file name ecoding: UTF-8
2017-08-17 13:53:31,471 INFO [localhost-startStop-1] [UpgradeLauncher] Upgrades not performed since the application has not been set up yet.
2017-08-17 13:53:31,499 INFO [localhost-startStop-1] [CompressingFilter] CompressingFilter has initialized
2017-08-17 13:53:32,020 INFO [localhost-startStop-1] [SpringObjectFactoryProxy] Deferring initialisation of com.atlassian.bamboo.plugin.xwork.SpringObjectFactoryProxy
2017-08-17 13:53:32,695 INFO [localhost-startStop-1] [Dispatchers] Dispatcher org.apache.struts2.dispatcher.Dispatcher initialised
2017-08-17 13:53:32,765 INFO [localhost-startStop-1] [SpringObjectFactoryProxy] Deferring initialisation of com.atlassian.bamboo.plugin.xwork.SpringObjectFactoryProxy
2017-08-17 13:53:33,401 INFO [localhost-startStop-1] [AccessLogFilter] AccessLogFilter initialized. Format is: <user> <url> <starting memory free (kb)> +- <difference in free mem (kb)> <query time (ms)>
2017-08-17 13:53:33,458 INFO [localhost-startStop-1] [SpringObjectFactoryProxy] Deferring initialisation of com.atlassian.bamboo.plugin.xwork.SpringObjectFactoryProxy
2017-08-17 13:53:33,600 INFO [localhost-startStop-1] [Dispatchers] Dispatcher org.apache.struts2.dispatcher.Dispatcher initialised
2017-08-17 13:53:33,639 INFO [localhost-startStop-1] [SpringObjectFactoryProxy] Deferring initialisation of com.atlassian.bamboo.plugin.xwork.SpringObjectFactoryProxy
2017-08-17 13:53:33,970 INFO [http-nio-8085-exec-2] [JohnsonFilter] The application is still starting up, or there are errors. Redirecting request from '/rest/api/latest/server' to '/error/errorEvents.action'
2017-08-17 13:53:33,970 INFO [http-nio-8085-exec-11] [JohnsonFilter] The application is still starting up, or there are errors. Redirecting request from '/rest/api/latest/result/COV-VT-JOB1-42' to '/error/errorEvents.action'
2017-08-17 13:53:33,971 INFO [http-nio-8085-exec-14] [JohnsonFilter] The application is still starting up, or there are errors. Redirecting request from '/ajax/planStatusHistoryNeighbouringSummaries.action' to '/error/errorEvents.action'
2017-08-17 13:53:33,970 INFO [http-nio-8085-exec-15] [JohnsonFilter] The application is still starting up, or there are errors. Redirecting request from '/rest/api/latest/server' to '/error/errorEvents.action'
2017-08-17 13:53:33,970 INFO [http-nio-8085-exec-16] [JohnsonFilter] The application is still starting up, or there are errors. Redirecting request from '/rest/api/latest/result/status/COV-VT-42' to '/error/errorEvents.action'
2017-08-17 13:53:33,972 INFO [http-nio-8085-exec-17] [JohnsonFilter] The application is still starting up, or there are errors. Redirecting request from '/rest/api/latest/server' to '/error/errorEvents.action'
2017-08-17 13:53:33,971 INFO [http-nio-8085-exec-8] [JohnsonFilter] The application is still starting up, or there are errors. Redirecting request from '/rest/api/latest/server' to '/error/errorEvents.action'
2017-08-17 13:53:33,971 INFO [http-nio-8085-exec-9] [JohnsonFilter] The application is still starting up, or there are errors. Redirecting request from '/start.action' to '/error/errorEvents.action'
2017-08-17 13:53:33,970 INFO [http-nio-8085-exec-7] [JohnsonFilter] The application is still starting up, or there are errors. Redirecting request from '/start.action' to '/error/errorEvents.action'
2017-08-17 13:53:34,015 INFO [http-nio-8085-exec-20] [AccessLogFilter] 10.0.2.2 GET http://10.138.64.37:8085/error/errorEvents.action 467139kb
2017-08-17 13:53:34,106 ERROR [http-nio-8085-exec-12] [FiveOhOh] 500 Exception was thrown.
java.lang.NullPointerException
at com.atlassian.bamboo.filter.UrlRewriteFilter.getMappingsForPath(UrlRewriteFilter.java:273)
at com.atlassian.bamboo.filter.UrlRewriteFilter.parseUrl(UrlRewriteFilter.java:247)
at com.atlassian.bamboo.filter.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:201)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
at com.atlassian.core.filters.HeaderSanitisingFilter.doFilter(HeaderSanitisingFilter.java:44)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:64)
at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:58)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:121)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:212)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
at org.apache.catalina.valves.StuckThreadDetectionValve.invoke(StuckThreadDetectionValve.java:206)
at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:616)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:528)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1099)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:670)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1520)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1476)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)
2017-08-17 13:53:34,106 ERROR [http-nio-8085-exec-10] [FiveOhOh] 500 Exception was thrown.
java.lang.NullPointerException
at com.atlassian.bamboo.filter.UrlRewriteFilter.getMappingsForPath(UrlRewriteFilter.java:273)
at com.atlassian.bamboo.filter.UrlRewriteFilter.parseUrl(UrlRewriteFilter.java:247)
at com.atlassian.bamboo.filter.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:201)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
at com.atlassian.core.filters.HeaderSanitisingFilter.doFilter(HeaderSanitisingFilter.java:44)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:64)
at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:58)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:121)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:212)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
at org.apache.catalina.valves.StuckThreadDetectionValve.invoke(StuckThreadDetectionValve.java:206)
at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:616)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:528)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1099)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:670)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1520)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1476)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)
2017-08-17 13:53:34,254 INFO [http-nio-8085-exec-5] [AccessLogFilter] 10.0.2.2 GET http://10.138.64.37:8085/error/errorEvents.action 419323kb
2017-08-17 13:53:34,254 INFO [http-nio-8085-exec-4] [AccessLogFilter] 10.0.2.2 GET http://10.138.64.37:8085/error/errorEvents.action 419323kb
2017-08-17 13:53:34,530 INFO [http-nio-8085-exec-3] [JohnsonFilter] The application is still starting up, or there are errors. Redirecting request from '/rest/api/latest/server' to '/error/errorEvents.action'

 

 

 

This is what my error log looks like can i get some help please?

Thanks,

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Wednesday in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

148 views 2 0
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you