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

お困りですか?

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

コミュニティに質問

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

問題

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

診断ステップ

  • 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 Running Bitbucket Server as a Windows service.

 

最終更新日 2016 年 7 月 1 日

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

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