I was facing similar issue. In my case it was resolved with correctly pointing out the server ip in /etc/hosts.
I gave server1 ip where http server was running on 8080 port, instead of server2 ip in /etc/hosts. Due to this miss configuration I was seeing this error.