pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Connection refused
2+ messages / 2 participants
[nested] [flat]

* Connection refused
@ 2003-02-12 14:30  vivek K. <vivek10@hotmail.com>
  0 siblings, 1 reply; 2+ messages in thread

From: vivek K. @ 2003-02-12 14:30 UTC (permalink / raw)
  To: pgsql-admin

<html><div style='background-color:'><DIV>Hello All,<BR>I am getting this error when i am using sql-ledger <BR>application. it is giving this error : <BR>Error : could not connect to server: Connection refused <BR>I have given these values : Host :192.168.168.56 User Name:SQL-ledger Password : SQL-ledger and connect to: Template1 </DIV>
<DIV>where Template1 is the DB template in postgresql on RH Linux 7.3 (postgresql 7.2.X).I <BR>created a user&nbsp; as sql-ledger <BR>#su postgres <BR>$ createuser -d sql-ledger <BR>The post master is running and but the status is <BR># pg_ctl status <BR>pg_ctl: no database directory or environment variable <BR>$PGDATA is specified . <BR>The default DB is template1. <BR>But, in the html page it is giving this error. i want to <BR>know how to solve this error. <BR>i have also tried these : <BR># psql -h 192.168.168.56 <BR>psql: could not connect to server: Connection refused <BR>Is the server running on host 192.168.168.56 and accepting <BR>TCP/IP connections on port 5432? <BR>and <BR># netstat -inp <BR>Kernel Interface table <BR>Iface MTU Met RX-OK RX-ERR RX-DRP RX-OVR TX-OK TX-ERR TX-DRP TX-OVR Flg <BR>eth0 1500 0 35441 0 0 0 2549 0 0 0 BMRU <BR>lo 16436 0 100 0 0 0 100 0 0 0 LRU <BR>and <BR>[root@perl users]# aux | grep postgres <BR>postgres 1025 0.0 1.4 8128 1800 ? S Feb12
  0:00 /usr/bin/postmast <BR>postgres 1027 0.0 1.4 9120 1784 ? S Feb12 0:00 postgres: stats b <BR>postgres 1028 0.0 1.4 8152 1820 ? S Feb12 0:00 postgres: stats c <BR>and <BR>[root@perl users]# pg_ctl status <BR>pg_ctl: no database directory or environment variable $PGDATA is specified <BR>i used kpackage and all the server and development installations are there. <BR>we recently installed sql-ledger and this relies on postgres. <BR>But it is not connecting .do i have to check env variables. how can i overcome this problem.. <BR>Thanks and regards, <BR>Vivek </DIV></div><br clear=all><hr>MSN 8 helps <a href="http://g.msn.com/8HMQEN/2743">ELIMINATE E-MAIL VIRUSES. </a> Get 2 months FREE*.</html>



^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: Connection refused
@ 2003-02-12 17:51  Robert Treat <xzilla@users.sourceforge.net>
  parent: vivek K. <vivek10@hotmail.com>
  0 siblings, 0 replies; 2+ messages in thread

From: Robert Treat @ 2003-02-12 17:51 UTC (permalink / raw)
  To: vivek K. <vivek10@hotmail.com>; +Cc: pgsql-admin

find your postgresql.conf file, look in there to make sure tcpip_socket
= true.

the directory that file is in should be the same as the $PGDATA that
your getting asked for, so you'll be able to do 

pg_ctl -D /path/to/database status

Robert Treat  

On Wed, 2003-02-12 at 09:30, vivek K. wrote:
Hello All,
I am getting this error when i am using sql-ledger 
application. it is giving this error : 
Error : could not connect to server: Connection refused 
I have given these values : Host :192.168.168.56 User Name:SQL-ledger
Password : SQL-ledger and connect to: Template1 
where Template1 is the DB template in postgresql on RH Linux 7.3
(postgresql 7.2.X).I 
created a user  as sql-ledger 
#su postgres 
$ createuser -d sql-ledger 
The post master is running and but the status is 
# pg_ctl status 
pg_ctl: no database directory or environment variable 
$PGDATA is specified . 
The default DB is template1. 
But, in the html page it is giving this error. i want to 
know how to solve this error. 
i have also tried these : 
# psql -h 192.168.168.56 
psql: could not connect to server: Connection refused 
Is the server running on host 192.168.168.56 and accepting 
TCP/IP connections on port 5432? 
and 
# netstat -inp 
Kernel Interface table 
Iface MTU Met RX-OK RX-ERR RX-DRP RX-OVR TX-OK TX-ERR TX-DRP TX-OVR Flg 
eth0 1500 0 35441 0 0 0 2549 0 0 0 BMRU 
lo 16436 0 100 0 0 0 100 0 0 0 LRU 
and 
[root@perl users]# aux | grep postgres 
postgres 1025 0.0 1.4 8128 1800 ? S Feb12 0:00 /usr/bin/postmast 
postgres 1027 0.0 1.4 9120 1784 ? S Feb12 0:00 postgres: stats b 
postgres 1028 0.0 1.4 8152 1820 ? S Feb12 0:00 postgres: stats c 
and 
[root@perl users]# pg_ctl status 
pg_ctl: no database directory or environment variable $PGDATA is
specified 
i used kpackage and all the server and development installations are
there. 
we recently installed sql-ledger and this relies on postgres. 
But it is not connecting .do i have to check env variables. how can i
overcome this problem.. 
Thanks and regards, 
Vivek 

________________________________________________________________________
MSN 8 helps ELIMINATE E-MAIL VIRUSES.  Get 2 months FREE*.






^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2003-02-12 17:51 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2003-02-12 14:30 Connection refused vivek K. <vivek10@hotmail.com>
2003-02-12 17:51 ` Robert Treat <xzilla@users.sourceforge.net>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox