Hey everyone,
Google ain't helping with this one. :(
Postgres is runnning: (Old version required by app.)
root@chili.MYDOMAIN.com:/# ps -ef |grep postgres postgres 4641 1 0 01:23 ? 00:00:00 /usr/lib/postgresql/8.4/bin/postgres -D /var/lib/postgresql/8.4/main -c config_file=/etc/postgresql/8.4/main/postgresql.conf postgres 4645 4641 0 01:23 ? 00:00:00 postgres: writer process
postgres 4646 4641 0 01:23 ? 00:00:00 postgres: wal writer process
root 5300 4836 0 01:31 pts/1 00:00:00 grep postgres
root@chili.MYDOMAIN.com:/#
The 'chiliproject' table is there:
root@chili.MYDOMAIN.com:/# su postgres postgres@chili.MYDOMAIN.com:/$ psql psql (8.4.10) Type "help" for help.
postgres=# \l List of databases Name | Owner | Encoding | Collation | Ctype | Access privileges
--------------+--------------+----------+-------------+-------------+----------------------- chiliproject | chiliproject | UTF8 | en_US.UTF-8 | en_US.UTF-8 | postgres | postgres | UTF8 | en_US.UTF-8 | en_US.UTF-8 | template0 | postgres | UTF8 | en_US.UTF-8 | en_US.UTF-8 | =c/postgres : postgres=CTc/postgres template1 | postgres | UTF8 | en_US.UTF-8 | en_US.UTF-8 | =c/postgres : postgres=CTc/postgres (4 rows)
postgres=#
But when i try this 'debug' test, it fails:
postgres@chili.MYDOMAIN.com:/$ psql -h localhost chiliproject psql: could not connect to server: Connection timed out Is the server running on host "localhost" and accepting TCP/IP connections on port 5432? could not create socket: Address family not supported by protocol
postgres@chili.MYDOMAIN.com:/$
Setting listen_addresses = '*' in the postgresql.conf file seems to make no difference.
Changing the following line in pg_hba.conf from md5 to trust, or the IP/prefix to 0.0.0.0/0 makes no difference either.
IPv4 local connections:
host all all 127.0.0.1/32 md5
Any ideas?
Thanks!
[link] [8 comments]