Windows service launches old version after upgrade

Troubleshooting Installation

このページの内容

お困りですか?

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

コミュニティに質問

症状

After upgrading Stash the Service launches the old Stash release.

原因

The service hasn't been installed or updated for the new instance.

The Stash installer offers an option for installing Stash as a service and you probably chose not to install it as a service, which causes this situation.

ソリューション

サービス名

If you don't know the exact name of your old Stash service, you can find out what they are by following the steps below:

  1. Navigate to 'Control Panel' > 'Administrative Tools' > 'Services'.
  2. The 'Services' window should appear.
  3. Right-click on the service you wish to find out the name of, and select 'Properties' from the popup menu.
  4. The 'Service name' should appear in the 'General' tab.
    • Use this parameter as a substitute for <ServiceName here> on the command below.

Steps to remove the existing service:

  1. Navigate to the Stash installation directory.
  2. Open an administrator level command-prompt
  3. Remove the old service, the service is likely named "AtlassianStash". You can check the actual name by viewing the Properties of the service:
    service.bat remove <ServiceName here> 

    Sometimes, executing the command above might result on the following message:

    The JAVA_HOME environment variable is not defined correctly. 
    This environment variable is needed to run this program
    NB: JAVA_HOME should point to a JDK not a JRE

    If that happens to you, make sure your JAVA_HOME is pointing to a JDK as opposed to a JRE. For example, we've had customers pointing to c:\programs\java\jdk1.8.0_05\jre and changing it temporarily into c:\programs\java\jdk1.8.0_05\jre with a SET JAVA_HOME=c:\programs\java\jdk1.8.0_05 before executing the command above fixes it.

  4. Install the new service using the instructions from this document:

最終更新日 2018 年 11 月 2 日

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

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