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

How to reset Bamboo Admin password & also set bamboo internal directory ?

Hardik Parekh July 20, 2014

Hi, I am new user of bamboo. I am usning MySQL database. Now I want to reset admin password & I am already done with following steps :

1)select * from USERS where ID=1

it gives me error so I replace USERS with users,

2) update users set PASSWORD = 'x61Ey612Kl2gpFL56FT9weDnpSo4AV8j8+qx2AuTHdRyY036xxzTTrw10Wq3+4qQyB+XURPWx1ONxp3Y3pB37A==' where NAME = 'admin'

it shows me ok

but still I am not able to log-in bamboo. Now what I need to do?

Do I required to set internal directory T=1(as we do for jira) ? if yes how can I do that?

7 answers

1 accepted

3 votes
Answer accepted
Hardik Parekh August 4, 2014

Hi Krystin,

Thanks for help!

I followed following steps for resolving issue.

1. Please stop Bamboo completely. Make sure there is no frozen/orphaned Bamboo process is running in the background. There are records in your log file showing that there were more than one instances running at the same time. Using command similar to "ps ax |grep amb" can help finding running processes. You can then use "kill -9 (process ID)" to kill them.
2. Open "seraph-config.xml" file from under <bamboo-install>\atlassian-bamboo\WEB-INF\classes and check if SSO is correctly disabled:

...
      <init-param>
        <!--
          the URL to redirect to when the user explicitly clicks on a login link (rather than being redirected after
          trying to access a protected resource). Most of the time, this will be the same value as 'login.url'.
            - same properties as login.url above
        -->
        <param-name>link.login.url</param-name>
        <param-value>/userlogin!default.action?os_destination=${originalurl}</param-value>
        <!--<param-value>/secure/Dashboard.jspa?os_destination=${originalurl}</param-value>-->
        <!--<param-value>http://sso.mycompany.com/login?redirectTo=${originalurl}</param-value>-->       </init-param>
....

3. Please edit the administration.xml file under <bamboo-home>/xml-data/configuration with the following changes:

...
<enableAnonymousAccess>true</enableAnonymousAccess>
...
<enableRestrictedAdmin>false</enableRestrictedAdmin>
...

4. Please remove previous user login credentials by running the command:

delete from rememberme_token;

5. Please also run:

delete from AUTH_ATTEMPT_INFO;

6. Confirm that you have modified the correct atlassian-user.xml file under <bamboo-home>/xml-data/configuration with the following (The file attached to this ticket is correctly modified):

<atlassian-user>
    <repositories>
        <hibernate name="Hibernate Repository" key="hibernateRepository" description="Hibernate Repository" cache="true"/>
    </repositories>
</atlassian-user>

7. Move "logs", "jms-store", "temp" and "caches" from under <bamboo-home> directory to a different location.
8. Please run the update query again and use the this hash this time: "d+o50IH94vMmkUj32ex+lwXNzbSmaZ/6TDueZFQydIH824tXAUtdfCpgiPjO3bV4hvHLDckI4MkapjOTJ2FsdQ=="

Double check to make sure it's saved correctly.

9. Now run Bamboo using "start-bamboo.sh" file from under <bamboo-installation-directory>/bin and login with:
User: admin
Password: sepideh

1 vote
Hardik Parekh July 21, 2014

Hi Felipe,

Thanks for replay! but stil it's not working. I have followed following steps:

1) Shutdown bamboo

2)mysql -u root -p

3) show databases;

+--------------------+

| Database |

+--------------------+

| information_schema |

| bamboo |

| conf |

| confluence |

| jiradb |

| mysql |

| performance_schema |

| stash |

| test |

+--------------------+

9 rows in set (0.02 sec)

4)use bamboo;
5)mysql> show tables;
+-------------------------------+
| Tables_in_bamboo |
+-------------------------------+
| ACL_ENTRY |
| ACL_OBJECT_IDENTITY |
| AGENT_ASSIGNMENT |
| AGENT_AUTHENTICATION |
| AO_7A45FB_AOTRACKING_ENTRY |
| AO_7A45FB_AOTRACKING_RESULT |
| AO_7A45FB_AOTRACKING_USER |
| AO_B9DACA_AOTRACKING_ENTRY |
| AO_B9DACA_AOTRACKING_RESULT |
| AO_B9DACA_AOTRACKING_USER |
| ARTIFACT |
| ARTIFACT_DEFINITION |
| ARTIFACT_SUBSCRIPTION |
| AUDIT_LOG |
| AUTHOR |
| AUTH_ATTEMPT_INFO |
| BANDANA |
| BRANCH_COMMIT_INFO |
| BRS_ARTIFACT_LINK |
| BRS_CONSUMED_SUBSCRIPTION |
| BRS_LINKEDJIRAISSUES |
| BUILD |
| BUILDRESULTSUMMARY |
| BUILDRESULTSUMMARY_CUSTOMDATA |
| BUILDRESULTSUMMARY_LABEL |
| BUILD_DEFINITION |
| CAPABILITY |
| CAPABILITY_SET |
| CHAIN_STAGE |
| CHAIN_STAGE_RESULT |
| COMMIT_FILES |
| DEPLOYMENT_ENVIRONMENT |
| DEPLOYMENT_ENV_VCS_LOCATION |
| DEPLOYMENT_PROJECT |
| DEPLOYMENT_PROJECT_ITEM |
| DEPLOYMENT_PROJECT_ITEM_BA |
| DEPLOYMENT_RESULT |
| DEPLOYMENT_RESULT_CUSTOMDATA |
| DEPLOYMENT_VARIABLE_SUBS |
| DEPLOYMENT_VERSION |
| DEPLOYMENT_VERSION_CHANGESET |
| DEPLOYMENT_VERSION_COMMIT |
| DEPLOYMENT_VERSION_ITEM |
| DEPLOYMENT_VERSION_ITEM_BA |
| DEPLOYMENT_VERSION_JIRA_ISSUE |
| DEPLOYMENT_VERSION_NAMING |
| DEPLOYMENT_VERSION_STATUS |
| DEP_VERSION_PLANRESULTKEYS |
| EC2_IMAGE_SCRIPT |
| ELASTIC_IMAGE |
| ELASTIC_SCHEDULE |
| IMSERVER |
| LABEL |
| MERGE_RESULT |
| NOTIFICATIONS |
| NOTIFICATION_SETS |
| OS_PROPERTYENTRY |
| PLAN_DEPENDENCIES |
| PLAN_VCS_HISTORY |
| PLAN_VCS_LOCATION |
| PROJECT |
| QUEUE |
| RELEVANT_CHANGESETS |
| REMEMBERME_TOKEN |
| REPOSITORY_CHANGESET |
| REQUIREMENT |
| REQUIREMENT_SET |
| SCRIPT |
| TEST_CASE |
| TEST_CASE_RESULT |
| TEST_CLASS |
| TEST_CLASS_RESULT |
| TEST_ERROR |
| TRUSTED_APPS |
| TRUSTED_APPS_IPS |
| TRUSTED_APPS_URLS |
| USER_COMMENT |
| USER_COMMIT |
| VARIABLE_BASELINE_ITEM |
| VARIABLE_CONTEXT |
| VARIABLE_CONTEXT_BASELINE |
| VARIABLE_DEFINITION |
| VARIABLE_SUBSTITUTION |
| VCS_BRANCH |
| VCS_LOCATION |
| external_entities |
| external_members |
| groups |
| hibernate_unique_key |
| local_members |
| password_reset_token |
| users |
| variablesToAutoIncrement |
+-------------------------------+
93 rows in set (0.00 sec)
6) select * from users where ID=1;+----+-------+---------------------------------------------------------------------------+-----------------------------+---------------------+--------------+
| id | name | password | email | created | fullname |
+----+-------+---------------------------------------------------------------------------+-----------------------------+---------------------+--------------+
| 1 | admin | {PKCS5S2}2ji+BcvOsgMOh5QGHHc+reOU2qvyHdf20E/0caC/Lf+u3+JvEst9prD15lLLpglJ | himanshu.chhetri@addteq.com| 2013-02-15 12:07:33 | bamboo admin |
+----+-------+---------------------------------------------------------------------------+-----------------------------+---------------------+--------------+
1 row in set (0.00 sec)
7) update users set PASSWORD = '{PKCS5S2}2ji+BcvOsgMOh5QGHHc+reOU2qvyHdf20E/0caC/Lf+u3+JvEst9prD15lLLpglJ' where name = 'admin';
8) commit; & restart bamboo again...
still I am not able to log-in to bamboo. Please update me what should I do now??
1 vote
Hardik Parekh July 21, 2014

Hi Felipe,

Thanks for replay! but stil it's not working. I have followed following steps:

1) Shutdown bamboo

2)mysql -u root -p

3) show databases;

+--------------------+

| Database |

+--------------------+

| information_schema |

| bamboo |

| conf |

| confluence |

| jiradb |

| mysql |

| performance_schema |

| stash |

| test |

+--------------------+

9 rows in set (0.02 sec)

4)use bamboo;
5)mysql> show tables;
+-------------------------------+
| Tables_in_bamboo |
+-------------------------------+
| ACL_ENTRY |
| ACL_OBJECT_IDENTITY |
| AGENT_ASSIGNMENT |
| AGENT_AUTHENTICATION |
| AO_7A45FB_AOTRACKING_ENTRY |
| AO_7A45FB_AOTRACKING_RESULT |
| AO_7A45FB_AOTRACKING_USER |
| AO_B9DACA_AOTRACKING_ENTRY |
| AO_B9DACA_AOTRACKING_RESULT |
| AO_B9DACA_AOTRACKING_USER |
| ARTIFACT |
| ARTIFACT_DEFINITION |
| ARTIFACT_SUBSCRIPTION |
| AUDIT_LOG |
| AUTHOR |
| AUTH_ATTEMPT_INFO |
| BANDANA |
| BRANCH_COMMIT_INFO |
| BRS_ARTIFACT_LINK |
| BRS_CONSUMED_SUBSCRIPTION |
| BRS_LINKEDJIRAISSUES |
| BUILD |
| BUILDRESULTSUMMARY |
| BUILDRESULTSUMMARY_CUSTOMDATA |
| BUILDRESULTSUMMARY_LABEL |
| BUILD_DEFINITION |
| CAPABILITY |
| CAPABILITY_SET |
| CHAIN_STAGE |
| CHAIN_STAGE_RESULT |
| COMMIT_FILES |
| DEPLOYMENT_ENVIRONMENT |
| DEPLOYMENT_ENV_VCS_LOCATION |
| DEPLOYMENT_PROJECT |
| DEPLOYMENT_PROJECT_ITEM |
| DEPLOYMENT_PROJECT_ITEM_BA |
| DEPLOYMENT_RESULT |
| DEPLOYMENT_RESULT_CUSTOMDATA |
| DEPLOYMENT_VARIABLE_SUBS |
| DEPLOYMENT_VERSION |
| DEPLOYMENT_VERSION_CHANGESET |
| DEPLOYMENT_VERSION_COMMIT |
| DEPLOYMENT_VERSION_ITEM |
| DEPLOYMENT_VERSION_ITEM_BA |
| DEPLOYMENT_VERSION_JIRA_ISSUE |
| DEPLOYMENT_VERSION_NAMING |
| DEPLOYMENT_VERSION_STATUS |
| DEP_VERSION_PLANRESULTKEYS |
| EC2_IMAGE_SCRIPT |
| ELASTIC_IMAGE |
| ELASTIC_SCHEDULE |
| IMSERVER |
| LABEL |
| MERGE_RESULT |
| NOTIFICATIONS |
| NOTIFICATION_SETS |
| OS_PROPERTYENTRY |
| PLAN_DEPENDENCIES |
| PLAN_VCS_HISTORY |
| PLAN_VCS_LOCATION |
| PROJECT |
| QUEUE |
| RELEVANT_CHANGESETS |
| REMEMBERME_TOKEN |
| REPOSITORY_CHANGESET |
| REQUIREMENT |
| REQUIREMENT_SET |
| SCRIPT |
| TEST_CASE |
| TEST_CASE_RESULT |
| TEST_CLASS |
| TEST_CLASS_RESULT |
| TEST_ERROR |
| TRUSTED_APPS |
| TRUSTED_APPS_IPS |
| TRUSTED_APPS_URLS |
| USER_COMMENT |
| USER_COMMIT |
| VARIABLE_BASELINE_ITEM |
| VARIABLE_CONTEXT |
| VARIABLE_CONTEXT_BASELINE |
| VARIABLE_DEFINITION |
| VARIABLE_SUBSTITUTION |
| VCS_BRANCH |
| VCS_LOCATION |
| external_entities |
| external_members |
| groups |
| hibernate_unique_key |
| local_members |
| password_reset_token |
| users |
| variablesToAutoIncrement |
+-------------------------------+
93 rows in set (0.00 sec)
6) select * from users where ID=1;+----+-------+---------------------------------------------------------------------------+-----------------------------+---------------------+--------------+
| id | name | password | email | created | fullname |
+----+-------+---------------------------------------------------------------------------+-----------------------------+---------------------+--------------+
| 1 | admin | {PKCS5S2}2ji+BcvOsgMOh5QGHHc+reOU2qvyHdf20E/0caC/Lf+u3+JvEst9prD15lLLpglJ | himanshu.chhetri@addteq.com| 2013-02-15 12:07:33 | bamboo admin |
+----+-------+---------------------------------------------------------------------------+-----------------------------+---------------------+--------------+
1 row in set (0.00 sec)
7) update users set PASSWORD = '{PKCS5S2}2ji+BcvOsgMOh5QGHHc+reOU2qvyHdf20E/0caC/Lf+u3+JvEst9prD15lLLpglJ' where name = 'admin';
8) commit; & restart bamboo again...
still I am not able to log-in to bamboo. Please update me what should I do now??
0 votes
Aharon Cohen May 7, 2019

hi

we forgot the admin local password, and in bamboo version 6.5.0 you cannot change the admin lcoal user password throw the application UI.

so we used another solution.

we went to the administration.xml file (try the "locate" command to find it), and enabled the signup,

then we started bamboo again, and created new user.

and just copied his password throw the DB to the admin local user.

0 votes
Krystian Brazulewicz
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 27, 2014

Hardik

It is also possible that multiple failed login attempts have blocked your access. Can you please execute the following query on your DB?

SELECT * FROM AUTH_ATTEMPT_INFO

0 votes
Felipe Kraemer
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 23, 2014

Hi Hardik,

Can you please also check that the $BAMBOO_HOME/xml-data/configuration/atlassian-user.xml is as follows:

&lt;atlassian-user&gt;
    &lt;repositories&gt;
        &lt;hibernate name="Hibernate Repository" key="hibernateRepository" description="Hibernate Repository" cache="true"/&gt;
&lt;!-- Any other user repository, such as LDAP, should be listed after the Hibernate Repository above, which is the internal repository --&gt;
&lt;/repositories&gt;
&lt;/atlassian-user&gt;

This should allow you to login with the 'admin' user and 'admin' password.

If by chance the problem continues, please create a Support issue and attach these files:

  • $BAMBOO_HOME/logs/atlassian-bamboo.log
  • $BAMBOO_HOME/xml-data/configuration/atlassian-user.xml

This will allow us to investigate what else could be happening.

Kind regards,
Felipe Kraemer
Atlassian Support

Hardik Parekh July 24, 2014

Hii Felipe,

Thanks again for reply

Yes I made changes atlassian-user.xml as mentoned by you.

before changes file was as follow :

<atlassian-user>

<repositories>

<crowd name='Crowd Repository' key='crowd'/>

</repositories>

</atlassian-user>

but still not able to log-In :-( please assist me now what should I do?

0 votes
Felipe Kraemer
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 21, 2014

Hi Hardik,

As you're a new Bamboo user, I understand your Bamboo version is 5.5.x. From Bamboo 4.3.x onwards this is the admin hash you should use:

{PKCS5S2}2ji+BcvOsgMOh5QGHHc+reOU2qvyHdf20E/0caC/Lf+u3+JvEst9prD15lLLpglJ

The password hash you're trying to use should be used in Bamboo 4.2.x and older versions.

By default, Bamboo uses its internal / built-in user directory, so it is not necessary to set it.

aonomike
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!
August 9, 2019

Hi, I am trying to reset password for bamboo 6.9.2, would you know what password hash I should use for this version of bamboo? it seems the password hashes change with every version of bamboo?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events