New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
'ERROR: Error reading proxy response' when using TOR on bitcoind #9430
Comments
You need to fix your proxy. Unless you can show other apps work with that proxy and Bitcoin does not, it's not a Bitcoin issue. Similar eample: |
Well the thing is, i do use the TOR daemon for other apps and it works perfectly in Ubuntu. Thats why I am reporting this issue. Can you please try and reproduce the issue? I can try reproduce the issue on a newly installed Ubuntu 16.04 with TOR installed and report back. |
Are those other apps using Tor SOCKS5 proxy? Provide your Tor version and complete configuration files for Bitcoin and Tor - or better yet, get help on Tor forums. |
|
@unsystemizer as far i know, the default TOR daemon installation does not require any configuration for simple outgoing connections to applications that support TOR. I have tested this on a fresh installation of Ubuntu 16.04. installed tor and bitcoind. then all the update tips started downloading perfectly. so my daemon IS working. because i can still use it with other apps such as torbirdy for example and there are no issues. the fact that bitcoind works while TOR is running while receiving 2 random errors 'Error reading proxy response' and then continuing normally doesnt mean there is something wrong with tor. dont you think? but if the service is stopped i can understand the flood of error messages. If you had to run a fresh VM of ubuntu and installed TOR and bitcoind, you will see for yourself. because i just reproduced the issue. the bitcoin.conf file that i create like i said, has the following lines: bind=127.0.0.1 |
is the bitcoin.conf contents correct? the bind address and port is all right i suppose? |
What port are those other installations using? Not all Tor setups use port
9050 by default.
|
They using 9050, which is used for the TOR daemon. so the port 9050 is not incorrect because if it was, it would throw the above error. |
When i get this in debug.log: |
It's neither original nor unknown. In the first comment yesterday I gave you a link to the exact same issue and there the maintainers suggested it's a Tor configuration problem.
That does not show your Tor SOCKS5 is properly configured and available for use. I told you yesterday: you fail to show that your Tor SOCKS5 proxy is usable without restrictions to any other client that uses the same settings as bitcoind. I'm running 0.13 with Tor SOCKS5 proxy (Tor alpha channel) right now, no issues. |
Tor opens more ports than a proxy port ( There are many users of Bitcoin Core + Tor so everything suggests a local configuration issue on your end. |
Looks like we've been chasing ghosts here. That error message "ERROR: Error reading proxy response" is also thrown when the connection attempt times out. This is incredibly common on Tor, especially when connecting to hidden services. Fixed in #9726. |
@laanwj thank you for getting to the bottom of this. |
Describe the issue
The problem is, the error message: 'ERROR: Error reading proxy response' in the debug.log file.
I wanted to simply run bitcoin over TOR. So in the bitcoin.conf file i had the following lines:
bind=127.0.0.1
port=8333
upnp=0
proxy=127.0.0.1:9050
Then i started bitcoind in terminal, i monitored the debug.log file and i saw that error message described above every minute or so while i was getting a new 'update tip' block.
To test if TOR was really working, i stopped the TOR service and i immediately got countless errors:
connect() to 127.0.0.1:9050 failed after select(): Connection refused (111)
connect() to 127.0.0.1:9050 failed after select(): Connection refused (111)
connect() to 127.0.0.1:9050 failed after select(): Connection refused (111)
So i realized that TOR was working, yet the original unknown error of:
'ERROR: Error reading proxy response' occurred.
Please note: my intention was not to use a hidden tor service.
My intention was to simply torify outgoing connections as described in the first step here:
https://github.com/bitcoin/bitcoin/blob/master/doc/tor.md#1-run-bitcoin-behind-a-tor-proxy
and here:
https://bitcointalk.org/index.php?topic=623868.0
Expected behaviour
The expected behaviour should have been that bitcoin would run over tor without a proxy error while tor is actually working.
What version of bitcoin-core are you using?
sudo apt-add-repository ppa:bitcoin/bitcoin (https://launchpad.net/~bitcoin/+archive/ubuntu/bitcoin)
sudo apt-get install bitcoind
Machine specs:
If there should be some other type of config that i am missing in bitcoin.conf please let me know.
The text was updated successfully, but these errors were encountered: