pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Doron Behar <doron.behar@gmail.com>
To: pgsql-general@lists.postgresql.org
Subject: postgresql systemd service fails to start only on boot but not manually
Date: Sat, 22 Sep 2018 13:44:11 +0300
Message-ID: <20180922104411.u463kkorvmbombyk@NUC.doronbehar.com> (raw)

Hello everyone,

I'm having trouble with my PostgreSQL Systemd service and I wonder
whether this is a problem with the software or some problem with the
packaging or build.

My server fails to start PostgreSQL only on boot, if I restart it
manually afterwards it doesn't have any problem starting. Here is the
log extracted from the journal:

```
2018-09-21 20:46:40.028 CEST [306] LOG:  listening on IPv4 address "127.0.0.1", port 5432
2018-09-21 20:46:40.036 CEST [306] LOG:  listening on Unix socket "/run/postgresql/.s.PGSQL.5432"
2018-09-21 20:46:40.233 CEST [337] LOG:  database system was shut down at 2018-09-21 20:46:21 CEST
2018-09-21 20:48:10.441 CEST [352] WARNING:  worker took too long to start; canceled
2018-09-21 20:49:10.469 CEST [352] WARNING:  worker took too long to start; canceled
2018-09-21 20:49:10.478 CEST [306] LOG:  database system is ready to accept connections
2018-09-21 20:49:10.486 CEST [306] LOG:  received fast shutdown request
2018-09-21 20:49:10.497 CEST [306] LOG:  aborting any active transactions
2018-09-21 20:49:10.498 CEST [637] FATAL:  terminating autovacuum process due to administrator command
2018-09-21 20:49:10.500 CEST [306] LOG:  worker process: logical replication launcher (PID 636) exited with code 1
2018-09-21 20:49:10.501 CEST [349] LOG:  shutting down
2018-09-21 20:49:10.518 CEST [306] LOG:  database system is shut down
```

Any Ideas? I'd really like to fix this since now after every reboot I have to
remember to manually restart it.

Thanks.




view thread (5+ messages)  latest in thread

Message-ID: <20180922104411.u463kkorvmbombyk@NUC.doronbehar.com>
Permalink:  ../20180922104411.u463kkorvmbombyk@NUC.doronbehar.com/
Also on:    postgresql.org/message-id/20180922104411.u463kkorvmbombyk@NUC.doronbehar.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: doron.behar@gmail.com
  Subject: Re: postgresql systemd service fails to start only on boot but not manually
  In-Reply-To: <20180922104411.u463kkorvmbombyk@NUC.doronbehar.com>
  References: <20180922104411.u463kkorvmbombyk@NUC.doronbehar.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox