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.
ソリューション
- Identify the name of the service that Jira is installed as in Windows (
Control Panel > Administrative Tools > Services
):
In the above example, the SERVICENAME is:JIRA231112155942
- Open the command window from
Start >> Run >> type in 'cmd' >> Enter
cd
to thebin
directory of your Jira application installation directory.次のコマンドを実行します。
tomcat8w //ES//%SERVICENAME%
In the above example, it would be
tomcat8w //ES//JIRA231112155942
- Click on the
Java
tab - Check if the Java Virtual Machine reference is valid.
- If it's outdated, update it with the current
jvm.dll
path, click OK and try to start Jira again. - If that's correct, we'll need to remove and re-add the service:
- Take note of the Java Options and memory pool configurations and click OK.
- Open a command prompt as administrator.
Navigate to Jira's directory. For example:
cd D:\Program Files\Atlassian\JIRA\jre\bin
Remove Jira's Windows service:
service.bat remove JIRA231112155942
Notice we used the same service name from the steps above.
Install the service again:
service.bat install
Start Jira's service
For more detail on the procedures performed please check Running Jira applications as a Windows service.