Bamboo bootstrap failed: Your Bamboo instance could not start because Bamboo home directory does not
Asked by Amit Anand:

Bamboo bootstrap failed: Your Bamboo instance could not start because Bamboo home directory does not match database. Contact Atlassian Support at [https://support.atlassian.com](https://support.atlassian.com/)

[Atlassian Bamboo](http://www.atlassian.com/software/bamboo/) version 6.6.2 build 60606


Answers:
author: Ganesh Babu
body: Hi [@Amit Anand](/t5/user/viewprofilepage/user-id/705915)

This is caused by a version mismatch between the database and home directory.

Here is a related question : [Bamboo home directory does not match database](https://community.atlassian.com/t5/Bamboo-questions/Bamboo-home-directory-does-not-match-database/qaq-p/665187)

From the link there is a suggestion that fixes the problem by running this DB query.

```
delete from BANDANA where BANDANA_KEY = 'bamboo.db.version';
```

Before running, please check the version by executing the query and also the version in the bamboo.cfg.xml

comments: author: Amit Anand
body: Hi [@Ganesh Babu](/t5/user/viewprofilepage/user-id/3655305)

Not able to get data?

Hipsql (13.1 (Ubuntu 13.1-1.pgdg16.04+1), server 9.6.20)  
You are now connected to database "bamboo" as user "postgres".  
bamboo=# select \* from bamboo.bandana where bandana_key = 'bamboo.db.version';  
**ERROR: relation "bamboo.bandana" does not exist**   
LINE 1: select \* from bamboo.bandana where bandana_key = 'bamboo.db....  
\^  
bamboo=#

Thanks

Amit Anand


author: Daniel Ebers
body: Please kindly refer to my answer at the bottom. The query is not valid for newer versions anymore.


author: Daniel Ebers
body: Hi [@Amit Anand](/t5/user/viewprofilepage/user-id/705915)  
Not a solution this time but a question - did this happen right after an upgrade or came it "out of the blue" after a restart of Bamboo?  
I am just asking because all references to this error message are found to happen after an upgrade.

If an upgrade took place lately could you kindly state from which version to which version you have upgraded?

Regards,  
Daniel

comments: author: Amit Anand
body: Dear [@Daniel Ebers](/t5/user/viewprofilepage/user-id/800113) ,

I am trying to import data from one instance to other.

Followed below practice for same:  
For Export :<https://confluence.atlassian.com/bamboo/exporting-data-for-backup-289277255.html>

For Import:<https://confluence.atlassian.com/bamboo/importing-data-from-backup-289277260.html>

Bamboo server started well with fresh/default data but when i have imported other instance data then i face this issue.

Also Updated to avoid JVM issue.

JVM_MINIMUM_MEMORY/JVM_MAXIMUM_MEMORY arguments inside the \<Bamboo server **installation** directory\>/bin/setenv.sh file

Thanks  
Amit Anand


author: Daniel Ebers
body: Thanks for clarification. From my understanding both source and destination (system) should be on the same Bamboo version. Is this the case?


author: Amit Anand
body: Yes indeed !


author: Daniel Ebers
body: You could try the database queries Ganesh and Gonchik posted but they are for newer versions not recommended anymore and were removed from a corresponding bug issue - so it might be the case running the database query does not help anymore or cause more damage than it helps.  
You could test it on a non-production copy of your Bamboo server first.  
If this does not help, Bamboo support could probably advise further.


author: Gonchik Tsymzhitov
body: Hi [@Amit Anand](/t5/user/viewprofilepage/user-id/705915)

Could you check the user you're using to start Bamboo is the owner of the **bamboo-home** and **installation** directories? Of course, you hope information in the file **atlassian-bamboo/WEB-INF/classes/bamboo-init.properties** is correct. (<https://confluence.atlassian.com/bamboo/locating-important-directories-and-files-289277247.html>)

Have you checked the **bamboo-home/logs/atlassian-bamboo.log** file to see if there are details about the error there? Please, if you find any \[FATAL\] error, paste the details here so we can better understand why your instance is failing to start.

comments: author: Amit Anand
body: Dear [@Gonchik Tsymzhitov](/t5/user/viewprofilepage/user-id/726117) ,

There is fatal error :

2021-01-11 09:43:24,329 FATAL \[localhost-startStop-1\] \[DefaultBootstrapManager\] Validation tests failed: Your Bamboo instance could not start because Bamboo home directory does not match database. Contact Atlassian Support at <https://support.atlassian.com>  
2021-01-11 09:43:24,331 INFO \[localhost-startStop-1\] \[lifecycle\] Bamboo home directory: /var/atlassian/application-data/bamboo-home

I can see in screen

:[Continuous integration](http://www.atlassian.com/software/bamboo/) powered by [Atlassian Bamboo](http://www.atlassian.com/software/bamboo/) version 6.6.2 build 60606 - 14 Aug 18

![Capture.GIF](https://community.atlassian.com/t5/image/serverpage/image-id/124919iA5C602E8C6CFC0B3/image-size/large?v=v2&px=999 "Capture.GIF")Thanks

Amit Anand


author: Gonchik Tsymzhitov
body: Hi [@Amit Anand](/t5/user/viewprofilepage/user-id/705915)

So situation it's the similar as many the same requests. :(

This is caused by a version mismatch between the database and home directory.

Here is a related question : [Bamboo home directory does not match database](https://community.atlassian.com/t5/Bamboo-questions/Bamboo-home-directory-does-not-match-database/qaq-p/665187)

From the link there is a suggestion that fixes the problem by running this DB query.

```
delete from BANDANA where BANDANA_KEY = 'bamboo.db.version';
```