Bitbucket Server installer does not upgrade Stash service if service name is not AtlassianStash

お困りですか?

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

コミュニティに質問

プラットフォームについて: Server および Data Center のみ。この記事は、Server および Data Center プラットフォームのアトラシアン製品にのみ適用されます。

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.

*Fisheye および Crucible は除く

問題

When installed on Windows operating systems, Stash can be configured to run as a Windows service. During the upgrade from Stash to Bitbucket, the installer is expected to upgrade an existing Stash service to a Bitbucket service.

This step is skipped if the Stash service name is changed from its default, AtlassianStash.

診断

環境

  • Any Windows operating system
  • Stash is installed and is configured to run as a Windows service, but its name is not Atlassian Stash AtlassianStash

Diagnostic Steps

  • After upgrading to Bitbucket Server you find there's no Bitbucket service configured and the service for Stash still exists in the list of services

原因

The Bitbucket installer only detects the Stash service if it is configured with its default name. This is the expected behaviour, however there is an existing Suggestion that requests a change in behaviour,  BSERV-7264 - Getting issue details... STATUS

ソリューション

There are two ways to resolve this problem, depending on whether you have already run the Bitbucket installer or not:

If you have not yet run the Bitbucket installer

Use the following steps to change the Stash service so its name is AtlassianStash:

  1. Determine the current name of the service by clicking Start > Run and entering services.msc, followed by a click on OK
  2. Find the service whose name begins with Atlassian Stash in the list, then right-click on it and select Properties. The resulting window will look like this:


    You can find the name of the service in the Display name section, and it is the last part of the name displayed there (STASH in the example screenshot). Take note of that name.
  3. Stop the service
  4. Open a command prompt window and navigate to <StashInstallationDirectory\bin>
  5. Run service.bat remove <servicename> where <servicename> is the name of the service you have determined in step 2 above
  6. Run service.bat install to reinstall the service but with its default name
  7. Refresh the list of services to confirm the original service is gone and that a new service named Atlassian Stash AtlassianStash now exists.

Once you have completed these steps you can start the Bitbucket installer, which should detect the Stash service and upgrade it to a Bitbucket service.

If you have already run the Bitbucket installer

To manually create the windows service for Bitbucket, use the instructions in 2022-07-21_05-44-18_Running Bitbucket Server as a Windows service.

 

最終更新日 2016 年 7 月 1 日

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.