Change atlassian.recovery.password when installed as a Windows service
Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.
Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
Summary
When Bitbucket Server is installed as a Windows service, the Bitbucket home directory location the setenv.bat
is not used. This page outlines how to change this parameter when starting/stopping Bitbucket Server as a Windows service.
Solution
How to change BITBUCKET_HOME
for the Windows service
Stop the Bitbucket Server service.
Open the command window from
Start >> Run >> type in 'cmd' >> Enter
cd
to thebin
directory the Bitbucket Server Installation (<Bitbucket Server Installation dir>/bin
).Run from there:
1
tomcat8w //ES//AtlassianBitbucket Server
A window will pop up. Click on the Java tab to see the list of current start-up options. Under "Java Options:" form, input the value:
1
-Datlassian.recovery.password=temporarypassword
Restart Bitbucket Server Service. From here the service will use the parameter as defined above.
Was this helpful?