-
Notifications
You must be signed in to change notification settings - Fork 26
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
Upon purge (debian) of rpki-ca/rpki-rp errors in the postgresql bits #840
Comments
Make sure you have the latest {{{ systemctl stop rpki-cakillall -u rpkiapt-get updateapt-get purge rpki-ca rpki-rpapt-get install rpki-rp rpki-ca}}} If you do the upgrade, you will have to go back and reconfigure the CA === The !Upgrade/Migration Sequence === The upgrade itself needs to take place with the servers disabled, If you're running as root, you can omit any In case the upgrade/install restarted the daemons, we need to kill them systemctl stop rpki-cakillall -u rpki}}} The rm, database drop, install, and database create are just wiping rm -rf /usr/share/rpki/.{tal,cer} /usr/share/rpki/publication/ /usr/share/rpki/rrdp-publication/* /var/log/rpki/*rpki-sql-setup --postgresql-root-username postgres dropinstall -d -o rpki -g rpki /var/run/rpki /var/log/rpki /usr/share/rpki/publication /usr/share/rpki/rrdp-publicationrpki-sql-setup --postgresql-root-username postgres create}}} The Django migrations are needed to rebuild the database schemas after sudo -u rpki rpki-manage migrate rpkidb --settings rpki.django_settings.rpkid --no-colorsudo -u rpki rpki-manage migrate pubdb --settings rpki.django_settings.pubd --no-colorsudo -u rpki rpki-manage migrate irdb --settings rpki.django_settings.irdb --no-colorsudo -u rpki rpki-manage migrate --settings rpki.django_settings.gui --no-color}}} These produced the only significant output sudo -u rpki rpki-manage migrate rpkidb --settings rpki.django_settings.rpkid --no-colorOperations to perform: sudo -u rpki rpki-manage migrate pubdb --settings rpki.django_settings.pubd --no-colorOperations to perform: sudo -u rpki rpki-manage migrate irdb --settings rpki.django_settings.irdb --no-colorOperations to perform: sudo -u rpki rpki-manage migrate --settings rpki.django_settings.gui --no-colorOperations to perform: Trac comment by randy on 2016-06-27T14:26:37Z |
At Mon, 27 Jun 2016 14:26:37 -0000,
this is a fresh (this morning) purge/install. I can run that again,
Trac comment by morrowc on 2016-06-27T17:59:22Z |
(Reading database ... 47096 files and directories currently installed.)
Removing rpki-ca (0.6442
jessie) ...jessie) ...RPKI Apache configuration: platform "Debian", action "remove"
Removing /etc/rpki/apache.conf.sample
Removing /etc/apache2/sites-available/rpki.conf
Running a2dissite rpki
removing dangling symlink /etc/apache2/sites-enabled/rpki.conf
Running service apache2 restart
Purging configuration files for rpki-ca (0.6442
dpkg: warning: while removing rpki-ca, directory '/usr/share/rpki/rrdp-publication' not empty so not removed
dpkg: warning: while removing rpki-ca, directory '/usr/share/rpki/publication' not empty so not removed
Removing rpki-rp (0.6442
jessie) ...jessie) ...Initialized PostgreSQL driver, pw pwd.struct_passwd(pw_name='postgres', pw_passwd='x', pw_uid=108, pw_gid=114, pw_gecos='PostgreSQL administrator,,,', pw_dir='/var/lib/postgresql', pw_shell='/bin/bash')
Purging configuration files for rpki-rp (0.6442
DROP DATABASE
DO
psql:/etc/rpki/drop_databases.sql:10: NOTICE: database "rpki" does not exist, skipping
DROP DATABASE
psql:/etc/rpki/drop_databases.sql:18: NOTICE: role "rpki" does not exist, skipping
CONTEXT: SQL statement "DROP ROLE IF EXISTS rpki"
PL/pgSQL function inline_code_block line 6 at SQL statement
DO
psql:/etc/rpki/drop_databases.sql:19: NOTICE: database "rpki" does not exist, skipping
DROP DATABASE
psql:/etc/rpki/drop_databases.sql:27: NOTICE: role "rpki" does not exist, skipping
CONTEXT: SQL statement "DROP ROLE IF EXISTS rpki"
PL/pgSQL function inline_code_block line 6 at SQL statement
DO
psql:/etc/rpki/drop_databases.sql:28: NOTICE: database "rpki" does not exist, skipping
DROP DATABASE
psql:/etc/rpki/drop_databases.sql:36: NOTICE: role "rpki" does not exist, skipping
CONTEXT: SQL statement "DROP ROLE IF EXISTS rpki"
PL/pgSQL function inline_code_block line 6 at SQL statement
DO
These are probably harmless? but I'm not sure at this point and figure speaking up is good practice.
Trac ticket #834 component rpkid priority minor, owner None, created by morrowc on 2016-06-27T14:23:01Z, last modified 2016-06-27T17:59:22Z
The text was updated successfully, but these errors were encountered: