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@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.
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) ... maas-region- controller. maasdb. 2015-04- 06-23.29. pgsql.AhZK0m.
* Stopping web server apache2 *
dbconfig-common: dumping pgsql database maasdb to /var/tmp/
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@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.