Jira service fails to start on Windows after upgrade


Platform notice: Server and Data Center only. This article only applies to Atlassian products on the Server and Data Center platforms.

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.

*Except Fisheye and Crucible

    

Summary

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.

Environment

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

Diagnosis

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

Cause

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

Solution

  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. Run:

    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.



Last modified on Feb 27, 2023

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.