I cannot reproduce this on either 15.04 or 15.10. At first sight this
sounds like a race condition. Installing the package more or less also
just calls "pg_ctlcluster 9.4 main start", so it's not clear yet why
your workaround works.

 - Can you please get cloud-init-output.log when this fails (without the
workaround)?

 - If you just add a "sleep 5" in between apt-get install and the psql
call, does that work? I. e. is it merely the case that the postmaster
startup is async and it needs some time to settle down, or does it
genuinely fail to start? In that case cloud-init-output.log ought to
have some error message.

 - If the sleep does not work and you did not get an error message, can
you please add this in between apt-get and psql:

    cp /var/log/postgresql/postgresql-9.4-main.log /tmp/

and then attach /tmp/postgresql-9.4-main.log ? Thanks!

** Changed in: postgresql-9.4 (Ubuntu)
       Status: New => Incomplete

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1510549

Title:
  Service not starting under cloud-init

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/postgresql-9.4/+bug/1510549/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to