Updating Zammad

Note

Before updating to a new version, you may want to have a look into the official release notes. These will provide further information on new feature and fixes, but also technical remarks that may be relevant during an upgrade!

Step 1: Stop Zammad
$ systemctl stop zammad
Step 2: Backup Zammad

See Backup and Restore for more information.

Step 3: Update Zammad
$ apt update
$ apt upgrade

Warning

The package comes with maintenance scripts that will run regular tasks during updates for you.

However
Do not run Zammad updates unattended and always have a look on the outputs these helper scripts generate. Ignoring said output may lead to incomplete updates that may corrupt data or lead to issues you find way too late.
Step 4: Run required extra steps

Extra steps needed for updates are mentioned in our release news.

Updating Elasticsearch may be relevant in this step.

Step 5: Log into Zammad

Yes, that’s it!

Updating Elasticsearch

Warning

Updating Elasticsearch does not automatically update it’s plugins! This usually isn’t an issue if Zammad is being updated right after Elasticsearch.

If you want to upgrade your elasticsearch installation, please take a look at the elasticsearch documentation as it will have the most current information for you.

If, for whatever reason, you need to rebuild your search index after upgrading, use:

$ zammad run rake searchindex:rebuild

Warning

This step may fail if Zammad is under heavy load: Elasticsearch locks the indices from deletion if you’re pumping in new data, like receiving a new ticket. (This only applies to single-node deployments, not clusters.)

If it does, try killing Zammad first:

$ systemctl stop zammad
$ zammad run rake searchindex:rebuild
$ systemctl start zammad