Lockout recovery process


アトラシアン コミュニティをご利用ください。


This page describes how to recover administrator access for Stash 2.11, now known as Bitbucket Server 4.X+, and later. For releases prior to that, refer to Restoring the Bitbucket Server Administrator's Password

As an administrator, you may find yourself locked out of Bitbucket Server and unable to log in. This situation can arise when all users are managed externally from Bitbucket Server, and Bitbucket Server becomes unable to access those user directories for some reason, including:

  • The external user directory server is not accessible (because the network is down, or the directory is down, or the directory has been moved to another IP address).
  • Users are managed within a JIRA application and the Application Link from Bitbucket Server to a JIRA application has been accidentally deleted.
  • The admin password has been forgotten or lost.
  • The admin account is shaded by a remote account in an LDAP or JIRA application that is connected to Bitbucket Server but which is unavailable.


The lockout recovery process for Bitbucket Server is:

  1. Edit the <Bitbucket Server installation directory>\bin\setenv.sh file (or setenv.bat on Windows) and add the "-Datlassian.recovery.password=temporarypassword" argument to the JVM_SUPPORT_RECOMMENDED_ARGS property. The property value must be non-blank, and should look like this when you've done that:

    Here we are using "temporarypassword", but you should use your own value.
  2. Start Bitbucket Server manually by running <Bitbucket Server installation directory>\bin\start-bitbucket.sh (or start-bitbucket.bat on Windows).
  3. Log in to Bitbucket Server using the 'recovery_admin' username and the temporary password specified in Step 1.
  4. Repair your Bitbucket Server configuration. We strongly recommend that you do not perform other actions while Bitbucket Server is in recovery mode.
  5. Confirm your ability to log in with your usual admin profile.
  6. Shut down Bitbucket Server, remove the atlassian.recovery.password argument from setenv.sh, and restart Bitbucket Server as usual.
最終更新日: 2019 年 2 月 6 日


Powered by Confluence and Scroll Viewport.