Reinstallation


#1

Folks,

I tried to reinstall MAAS 2.4 after remove the previous version by taking the following steps:

  1. apt autoremove maas

  2. apt autoremove “postgresql*”

  3. Deleted users maas, avahi, bind, dhcp, _chony, postgresql created during previous installation.

  4. Removed all maas-* related systemd files from /etc/systemd/system

Then, I got the following error during reinstallation (apt install maas):

django.db.utils.OperationalError: could not connect to server: Connection refused
    Is the server running on host "localhost" (::1) and accepting
    TCP/IP connections on port 5432?
could not connect to server: Connection refused
    Is the server running on host "localhost" (127.0.0.1) and accepting
    TCP/IP connections on port 5432?

Looks like something was wrong with the database connection. Any idea how to fix it?

Thank you!


#2

Here are the steps to uninstall MAAS (in this case 2.4) before a successful reinstallation on Ubuntu 18.04:

  1. apt autoremove maas

  2. apt-get purge maas*

  3. apt autoremove postgresql*

  4. apt-get purge postgresql*

Then proceed with normal installation (e.g. apt install maas).

Thanks to @ltrager on #maas Freenode