pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Restore is failing
5+ messages / 4 participants
[nested] [flat]

* Restore is failing
@ 2020-02-05 08:24 Sonam Sharma <sonams1209@gmail.com>
  2020-02-05 08:31 ` Re: Restore is failing Rob Sargent <robjsargent@gmail.com>
  2020-02-05 10:40 ` Re: Restore is failing Peter J. Holzer <hjp-pgsql@hjp.at>
  0 siblings, 2 replies; 5+ messages in thread

From: Sonam Sharma @ 2020-02-05 08:24 UTC (permalink / raw)
  To: pgsql-general

I am copying schema data to qa box from prod.its failing and giving below
error :

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.

server closed the connection unexpectedly.


Can some one please help. Work_mem is set to 8gb.


Thanks , Sonam

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

* Re: Restore is failing
  2020-02-05 08:24 Restore is failing Sonam Sharma <sonams1209@gmail.com>
@ 2020-02-05 08:31 ` Rob Sargent <robjsargent@gmail.com>
  2020-02-05 08:47   ` Re: Restore is failing Sonam Sharma <sonams1209@gmail.com>
  1 sibling, 1 reply; 5+ messages in thread

From: Rob Sargent @ 2020-02-05 08:31 UTC (permalink / raw)
  To: pgsql-general@lists.postgresql.org



On 2/5/20 1:24 AM, Sonam Sharma wrote:
> I am copying schema data to qa box from prod.its failing and giving 
> below error :
>
> 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.
>
> server closed the connection unexpectedly.
>
>
> Can some one please help. Work_mem is set to 8gb.
>
>
> Thanks , Sonam
>
What version of postgres?
Method of copy?
Identify which server process is failing, what's the error there.

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

* Re: Restore is failing
  2020-02-05 08:24 Restore is failing Sonam Sharma <sonams1209@gmail.com>
  2020-02-05 08:31 ` Re: Restore is failing Rob Sargent <robjsargent@gmail.com>
@ 2020-02-05 08:47   ` Sonam Sharma <sonams1209@gmail.com>
  2020-02-05 15:43     ` Re: Restore is failing Adrian Klaver <adrian.klaver@aklaver.com>
  0 siblings, 1 reply; 5+ messages in thread

From: Sonam Sharma @ 2020-02-05 08:47 UTC (permalink / raw)
  To: Rob Sargent <robjsargent@gmail.com>; +Cc: pgsql-general@lists.postgresql.org

Version is 11.2 .. took schema dump using pg_dump -d -n (schma) / gunzip
..

The error I am getting while running restore.

On Wed, Feb 5, 2020, 2:03 PM Rob Sargent <robjsargent@gmail.com> wrote:

>
>
> On 2/5/20 1:24 AM, Sonam Sharma wrote:
>
> I am copying schema data to qa box from prod.its failing and giving below
> error :
>
> 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.
>
> server closed the connection unexpectedly.
>
>
> Can some one please help. Work_mem is set to 8gb.
>
>
> Thanks , Sonam
>
> What version of postgres?
> Method of copy?
> Identify which server process is failing, what's the error there.
>
>

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

* Re: Restore is failing
  2020-02-05 08:24 Restore is failing Sonam Sharma <sonams1209@gmail.com>
  2020-02-05 08:31 ` Re: Restore is failing Rob Sargent <robjsargent@gmail.com>
  2020-02-05 08:47   ` Re: Restore is failing Sonam Sharma <sonams1209@gmail.com>
@ 2020-02-05 15:43     ` Adrian Klaver <adrian.klaver@aklaver.com>
  0 siblings, 0 replies; 5+ messages in thread

From: Adrian Klaver @ 2020-02-05 15:43 UTC (permalink / raw)
  To: Sonam Sharma <sonams1209@gmail.com>; Rob Sargent <robjsargent@gmail.com>; +Cc: pgsql-general@lists.postgresql.org

On 2/5/20 12:47 AM, Sonam Sharma wrote:
> Version is 11.2 .. took schema dump using pg_dump -d -n (schma) / gunzip ..

So the above was a plain text dump that you then piped through 
gunzip(?)? That does not make sense.
> 
> The error I am getting while running restore.

If it is a plain text dump you would need to use psql not pg_restore.

> 
> On Wed, Feb 5, 2020, 2:03 PM Rob Sargent <robjsargent@gmail.com 
> <mailto:robjsargent@gmail.com>> wrote:
> 
> 
> 
>     On 2/5/20 1:24 AM, Sonam Sharma wrote:
>>     I am copying schema data to qa box from prod.its failing and
>>     giving below error :
>>
>>     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.
>>
>>     server closed the connection unexpectedly.
>>
>>
>>     Can some one please help. Work_mem is set to 8gb.
>>
>>
>>     Thanks , Sonam
>>
>     What version of postgres?
>     Method of copy?
>     Identify which server process is failing, what's the error there.
> 


-- 
Adrian Klaver
adrian.klaver@aklaver.com





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

* Re: Restore is failing
  2020-02-05 08:24 Restore is failing Sonam Sharma <sonams1209@gmail.com>
@ 2020-02-05 10:40 ` Peter J. Holzer <hjp-pgsql@hjp.at>
  1 sibling, 0 replies; 5+ messages in thread

From: Peter J. Holzer @ 2020-02-05 10:40 UTC (permalink / raw)
  To: pgsql-general@lists.postgresql.org

On 2020-02-05 13:54:56 +0530, Sonam Sharma wrote:
> I am copying schema data to qa box from prod.its failing and giving below error
> :
> 
> 
> 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.

As the message states, the problem is with another server process. You
need to identify that process and why it crashed. Check the postgres
server log. It should contain an error message. You might also want to
check the syslog (on Linux or other Unixes) or equivalent for system
errors (e.g. out of memory, disk errors, etc.)

        hp

-- 
   _  | Peter J. Holzer    | Story must make more sense than reality.
|_|_) |                    |
| |   | hjp@hjp.at         |    -- Charles Stross, "Creative writing
__/   | http://www.hjp.at/ |       challenge!"

Attachments:

  signature.asc (application/pgp-signature, 832B) download

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


end of thread, other threads:[~2020-02-05 15:43 UTC | newest]

Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2020-02-05 08:24 Restore is failing Sonam Sharma <sonams1209@gmail.com>
2020-02-05 08:31 ` Rob Sargent <robjsargent@gmail.com>
2020-02-05 08:47   ` Sonam Sharma <sonams1209@gmail.com>
2020-02-05 15:43     ` Adrian Klaver <adrian.klaver@aklaver.com>
2020-02-05 10:40 ` Peter J. Holzer <hjp-pgsql@hjp.at>

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