13.03.2020, 14:55, "teor" <teor@riseup.net>:
Hi,
 
Post the entire file without shortening or removing any line. If it complains
about parse error, there must be something wrong in it, but you don't notice
or don't think it is wrong. People on the mailing list can check if it's ok,
but again only if you post the entire file (copy-paste or attach).
 

С уважением,
Станислав
 
<resolv.conf>
 
There could be a few things wrong here.
 
Try setting ServerDNSResolvConfFile to /dev/null,
or a world-readable empty file, and see if your problem goes away.
 
If it does, here are some common issues to check:
 
What are the permissions on /etc.resolv.conf ?
Can the tor user read the file?
 
Is the file a symlink?
(macOS does this, not sure if some Linux distros do as well)
 
Are there any hidden characters in the file?
Does it use Unix newlines?
 
Tor uses libevent's evdns_base_resolv_conf_parse() to parse the file.
 
How old is your version of libevent?
 
T
 
-- 
teor
----------------------------------------------------------------------
 
,

_______________________________________________
tor-relays mailing list
tor-relays@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-relays

 
 
С уважением,
Станислав
 
What are the permissions on /etc.resolv.conf ?
read and write
 
Is the file a symlink?
I do not know
 
Are there any hidden characters in the file?
no
 
Does it use Unix newlines?
I do not know
 
How old is your version of libevent?
libevent 2.1.11
 
I deleted this file and managed to start, but such entries appeared:
 
Mar 09 22:32:18.000 [notice] Received reload signal (hup). Reloading config and resetting internal state.
Mar 09 22:32:18.000 [notice] Read configuration file "/etc/tor/torrc1".
Mar 09 22:32:18.000 [notice] Your ContactInfo config option is not set. Please consider setting it, so we can contact you if your server is misconfigured or something else goes wrong.
Mar 09 22:32:18.000 [warn] MyFamily is set but ContactInfo is not configured. ContactInfo should always be set when MyFamily option is too.
Mar 09 22:32:18.000 [notice] Tor 0.4.2.5 opening log file.
Mar 09 22:32:18.000 [warn] Unable to stat resolver configuration in '/etc/resolv.conf': No such file or directory
Mar 09 22:32:18.000 [warn] Could not read your DNS config from '/etc/resolv.conf' - please investigate your DNS configuration. This is possibly a problem. Meanwhile, falling back to local DNS at 127.0.0.1.
Mar 09 22:32:18.000 [warn] Unable to stat resolver configuration in '/etc/resolv.conf': No such file or directory
Mar 09 22:32:18.000 [warn] Could not read your DNS config from '/etc/resolv.conf' - please investigate your DNS configuration. This is possibly a problem. Meanwhile, falling back to local DNS at 127.0.0.1.