I’m getting a « connection refused » during the « cinstall initdb » part of the install.  Does anyone have an idea why?

 

Here is the traceback:

 

*** Start ***

 

-bash-3.00$ postmaster -D /usr/local/pgsql/data > logfile 2>&1 &
[1] 16618
-bash-3.00$ psql test
Bienvenue dans psql 7.4.16, l'interface interactive de PostgreSQL.

Tapez:  \copyright pour les termes de distribution
        \h pour l'aide-mémoire sur les commandes SQL
        \? pour l'aide-mémoire sur les commandes internes
        \g ou terminez avec un point-virgule pour exécuter une requête
        \q pour quitter

test=# \q
-bash-3.00$ /sbin/cinstall initdb
Nov 23
12:53:51 Could not get DB connection!
Nov 23 12:5351 : EXCEPTION in /usr/share/current/db/postgres/postgres.py, getConnection(), 36 [logException()]
Traceback (most recent call last):
  File "/usr/share/current/db/postgres/postgres.py", line 32, in getConnection
    database=self.config['db_name'])
  File "/usr/lib/python2.3/site-packages/pgdb.py", line 371, in connect
    dbtty, dbuser, dbpasswd)
InternalError: could not connect to server: Connection refused
        Is the server running on host "localhost" and accepting
       
TCP/IP connections on port 5432?

Traceback (most recent call last):
  File "/sbin/cinstall", line 191, in ?
    main()
  File "/sbin/cinstall", line 158, in main
    db.selectBackend(config)
  File "/usr/share/current/db/__init__.py", line 39, in selectBackend
    db = CurrentDB(config, sdb)
  File "/usr/share/current/db/currentdb.py", line 62, in __init__
    self.conn = self.specific.getConnection()
  File "/usr/share/current/db/postgres/postgres.py", line 32, in getConnection
    database=self.config['db_name'])
  File "/usr/lib/python2.3/site-packages/pgdb.py", line 371, in connect
    dbtty, dbuser, dbpasswd)
pg.InternalError: could not connect to server: Connection refused
        Is the server running on host "localhost" and accepting
       
TCP/IP connections on port 5432?
 

 

*** Stop ***

 

Is the problem perhaps with my way of starting the postgres server ?  If so, how should it be started?

 

-- Darryl