pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
BUG #14594: postgres dies with fatal error
3+ messages / 3 participants
[nested] [flat]

* BUG #14594: postgres dies with fatal error
@ 2017-03-20 22:26 gnareshdba@gmail.com
  2017-03-21 08:32 ` Re: BUG #14594: postgres dies with fatal error John R Pierce <pierce@hogranch.com>
  2017-03-21 15:02 ` Re: BUG #14594: postgres dies with fatal error Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 2 replies; 3+ messages in thread

From: gnareshdba@gmail.com @ 2017-03-20 22:26 UTC (permalink / raw)
  To: pgsql-bugs

The following bug has been logged on the website:

Bug reference:      14594
Logged by:          naresh g
Email address:      gnareshdba@gmail.com
PostgreSQL version: 9.4.5
Operating system:   RHEL 7.2
Description:        


postgresql (9.4.5) instance restarts with below error during backup times
-

2017-03-19 19:00:21 EDT PANIC: semop(id=152698887) failed: Invalid
argument
2017-03-19 19:00:21 EDT PANIC: semop(id=152698887) failed: Invalid
argument
2017-03-19 19:00:26 EDT FATAL: semctl(152666118, 6, SETVAL, 0) failed:
Invalid argument
2017-03-19 19:00:26 EDT LOG: server process (PID 13090) exited with exit
code 1
2017-03-19 19:00:26 EDT LOG: terminating any other active server processes
2017-03-19 19:00:26 EDT WARNING: terminating connection because of crash of
another server process
2017-03-19 19:00:26 EDT 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.
2017-03-19 19:00:26 EDT HINT: In a moment you should be able to reconnect to
the database and repeat your command.
2017-03-19 19:00:26 EDT WARNING: terminating connection because of crash of
another server process
2017-03-19 19:00:26 EDT 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.
2017-03-19 19:00:26 EDT HINT: In a moment you should be able to reconnect to
the database and repeat your command.
2017-03-19 19:00:26 EDT WARNING: terminating connection because of crash of
another server process
2017-03-19 19:00:26 EDT 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.

Instance crashes and starts automatically.

on RHEL 7.2, and UID set to (id -u postgres)
2011

I have below backups configured -
pg_basebackup --xlog -R -P --gzip --format=t
pg_backup_rotated.sh


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs


^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: BUG #14594: postgres dies with fatal error
  2017-03-20 22:26 BUG #14594: postgres dies with fatal error gnareshdba@gmail.com
@ 2017-03-21 08:32 ` John R Pierce <pierce@hogranch.com>
  1 sibling, 0 replies; 3+ messages in thread

From: John R Pierce @ 2017-03-21 08:32 UTC (permalink / raw)
  To: pgsql-bugs; gnareshdba@gmail.com

On 3/20/2017 3:26 PM, gnareshdba@gmail.com wrote:
>
> postgresql (9.4.5) instance restarts with below error during backup times
> -

is this problem repeatable on more than one server?

9.4.5 is 6 bug updates behind 9.4.11...  does this problem occur with 
9.4.11?


-- 
john r pierce, recycling bits in santa cruz



-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: BUG #14594: postgres dies with fatal error
  2017-03-20 22:26 BUG #14594: postgres dies with fatal error gnareshdba@gmail.com
@ 2017-03-21 15:02 ` Tom Lane <tgl@sss.pgh.pa.us>
  1 sibling, 0 replies; 3+ messages in thread

From: Tom Lane @ 2017-03-21 15:02 UTC (permalink / raw)
  To: gnareshdba@gmail.com; +Cc: pgsql-bugs

gnareshdba@gmail.com writes:
> Operating system:   RHEL 7.2

> postgresql (9.4.5) instance restarts with below error during backup times

> 2017-03-19 19:00:21 EDT PANIC: semop(id=152698887) failed: Invalid argument

You need to prevent systemd from deleting Postgres' semaphores.
See the discussion of RemoveIPC here:

https://wiki.postgresql.org/wiki/Systemd

> on RHEL 7.2, and UID set to (id -u postgres) 2011

That's not the UID typically used on RHEL for Postgres, which is probably
why systemd doesn't know to exempt it from RemoveIPC.

			regards, tom lane


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2017-03-21 15:02 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2017-03-20 22:26 BUG #14594: postgres dies with fatal error gnareshdba@gmail.com
2017-03-21 08:32 ` John R Pierce <pierce@hogranch.com>
2017-03-21 15:02 ` Tom Lane <tgl@sss.pgh.pa.us>

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