Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-68865

Manual installation of Jira 8.0.0 Windows service doesn't work

    XMLWordPrintable

Details

    Description

      Issue Summary

      • Manual installation of Jira 8.0.0 Windows service using service.bat doesn't work, it appears that the batch script is broken

      Environment

      • Windows

      Steps to Reproduce

      1. Perform a clean installation of Jira 8.0.0 without installing it as a service
      2. Manually install the service using service.bat
        service.bat install jira

      OR

      1. Perform an upgrade to Jira 8.0.0 without installing it as a service
      2. Manually install the service using service.bat
        service.bat install jira

      Expected Results

      Service successfully installed.

      Actual Results

      Windows service failed to install.

      The error 8 was unexpected at this time. is thrown.

      C:\Program Files\Atlassian\JIRATEST\bin>service.bat install jira
      Neither the JAVA_HOME nor the JRE_HOME environment variable is defined
      Service will use the bundled JRE.
      Failing that, service will try to guess them from the registry.
      Installing the service 'JIRASoftware140219193604' ...
      Using CATALINA_HOME:    "C:\Program Files\Atlassian\JIRA"
      Using CATALINA_BASE:    "C:\Program Files\Atlassian\JIRA"
      Ignoring JAVA_HOME:        ""
      Using JRE_HOME:         "C:\Program Files\Atlassian\JIRA\bin\\..\jre"
      Using JVM:              "C:\Program Files\Atlassian\JIRA\bin\\..\jre\bin\server\jvm.dll"
      8 was unexpected at this time.
      

      Workaround

      We have tested the below workaround on Windows Server 2016:

      • Open a new Windows cmd as an Administrator
      • Please go the the JIRA installation Directory eg:
        cd C:\Program Files\Atlassian\JIRA 
      • Set the following windows environment variable as below:
         set JRE_HOME=.\jre 

        This is basically pointing to the JRE_HOME in this step, the path ".\jre" should be the path of the JRE and shouldn't contain spaces.
        You can also us an absoulute path like this:

        set JRE_HOME=C:\Progra~1\Atlassian\JIRA\jre
        

        The path in this case should use the 8 character form, the one without spaces.

      • Once the JRE_HOME Path is set and you are still in the installation directory: C:\Program Files\Atlassian\JIRA, run the service command as below:
         .\bin\service install jira 

      This should allow the service to be installed.

      Attachments

        Issue Links

          Activity

            People

              mrydzewski Mikolaj Rydzewski (Inactive)
              aharith Akmal Harith (Inactive)
              Votes:
              7 Vote for this issue
              Watchers:
              26 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: