Re: Service not starting on Ubuntu 15.04

From: Lasse Westh-Nielsen <lassewesth(at)gmail(dot)com>
To: Stuart Bishop <stuart(at)stuartbishop(dot)net>
Cc: "List, Postgres" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Service not starting on Ubuntu 15.04
Date: 2015-10-26 15:06:56
Message-ID: CAFyxdeT+=x-d0oNbFPoe+4xnt0Qdfi+zAEn+rQmEK0AZbJFRtg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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 <stuart(at)stuartbishop(dot)net>
wrote:

> On 26 October 2015 at 18:21, Lasse Westh-Nielsen <lassewesth(at)gmail(dot)com>
> 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 not start properly when installed as a
> > package using cloud-init.
> >
> > And I can't figure out if I am doing something wrong, if the AMI is no
> good,
> > if the package has problems, ... I reckon I cannot be the first person to
> > use Postgres on Ubuntu Vivid, but I have been hammering my head against
> the
> > wall with this for hours.
> >
> > Any help greatly appreciated!
>
> I'd be trying 'pg_ctlcluster --force 9.4 main stop' and
> 'pg_ctlcluster 9.4 main start' instead of service start/stop. If it
> works, you have narrowed down the problem to systemd and/or the
> startup scripts. If it doesn't work, the problem is elsewhere (eg.
> some required path like /var/run or /tmp or /var/log/postgresql
> doesn't exist or has peculiar permissions). If nothing else, you
> should get more informative output rather than systemd hiding it away
> somewhere.
>
> --
> Stuart Bishop <stuart(at)stuartbishop(dot)net>
> http://www.stuartbishop.net/
>

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Rob Sargent 2015-10-26 15:12:16 Re: Recursive Arrays 101
Previous Message Lasse Westh-Nielsen 2015-10-26 15:04:46 Re: Service not starting on Ubuntu 15.04