Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How do I create a service to run start-jira.bat

Blake Daniels
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 21, 2021

I can't start my windows service:

 

[2021-12-21 15:38:11] [info] [ 6876] Apache Commons Daemon procrun (1.2.4.0 32-bit) started.
[2021-12-21 15:38:11] [info] [ 6876] Running Service 'JIRA'...
[2021-12-21 15:38:11] [info] [ 6600] Starting service...
[2021-12-21 15:38:11] [error] [ 6600] Found 'D:\Atlassian\JIRA\jre\bin\server\jvm.dll' but couldn't load it.
[2021-12-21 15:38:11] [error] [ 6600] %1 is not a valid Win32 application.
[2021-12-21 15:38:11] [error] [ 6600] Invalid JVM DLL handle.
[2021-12-21 15:38:11] [error] [ 6600] %1 is not a valid Win32 application.
[2021-12-21 15:38:11] [error] [ 6600] %1 is not a valid Win32 application.
[2021-12-21 15:38:11] [error] [ 6600] Failed to load JVM DLL 'D:\Atlassian\JIRA\jre\bin\server\jvm.dll', home ''.
[2021-12-21 15:38:11] [error] [ 6600] %1 is not a valid Win32 application.
[2021-12-21 15:38:11] [error] [ 6600] Failed creating Java 'D:\Atlassian\JIRA\jre\bin\server\jvm.dll'.
[2021-12-21 15:38:11] [error] [ 6600] %1 is not a valid Win32 application.
[2021-12-21 15:38:11] [error] [ 6600] ServiceStart returned 1.
[2021-12-21 15:38:11] [error] [ 6600] %1 is not a valid Win32 application.
[2021-12-21 15:38:11] [info] [ 6876] Run service finished.
[2021-12-21 15:38:11] [info] [ 6876] Apache Commons Daemon procrun finished.
[2021-12-21 15:43:18] [info] [ 884] Apache Commons Daemon procrun (1.2.4.0 32-bit) started.
[2021-12-21 15:43:18] [info] [ 884] Running Service 'JIRA'...
[2021-12-21 15:43:18] [info] [ 6084] Starting service...
[2021-12-21 15:43:18] [error] [ 6084] Found 'D:\Atlassian\JIRA\jre\bin\server\jvm.dll' but couldn't load it.
[2021-12-21 15:43:18] [error] [ 6084] %1 is not a valid Win32 application.
[2021-12-21 15:43:18] [error] [ 6084] Invalid JVM DLL handle.
[2021-12-21 15:43:18] [error] [ 6084] %1 is not a valid Win32 application.
[2021-12-21 15:43:18] [error] [ 6084] %1 is not a valid Win32 application.
[2021-12-21 15:43:18] [error] [ 6084] Failed to load JVM DLL 'D:\Atlassian\JIRA\jre\bin\server\jvm.dll', home ''.
[2021-12-21 15:43:18] [error] [ 6084] %1 is not a valid Win32 application.
[2021-12-21 15:43:18] [error] [ 6084] Failed creating Java 'D:\Atlassian\JIRA\jre\bin\server\jvm.dll'.
[2021-12-21 15:43:18] [error] [ 6084] %1 is not a valid Win32 application.
[2021-12-21 15:43:18] [error] [ 6084] ServiceStart returned 1.
[2021-12-21 15:43:18] [error] [ 6084] %1 is not a valid Win32 application.
[2021-12-21 15:43:18] [info] [ 884] Run service finished.
[2021-12-21 15:43:18] [info] [ 884] Apache Commons Daemon procrun finished.

1 answer

0 votes
Sagar Mahajan
Community Champion
December 28, 2021

Hi @Blake Daniels You can this document if you have not already checked, also check the user you used in the config file has permission to access Jira install and Home directories.

https://confluence.atlassian.com/adminjiraserver/running-jira-applications-as-a-windows-service-938847902.html

Suggest an answer

Log in or Sign up to answer