[railroad-dev] Some help wanted
Jan-Wijbrand Kolman
jw at infrae.com
Mon Jan 17 08:29:16 MET 2005
> Trying to install RR without database the script repoadmin.py failed because
> there was not the Module admconf. admconf is built only if there is a DB
> support. So I am trying to install Postgre and now it tell me that it can not
> connect :
> +++++
> sgi4:/Users/jrc/Desktop/railroad-0.1.4 postgre$ python repoadm.py
> Traceback (most recent call last):
> File "repoadm.py", line 23, in ?
> CON = DB.connect(admconf.dbopts)
> File "/Users/jrc/Desktop/railroad-0.1.4/db_pg.py", line 104, in connect
> _db = DBConn(dbopts)
> File "/Users/jrc/Desktop/railroad-0.1.4/db_pg.py", line 22, in __init__
> self.connect(dbopts)
> File "/Users/jrc/Desktop/railroad-0.1.4/db_pg.py", line 58, in connect
> _db = SQL.connect(dsn, minconn=min_conns, maxconn=max_conns,
> serialize=0)
> psycopg.OperationalError: could not connect to server: Connection refused
> Is the server running on host "localhost" and accepting
> TCP/IP connections on port 5432?
>
> +++++++
>
> To check this is working and not working...
>
> +++++++
> sgi4:/usr/local/share postgre$ psql -p 5432 dav
> Welcome to psql 7.4.6, the PostgreSQL interactive terminal.
>
> Type: \copyright for distribution terms
> \h for help with SQL commands
> \? for help on internal slash commands
> \g or terminate with semicolon to execute query
> \q to quit
>
> dav=# \q
> sgi4:/usr/local/share postgre$ psql -h localhost -p 5432 dav
> psql: could not connect to server: Connection refused
> Is the server running on host "localhost" and accepting
> TCP/IP connections on port 5432?
> ++++++
>
> I got something strange
>
> ++++++
> sgi4:/usr/local/share postgre$ psql -h "" -p 5432 dav
> Welcome to psql 7.4.6, the PostgreSQL interactive terminal.
>
> Type: \copyright for distribution terms
> \h for help with SQL commands
> \? for help on internal slash commands
> \g or terminate with semicolon to execute query
> \q to quit
>
> dav=#
> ++++++
If I understand you correctly, if you leave the host string empty when using
psql you *can* connect, but not with 'localhost'. This sounds like something
strange with the Postgresql setup/configuration...
Now I also understand why you tried to leave step 13 of mk_conf.py empty. I do
think however that tjhe scripts expects a non-empty host string. Does the
machine have another hostname associated? Can you use that instead to try?
HTH
regards
jw
--
Jan-Wijbrand Kolman
jw at infrae.com
More information about the railroad-dev
mailing list