Re: BUG #16564: Can't start the service postgresql@11-main.service - Mailing list pgsql-bugs

From Tom Lane
Subject Re: BUG #16564: Can't start the service postgresql@11-main.service
Date
Msg-id 1651099.1596146748@sss.pgh.pa.us
Whole thread Raw
In response to BUG #16564: Can't start the service postgresql@11-main.service  (PG Bug reporting form <noreply@postgresql.org>)
List pgsql-bugs
PG Bug reporting form <noreply@postgresql.org> writes:
> I can't use any server app that requires a postgresql database. 
> I can't even start the service. It is marked as "inactive (dead)", and if i
> execute "systemctl start postgresql@11-main.service", it returns me this:
> "Assertion failed on job for postgresql@11-main.service.". 

Well, the error message says that the cluster configuration file
isn't there:

>            AssertPathExists=/etc/postgresql/11/main/postgresql.conf was not
> met

So I wonder whether you initialized the database at all; normally
that action would set up a postgresql.conf file as a byproduct.

With a bare Postgres installation you'd run initdb for that purpose.
But since you're apparently using Debian's packaging of Postgres,
I'd recommend using whatever script they provide for the purpose.
Reading the package's documentation would tell you that.

            regards, tom lane



pgsql-bugs by date:

Previous
From: Thomas Munro
Date:
Subject: Re: BUG #16563: Потерлись данные таблиц POS
Next
From: David Rowley
Date:
Subject: Re: BUG #16558: `AND FALSE` increases planning time of query on 2 tables with 1000 partitions to more than 7 seconds