Using config from bitcoin/doc/tor.md kills Tor service, will not restart using sudo systemctl start tor or upon reboot after first start with new config success on Fedora 23. Bitcoin Core v0.15.1. Tor v0.2.8.11-1.fc23.
I will leave the actual Tor errors/logs for elsewhere or, if necessary.
Question - since the linked document says:
Starting with Tor version 0.2.7.1 it is possible, through Tor's control socket API, to create and destroy 'ephemeral' hidden services programmatically. Bitcoin Core has been updated to make use of this.
This means that if Tor is running (and proper authentication has been configured), Bitcoin Core automatically creates a hidden service to listen on. This will positively affect the number of available .onion nodes.
Does that make the following lines for /etc/tor/torrc redundant - removing these from torrc resolve the Tor issue:
HiddenServiceDir /var/lib/tor/bitcoin-service/
HiddenServicePort 8333 127.0.0.1:8333
HiddenServicePort 18333 127.0.0.1:18333
I note the following lines in my v0.15.1 debug.log before the preceeding lines were added, while they were added (before Tor was stopped) and after the lines were removed and Tor was working again - and at the start of the log I get discover=0:
2018-02-07 10:52:58 torcontrol thread start
2018-02-07 10:52:58 Bound to 127.0.0.1:8333
2018-02-07 10:52:58 init message: Loading P2P addresses...
2018-02-07 10:52:58 tor: Got service ID {onion}, advertising service {onion}.onion:8333
2018-02-07 10:52:58 AddLocal({onion}.onion:8333,4)
Seperately (Yes, no not support questions..) is it also necessary to -setexternalip= for Bitcoin Core to your onion service at command line / in bitcoin.confas the linked document suggests, even when using 'ephemeral' hidden service working with AddLocal message?
The full setup I am using is here - note that I have additional lines in my bitcoin.conf.