installation hangs if postgres is not listening on default port
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
maas (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Hi,
If there is no postgres listening on port 5432 (which can happen when, for example, you install 9.1 on saucy, upgrade to trusty, thereby installing 9.3 and then purging 9.1), and install maas this happens:
Setting up maas-region-
Considering dependency proxy for proxy_http:
Module proxy already enabled
Module proxy_http already enabled
Module expires already enabled
Module wsgi already enabled
rsyslog stop/waiting
rsyslog start/running, process 29785
squid-deb-proxy stop/waiting
squid-deb-proxy start/running, process 29839
* Restarting message broker rabbitmq-server
...done.
Creating user "maas_longpoll" ...
...done.
Creating vhost "/maas_longpoll" ...
...done.
Setting permissions for user "maas_longpoll" in vhost "/maas_longpoll" ...
...done.
Changing password for user "maas_workers" ...
...done.
* Restarting PostgreSQL 9.3 database server
...done.
dbconfig-common: writing config to /etc/dbconfig-
creating postgres user maas: success.
verifying creation of user: success.
creating database maasdb: success.
verifying database maasdb exists: success.
dbconfig-common: flushing administrative password
Syncing...
Traceback (most recent call last):
File "/usr/bin/
management.
File "/usr/lib/
utility.
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
output = self.handle(*args, **options)
File "/usr/lib/
return self.handle_
File "/usr/lib/
syncdb.
File "/usr/lib/
output = self.handle(*args, **options)
File "/usr/lib/
return self.handle_
File "/usr/lib/
cursor = connection.cursor()
File "/usr/lib/
cursor = util.CursorWrap
File "/usr/lib/
self.
File "/usr/lib/
self.connect()
File "/usr/lib/
six.
File "/usr/lib/
self.connect()
File "/usr/lib/
self.connection = self.get_
File "/usr/lib/
return Database.
File "/usr/lib/
connection_
django.
Is the server running on host "localhost" (127.0.0.1) and accepting
TCP/IP connections on port 5432?
and then it hangs.
no longer affects: | postgresql (Ubuntu) |
Status changed to 'Confirmed' because the bug affects multiple users.