Uploaded image for project: 'Bitbucket Data Center'
  1. Bitbucket Data Center
  2. BSERV-5002

Installing Stash as a service fails to set JAVA_HOME

    XMLWordPrintable

Details

    Description

      Tested in a 64 bit environment with java not installed.

      Installing Stash using the installer as a service does not work.
      The following error is observed

      [2014-07-16 21:18:05] [info]  [ 7772] Commons Daemon procrun (1.0.15.0 64-bit) started
      [2014-07-16 21:18:06] [info]  [ 7772] Running 'AtlassianStash' Service...
      [2014-07-16 21:18:06] [info]  [ 8516] Starting service...
      [2014-07-16 21:18:06] [error] [ 8516] Failed creating java 
      [2014-07-16 21:18:06] [error] [ 8516] ServiceStart returned 1
      [2014-07-16 21:18:06] [info]  [ 7772] Run service finished.
      [2014-07-16 21:18:06] [info]  [ 7772] Commons Daemon procrun finished

      When installed using command line service install, the following is observed

      C:\Atlassian\Stash\3.1.3\bin>service install
      Neither the JAVA_HOME nor the JRE_HOME environment variable is defined
      Service will try to guess them from the registry.
      Installing the service 'AtlassianStash' ...
      Using CATALINA_HOME:    "C:\Atlassian\Stash\3.1.3"
      Using CATALINA_BASE:    "C:\Atlassian\Stash\3.1.3"
      Using JAVA_HOME:        ""
      Using JRE_HOME:         ""
      Warning: Neither 'server' nor 'client' jvm.dll was found at JRE_HOME.
      Using JVM:              "auto"
      The service 'AtlassianStash' has been installed.

      Workaround

      • Ensure the JAVA_HOME variable is set to the root of your Java platform's installation directory.

      Attachments

        1. generalTab.PNG
          generalTab.PNG
          15 kB
        2. installation.log
          519 kB
        3. javaTab.PNG
          javaTab.PNG
          15 kB
        4. loggintTab.PNG
          loggintTab.PNG
          10 kB
        5. logOnTab.PNG
          logOnTab.PNG
          10 kB
        6. shutDownTab.PNG
          shutDownTab.PNG
          11 kB
        7. startupTab.PNG
          startupTab.PNG
          11 kB
        8. stashInstallcontents.PNG
          stashInstallcontents.PNG
          99 kB

        Issue Links

          Activity

            People

              jpalacios Juan Palacios (Inactive)
              dlee@atlassian.com Deric Lee (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: