Why use sentry?
Sentry1 is a modern error logging and aggregation platform.
The Sentry package fundamentally is just a simple server and web UI. It will handle authenticating clients (such as Raven) and all of the logic behind storage and aggregation.Sentry2 is not limited to Python. The primary implementation is in Python, but it contains a full API for sending events from any language, in any application.
How to Setup Sentry Server?
The Sentry Server is the core Python application that powers all of the Sentry installations.
This guide will step you through setting up a Python-based virtualenv, installing the required packages, and configuring the basic web service.3
Here I will give some more detailed steps.You can find more information from Sentry official website.
Operating system
A UNIX-based operating system. We test on Ubuntu and this documentation assumes an ubuntu based system.
Dependencies
You could find the latest dependency from from here.
Python 2.7
https://www.python.org/downloads/
Redis
Install redis
- find latest version from http://download.redis.io/releases/
- try the following commands.
$ wget http://download.redis.io/releases/redis-3.0.6.tar.gz $ tar xzf redis-3.0.6.tar.gz $ cd redis-3.0.6 $ make
Run redis
$ src/redis-server
save problem: try
sudo vim redis.conf
, and find “dir ./ “. The default value is: ./ and change it to “/root/path/to/dir/with/write/access/”Note that you must specify a directory here, not a file name.
dir /root/path/to/dir/with/write/access/
Postgresql
Install postgresql
try this command:
apt-get install postgresql-9.4
if it does not work, try to use the PostgreSQL Apt Repository. and try the following method. You can get more detail from here and its wiki.
- (You may determine the codename of your distribution by running lsb_release -c). For a shorthand version of the above, presuming you are using a supported release:
sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt/ $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
- Import the repository key from https://www.postgresql.org/media/keys/ACCC4CF8.asc , update the package lists, and start installing packages:
sudo apt-get install wget ca-certificates
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install postgresql-9.4 pgadmin3
Other Dependencies
install python-setuptools, python-pip, python-dev, libxslt1-dev, libxml2-dev, libz-dev, libffi-dev, libssl-dev, libssl-dev, libpq-dev, libyaml-dev.
sudo apt-get install python-setuptools python-pip python-dev libxslt1-dev libxml2-dev libz