Change STASH_HOME when installed as a Windows service

Troubleshooting Installation

On this page

Still need help?

The Atlassian Community is here for you.

Ask the community

When Stash is installed as a Windows service, the Stash home directory location, defined by the STASH_HOME variable in setenv.bat, is not used. This is because the Stash service has the -Dstash.home hardcoded based on the value that was used when the installation was run. This page outlines how to change the STASH_HOME variable for the Windows service.

How to change STASH_HOME for the Windows service

  • Stop the Stash service.
  • Open the command window from Start >> Run >> type in 'cmd' >> Enter
  • cd to the bin directory the Stash Installation (<Stash Installation dir>/bin).
  • Run from there:

    tomcat8w //ES//AtlassianStash
  • A window will pop up. Click on the Java tab to see the list of current start-up options. Under "Java Options:" form, input the value:

    -Dstash.home=C:/absolute/path/to/your/stash/home
  • Restart Stash Service. From here the service will be forced to point to the path defined on the property -Dstash.home above.
Last modified on Feb 26, 2016

Was this helpful?

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