pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@alvh.no-ip.org>
To: Mike Yeap <wkk1020@gmail.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: Postgres PANIC when it could not open file in pg_logical/snapshots directory
Date: Mon, 4 Oct 2021 16:24:10 -0300
Message-ID: <202110041924.rrlgg7yoxncb@alvherre.pgsql> (raw)
In-Reply-To: <CAMVYW_4QhjZ-19Xpr2x1B19soRCNu1BXHM8g1mOnAVtd5VViDw@mail.gmail.com>

On 2021-Jun-22, Mike Yeap wrote:

> I have a Postgres version 11.11 configured with both physical replication
> slots (for repmgr) as well as some logical replication slots (for AWS
> Database Migration Service (DMS)). This morning, the server went panic with
> the following messages found in the log file:
> 
> 2021-06-22 04:56:35.314 +08 [PID=19457 application="[unknown]"
> user_name=dms database=** host(port)=**(48360)] PANIC:  could not open file
> "pg_logical/snapshots/969-FD606138.snap": Operation not permitted

Hmm, isn't this strange?  open(3) is not documented to return EPERM,
which is what this error string maps to.

You should definitely not mess with the PG data dir; if you do, it's
your problem when things break.  In this case you may not be messing
with the data dir yourself, but perhaps you kernel is buggy or you have
some security module that prevents the operation from working properly,
or something.
 
-- 
Álvaro Herrera              Valdivia, Chile  —  https://www.EnterpriseDB.com/





view thread (5+ messages)

Message-ID: <202110041924.rrlgg7yoxncb@alvherre.pgsql>
Permalink:  ../202110041924.rrlgg7yoxncb@alvherre.pgsql/
Also on:    postgresql.org/message-id/202110041924.rrlgg7yoxncb@alvherre.pgsql

 · 

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: alvherre@alvh.no-ip.org, wkk1020@gmail.com
  Subject: Re: Postgres PANIC when it could not open file in pg_logical/snapshots directory
  In-Reply-To: <202110041924.rrlgg7yoxncb@alvherre.pgsql>
  References: <CAMVYW_4QhjZ-19Xpr2x1B19soRCNu1BXHM8g1mOnAVtd5VViDw@mail.gmail.com> <202110041924.rrlgg7yoxncb@alvherre.pgsql>

* 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