[Bug 1044559] Re: apt-get remove maas --purge while maas is running prevents full database purge

Mike Pontillo mike.pontillo at canonical.com
Tue Apr 7 06:38:55 UTC 2015


I attempted to fix this, but haven't gotten anywhere. I am seeing the
following errors:

Removing maas-region-controller (1.8.0~beta2+bzr3777-0ubuntu1) ...
 * Stopping web server apache2                                                                                                       * 
dbconfig-common: dumping pgsql database maasdb to /var/tmp/maas-region-controller.maasdb.2015-04-06-23.29.pgsql.AhZK0m.
dbconfig-common: dropping pgsql database maasdb.
dropping database maasdb: does not exist.
dbconfig-common: revoking privileges for user maas on maasdb.
revoking access to database maasdb from maas at localhost: failed.

However, I found a workaround:

$ sudo -u postgres dropdb maasdb

You can verify that the maasdb database has been dropped by executing:

$ sudo -u postgres psql

I tried adding "sudo -u postgres dropdb maasdb" to the postrm packaging
script for maas-region-controller, but that didn't make a difference.

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to maas in Ubuntu.
https://bugs.launchpad.net/bugs/1044559

Title:
  apt-get remove maas --purge while maas is running prevents full
  database purge

To manage notifications about this bug go to:
https://bugs.launchpad.net/maas/+bug/1044559/+subscriptions



More information about the Ubuntu-server-bugs mailing list