Updating Zammad

Note

Please backup your Zammad instance before update! You can learn how to back up Zammad on Backup and Restore.

Source update

1. Download Zammad to your system

You can directly download Zammad from https://ftp.zammad.com/ or use the direct URL to get the latest stable release via https://ftp.zammad.com/zammad-latest.tar.gz

$ cd /opt
$ sudo wget https://ftp.zammad.com/zammad-latest.tar.gz
$ sudo tar -C zammad -xzf zammad-latest.tar.gz
$ sudo chown -R zammad /opt/zammad
$ sudo su - zammad

2. Install all dependencies

zammad@host $ cd zammad
zammad@host $ gem install bundler
  • For PostgreSQL (note, the option says “without … mysql”):
zammad@host $ bundle install --without test development mysql
  • For MySQL (note, the option says “without … postgres”):
zammad@host $ bundle install --without test development postgres

3. Stop Zammad services

Stop the application server, websocket server and scheduler.

4. Upgrade your database

zammad@host $ export RAILS_ENV=production
zammad@host $ export RAILS_SERVE_STATIC_FILES=true # only if you use no HTTP reverse proxy
zammad@host $ rake db:migrate
zammad@host $ rake assets:precompile

5. Start Zammad services

Start the application server, websocket server and scheduler.

6. Go and login to Zammad

Update with RPM

1. Stop Zammad

$ sudo systemctl stop zammad

3. Update Zammad

$ sudo yum update zammad

Note: The package will automatically execute maintenance tasks like database changes and will restart Zammad for you.

4. Start Zammad

$ sudo systemctl start zammad

5. Go and log in to Zammad

Update with DEB

Note: Please backup your Zammad instance before update!

1. Stop Zammad

$ sudo systemctl stop zammad

3. Update Zammad

$ apt-get update
$ apt-get upgrade

Note: The package will automatically execute maintenance tasks like database changes and will restart Zammad for you.

4. Start Zammad

$ sudo systemctl start zammad

5. Go and log in to Zammad

Updating 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.