Service-specific error code 4 when starting Jira service in Windows

Still need help?

The Atlassian Community is here for you.

Ask the community


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 following the instructions on Running Jira applications as a Windows service page, or after upgrading the instance, Jira can't be started with "service-specific error code 4".

The following appears in the Windows Event Log:

The "Jira" service terminated with service-specific error 
The system cannot open the file.

Environment

  • Jira Server
  • Windows OS

Diagnosis

Cause

When executing the command "service.bat install Jira", the Command Prompt console was not run as an Administrator account. This causes the Jira service to be installed without sufficient privileges for accessing the required files. This can also be caused by the service logon account not having enough permissions to start the service, especially if it's set to a network service account.

Resolution

  1. Run the cmd (Command prompt) as Administrator and remove the currently installed service with the command:

    service.bat remove Jira

    Note: If the service name was customized, you might need to update the command, navigate to the service in Windows, i.e. 'Control Panel' -> 'Administrative Tools' -> 'Services' and locate "Atlassian Jira"

  2. On the Administrator command prompt, follow the instructions to Running Jira applications as a Windows service
  3. If the issue persists: Open the service properties, go to the log-on tab, and change the option to Local System Account




Last modified on Nov 17, 2023

Was this helpful?

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