As you can see from the error, there is something in your configuration files. The way the script/software is set up makes it impossible to connect properly. The error above is directly related to connectivity. You should check the connection settings in your config files and then try again.
Also, if you're using a keepaliveagent in your config files, check it and adjust the values. It's known that keepaliveagent also causes socket hang up errors.