Could not Start Server (could not create any TCP/IP sockets) - Mailing list pgsql-general

From Ms swati chande
Subject Could not Start Server (could not create any TCP/IP sockets)
Date
Msg-id 285976.67657.qm@web112611.mail.gq1.yahoo.com
Whole thread Raw
List pgsql-general
Hi,

I built and installed Postgresql 8.4.0 from source using Visual Studio 2005 on Windows XP.
All build and installation steps executed successfully as mentioned in the Postgresql Documentation, but server could not be started.
Given below is the detail of the problem I am facing.

From user Postgres,
        initdb -D c:\postgresql\Data1
was run with success

and then
       pg_ctl -D c:\postgresql\Data1 start -l logfile

This reported the following entries in the logfile:
       LOG:  could not bind IPv4 socket: No error
       HINT:  Is another postmaster already running on port 5432? If not, wait a few seconds  and retry.
       WARNING:  could not create listen socket for "localhost"
       FATAL:  could not create any TCP/IP sockets

The file pg_hba.conf is as follows:
       # TYPE  DATABASE    USER        CIDR-ADDRESS          METHOD

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

and postgresql.conf has the following:

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

I have also tried writing the host address (ipconfig) for listen_addresses and CIDR-address but it did not work.

Please help in identifying the problem.

Regards
Swati



pgsql-general by date:

Previous
From: Viktor Rosenfeld
Date:
Subject: How can I find out the space used on disk for a table/index
Next
From: Scott Marlowe
Date:
Subject: Re: Postgresql databases as a web service