Re: server process exited with code 1 - Mailing list pgsql-general

From Eric Hill
Subject Re: server process exited with code 1
Date
Msg-id BL0PR05MB50121ABF50E8171C669E171BF0459@BL0PR05MB5012.namprd05.prod.outlook.com
Whole thread Raw
In response to Re: server process exited with code 1  (Julien Rouhaud <rjuju123@gmail.com>)
List pgsql-general

Hey, Julien,

 

Yes, I have looked at those instructions and followed them to a T.  My data directory is C:\Program Files\PostgreSQL\11\data as confirmed by SHOW data_directory;, and I gave the postgres, pgsqladmin, and NETWORK SERVICE accounts (the latter is the account that is running the services) Full Control on the crashdumps directory I created under data.  No crash dumps have yet appeared in that folder.  I’m not sure how to convince crashdumps to show up.  Maybe with all the antivirus stuff turned off it will help?

 

Thanks!

 

Eric

 

From: Julien Rouhaud <rjuju123@gmail.com>
Date: Friday, April 23, 2021 at 12:21 PM
To: Eric Hill <Eric.Hill@jmp.com>
Cc: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: server process exited with code 1

EXTERNAL

On Fri, Apr 23, 2021 at 03:58:32PM +0000, Eric Hill wrote:
> Hey,
>
> We are experiencing a periodic PostgreSQL crash. It happens overnight when automated processes are updating content on our website.  My PostgreSQL version information is:
>
> PostgreSQL 11.10, compiled by Visual C++ build 1914, 64-bit
>
> It is running on Windows Server 2019 Standard.  We were having this same crash on PostgreSQL 9.6, also running on Windows Server, I believe 2012, before a recent upgrade.  Here is the relevant part of the log:
>
> 2021-04-23 03:20:57 EDT [5324]: LOG:  connection received: host=10.120.80.162 port=54017
> 2021-04-23 03:20:57 EDT [5324]: LOG:  connection authorized: user=dba_webjmp database=webjmp
> 2021-04-23 03:21:00 EDT [15776]: LOG:  server process (PID 14820) exited with exit code 1
> 2021-04-23 03:21:00 EDT [15776]: DETAIL:  Failed process was running: SET client_min_messages TO warning;SET TIME ZONE INTERVAL '+00:00' HOUR TO MINUTE;
> 2021-04-23 03:21:00 EDT [15776]: LOG:  terminating any other active server processes
> 2021-04-23 03:21:00 EDT [5324]: WARNING:  terminating connection because of crash of another server process
> 2021-04-23 03:21:00 EDT [5324]: 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.
> 2021-04-23 03:21:00 EDT [5324]: HINT:  In a moment you should be able to reconnect to the database and repeat your command.
>
> I would really like for PostgreSQL to produce a crashdump of this crash but one is not produced.  I made a crashdumps folder in the data directory and gave it every permission I could think of, but no joy there.

The mentioned query works just fine for me, so I doubt we could help without a
core dump.  Did you check the instructions at
https://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwiki.postgresql.org%2Fwiki%2FGetting_a_stack_trace_of_a_running_PostgreSQL_backend_on_Windows%23Using_crash_dumps_to_debug_random_and_unpredictable_backend_crashes&amp;data=04%7C01%7CEric.Hill%40jmp.com%7Cddb46609d2e148820b3908d90673e86a%7Cb1c14d5c362545b3a4309552373a0c2f%7C0%7C0%7C637547917153130030%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=VJTI%2FHtgXN6u5F6k5YYcImSuS3MwQe%2BIDdLy7CQLo7g%3D&amp;reserved=0?

pgsql-general by date:

Previous
From: Mitar
Date:
Subject: Re: Why is writing JSONB faster than just JSON?
Next
From: Eric Hill
Date:
Subject: Re: server process exited with code 1