Stash is now known as Bitbucket Server.
See the

Unknown macro: {spacejump}

of this page, or visit the Bitbucket Server documentation home page.

メタデータの末尾にスキップ
メタデータの先頭に移動

This page describes how to recover administrator access for Stash 2.11 and later. For releases prior to that, refer to Restoring the Stash Administrator's Password

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

  • 外部ユーザー ディレクトリ サーバーにアクセスできない (ネットワークのダウン、ディレクトリのダウン、またはディレクトリが別の IP アドレスに移動された)。
  • Users are managed in JIRA and the Application Link from Stash to JIRA has been accidentally deleted.
  • 管理者パスワードを忘れた、または無くした。
  • The admin account is shaded by a remote account in an LDAP or JIRA instance that is connected to Stash but which is unavailable.

 

The lockout recovery process for Stash is:

  1. Edit the <Stash 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.

    If you are starting Stash as a Windows Service ...

    If you are running Stash as a Windows service, please follow the steps outlined on Change atlassian.recovery.password when installed as a Windows service instead. The setenv.bat file is not used by the Windows service and changes there will, therefore, have no effect.

  2. Start Stash.
  3. Log in to Stash using the 'recovery_admin' username and the temporary password specified in Step 1.
  4. Repair your Stash configuration. We strongly recommend that you do not perform other actions while Stash is in recovery mode.
  5. 通常の管理者プロファイルを使用してログインできることを確認します。
  6. Shut down Stash, remove the atlassian.recovery.password argument from setenv.sh, and restart Stash as usual.


  • ラベルなし