Last active
February 24, 2023 06:01
-
-
Save miralem-cebic/4c97cf78929bef339dfb1f1c9738e892 to your computer and use it in GitHub Desktop.
Setup sentry on Ubuntu 16.04 server
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Project: https://github.com/getsentry/sentry | |
# Doc: https://docs.getsentry.com/on-premise/server/installation/python/ | |
udo apt-get update | |
sudo apt-get install python-virtualenv | |
sudo apt-get install python-setuptools | |
sudo apt-get install python-pip | |
sudo apt-get install libxslt1-dev | |
sudo apt-get install gcc | |
sudo apt-get install libffi-dev | |
sudo apt-get install libjpeg-dev | |
sudo apt-get install libxml2-dev | |
sudo apt-get install libxslt-dev | |
sudo apt-get install libyaml-dev | |
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 | |
virtualenv /var/www/sentry/ | |
source /var/www/sentry/bin/activate | |
# Note: Activating the environment adjusts your PATH, so that things like pip now install into the virtualenv by default. | |
sudo easy_install -UZ sentry[postgres] | |
sudo sentry init # This will create if you a root user: /root/.sentry/config.yml | |
sudo nano .sentry/sentry.conf.py # Set postgres connection sentry / sentry | |
createdb -E utf-8 sentry # Note: If you kept the database ``NAME`` as ``sentry`` | |
# If Error: sudo -u postgres psql -c 'alter user sentry with createdb' postgres | |
sentry config generate-secret-key | |
# get the secret key! | |
SENTRY_CONF=/root/.sentry sentry upgrade |
postgresql-server-dev-9.3
giving error on Ubuntu 16.04.2 LTS (GNU/Linux 4.4.0-1020-aws x86_64)
@cizmelikedi you must use postgresql-server-dev-9.5
on Ubuntu Linux 16.04
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
line 4 must be start with "sudo"