-
-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error during migrations in version 8.20 #6098
Comments
Okay guys, I just fixed this by installing postgresql-contrib package to the system (CentOS 7). |
Had same issue even with
After upgrade I have removed access
|
Can reproduce with postgresql96 installed on Centos 7.7. Installing |
Alternative solution to granting superuser permissions that is more friendly to automation is to manually enable extension for the database. I'm using puppet and the puppetlabs-postgresql module, so for me the solution looks like this: class { 'postgresql::server':
...
}
postgresql::server::db { 'sentry':
...
}
postgresql::server::extension { 'citext':
database => 'sentry'
}
exec { 'sentry upgrade --noinput':
...
require => Postgresql::Server::Extension['citext']
} |
@Kentzo But even if the extension exists, the migration bails with permission denied. |
What is the error? |
Ah. Stupid me. I solved it. I had created the extension in the wrong database. Sorry |
after install postgresql96-contrib sentry upgrade is ok |
If your postgres is a docker container in a compose project, you can get your bash like this: docker-compose exec postgres /bin/bash Then follow @lenisko's code above. |
8.20
installation from pip, pgsql for database
After upgrade sentry from pip to version 8.20 (from 8.19), I run
SENTRY_CONF=/etc/sentry /www/sentry/bin/sentry upgrade
and got following error:The text was updated successfully, but these errors were encountered: