Upgrade from TheHive 5.0.x#
READ FIRST
- We strongly recommend you perform a full database backup before upgrading. Please follow the backup instructions.
- Once upgraded to TheHive 5.1, your TheHive instance cannot be downgraded, meaning you cannot go back to TheHive 5.0.x, unless you restore your data from your TheHive 5.0.x backup.
- When upgrading an existing TheHive 5.0.x instance, the first application launch will apply a database evolution (schema and data). This operation might take some time depending on your database size.
Overview#
This guide provides instructions to upgrade an existing TheHive 5.0.x instance to TheHive 5.1.x.
Upgrade instructions#
TheHive 5.0.x and 5.1.x are hosted in distinct package repositories. In order to upgrade to version 5.1.x, you need to edit your repository configuration as described below. Docker images have specific version 5.1 tags.
-
(Optional) install the package repository signature key, if you don't already have it
wget -O- https://archives.strangebee.com/keys/strangebee.gpg | sudo gpg --dearmor -o /usr/share/keyrings/strangebee-archive-keyring.gpg
-
Edit the file
/etc/apt/sources.list.d/strangebee.list
and adjust the repository address as followsdeb [signed-by=/usr/share/keyrings/strangebee-archive-keyring.gpg] https://deb.strangebee.com thehive-5.1 main
-
Install TheHive package
sudo apt-get update sudo apt-get install -y thehive
-
(Optional) install the package repository signature key, if you don't already have it
sudo rpm --import https://archives.strangebee.com/keys/strangebee.gpg
-
Edit the file
/etc/yum.repos.d/strangebee.repo
and adjust the repository address to obtain the follow configuration:/etc/yum.repos.d/strangebee.repo[thehive] enabled=1 priority=1 name=StrangeBee RPM repository baseurl=https://rpm.strangebee.com/thehive-5.1/noarch gpgkey=https://archives.strangebee.com/keys/strangebee.gpg gpgcheck=1
-
Then install the package using
yum
:sudo yum update sudo yum install thehive
Update your existing TheHive 5.0.x Docker stack (docker-compose file or similar) using the image named strangebee/thehive:5.1
.
Docker tags
- The
strangebee/thehive:latest
tag remains associated with TheHive 5.0.x versions - A new
strangebee/thehive:5.1
tag is now available and associated with the latest5.1.x
version
Health checks#
If you have health checks on the application http interface, they should be disabled during the upgrade process. Otherwise the orchestrator will kill TheHive during the update process.