Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Setup sentry logger on a fresh Ubuntu server
sudo apt-get update
sudo apt-get install python-virtualenv
sudo apt-get install python-dev
sudo apt-get install postgresql
sudo apt-get install postgresql-server-dev-9.3
sudo apt-get install redis-server
sudo -u postgres createuser -s sentry
sudo -u postgres psql -c "alter user sentry with password 'sentry';"
sudo nano /etc/postgresql/9.3/main/pg_hba.conf
# local sentry md5
sudo service postgres restart
sudo virtualenv /www/sentry/
sudo easy_install -UZ sentry[postgres]
sudo sentry init # This will create "/home/tom/.sentry/sentry.conf.py"
sudo nano .sentry/sentry.conf.py # Set postgres connection sentry / sentry
createdb -E utf-8 sentry
sentry --config=/home/tom/.sentry/sentry.conf.py upgrade
sentry --config=/home/tom/.sentry/sentry.conf.py createsuperuser
sentry --config=/home/tom/.sentry/sentry.conf.py repair --owner=<username>
sentry --config=/home/tom/.sentry/sentry.conf.py start
@JesseObrien

This comment has been minimized.

Copy link

@JesseObrien JesseObrien commented Apr 13, 2016

I had an error where I had to sudo apt-get install python-pip and pip install --upgrade raven or the sentry upgrade would fail.

@PaulBGD

This comment has been minimized.

Copy link

@PaulBGD PaulBGD commented Jul 1, 2016

You're missing the package python-setuptools, libxml-dev, libxslt1-dev, libffi-dev and a version of libjpeg

@p00j4

This comment has been minimized.

Copy link

@p00j4 p00j4 commented Feb 3, 2017

thank you for noting it up 👍
line number 13 to be replaced with sudo service postgresql start, becasue we have installed the suffixed with sql

@ghost

This comment has been minimized.

Copy link

@ghost ghost commented Apr 5, 2017

sudo nano /etc/postgresql/9.3/main/pg_hba.conf

then what ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment