The instructions on this page describe how to upgrade Stash from a previous version.
Please read the Supported platforms page for the full list of supported platforms for Stash. | Related pages: |
Upgrade notes
These upgrade notes are general instructions for upgrading Stash. We strongly recommend that you upgrade Stash by following these steps:
1. Stop Stash!
To stop Stash, change directory in a terminal or command prompt to the <Stash installation directory>
and run:
Windows:
bin\stop-stash.bat
Linux and Mac:
bin/stop-stash.sh
2. Back up your Stash data!
- Back up the Stash home directory. This is where your Stash data is stored. The home directory location is defined:
- On Windows: by the
STASH_HOME
environment variable, or by theSTASH_HOME
line of<Stash installation directory
>/bin/setenv.
bat.
- On Linux and Mac: by the
STASH_HOME
line of<Stash installation directory
>/bin/setenv.sh.
- On Windows: by the
- If you are using an external database, back up this database. Follow the directions provided by the database vendor to do this.
3. Download and install Stash as usual
In particular, you must redefine the Stash home directory. See the following for more information:
If you made custom changes to the configuration of your existing Stash installation, for example for the port or context path, you will have to make these changes for the new installation as well.
![]() | If you are using MySQL Stash does not ship with the MySQL database driver. You will need to reinstall the driver in the new installation, or copy the previous driver from the old |
4. Start Stash
To start Stash, change directory in a terminal or command prompt to the <Stash installation directory>
and run:
Windows:
bin\start-stash.bat
Linux and Mac:
bin/start-stash.sh
Upgrading from Stash 1.0.x to 1.1 or higher
SSH
When you restart Stash after upgrading to 1.1, Stash will automatically enable SSH access to your repositories, on the default port of 7999.
If you want to change the port, or are hosted behind a proxy or firewall, you may also need to change the SSH base URL so the clone URL's in Stash are correct. See the SSH admin instructions.
Developing for Stash
If you are a Stash plugin developer, please refer to our Stash developer documentation.
Checking for known issues and troubleshooting the Stash upgrade
If something is not working correctly after you have completed the steps above to upgrade your Stash installation, please check for known Stash issues and try troubleshooting your upgrade as described below:
- Check for known issues. Sometimes we find out about a problem with the latest version of Stash after we have released the software. In such cases we publish information about the known issues in the Stash Knowledge Base.
- If you encounter a problem during the upgrade and cannot solve it, please create a support ticket and one of our support engineers will help you.