BUG #6118: Server doesn't listen

Started by Shahnawaz Shaikhalmost 15 years ago3 messagesbugs
Jump to latest
#1Shahnawaz Shaikh
Shahnawaz.shaikh@accenture.com

The following bug has been logged online:

Bug reference: 6118
Logged by: Shahnawaz Shaikh
Email address: Shahnawaz.shaikh@accenture.com
PostgreSQL version: 8.4
Operating system: Windows server 2003
Description: Server doesn't listen
Details:

When i try to start the PostgreSQL 8.4 server, below issue is encountered,

System error 1069 has occurred.
The service did not start due to a logon failure.
The start command returned an error <2>
Press <return> to continue....

While, when i try to connect the PostgreSQL 8.4 from pgAdmin III i get the
below error on entering password

Server doesn't listen
The server doesn't accept connections: the connection library reports
could not connect to server: Connection refused (0x0000274D/10061) Is the
server running on host "127.0.0.1" and accepting TCP/IP connections on port
5432?
If you encounter this message, please check if the server you're trying to
contact is actually running PostgreSQL on the given port. Test if you have
network connectivity from your client to the server host using ping or
equivalent tools. Is your network / VPN / SSH tunnel / firewall configured
correctly?
For security reasons, PostgreSQL does not listen on all available IP
addresses on the server machine initially. In order to access the server
over the network, you need to enable listening on the address first.
For PostgreSQL servers starting with version 8.0, this is controlled using
the "listen_addresses" parameter in the postgresql.conf file. Here, you can
enter a list of IP addresses the server should listen on, or simply use '*'
to listen on all available IP addresses. For earlier servers (Version 7.3 or
7.4), you'll need to set the "tcpip_socket" parameter to 'true'.
You can use the postgresql.conf editor that is built into pgAdmin III to
edit the postgresql.conf configuration file. After changing this file, you
need to restart the server process to make the setting effective.
If you double-checked your configuration but still get this error message,
it's still unlikely that you encounter a fatal PostgreSQL misbehaviour. You
probably have some low level network connectivity problems (e.g. firewall
configuration). Please check this thoroughly before reporting a bug to the
PostgreSQL community.

My Postgresql.conf has the below settings:
# - Connection Settings -

listen_addresses = '*' # what IP address(es) to listen on;
# comma-separated list of addresses;
# defaults to 'localhost', '*' = all
# (change requires restart)
port = 5432 # (change requires restart)
max_connections = 100 # (change requires restart)

My pg_hba.conf has below configuration:
# TYPE DATABASE USER CIDR-ADDRESS METHOD

# IPv4 local connections:
host all all 127.0.0.1/32 md5
# IPv6 local connections:
#host all all ::1/128 md5

Kindly do the needful.

#2John R Pierce
pierce@hogranch.com
In reply to: Shahnawaz Shaikh (#1)
Re: BUG #6118: Server doesn't listen

On 07/13/11 10:38 PM, Shahnawaz Shaikh wrote:

The following bug has been logged online:

Bug reference: 6118
Logged by: Shahnawaz Shaikh
Email address: Shahnawaz.shaikh@accenture.com
PostgreSQL version: 8.4
Operating system: Windows server 2003
Description: Server doesn't listen
Details:

When i try to start the PostgreSQL 8.4 server, below issue is encountered,

System error 1069 has occurred.
The service did not start due to a logon failure.
The start command returned an error<2>
Press<return> to continue....

While, when i try to connect the PostgreSQL 8.4 from pgAdmin III i get the
below error on entering password

Server doesn't listen

this is not a bug, it appears to be a configuration error, the logon
credentials given in the Windows Service do not match the appropriate
account, so the service isn't starting, since the servce isn't running,
the client can't connect. This sort of issue would best be handled on
the pgsql-general email list....

you need to properly configure the postgresql service in the Windows
Service manager, I believe I would go into Administration Tools -> User
Manager, find the postgres account, set a new reasonably complex
password, then go into the Windows Service manager, find the postgresql
service, and in its properties, on the Log On tab, set the user and
password to match what you set in User Manager. This should have
been done automatically by the windows installer. After you do this,
you should be able to START the service.

note this password you set in User Manager has nothing to do with the
password (if any) for the postgres role you use to log onto the database
server for administration.

--
john r pierce N 37, W 122
santa cruz ca mid-left coast

#3Shahnawaz Shaikh
Shahnawaz.shaikh@accenture.com
In reply to: John R Pierce (#2)
Re: BUG #6118: Server doesn't listen

Hi John,

Thx for your help.

Thanks & Regards,
Shahnawaz Shaikh
Accenture Services Pvt Ltd.
IDC RPSI
Mob: +91 9819 133 926
Off: +22 420 21019
Email: shahnawaz.shaikh@accenture.com
AIM: shahnawaz1shaikh | MSN: shahnawaz.sun

-----Original Message-----
From: John R Pierce [mailto:pierce@hogranch.com]
Sent: Thursday, July 14, 2011 1:09 PM
To: Shaikh, Shahnawaz
Cc: pgsql-bugs@postgresql.org
Subject: Re: [BUGS] BUG #6118: Server doesn't listen

On 07/13/11 10:38 PM, Shahnawaz Shaikh wrote:

The following bug has been logged online:

Bug reference: 6118
Logged by: Shahnawaz Shaikh
Email address: Shahnawaz.shaikh@accenture.com
PostgreSQL version: 8.4
Operating system: Windows server 2003
Description: Server doesn't listen
Details:

When i try to start the PostgreSQL 8.4 server, below issue is encountered,

System error 1069 has occurred.
The service did not start due to a logon failure.
The start command returned an error<2>
Press<return> to continue....

While, when i try to connect the PostgreSQL 8.4 from pgAdmin III i get the
below error on entering password

Server doesn't listen

this is not a bug, it appears to be a configuration error, the logon
credentials given in the Windows Service do not match the appropriate
account, so the service isn't starting, since the servce isn't running,
the client can't connect. This sort of issue would best be handled on
the pgsql-general email list....

you need to properly configure the postgresql service in the Windows
Service manager, I believe I would go into Administration Tools -> User
Manager, find the postgres account, set a new reasonably complex
password, then go into the Windows Service manager, find the postgresql
service, and in its properties, on the Log On tab, set the user and
password to match what you set in User Manager. This should have
been done automatically by the windows installer. After you do this,
you should be able to START the service.

note this password you set in User Manager has nothing to do with the
password (if any) for the postgres role you use to log onto the database
server for administration.

--
john r pierce N 37, W 122
santa cruz ca mid-left coast

This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited.