Sentry is a service that helps you monitor and fix crashes in realtime. The server is in Python, but it contains a full API for sending events from any language, in any application. Sentry supports more than 60 languages. In this tutorial, we are going to see how to install sentry on-promise. Install Sentry will help you find out bugs easily .

Sentry provides an opensource version of their product. We can install it through the Docker and Snap package. Here I’m Explaining the Snappy Linux way.

sentry support

Before installing, make sure you have the following availiable:

  • Postgres database.
  • Redis database.

Once you have these running, install Sentry with: 

$ sudo snap install sentry

This will install 3 Sentry daemons

The daemons can be accessed via systemctl, there names being:

  • snap.sentry.web
  • snap.sentry.worker
  • snap.sentry.cron

Note sudo. This is because the daemons will be running as root (although confined by snapd). If you run this without sudo, the running Sentry daemons won’t be able to find the configuration files.

At this point, you can go and edit Sentry’s config files to point them at your Postgres and Redis databases. You can find the location of these files with:

$ sudo sentry config discover

Once edited, you need to run all pending migrations and setup a superuser with:

$ sudo sentry upgrade

Afterwards, restart the daemons with:

$ sudo systemctl restart "snap.sentry.*"

Now, you should be able to browse to http://localhost:9000

Adding SMTP/EMAIL Configuration in Sentry

Add the following configurations to your /root/snap/sentry/70/.sentry/config.yml

after adding your SMTP credentials, restart sentry server:

$ sudo systemctl restart "snap.sentry.*"

This is how I installed sentry On Linux.