[solved] 2.3 beta - unbound config files missing
-
hi all,
just updated to pfsense 2.3.b.20160112.1952. My system was originally a 2.1 version which I have updated via 2.2 to 2.3.a and now 2.3.b. It was therefore configured to use DNS Forwarder instead of the DNS Resolver (unbound). I now wanted to move from DNS Forwarder to DNS Resolver.
After disabling DNS Forwarder and enabling DNS Resolver I got error messages (after clicking Save):
- The generated config file cannot be parsed by unbound. Please correct the following errors:
- /var/unbound/unbound.test.conf:76: error: cannot open include file '/var/unbound/access_lists.conf': No such file or directory
- /var/unbound/unbound.test.conf:79: error: cannot open include file '/var/unbound/host_entries.conf': No such file or directory
- /var/unbound/unbound.test.conf:82: error: cannot open include file '/var/unbound/dhcpleases_entries.conf': No such file or directory
- /var/unbound/unbound.test.conf:85: error: cannot open include file '/var/unbound/domainoverrides.conf': No such file or directory
- /var/unbound/unbound.test.conf:93: error: cannot open include file '/var/unbound/remotecontrol.conf': No such file or directory
- read /var/unbound/unbound.conf failed: 5 erros in configuration file
When I ssh to my pfsense and look at the /var/unbound/ directory, I see that unlike all other directories in the /var directory, it is not owned by root/wheel, but unbound/unbound and furthermore, there are no conf files in the directory, only a conf.d directory which itself is also empty.
-
I just tried the same thing - disable DNS Forwarder, save, apply, enable DNS Resolver, save and the webGUI displays the error text:
The following input errors were detected: The generated config file cannot be parsed by unbound. Please correct the following errors: [1452698736] unbound-checkconf[17066:0] error: Could not open /var/unbound/unbound.test.conf: No such file or directory
In /var there is no unbound folder at all.
Should be easy to fix - the code that generates and parses an unbound test conf file does not first double-check that the /var/unbound folder exists… - looking now.
-
Well, it was a bit more involved.
Redmine: https://redmine.pfsense.org/issues/5767
Github PR: https://github.com/pfsense/pfsense/pull/2422That should make it happy.
-
PR has been merged, works for me.
@itsme01 please update and confirm that it also works for you. -
Just updated to 2.3.b.20160113.1306 and tried again. Exactly the same errors…
-
Just updated to 2.3.b.20160113.1306 and tried again. Exactly the same errors…
The fix was only merged 8 hours ago. So I think that is after the build you have. I usually GitSync to get stuff immediately.
Have a look at /etc/inc/unbound.inc and see if it has the changes in https://github.com/pfsense/pfsense/commit/cd656b85255feee8313e6081325f05db7a6c2642
A search for "$cfgsubdir" should do the trick - that new var should be in unbound.inc lots of times. -
gitsync it.
works for me -
Yep. gitsync'ed and now it works perfectly!
Thanks guys!