[GENERAL] Service not starting on Ubuntu 15.04

2015-10-26 Thread Lasse Westh-Nielsen
Hey, I posted to stackoverflow about my problem upgrading from Ubuntu 14.04 to Ubuntu 15.04: http://stackoverflow.com/questions/33306475/ubuntu-15-04-postgresql-doesnt-start Tl;dr: postgresql service does not start properly when installed as a package using cloud-init. And I can't figure out if

Re: [GENERAL] Service not starting on Ubuntu 15.04

2015-10-26 Thread Stuart Bishop
On 26 October 2015 at 18:21, Lasse Westh-Nielsen wrote: > Hey, > > I posted to stackoverflow about my problem upgrading from Ubuntu 14.04 to > Ubuntu 15.04: > http://stackoverflow.com/questions/33306475/ubuntu-15-04-postgresql-doesnt-start > > Tl;dr: postgresql service does

Re: [GENERAL] Service not starting on Ubuntu 15.04

2015-10-26 Thread Lasse Westh-Nielsen
Stuart, You are a life-saver! With those two commands inserted into the cloud-init script, the service actually starts and can complete my CREATE command. Thanks! - Lasse On Mon, Oct 26, 2015 at 2:31 PM, Stuart Bishop wrote: > On 26 October 2015 at 18:21, Lasse

Re: [GENERAL] Service not starting on Ubuntu 15.04

2015-10-26 Thread Lasse Westh-Nielsen
Adrian, The service starts once the package is installed. - It did that on Ubuntu14.04 - On Ubuntu 15.04, `sudo service postgresql status` _claims_ it has been started. On Mon, Oct 26, 2015 at 2:57 PM, Adrian Klaver wrote: > On 10/26/2015 07:08 AM, Lasse

Re: [GENERAL] Service not starting on Ubuntu 15.04

2015-10-26 Thread Adrian Klaver
On 10/26/2015 07:08 AM, Lasse Westh-Nielsen wrote: Adrian, Thanks. I know about the systemd change, and indeed the postgres package I end up with _has_ systemd integration already: $ cat /etc/systemd/system/multi-user.target.wants/postgresql.service # systemd service for managing all

Re: [GENERAL] Service not starting on Ubuntu 15.04

2015-10-26 Thread Lasse Westh-Nielsen
Bill, Thanks for your help. But I have already tried with a variant that gives the postgres service time to do what it needs to do: #!/bin/bash -eux exec > >(tee /var/log/bootstrap.log) exec 2>&1 apt-get --quiet --quiet update apt-get --quiet --quiet upgrade apt-get install --quiet --quiet

Re: [GENERAL] Service not starting on Ubuntu 15.04

2015-10-26 Thread Adrian Klaver
On 10/26/2015 04:21 AM, Lasse Westh-Nielsen wrote: Hey, I posted to stackoverflow about my problem upgrading from Ubuntu 14.04 to Ubuntu 15.04: http://stackoverflow.com/questions/33306475/ubuntu-15-04-postgresql-doesnt-start Pretty sure it is no coincidence that the 14.04 --> 15.04 upgrade

Re: [GENERAL] Service not starting on Ubuntu 15.04

2015-10-26 Thread Lasse Westh-Nielsen
Adrian, Thanks. I know about the systemd change, and indeed the postgres package I end up with _has_ systemd integration already: $ cat /etc/systemd/system/multi-user.target.wants/postgresql.service # systemd service for managing all PostgreSQL clusters on the system. This # service is actually

Re: [GENERAL] Service not starting on Ubuntu 15.04

2015-10-26 Thread Bill Moran
On Mon, 26 Oct 2015 11:21:23 + Lasse Westh-Nielsen wrote: > > I posted to stackoverflow about my problem upgrading from Ubuntu 14.04 to > Ubuntu 15.04: > http://stackoverflow.com/questions/33306475/ubuntu-15-04-postgresql-doesnt-start > > Tl;dr: postgresql service does

Re: [GENERAL] Service not starting on Ubuntu 15.04

2015-10-26 Thread Adrian Klaver
On 10/26/2015 08:04 AM, Lasse Westh-Nielsen wrote: Adrian, The service starts once the package is installed. - It did that on Ubuntu14.04 - On Ubuntu 15.04, `sudo service postgresql status` _claims_ it has been started. Yes, it starts but it is a go nowhere, do nothing service: $

Re: [GENERAL] Service not starting on Ubuntu 15.04

2015-10-26 Thread Melvin Davidson
Just out of curiosity, is there anything in the postgresql.log which gives an indication of a problem? On Mon, Oct 26, 2015 at 11:18 AM, Adrian Klaver wrote: > On 10/26/2015 08:04 AM, Lasse Westh-Nielsen wrote: > >> Adrian, >> >> The service starts once the package is

Re: [GENERAL] Service not starting on Ubuntu 15.04

2015-10-26 Thread Lasse Westh-Nielsen
Nope, the log is empty. Literally zero bytes. On Mon, Oct 26, 2015 at 3:57 PM, Melvin Davidson wrote: > Just out of curiosity, is there anything in the postgresql.log which gives > an indication of a problem? > > On Mon, Oct 26, 2015 at 11:18 AM, Adrian Klaver