Re: PostgreSQL doesn't accept connections when Windows

From: George Weaver <gweaver(at)shaw(dot)ca>
To: "Thomas H(dot)" <me(at)alternize(dot)com>, Jim Nasby <decibel(at)decibel(dot)org>, Harald Armin Massa <haraldarminmassa(at)gmail(dot)com>, Tony Caduto <tony_caduto(at)amsoftwaredesign(dot)com>, "Joshua D(dot) Drake" <jd(at)commandprompt(dot)com>
Cc: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: PostgreSQL doesn't accept connections when Windows
Date: 2006-12-15 15:33:38
Message-ID: 008601c7205e$6549f9b0$6400a8c0@Dell4500
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

----- Original Message From: "Thomas H.", etc.

Thank you all for your replies and suggestions. I apologize for not
replying earlier but the client is located several hours away and I have not
been back to the site until yesterday.

Here's an update of the situation (PostgreSQL 8.1.5 on Windows 2000 Server
system).

The server is not in a domain, but I followed Thomas' suggestion just the
same (>"make sure you manually set "log on as a service" priviledges on the
domain controller for the local postgres user").

Upon reboot of the Windows 2000 server:

1. PostgeSQL service starts without problem.
2. Server is listening on port 5435 as per postgresql.conf file
(verified by netstat).
3. No other application using port 5435.
3. (PostgreSQL 7.3 version listening on port 5432 - no problems)
4. Attempts to connect to PostgreSQL 8.1 result in the following
error message:

C:\Program Files\PostgreSQL\8.1\bin>psql -h name.local -p 5435
feb01-06-01
psql: server closed the connection unexpectedly
This probably means the server terminated abnormally
before or while processing the request.

5. There are no related entries in pg_log
6. The following error is in the Windows Event log:

Event Type: Error
Event Source: PostgreSQL
Event Category: None
Event ID: 0
Date: 14/12/2006
Time: 1:06:13 PM
User: N/A
Computer: SERVER
Description:
FATAL: could not reattach to shared memory (key=5435001,
addr=01590000): Invalid argument

7. If PostgreSQL Service is restarted via Control Panel >
Administrative Tools > Component Services, everything runs normally and
there are no problems connecting.

Any further thoughts?

Thanks in advance,
George

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Andre Lebedev 2006-12-15 15:50:22 Authenticating with x509 certificate
Previous Message Tom Lane 2006-12-15 15:30:59 Re: Needed files - embedded postgres