Login | Register
My pages Projects Community openCollabNet

Discussions > users > cinstall initdb doesn't work

Project highlights: Stable Version: 1.6.1, Development Version: 1.7.6

current
Discussion topic

Back to topic list

cinstall initdb doesn't work

Reply

Author dplank
Full name Darryl Plank
Date 2007-11-23 03:59:36 PST
Message 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/d​b/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.p​y", 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.p​y", 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
Attachments

« Previous message in topic | 3 of 27 | Next message in topic »

Messages

Show all messages in topic

No module named pgdb dplank Darryl Plank 2007-11-23 01:04:36 PST
     RE : No module named pgdb dplank Darryl Plank 2007-11-23 03:09:07 PST
         cinstall initdb doesn't work dplank Darryl Plank 2007-11-23 03:59:36 PST
             Re: cinstall initdb doesn't work Jared Greenwald <greenwaldjared at gmail dot com> Jared Greenwald <greenwaldjared at gmail dot com> 2007-11-23 06:37:50 PST
                 RE : cinstall initdb doesn't work dplank Darryl Plank 2007-11-23 06:47:46 PST
                     Re: RE : cinstall initdb doesn't work Jared Greenwald <greenwaldjared at gmail dot com> Jared Greenwald <greenwaldjared at gmail dot com> 2007-11-23 06:57:06 PST
                         RE : RE : cinstall initdb doesn't work dplank Darryl Plank 2007-11-26 06:48:58 PST
                             Re: RE : RE : cinstall initdb doesn't work Jared Greenwald <greenwaldjared at gmail dot com> Jared Greenwald <greenwaldjared at gmail dot com> 2007-11-26 06:54:06 PST
                                 RE : RE : RE : cinstall initdb doesn't work dplank Darryl Plank 2007-11-27 02:22:06 PST
                                     Apache Problem dplank Darryl Plank 2007-11-27 02:26:10 PST
                                     Re: RE : RE : RE : cinstall initdb doesn't work Jared Greenwald <greenwaldjared at gmail dot com> Jared Greenwald <greenwaldjared at gmail dot com> 2007-11-27 06:18:10 PST
                                         Apache Problem dplank Darryl Plank 2007-11-27 06:36:39 PST
                                             Re: Apache Problem Jared Greenwald <greenwaldjared at gmail dot com> Jared Greenwald <greenwaldjared at gmail dot com> 2007-11-27 07:11:09 PST
                                                 cadmin create_channel for Red Hat Enterprise Linux 4.0 dplank Darryl Plank 2007-11-29 02:46:03 PST
                                                     Re: cadmin create_channel for Red Hat Enterprise Linux 4.0 Jared Greenwald <greenwaldjared at gmail dot com> Jared Greenwald <greenwaldjared at gmail dot com> 2007-11-29 05:25:41 PST
                                                         RE : cadmin create_channel for Red Hat Enterprise Linux 4.0 dplank Darryl Plank 2007-11-29 06:04:34 PST
                                                             Re: RE : cadmin create_channel for Red Hat Enterprise Linux 4.0 Jared Greenwald <greenwaldjared at gmail dot com> Jared Greenwald <greenwaldjared at gmail dot com> 2007-11-29 06:22:21 PST
                                                                 RE : RE : cadmin create_channel for Red Hat Enterprise Linux 4.0 dplank Darryl Plank 2007-11-29 06:33:40 PST
                                                             Re: RE : cadmin create_channel for Red Hat Enterprise Linux 4.0 theslack Jack Neely 2007-11-29 07:50:51 PST
                                                                 Re: RE : cadmin create_channel for Red Hat Enterprise Linux 4.0 Jared Greenwald <greenwaldjared at gmail dot com> Jared Greenwald <greenwaldjared at gmail dot com> 2007-11-29 08:36:52 PST
                                                                 RE : RE : cadmin create_channel for Red Hat Enterprise Linux 4.0 dplank Darryl Plank 2007-12-05 03:40:11 PST
                                                                     Installation documentation for the version 1.7.6 dplank Darryl Plank 2007-12-05 05:56:59 PST
                                                 RE : Apache Problem dplank Darryl Plank 2007-11-29 03:13:01 PST
                                                     Re: RE : Apache Problem Jared Greenwald <greenwaldjared at gmail dot com> Jared Greenwald <greenwaldjared at gmail dot com> 2007-11-29 05:32:57 PST
                                                         RE : RE : Apache Problem dplank Darryl Plank 2007-11-29 06:15:19 PST
Page: of 2 « Previous | Next »
Messages per page: