Re: Postmaster failed to start and/or accept connexion

Lists: Postg메이저 토토 사이트SQL :
From: "Laurent Ballester" <postgresql(dot)ballester(at)wanadoo(dot)fr>
To: <pgsql-hackers-win32(at)postgresql(dot)org>
Subject: Postmaster failed to start and/or accept connexion
Date: 2004-02-24 15:01:26
Message-ID: 00bc01c3fae7d484f0$d58f3351@fleche
Views: Raw Message | PostgreSQL : | Download mbox | Resend email
Lists: pgsql-hackers-win32

Hello,

I downloaded the nightly snapshot of 2004-23-02, and compiled well with
MinGW/MSYS current release version. I have just to flex 'manually'
psqlscan.l file to be allow to finish compilation and link.

Then, through windows console, I launch initdb which run without any errors.
PGDATA is set up correctly. Unfortunately, postmaster launch with -I option
didn't start correctly. The error was "select() failed in statistics
collector ", and seems to not accept any connexion.
For example createdb mydb command failed with error "could not connect to
database template1".

Did you modify or have a specific win32 postgresql.conf file to succeed to
run postgresql on Windows or maybe I forgot something to do.

I made the test on Windows XP prof with SP1

Regards

Laurent Ballester


From: Joerg Hessdoerfer <Joerg(dot)Hessdoerfer(at)sea-gmbh(dot)com>
To: "Laurent Ballester" <postgresql(dot)ballester(at)wanadoo(dot)fr>
Cc: <pgsql-hackers-win32(at)postgresql(dot)org>
Subject: Re: Postmaster failed to start and/or accept connexion
Date: 2004-02-25 08:09:17
Message-ID: 200402250909.17485.Joerg.Hessdoerfer@sea-gmbh.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers-win32

Hi,

On Tuesday 24 February 2004 16:01, you wrote:
> Hello,
>
> I downloaded the nightly snapshot of 2004-23-02, and compiled well with
> MinGW/MSYS current release version. I have just to flex 'manually'
> psqlscan.l file to be allow to finish compilation and link.
>
> Then, through windows console, I launch initdb which run without any
> errors. PGDATA is set up correctly. Unfortunately, postmaster launch with
> -I option didn't start correctly. The error was "select() failed in
> statistics collector ", and seems to not accept any connexion.
> For example createdb mydb command failed with error "could not connect to
> database template1".
>

You need to specify '-i' (not '-I'), then it works (for me). You could also do
this in postgresql.conf, IMHO.

Do you also see the backends claiming more and more memory until crashing? I
can't yet put my fingers on the reason.

Greetings,
Joerg
--
Leading SW developer - S.E.A GmbH
Mail: joerg(dot)hessdoerfer(at)sea-gmbh(dot)com
WWW: http://www.sea-gmbh.com


From: "Laurent Ballester" <postgresql(dot)ballester(at)wanadoo(dot)fr>
To: "Joerg Hessdoerfer" <Joerg(dot)Hessdoerfer(at)sea-gmbh(dot)com>
Cc: <pgsql-hackers-win32(at)postgresql(dot)org>
Subject: Re: Postmaster failed to start and/or accept connexion
Date: 2004-02-25 10:56:41
Message-ID: PostgreSQL : Re : Postmaster가 젠 토토 및/또는
Views: Raw Message | PostgreSQL : | Download mbox | Resend email
Lists: Postg스포츠 토토SQL : Postg스포츠

> You need to specify '-i' (not '-I'), then it works (for me). You could
also do
> this in postgresql.conf, IMHO.
>
> Do you also see the backends claiming more and more memory until crashing?
I
> can't yet put my fingers on the reason.
>

Hi,

First, thank you for your help.

I launch postmaster with -i, it was a typo error in my previous mail.

To summarize, I have two different errors types:

1) postmaster crash at start up because it "could not attach to proper
memory at fixed address: shmget(key=5432001, addr=014D0000) failed: No such
file or directory"

I update postgresql.conf with max_connections = 5 and now this error does
not appear too much.

2) If I launch postmaster again, it start and listen to port 5432, I
have only a warning "select() failed in statistics collector" before
"database system is ready". After a quick reading of source code, it doesn't
seem too important.

On a client side, "psql template1" or "createdb mydb" failed to connect to
postmaster. The error was "server closed the connection unexpectedly..."
while the server said "could not receive data from client: No such file or
directory, incomplete startup packet".

I continue to investigate.

Regards,

Laurent Ballester


From: Joerg Hessdoerfer <Joerg(dot)Hessdoerfer(at)sea-gmbh(dot)com>
To: pgsql-hackers-win32(at)postgresql(dot)org
Cc: "Laurent Ballester" <postgresql(dot)ballester(at)wanadoo(dot)fr>
Subject: Re: Postmaster failed to start and/or accept connexion
Date: 2004-02-25 11:22:02
Message-ID: 200402251222.02196.Joerg.Hessdoerfer@sea-gmbh.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: Postg메이저 토토 사이트SQL :

Hi,

On Wednesday 25 February 2004 11:56, Laurent Ballester wrote:
[...]
>
> To summarize, I have two different errors types:
>
>
>
> 1) postmaster crash at start up because it "could not attach to proper
> memory at fixed address: shmget(key=5432001, addr=014D0000) failed: No such
> file or directory"
>
>
>
> I update postgresql.conf with max_connections = 5 and now this error does
> not appear too much.
>
>
>
> 2) If I launch postmaster again, it start and listen to port 5432, I
> have only a warning "select() failed in statistics collector" before
> "database system is ready". After a quick reading of source code, it
> doesn't seem too important.
>
>
>
> On a client side, "psql template1" or "createdb mydb" failed to connect to
> postmaster. The error was "server closed the connection unexpectedly..."
> while the server said "could not receive data from client: No such file or
> directory, incomplete startup packet".
>
>
>
> I continue to investigate.
>

Well, I don't see those errors at all.
Especially the 'shmget' error seems strange. I had this one until I started
postmaster with -i (and the select()... error).
My max_connections is still 500.

Furthermore I called 'createdb -h localhost dbname' (and 'psql -h ...'), that
worked fine.

Greetings,
Joerg
--
Leading SW developer - S.E.A GmbH
Mail: joerg(dot)hessdoerfer(at)sea-gmbh(dot)com
WWW: http://www.sea-gmbh.com