pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Hugo Osvaldo Barrera <hugo@barrera.io>
To: pgsql-bugs@postgresql.org
Subject: postgresql-server exiting abnormally after an OS upgrade
Date: Thu, 12 Feb 2015 19:42:57 -0300
Message-ID: <20150212224257.GA16161@athena.barrera.io> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

Hi,

I've been running postgresql-server for some time on an OpenBSD box, and the
latest OS upgrade (which also upgraded from 9.3 to 9.4) seems to have broken it
in some way. I tried downgrading back to 9.3.6, but the issue persists, so it
looks like something else is broken, and not postgresql per se.

Of course, I did the proper upgrade procedure, pg_dumpall, move everything out
of the way, and reinit the db.

I also tried *not* reimporting the db on my last wipeout, and keeping the
completely empty database. It crashed too upon connection attempts (which fail
to authenticate because I haven't even created the users), so I guess the data
is no problem. The database is pretty small, and very few concurrent users (the
*whole* backup is ~400kB).

Here's the error which repeats ad infinitum:

    LOG:  database system was shut down at 2015-02-12 14:41:29 GMT
    LOG:  database system is ready to accept connections
    LOG:  autovacuum launcher started
    LOG:  server process (PID 21205) was terminated by signal 6: Abort trap
    LOG:  terminating any other active server processes
    WARNING:  terminating connection because of crash of another server process
    DETAIL:  The postmaster has commanded this server process to roll back the current transaction and exit, because another server process exited abnormally and possibly corrupted shared memory.
    HINT:  In a moment you should be able to reconnect to the database and repeat your command.
    LOG:  all server processes terminated; reinitializing
    LOG:  database system was interrupted; last known up at 2015-02-12 14:42:04 GMT
    LOG:  database system was not properly shut down; automatic recovery in progress
    LOG:  record with zero length at 0/1690A90
    LOG:  redo is not required
    LOG:  database system is ready to accept connections
    LOG:  autovacuum launcher started

I've searchd all over, and found little or nothing of help. Nothing seemed to
change the situation.

I believe that these settings *are* relevant, so:

    kern.seminfo.semmni=256
    kern.seminfo.semmns=512
    kern.seminfo.semmnu=256
    kern.seminfo.semmap=256

    kern.shminfo.shmmax=134217728
    kern.shminfo.shmseg=256

I also tried setting shared_buffers = 16MB, which, while small, discards
several potential configuration issues.

Note that before upgrading to the latest OS version, pg worked fine. Also
relevant, other users of the same release have confirmed not having this issue
and pg working fine for them.

Any pointer?

Thanks,

-- 
Hugo Osvaldo Barrera
A: Because we read from top to bottom, left to right.
Q: Why should I start my reply below the quoted text?

view thread (8+ messages)  latest in thread

Message-ID: <20150212224257.GA16161@athena.barrera.io>
Permalink:  ../20150212224257.GA16161@athena.barrera.io/
Also on:    postgresql.org/message-id/20150212224257.GA16161@athena.barrera.io

 · 

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-bugs@postgresql.org
  Cc: hugo@barrera.io
  Subject: Re: postgresql-server exiting abnormally after an OS upgrade
  In-Reply-To: <20150212224257.GA16161@athena.barrera.io>
  References: <20150212224257.GA16161@athena.barrera.io>

* 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