Tor & cURL: Can’t complete SOCKS5 connection to

Tor & cURL: Can’t complete SOCKS5 connection to

Was running a scraping script on one server using tor, and all worked fine. Moved it to the production server and the script stopped working. Tried running cURL manually, and got the following output:
curl –socks5 ‘’
curl: (7) Can’t complete SOCKS5 connection to (6)

Relevant info:
Tor version |
CentOS 6.2 i686
curl –version
curl 7.19.7 (i686-pc-linux-gnu) libcurl/7.19.7 NSS/ zlib/1.2.3 libidn/1.18 libssh2/1.2.2
Protocols: tftp ftp telnet dict ldap ldaps http file https ftps scp sftp
Features: GSS-Negotiate IDN IPv6 Largefile NTLM SSL libz

There doesn’t seem to be much info on this particular error message that I could find in my searching, just generic bad configurations or tor not running. I am using the same configuration on my production server as the development server where it worked.


Solution 1:

The time on my server was 10 hours behind. After fixing it (ntpd already was installed, I just ran command /usr/sbin/ntpdate and restarting Tor, everything works.

Related:  How to install latest version of git on CentOS 7.x/6.x