X-Original-To: pgsql-admin@postgresql.org Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 4E8AC474E5C for ; Wed, 12 Feb 2003 12:51:46 -0500 (EST) Received: from localhost.localdomain (unknown [65.217.53.66]) by postgresql.org (Postfix) with ESMTP id A3436474E44 for ; Wed, 12 Feb 2003 12:51:45 -0500 (EST) Received: from thorn.mmrd.com (thorn.mmrd.com [172.25.10.100]) by localhost.localdomain (8.12.5/8.12.5) with ESMTP id h1CIH76P008069; Wed, 12 Feb 2003 13:17:07 -0500 Received: from gnvex001.mmrd.com (gnvex001.mmrd.com [192.168.3.55]) by thorn.mmrd.com (8.11.6/8.11.6) with ESMTP id h1CHpnj30566; Wed, 12 Feb 2003 12:51:49 -0500 Received: from camel.mmrd.com ([172.25.5.213]) by gnvex001.mmrd.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id CWVL1BZ2; Wed, 12 Feb 2003 12:51:49 -0500 Subject: Re: Connection refused From: Robert Treat To: "vivek K." Cc: pgsql-admin@postgresql.org In-Reply-To: References: Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Ximian Evolution 1.0.8 Date: 12 Feb 2003 12:51:49 -0500 Message-Id: <1045072309.12930.338.camel@camel> Mime-Version: 1.0 X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200302/158 X-Sequence-Number: 7356 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*.