"No response from the backend" error while connecting to postgres db

This is a multi-part message in MIME format.

------_=_NextPart_001_01CA36A9.E216E6D1
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

Hi All



I am getting error "No response from the backend" while connecting to my
postgres database.



pg_log file logs the below messages :



GMT FATAL: semop(id=3D1310723) failed: Invalid argument

GMT FATAL: semop(id=3D1310723) failed: Invalid argument

GMT FATAL: semctl(1310723, 7, SETVAL, 0) failed: Invalid argument

GMT FATAL: semctl(1310723, 12, SETVAL, 0) failed: Invalid argument

GMT LOG: server process (PID 10776) exited with exit code 1

GMT LOG: terminating any other active server processes

GMT WARNING: terminating connection because of crash of another server
process

GMT DETAIL: The postmaster has commanded this server process to roll
back the current transaction and exit, because another server proc

ess exited abnormally and possibly corrupted shared memory.

GMT HINT: In a moment you should be able to reconnect to the database
and repeat your command.



The above message is printed a number of times and after that it prints



GMT LOG: all server processes terminated; reinitializing

GMT LOG: semctl(1245185, 0, IPC_RMID, ...) failed: Invalid argument

GMT LOG: semctl(1277954, 0, IPC_RMID, ...) failed: Invalid argument

GMT LOG: semctl(1310723, 0, IPC_RMID, ...) failed: Invalid argument

GMT LOG: semctl(1343492, 0, IPC_RMID, ...) failed: Invalid argument

GMT LOG: shmctl(2097152, 0, 0) failed: Invalid argument

GMT LOG: database system was interrupted at 2009-09-15 07:28:40 GMT

GMT LOG: checkpoint record is at A/2311BA94

GMT LOG: redo record is at A/23106A14; undo record is at 0/0; shutdown
FALSE

GMT LOG: next transaction ID: 20175128; next OID: 58650

GMT LOG: next MultiXactId: 1; next MultiXactOffset: 0

GMT LOG: database system was not properly shut down; automatic recovery
in progress

GMT LOG: redo starts at A/23106A14

GMT LOG: record with zero length at A/2317BF50

GMT LOG: redo done at A/2317BF28

GMT FATAL: the database system is starting up

GMT LOG: database system is ready





The postgresql log file doesn't print anything about restarting
postgres. I couldn't get any information from other logs regarding which
process was killed, who killed it and why.



Please help.



Thanks...

Tamanna


------_=_NextPart_001_01CA36A9.E216E6D1
Content-Type: text/html;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns=3D"http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dus-ascii">
<meta name=3DGenerator content=3D"Microsoft Word 11 (filtered medium)">
<style>
<!--
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman";}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:Arial;
color:windowtext;}
[at] page Section1
{size:8.5in 11.0in;
margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
{page:Section1;}
-->
</style>

</head>

<body lang=3DEN-US link=3Dblue vlink=3Dpurple>

<div class=3DSection1>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Hi All<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>I am getting error “No response from the =
backend”
while connecting to my postgres database.<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>pg_log file logs the below messages =
:<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>GMT FATAL:  semop(id=3D1310723) failed: Invalid =
argument<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>GMT FATAL:  semop(id=3D1310723) failed: Invalid =
argument<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>GMT FATAL:  semctl(1310723, 7, SETVAL, 0) =
failed:
Invalid argument<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>GMT FATAL:  semctl(1310723, 12, SETVAL, 0) =
failed:
Invalid argument<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>GMT LOG:  server process (PID 10776) exited with =
exit
code 1<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>GMT LOG:  terminating any other active server =
processes<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>GMT WARNING:  terminating connection because of =
crash
of another server process<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>GMT DETAIL:  The postmaster has commanded this =
server
process to roll back the current transaction and exit, because another =
server
proc<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>ess exited abnormally and possibly corrupted shared =
memory.<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>GMT HINT:  In a moment you should be able to =
reconnect
to the database and repeat your command.<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>The above message is printed a number of times and =
after
that it prints <o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>GMT LOG:  all server processes terminated;
reinitializing<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>GMT LOG:  semctl(1245185, 0, IPC_RMID, ...) =
failed:
Invalid argument<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>GMT LOG:  semctl(1277954, 0, IPC_RMID, ...) =
failed:
Invalid argument<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>GMT LOG:  semctl(1310723, 0, IPC_RMID, ...) =
failed:
Invalid argument<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>GMT LOG:  semctl(1343492, 0, IPC_RMID, ...) =
failed:
Invalid argument<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>GMT LOG:  shmctl(2097152, 0, 0) failed: Invalid
argument<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>GMT LOG:  database system was interrupted at =
2009-09-15
07:28:40 GMT<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>GMT LOG:  checkpoint record is at =
A/2311BA94<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>GMT LOG:  redo record is at A/23106A14; undo =
record is
at 0/0; shutdown FALSE<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>GMT LOG:  next transaction ID: 20175128; next =
OID:
58650<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>GMT LOG:  next MultiXactId: 1; next =
MultiXactOffset: 0<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>GMT LOG:  database system was not properly shut =
down;
automatic recovery in progress<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>GMT LOG:  redo starts at =
A/23106A14<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>GMT LOG:  record with zero length at =
A/2317BF50<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>GMT LOG:  redo done at =
A/2317BF28<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>GMT FATAL:  the database system is starting =
up<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>GMT LOG:  database system is ready =
<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>The postgresql log file doesn’t print anything =
about restarting
postgres. I couldn’t get any information from other logs regarding =
which
process was killed, who killed it and why.<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Please help.<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Thanks…<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Tamanna<o:p></o:p></span></font></p>

</div>

</body>

</html>

------_=_NextPart_001_01CA36A9.E216E6D1--
tamanna madaan [ Mi, 16 September 2009 10:44 ] [ ID #2016165 ]

Re: "No response from the backend" error while connecting to postgres db

"tamanna madaan" <tamanna.madan [at] globallogic.com> writes:
> pg_log file logs the below messages :
> GMT FATAL: semop(id=1310723) failed: Invalid argument
> GMT FATAL: semctl(1310723, 7, SETVAL, 0) failed: Invalid argument
> GMT LOG: semctl(1245185, 0, IPC_RMID, ...) failed: Invalid argument
> GMT LOG: shmctl(2097152, 0, 0) failed: Invalid argument

It sure looks like something tried to kill off all your SysV resources
(semaphores and shared memory). Look around and find out if anyone
was doing something with ipcrm, and take away their root privileges
if so.

regards, tom lane

--
Sent via pgsql-odbc mailing list (pgsql-odbc [at] postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-odbc
Tom Lane [ Do, 17 September 2009 16:14 ] [ ID #2016168 ]
Datenbanken » gmane.comp.db.postgresql.odbc » "No response from the backend" error while connecting to postgres db

Vorheriges Thema: SQLNumResultCol set to 0 for query using common table expression
Nächstes Thema: Reg. Text search.