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

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage
  • Community
  • Products
  • Bamboo
  • Questions
  • Bamboo bootstrap failed: Failed to run pre-bootstrap upgrade tasks. Please contact Atlassian and

Bamboo bootstrap failed: Failed to run pre-bootstrap upgrade tasks. Please contact Atlassian and

Bamboo Version: 5.5

While re-starting bamboo server i got Bootstap failed error Below is the Stacktrace for that

java.sql.SQLException: Table not found in statement [select count(next_hi) from hibernate_unique_key]
at org.hsqldb.jdbc.Util.sqlException(Unknown Source)
at org.hsqldb.jdbc.jdbcStatement.fetchResult(Unknown Source)
at org.hsqldb.jdbc.jdbcStatement.executeQuery(Unknown Source)
at com.mchange.v2.c3p0.impl.NewProxyStatement.executeQuery(
at com.atlassian.bamboo.upgrade.tasks.validation.ThereIsSingleRowInHibernateUniqueKeyTable$1.doInHibernateTransaction(
at com.atlassian.bamboo.upgrade.AbstractBootstrapUpgradeTask.withDatabaseConnection(
at com.atlassian.bamboo.upgrade.tasks.validation.ThereIsSingleRowInHibernateUniqueKeyTable.doUpgrade(
at com.atlassian.bamboo.upgrade.AbstractUpgradeManager.runUpgradeTask(
at com.atlassian.bamboo.upgrade.BootstrapUpgradeManagerImpl.runValidationTests(
at com.atlassian.bamboo.setup.DefaultBootstrapManager.performPersistenceUpgrade(
at com.atlassian.config.bootstrap.DefaultAtlassianBootstrapManager.init(
at com.atlassian.bamboo.setup.BootstrapLoaderListener.contextInitialized(
at org.apache.catalina.core.StandardContext.listenerStart(
at org.apache.catalina.core.StandardContext.startInternal(
at org.apache.catalina.util.LifecycleBase.start(
at org.apache.catalina.core.ContainerBase$
at org.apache.catalina.core.ContainerBase$
at java.util.concurrent.FutureTask$Sync.innerRun(
at java.util.concurrent.ThreadPoolExecutor.runWorker(
at java.util.concurrent.ThreadPoolExecutor$

Please help. I am blocked.

4 answers

I ran into this same issue.  It appears that the fundamental issue is that it isn't loading the database files into the hsql database.  I'm trying to run integration tests for a plugin and that process attempts to load the hsql db from /<full path to project dir>/target/bamboo/home/database/defaultdb.  The appropriate files exist and it worked fine on my machine, but not on our CI machine*. 


It turns out that on our CI machine, the full path contains a capitalized directory name.  I'm not sure if it's bamboo or the hsql drivers or what, but something seems to be lower-casing the connection string and thus it's not finding the hsqldb files.  You should be able to see what connection string it's using in bamboo's output just before you see this exception.  In my case, it looks something like:

jdbcUrl -&gt; jdbc:hsqldb:/mnt/bamboo/home/xml-data/build-dir/MEC-DEP0-JOB1/target

I verified that the capitals in the connection string are the cause of my problem by capitalizing my project dir on my local machine and seeing it fail.  Unfortunately I haven't figured out how to solve this problem yet other than ensuring that the project isn't put in a directory with capital letters in it.


*(Yes, in a fantastic bit of irony, my problem was occurring when trying to run integration tests for a bamboo plugin on our bamboo box itself)


Ah...nevermind on the capitalization thing. It turns out to have been a red-herring. The fundamental issue is indeed that the hsql db files aren't being loaded. But the reason it failed for me locally when I changed my directory name was that bamboo.cfg.xml still pointed to my old directory name which no longer existed. So i'm back to not knowing why my hsqsl db files aren't being loaded.

Ok..._now_ i've figured it out. Line 111 of replaces /bamboo-home/ with /home/ in the config files after it extracts data into the project's home directory. This is a problem for me as there happens to be an unrelated bamboo-home in my file path. (See the above /mnt/bamboo/home in my jdbcUrl in my original post? The real directory is /mnt/bamboo/bamboo-home, but is getting substituted incorrectly). I had to simlink /mnt/bamboo/home -> /mnt/bamboo/bamboo-home and it worked.

Same error message for Bamboo 5.9.7 running on Windows.  My Bamboo server machine went down and when I restarted the Bamboo I got this error because I had not started the server in Admin mode.  When I restarted as sysadmin the error went away.

Restarting the Bamboo server (6.0.2) on a Linux machine as sudo did the trick for me too .

Like navi_data_dev_server likes this

Was anything ever done with this? I am getting the same error(after getting several others). I have been trying to get bamboo running for 2 days now, and I am beginning to think it never will work. :|

same issue here with 5.7.2 version of bamboo.  Any solution?

In my case, it turned out the hard disk had run out space.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bamboo

Bamboo Data Center - Early Access Program 2

We’re preparing for Bamboo 8.0, which will be our first Data Center release. To make sure our app vendors and customers with written in-house apps are prepared, we’re launching Bamboo 8.0 Early Acces...

140 views 1 7
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you