Featured image of post Self hosted Sentry updating TODO list

Self hosted Sentry updating TODO list

Sentry encourage everyone to regularly update their Sentry installations to get the best and the most recent Sentry experience. In this post I made my own Sentry updating todo list.

In addition to making its source code available publicly, Sentry offers and maintains a minimal setup that works out-of-the-box for simple use cases.

Sentry encourage everyone to regularly update their Sentry installations to get the best and the most recent Sentry experience.

Create a backeup/snapshot

Make Sure you have a quickly revertable backup/snapshot.

Download the closer update

You have to update your Sentry one by one, so you can’t upgrade from 20.x to 22.x or some thing.

Also read the release notes carefully. some times there are more steps before updating to a release:

https://github.com/getsentry/self-hosted/releases

Supposing the next one is 21.9.0:

1
wget -qO- https://github.com/getsentry/self-hosted/archive/refs/tags/21.9.0.tar.gz | tar xvz

And go to the directory:

1
cd ./self-hosted-21.9.0

Copy the config/env files to the new version directory

These are the config files. It’s not bad to compare the old and new config files before moving, to make sure the formats are same.

  • sentry/config.yml
  • sentry/sentry.conf.py

Also you should update the values of the env file. Note that you shouldn’t copy entire values of the prev values, while it includes the docker image tags too.

  • .env

Run the installation script

1
sudo bash ./install.sh

Start the services

1
docker-compose up -d

Done 🙂

comments powered by Disqus
Built with Hugo
Theme Stack designed by Jimmy