Jira service fails to start on Windows after upgrade

お困りですか?

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

コミュニティに質問


プラットフォームについて: 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 は除く

    

要約

After upgrading Jira running on Windows, sometimes the service fails to start. This situation is very close to what's described in Jira Service Fails To Start in Windows - Is Not a Valid Win32 Application.

環境

Jira Server or Data Center running on Windows as a service.

診断

In these cases, we should see entries in the commons-daemon.log that resembles this:

[2020-06-08 13:25:23] [info]  [ 5376] Commons Daemon procrun (1.1.0.0 32-bit) started
[2020-06-08 13:25:23] [info]  [ 5376] Running 'JIRA' Service...
[2020-06-08 13:25:23] [info]  [  904] Starting service...
[2020-06-08 13:25:23] [error] [  904] %1 is not a valid Win32 application.
[2020-06-08 13:25:23] [error] [  904] Failed creating Java D:\Program Files\AdoptOpenJDK\jdk-8.0.202.08\jre\bin\server\jvm.dll
[2020-06-08 13:25:23] [error] [  904] %1 is not a valid Win32 application.
[2020-06-08 13:25:23] [error] [  904] ServiceStart returned 1
[2020-06-08 13:25:23] [error] [  904] %1 is not a valid Win32 application.
[2020-06-08 13:25:23] [info]  [ 5376] Run service finished.
[2020-06-08 13:25:23] [info]  [ 5376] Commons Daemon procrun finished

原因

Probably the upgrade job failed to update the service references, or the JVM reference is not up-to-date.

ソリューション

  1. Identify the name of the service that Jira is installed as in Windows ( Control Panel > Administrative Tools > Services ):

    (info) In the above example, the SERVICENAME is: JIRA231112155942
  2. Open the command window from Start >> Run >> type in 'cmd' >> Enter
  3. cd to the bin directory of your Jira application installation directory.
  4. 次のコマンドを実行します。

    tomcat8w //ES//%SERVICENAME%

    (info) In the above example, it would be tomcat8w //ES//JIRA231112155942

  5. Click on the Java tab
  6. Check if the Java Virtual Machine reference is valid.
  7. If it's outdated, update it with the current jvm.dll path, click OK and try to start Jira again.
  8. If that's correct, we'll need to remove and re-add the service:
    1. Take note of the Java Options and memory pool configurations and click OK.
    2. Open a command prompt as administrator.
    3. Navigate to Jira's directory. For example:

      cd D:\Program Files\Atlassian\JIRA\jre\bin
    4. Remove Jira's Windows service:

      service.bat remove JIRA231112155942

      (info) Notice we used the same service name from the steps above.

    5. Install the service again:

      service.bat install
    6. Start Jira's service

For more detail on the procedures performed please check Running Jira applications as a Windows service.



最終更新日: 2023 年 2 月 27 日

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

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