![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I can scp files between the servers |
|
$ psql -h 192.168.1.125 psql: could not connect to server: No route to host |
#3
| |||
| |||
|
|
Kevin Kempter <cs_dba (AT) consistentstate (DOT) com> writes: I can scp files between the servers Really? $ psql -h 192.168.1.125 psql: could not connect to server: No route to host Because that is not a Postgres problem, that is a network connectivity problem. I'd bet that there's something wrong with the VM configuration, such that the VM host isn't connecting 192.168.1.* in one VM to 192.168.1.* in the other. regards, tom lane Or the port is not 5432. Or a Firewall is blocking the connection. |
#4
| |||
| |||
|
|
Active Internet connections (servers and established) Proto Recv-Q Send-Q Local Address Foreign Address State tcp 0 0 0.0.0.0:80 <http://0.0.0.0/> 0.0.0.0:* LISTEN tcp 0 0 127.0.0.1:3350 0.0.0.0:* LISTEN tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN tcp 0 0 0.0.0.0:631 0.0.0.0:* LISTEN *tcp 0 0 127.0.0.1:5432 0.0.0.0:* LISTEN * |
|
#listen_addresses = '*' # what IP address(es) to listen on; # comma-separated list of addresses; *# defaults to 'localhost', '*' = all* # (change requires restart) port = 5432 # (change requires restart) max_connections = 100 # (change requires restart) |
|
host all all 127.0.0.1/32 trust host all all 192.168.0.0/16 trust |
#5
| |||
| |||
|
|
Kevin Kempter<cs_dba (AT) consistentstate (DOT) com> writes: I can scp files between the servers Really? $ psql -h 192.168.1.125 psql: could not connect to server: No route to host Because that is not a Postgres problem, that is a network connectivity problem. I'd bet that there's something wrong with the VM configuration, such that the VM host isn't connecting 192.168.1.* in one VM to 192.168.1.* in the other. regards, tom lane |
#6
| |||
| |||
|
|
Scientific Linux turns on the firewall by default. It lets me scp via username & passwd but wouldn't allow the port 5432 tcp connection till I disabled it. I like Scientific because it seems that they are a large team and as a project seem to have better long term viability than other RH based projects but a couple of their defaults drive me nuts. Like this one, and the default install of yum-autoupdate |

![]() |
| Thread Tools | |
| Display Modes | |
| |