/etc/config/resolver has unbound as default resolver on Omnia
found an error with /etc/config/resolver when installing 5.0.0 using HBT medkit onto an Omnia.
the line
option prefered_resolver 'unbound'
is there, this should only be true for Turris 1.x right? While kresd does seem to start properly, if you restart it using
/etc/init.d/resolver restart
the bad line of config causes some junk to be printed out like this
root@turris:/tmp/log# /etc/init.d/resolver start
job 5 at Sun Apr 19 02:56:00 2020
Called /etc/init.d/kresd start
set dhcp script
Traceback (most recent call last):
File "/etc/resolver/dhcp_host_domain_ng.py", line 353, in <module>
dd.refresh_resolver()
File "/etc/resolver/dhcp_host_domain_ng.py", line 285, in refresh_resolver
tmp_res.refresh_leases()
File "/etc/resolver/dhcp_host_domain_ng.py", line 223, in refresh_leases
self._clean_leases()
File "/etc/resolver/dhcp_host_domain_ng.py", line 237, in _clean_leases
suffix="lan")
File "/etc/resolver/dhcp_host_domain_ng.py", line 164, in _get_unbound_list
cmd_ret = self._call_unbound(unbound_list)
File "/etc/resolver/dhcp_host_domain_ng.py", line 156, in _call_unbound
ret = call_cmd(["unbound-control", cmd])
File "/etc/resolver/dhcp_host_domain_ng.py", line 58, in call_cmd
task = subprocess.Popen(cmd, shell=False, stdout=subprocess.PIPE)
File "/usr/lib/python2.7/subprocess.py", line 394, in __init__
File "/usr/lib/python2.7/subprocess.py", line 1046, in _execute_child
File "/usr/lib/python2.7/pickle.py", line 1388, in loads
File "/usr/lib/python2.7/pickle.py", line 864, in load
File "/usr/lib/python2.7/pickle.py", line 977, in load_string
LookupError: no codec search functions registered: can't find encoding
Changing to the correct
option prefered_resolver 'kresd'
fixes the issue.