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

Error when Installing Jira service using service.bat

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Cannot Reproduce
    • None
    • Installation
    • None
    • 1
    • We collect Jira feedback from various sources, and we evaluate what we've collected when planning our product roadmap. To understand how this piece of feedback will be reviewed, see our Implementation of New Features Policy.

    Description

      Issue Summary

      When installing Jira service using Service.bat shipped along with Jira 8.9 .zip archive for windows, there is an error witnessed stating below:

       [JIRA_install_dir]\atlassian\jira-software-8.9.0\bin\Tomcat8.exe.x64"' is not recognized as an internal or external command
      Failed installing 'JIRASW8_9_0' service
      

      The error is observed when executing service.bat after renaming tomcat8.exe.x64 to tomcat8.exe, so service.bat was looking for the .x64 file, which didn't exist.
      When running service.bat without renaming, the command runs fine, and windows then throws the error on trying to open an .x64 file (and thus, the service isn't actually installed).

      Steps to Reproduce

      1. Required 64-bit (Processor/Architecture) environment to reproduce the behavior
      2. Download .zip archive for v8.9
      3. Extract the archive
      4. Navigate to /bin directory and execute the service.bat install jira
      5. An error is witnessed:
        Error Witnessed after executing Service.bat

        "C:\atlassian\jira-software-8.9.0\bin\Tomcat8.exe.x64"' is not recognized as an internal or external command,
        operable program or batch file.
        Failed installing 'JIRASW8_9_0' service

      1. Error is witnessed as .x64 is not recognized executable, there are restrictions in some environment to allow only certain executables like .exe to run

      Expected Results

      • There should be some message to inform users that there are restriction due to which error is witnessed, so that next steps could be taken accordingly and service can be installed

      Actual Results

      • There is an error observed and services could not be installed

      Workaround

      Remove below lines from service.bat:

      IF "%PROCESSOR_ARCHITECTURE%"=="x86" goto notX64
      set EXECUTABLE=%EXECUTABLE%.x64
      

      Rename Tomcat8.exe.x64 to Tomcat8 and execute service.bat

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              556084c56f12 Rinish
              Votes:
              3 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: