Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    [solved] 2.3 beta - unbound config files missing

    Scheduled Pinned Locked Moved 2.3-RC Snapshot Feedback and Issues - ARCHIVED
    8 Posts 3 Posters 6.3k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • I
      itsme01
      last edited by

      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.

      1 Reply Last reply Reply Quote 0
      • P
        phil.davis
        last edited by

        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.

        As the Greek philosopher Isosceles used to say, "There are 3 sides to every triangle."
        If I helped you, then help someone else - buy someone a gift from the INF catalog http://secure.inf.org/gifts/usd/

        1 Reply Last reply Reply Quote 0
        • P
          phil.davis
          last edited by

          Well, it was a bit more involved.
          Redmine: https://redmine.pfsense.org/issues/5767
          Github PR: https://github.com/pfsense/pfsense/pull/2422

          That should make it happy.

          As the Greek philosopher Isosceles used to say, "There are 3 sides to every triangle."
          If I helped you, then help someone else - buy someone a gift from the INF catalog http://secure.inf.org/gifts/usd/

          1 Reply Last reply Reply Quote 0
          • P
            phil.davis
            last edited by

            PR has been merged, works for me.
            @itsme01 please update and confirm that it also works for you.

            As the Greek philosopher Isosceles used to say, "There are 3 sides to every triangle."
            If I helped you, then help someone else - buy someone a gift from the INF catalog http://secure.inf.org/gifts/usd/

            1 Reply Last reply Reply Quote 0
            • I
              itsme01
              last edited by

              Just updated to 2.3.b.20160113.1306 and tried again. Exactly the same errors…

              1 Reply Last reply Reply Quote 0
              • P
                phil.davis
                last edited by

                @itsme01:

                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.

                As the Greek philosopher Isosceles used to say, "There are 3 sides to every triangle."
                If I helped you, then help someone else - buy someone a gift from the INF catalog http://secure.inf.org/gifts/usd/

                1 Reply Last reply Reply Quote 0
                • M
                  maverick_slo
                  last edited by

                  gitsync it.
                  works for me

                  1 Reply Last reply Reply Quote 0
                  • I
                    itsme01
                    last edited by

                    Yep. gitsync'ed and now it works perfectly!
                    Thanks guys!

                    1 Reply Last reply Reply Quote 0
                    • First post
                      Last post
                    Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.