Folks,
I tried to reinstall MAAS 2.4 after remove the previous version by taking the following steps:
-
apt autoremove maas
-
apt autoremove “postgresql*”
-
Deleted users maas, avahi, bind, dhcp, _chony, postgresql created during previous installation.
-
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!