Thread: DB terminating

DB terminating

From
Scott Felt
Date:
Hello.  I have been having an issue with a database.  The logs consistently
show this:

2009-11-17 16:03:55 ESTLOG:  00000: server process (PID 9644) exited with
exit code 128
2009-11-17 16:03:55 ESTLOCATION:  LogChildExit,
.\src\backend\postmaster\postmaster.c:2705
2009-11-17 16:03:55 ESTLOG:  00000: terminating any other active server
processes
2009-11-17 16:03:55 ESTLOCATION:  HandleChildCrash,
.\src\backend\postmaster\postmaster.c:2552
2009-11-17 16:03:55 ESTWARNING:  57P02: terminating connection because of
crash of another server process
2009-11-17 16:03:55 ESTDETAIL:  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.
2009-11-17 16:03:55 ESTHINT:  In a moment you should be able to reconnect to
the database and repeat your command.
2009-11-17 16:03:55 ESTLOCATION:  quickdie,
.\src\backend\tcop\postgres.c:2495
2009-11-17 16:03:55 ESTWARNING:  57P02: terminating connection because of
crash of another server process
2009-11-17 16:03:55 ESTDETAIL:  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.
2009-11-17 16:03:55 ESTHINT:  In a moment you should be able to reconnect to
the database and repeat your command.
2009-11-17 16:03:55 ESTLOCATION:  quickdie,
.\src\backend\tcop\postgres.c:2495
2009-11-17 16:03:55 ESTWARNING:  57P02: terminating connection because of
crash of another server process
2009-11-17 16:03:55 ESTDETAIL:  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.
2009-11-17 16:03:55 ESTHINT:  In a moment you should be able to reconnect to
the database and repeat your command.
2009-11-17 16:03:55 ESTLOCATION:  quickdie,
.\src\backend\tcop\postgres.c:2495
2009-11-17 16:03:55 ESTWARNING:  57P02: terminating connection because of
crash of another server process
2009-11-17 16:03:55 ESTDETAIL:  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.
2009-11-17 16:03:55 ESTHINT:  In a moment you should be able to reconnect to
the database and repeat your command.
2009-11-17 16:03:55 ESTLOCATION:  quickdie,
.\src\backend\tcop\postgres.c:2495
2009-11-17 16:03:55 ESTWARNING:  57P02: terminating connection because of
crash of another server process
2009-11-17 16:03:55 ESTDETAIL:  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.
2009-11-17 16:03:55 ESTHINT:  In a moment you should be able to reconnect to
the database and repeat your command.
2009-11-17 16:03:55 ESTLOCATION:  quickdie,
.\src\backend\tcop\postgres.c:2495
2009-11-17 16:03:55 ESTWARNING:  57P02: terminating connection because of
crash of another server process
2009-11-17 16:03:55 ESTDETAIL:  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.
2009-11-17 16:03:55 ESTHINT:  In a moment you should be able to reconnect to
the database and repeat your command.
2009-11-17 16:03:55 ESTLOCATION:  quickdie,
.\src\backend\tcop\postgres.c:2495
2009-11-17 16:03:55 ESTWARNING:  57P02: terminating connection because of
crash of another server process
2009-11-17 16:03:55 ESTDETAIL:  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.
2009-11-17 16:03:55 ESTHINT:  In a moment you should be able to reconnect to
the database and repeat your command.
2009-11-17 16:03:55 ESTLOCATION:  quickdie,
.\src\backend\tcop\postgres.c:2495
2009-11-17 16:03:55 ESTWARNING:  57P02: terminating connection because of
crash of another server process
2009-11-17 16:03:55 ESTDETAIL:  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.
2009-11-17 16:03:55 ESTHINT:  In a moment you should be able to reconnect to
the database and repeat your command.
2009-11-17 16:03:55 ESTLOCATION:  quickdie,
.\src\backend\tcop\postgres.c:2495
2009-11-17 16:03:55 ESTWARNING:  57P02: terminating connection because of
crash of another server process
2009-11-17 16:03:55 ESTDETAIL:  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.
2009-11-17 16:03:55 ESTHINT:  In a moment you should be able to reconnect to
the database and repeat your command.
2009-11-17 16:03:55 ESTLOCATION:  quickdie,
.\src\backend\tcop\postgres.c:2495
2009-11-17 16:03:55 ESTWARNING:  57P02: terminating connection because of
crash of another server process
2009-11-17 16:03:55 ESTDETAIL:  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.
2009-11-17 16:03:55 ESTHINT:  In a moment you should be able to reconnect to
the database and repeat your command.
2009-11-17 16:03:55 ESTLOCATION:  quickdie,
.\src\backend\tcop\postgres.c:2495
2009-11-17 16:03:57 ESTLOG:  00000: all server processes terminated;
reinitializing
2009-11-17 16:03:57 ESTLOCATION:  PostmasterStateMachine,
.\src\backend\postmaster\postmaster.c:2910
2009-11-17 16:04:07 ESTFATAL:  XX000: pre-existing shared memory block is
still in use
2009-11-17 16:04:07 ESTHINT:  Check if there are any old server processes
still running, and terminate them.
2009-11-17 16:04:07 ESTLOCATION:  PGSharedMemoryCreate,
.\src\backend\port\win32_shmem.c:185
2009-11-17 16:04:08 ESTDEBUG:  00000: logger shutting down
2009-11-17 16:04:08 ESTLOCATION:  SysLoggerMain,
.\src\backend\postmaster\syslogger.c:434


Prior to this, the logs show nothing other than AutoVacWorkerMain
activities.  This database is installed on a Windows OS.  The version of
PostgreSQL is 8.4.1 (which I was hoping had a fix since I saw references to
a bug fix for a shared memory problem).  Does anybody have any suggestions
on how to determine what causes these shutdowns?  Should I be considering
dialing up the shared_buffers size in the config file?  Currently it is set
at 32mb.

Thanks for any help.

--
View this message in context: http://old.nabble.com/DB-terminating-tp26412532p26412532.html
Sent from the PostgreSQL - general mailing list archive at Nabble.com.


Re: DB terminating

From
Tom Lane
Date:
Scott Felt <scott.felt@gmail.com> writes:
> Hello.  I have been having an issue with a database.  The logs consistently
> show this:

> 2009-11-17 16:03:55 ESTLOG:  00000: server process (PID 9644) exited with
> exit code 128

This looks like a fairly garden-variety backend crash, but with only
this much information there's no way to identify the cause.  You might
try setting log_statements = all and see if there's any consistency in
what the process was doing just before it crashed.  (You'd need to add
PID to log_line_prefix so you could associate the log entries with the
crash report.)

            regards, tom lane

Re: DB terminating

From
Scott Felt
Date:
Thanks, Tom.  I will alter the config file to give greater details as you
suggest.  Perhaps that will be sufficiently informative to point me toward a
fix.  Thank you.

--Scott


Tom Lane-2 wrote:
>
> Scott Felt <scott.felt@gmail.com> writes:
>> Hello.  I have been having an issue with a database.  The logs
>> consistently
>> show this:
>
>> 2009-11-17 16:03:55 ESTLOG:  00000: server process (PID 9644) exited with
>> exit code 128
>
> This looks like a fairly garden-variety backend crash, but with only
> this much information there's no way to identify the cause.  You might
> try setting log_statements = all and see if there's any consistency in
> what the process was doing just before it crashed.  (You'd need to add
> PID to log_line_prefix so you could associate the log entries with the
> crash report.)
>
>             regards, tom lane
>
> --
> Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-general
>
>

--
View this message in context: http://old.nabble.com/DB-terminating-tp26412532p26413707.html
Sent from the PostgreSQL - general mailing list archive at Nabble.com.


Re: DB terminating

From
Scott Felt
Date:
Thanks.  I altered the log log_statements and added the PID to the
log_line_prefix.  I have uploaded the log.  Forgive me if I'm missing
something obvious here, but I do not see that PID referenced elsewhere.  Is
there a a "crash report" somewhere or is that just these logs?

Thank you.
Scott



Tom Lane-2 wrote:
>
> Scott Felt <scott.felt@gmail.com> writes:
>> Hello.  I have been having an issue with a database.  The logs
>> consistently
>> show this:
>
>> 2009-11-17 16:03:55 ESTLOG:  00000: server process (PID 9644) exited with
>> exit code 128
>
> This looks like a fairly garden-variety backend crash, but with only
> this much information there's no way to identify the cause.  You might
> try setting log_statements = all and see if there's any consistency in
> what the process was doing just before it crashed.  (You'd need to add
> PID to log_line_prefix so you could associate the log entries with the
> crash report.)
>
>             regards, tom lane
>
> --
> Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-general
>
>

--
View this message in context: http://old.nabble.com/DB-terminating-tp26412532p26630488.html
Sent from the PostgreSQL - general mailing list archive at Nabble.com.


Re: DB terminating

From
Scott Felt
Date:
Sorry.  Don't think I got that uploaded on the last message.



Scott Felt wrote:
>
> Thanks, Tom.  I will alter the config file to give greater details as you
> suggest.  Perhaps that will be sufficiently informative to point me toward
> a fix.  Thank you.
>
> --Scott
>
>
> Tom Lane-2 wrote:
>>
>> Scott Felt <scott.felt@gmail.com> writes:
>>> Hello.  I have been having an issue with a database.  The logs
>>> consistently
>>> show this:
>>
>>> 2009-11-17 16:03:55 ESTLOG:  00000: server process (PID 9644) exited
>>> with
>>> exit code 128
>>
>> This looks like a fairly garden-variety backend crash, but with only
>> this much information there's no way to identify the cause.  You might
>> try setting log_statements = all and see if there's any consistency in
>> what the process was doing just before it crashed.  (You'd need to add
>> PID to log_line_prefix so you could associate the log entries with the
>> crash report.)
>>
>>             regards, tom lane
>>
>> --
>> Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
>> To make changes to your subscription:
>> http://www.postgresql.org/mailpref/pgsql-general
>>
>>
>
>
http://old.nabble.com/file/p26630517/postgresql-2009-12-01_195253.log
postgresql-2009-12-01_195253.log
--
View this message in context: http://old.nabble.com/DB-terminating-tp26412532p26630517.html
Sent from the PostgreSQL - general mailing list archive at Nabble.com.