-
-
Save midweste/455b8782d19d9628dd2f7099796d3291 to your computer and use it in GitHub Desktop.
#!/bin/sh | |
# need to have at least 2.5GB of memory of this install may fail - see docs | |
# todo 13:52:28 [WARNING] sentry.utils.geo: settings.GEOIP_PATH_MMDB not configured. | |
SENTRYDB='sentry' | |
SENTRYUSER='sentry' | |
SENTRYPW='sentrypw' | |
# sudo apt-get install -y postgresql postgresql-contrib redis | |
sudo apt-get install -y postgresql redis | |
# sudo su - postgres -c | |
sudo su - postgres -c "createuser ${SENTRYUSER}" | |
sudo su - postgres -c "psql -c 'alter role ${SENTRYUSER} superuser'" | |
sudo su - postgres -c "psql -c 'create database ${SENTRYDB}'" | |
sudo su - postgres -c "psql -c 'alter user ${SENTRYUSER} with encrypted password '\''${SENTRYPW}'\'''" | |
sudo su - postgres -c "psql -c 'grant all privileges on database ${SENTRYDB} to ${SENTRYUSER}'" | |
sudo snap install sentry | |
sudo sentry init | |
sudo sed -i "s/'NAME': 'sentry',/'NAME': '${SENTRYDB}',/g" /root/snap/sentry/70/.sentry/sentry.conf.py | |
sudo sed -i "s/'USER': 'postgres',/'USER': '${SENTRYUSER}',/g" /root/snap/sentry/70/.sentry/sentry.conf.py | |
sudo sed -i "s/'PASSWORD': '',/'PASSWORD': '${SENTRYPW}',/g" /root/snap/sentry/70/.sentry/sentry.conf.py | |
sudo sentry upgrade | |
sudo su - postgres -c "psql -c 'alter role ${SENTRYUSER} nosuperuser'" | |
sudo systemctl restart "snap.sentry.*" | |
echo "Installation complete" | |
echo "Browse to http://localhost:9000" | |
echo "Configure additional settings in:" | |
sudo sentry config discover |
Unfortunately, I think they changed the Sentry install enough as to where there isn't a way to install it directly like this. I took these instructions from a few other guides out there and have yet to be able to find one that can install over version 9.
Looks like they have version 10 on edge
You can change line 19 to:
sudo snap install sentry --edge
And give that a try. No idea if the script will still work though
Its not working healthy :(
I spend 20 hours for fix but its not worked healthy
Its not working healthy :( I spend 20 hours for fix but its not worked healthy
@seckin-artifactsystems What issues are you having? What are the errors?
I just looked at the most recent version from snap, looks like they finally updated from version 9 as they are now on version 21.2.
For this script to work you will probably need to pin the sentry version to 9 on line 19. Otherwise other fixes are likely to be needed
Here is how you can get older versions: https://askubuntu.com/a/1371602
Its not working healthy :( I spend 20 hours for fix but its not worked healthy
@seckin-artifactsystems What issues are you having? What are the errors?
I just looked at the most recent version from snap, looks like they finally updated from version 9 as they are now on version 21.2.
For this script to work you will probably need to pin the sentry version to 9 on line 19. Otherwise other fixes are likely to be needed
Here is how you can get older versions: https://askubuntu.com/a/1371602
Hi, Thanks for answer.
the worker not running, I didn't fix "PermissionError: [Errno 13] Permission denied" and "Background workers haven't checked in recently. It seems that you have a backlog of 1789 tasks. Either your workers aren't running or you need more capacity." errors
Not sending email for invitation
Not creating new project
Its not working healthy :( I spend 20 hours for fix but its not worked healthy
@seckin-artifactsystems What issues are you having? What are the errors?
I just looked at the most recent version from snap, looks like they finally updated from version 9 as they are now on version 21.2.
For this script to work you will probably need to pin the sentry version to 9 on line 19. Otherwise other fixes are likely to be needed
Here is how you can get older versions: https://askubuntu.com/a/1371602Hi, Thanks for answer.
the worker not running, I didn't fix "PermissionError: [Errno 13] Permission denied" and "Background workers haven't checked in recently. It seems that you have a backlog of 1789 tasks. Either your workers aren't running or you need more capacity." errors Not sending email for invitation Not creating new project
I do know that Sentry 9 needed at least 2.5gb of memory to install properly. Do you have enough memory?
I have tried this script.
It's working fine.
But, it is using Sentry 9.1.2 version.
Is there any way to use the latest version (21.2.0)?
Thanks