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

DNS Resolver (unbound) / Can't change config

Scheduled Pinned Locked Moved DHCP and DNS
61 Posts 29 Posters 70.1k 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.
  • R
    RonpfS @zimt
    last edited by Feb 15, 2019, 10:47 PM

    @zimt said in DNS Resolver (unbound) / Can't change config:

    I don't think it has anything to do with it.

    DNSBL modify unbound.conf.

    2.4.5-RELEASE-p1 (amd64)
    Intel Core2 Quad CPU Q8400 @ 2.66GHz 8GB
    Backup 0.5_5, Bandwidthd 0.7.4_4, Cron 0.3.7_5, pfBlockerNG-devel 3.0.0_16, Status_Traffic_Totals 2.3.1_1, System_Patches 1.2_5

    1 Reply Last reply Reply Quote 0
    • Z
      zimt
      last edited by Feb 16, 2019, 12:04 AM

      rebooting resolved the issue, hope it doesn't reappear.

      1 Reply Last reply Reply Quote 0
      • R
        RonpfS
        last edited by Feb 16, 2019, 12:07 AM

        That's one way to recreate the root.key 😜

        2.4.5-RELEASE-p1 (amd64)
        Intel Core2 Quad CPU Q8400 @ 2.66GHz 8GB
        Backup 0.5_5, Bandwidthd 0.7.4_4, Cron 0.3.7_5, pfBlockerNG-devel 3.0.0_16, Status_Traffic_Totals 2.3.1_1, System_Patches 1.2_5

        1 Reply Last reply Reply Quote 0
        • Z
          zimt
          last edited by Feb 16, 2019, 12:12 AM

          doing it manually as indicated higher up in this thread didn't solve the problem for me.

          A 1 Reply Last reply Jun 30, 2019, 9:56 PM Reply Quote 0
          • B
            BBcan177 Moderator @zimt
            last edited by Feb 16, 2019, 2:19 AM

            @zimt said in DNS Resolver (unbound) / Can't change config:

            When I try to change any settings in unbound I get this error message, can't even disable it :
            The following input errors were detected:
            The generated config file cannot be parsed by unbound. Please correct the following errors:
            /var/unbound/test/root.key: No such file or directory
            [1550262886] unbound-checkconf[60539:0] fatal error: auto-trust-anchor-file: "/var/unbound/test/root.key" does not exist in chrootdir /var/unbound

            Try to run the following command to rebuild the missing root.key file:

            unbound-anchor -a /var/unbound/root.key
            

            "Experience is something you don't get until just after you need it."

            Website: http://pfBlockerNG.com
            Twitter: @BBcan177  #pfBlockerNG
            Reddit: https://www.reddit.com/r/pfBlockerNG/new/

            B 1 Reply Last reply Apr 30, 2020, 1:20 AM Reply Quote 1
            • A
              apara @zimt
              last edited by apara Jun 30, 2019, 9:58 PM Jun 30, 2019, 9:56 PM

              I am having exactly the same issue on the latest 2.4.4-RELEASE-p3 (amd64). When I go to change the DNS Resolver configuration, just pressing Save without any changes produces:

              The following input errors were detected:

              The generated config file cannot be parsed by unbound. Please correct the following errors:
              /var/unbound/test/root.key: No such file or directory
              [1561931530] unbound-checkconf[36495:0] fatal error: auto-trust-anchor-file: "/var/unbound/test/root.key" does not exist in chrootdir /var/unbound

              For some reason, it feels that the *.pem and *.key files are not being copied from the parent directory as they definitely exist in the /var/unbound directory.

              Does anyone have a solution?

              1 Reply Last reply Reply Quote 0
              • R
                RusG3G
                last edited by RusG3G Oct 28, 2019, 3:24 PM Oct 28, 2019, 2:57 PM

                I am also getting this error in a brand new SG5100;

                The following input errors were detected:

                The generated config file cannot be parsed by unbound. Please correct the following errors:
                /var/unbound/test/root.key: No such file or directory
                [1572274588] unbound-checkconf[68733:0] fatal error: auto-trust-anchor-file: "/var/unbound/test/root.key" does not exist in chrootdir /var/unbound

                I ran "unbound-anchor -a /var/unbound/root.key" rebooted and the issue is resolved

                A 1 Reply Last reply Oct 28, 2019, 4:30 PM Reply Quote 0
                • A
                  apara @RusG3G
                  last edited by Oct 28, 2019, 4:30 PM

                  @RusG3G in my case, I rebooted the firewall and all was good again... Sorry, don't have more details.

                  1 Reply Last reply Reply Quote 0
                  • C
                    chrcoluk
                    last edited by Feb 23, 2020, 11:14 PM

                    Also now affected.

                    This seems really bizarre problem.

                    Some information.

                    The problem does "not" occur when my custom unbound configuration is included which I normally do include, but I wanted to revert to solely a auto generated config which in theory is safer but generated the error, if I include my config again, the error is gone eve though I dont configure anything related to the keys.

                    The 2 commands listed in the thread dont fix anything.

                    The keys do exist in my /var/unbound, and are dated 2017 so have been there 2 years.

                    The following commands enabled me to use the save function in the GUI.

                    cd /var/unbound
                    cp unbound_server.* test
                    cp unbound_control.* test
                    chflags schg /var/unbound/test/unbound_server.*
                    chflags schg /var/unbound/test/unbound_control.*

                    So basically I manually copy the keys to the test folder, I set the files to be unable to be overwritten and bam it works.

                    So some kind of script when hitting save is not working as it should.

                    I do have pfblockerng installed but I would be very surprised if thats breaking this.

                    pfSense CE 2.7.2

                    1 Reply Last reply Reply Quote 0
                    • B
                      bartkowski @BBcan177
                      last edited by bartkowski Apr 30, 2020, 12:43 PM Apr 30, 2020, 1:20 AM

                      @BBcan177 said in DNS Resolver (unbound) / Can't change config:

                      Try to run the following command to rebuild the missing root.key file:
                      unbound-anchor -a /var/unbound/root.key

                      This and a reboot helped me. SG-2440

                      Edit. 2.4.5-Release.

                      B 1 Reply Last reply Jun 9, 2020, 7:17 PM Reply Quote 0
                      • T
                        TheNarc
                        last edited by May 12, 2020, 3:58 AM

                        I am experiencing this issue on one of my two pfSense machines, which I'm hoping may be useful in narrowing down the cause, because they are both running 2.4.5-RELEASE on identical hardware and are configured identically to the best of my ability to tell. Both have pfBlockerNG-devel-2.2.5_32 and snort 3.2.9.11 installed. From methodically comparing all the pfBlockerNG config pages, it seems like I have it identically configured on both machines, although empirical evidence would suggest otherwise, as my pfb_dnsbl.conf is 66,992,853B on the working machine and 67,011,305B on the machine exhibiting the issue.

                        The only way I was able to successfully save a resolver config change (once) on the non-working machine was a variation of the steps posted by @chrcoluk. I copied all *.key and *.pem files in /var/unbound/ to /var/unbound/test/ and then made them immutable with chflags schg.

                        I'm happy to provide further information, conf files, screen shots of settings, etc. if anyone has theories they'd like to investigate. But having no theories of my own I don't want to immediately dump a bunch of unsolicited data here.

                        I should also note that both of these machines have been installed for years and been through multiple upgrade cycles, so I fully understand if no one wants to investigate something that would almost definitely be solved by a fresh installation and config restore. I'm not asking for help, just offering a source of potentially useful data in case anyone is so inclined . . .

                        1 Reply Last reply Reply Quote 0
                        • B
                          bartkowski @bartkowski
                          last edited by Jun 9, 2020, 7:17 PM

                          @bartkowski said in DNS Resolver (unbound) / Can't change config:

                          This and a reboot helped me. SG-2440
                          Edit. 2.4.5-Release.

                          It happened to me again today. Only way I could fix it is reboot.
                          I do have a very large (over 800K) DNSBL list in pfBlockerNG-devel (latest).

                          1 Reply Last reply Reply Quote 0
                          • O
                            OffstageRoller
                            last edited by Jun 13, 2020, 5:53 PM

                            I also had this happen today as well. A reboot cleared things up for me.

                            2.4.5_1 with a number of packages installed, including pfBlockerNG-devel 2.2.5_33. In all my years running pfSense with this package, this is the first time I've run into this error message.

                            1 Reply Last reply Reply Quote 0
                            • luckman212L
                              luckman212 LAYER 8
                              last edited by Jul 22, 2020, 3:43 AM

                              I've had this bug pop up from time to time as well. I saw a recent redmine that seems very closely related:
                              https://redmine.pfsense.org/issues/10781

                              Looks like a PR is already made and might solve this for good in 2.5 snaps.

                              C 1 Reply Last reply Aug 20, 2020, 3:48 PM Reply Quote 1
                              • C
                                chrisgtl @luckman212
                                last edited by Aug 20, 2020, 3:48 PM

                                @luckman212 said in DNS Resolver (unbound) / Can't change config:

                                I've had this bug pop up from time to time as well. I saw a recent redmine that seems very closely related:
                                https://redmine.pfsense.org/issues/10781

                                Looks like a PR is already made and might solve this for good in 2.5 snaps.

                                You sir I owe a beer or two to! Top man!! This solved it for me.....

                                C 1 Reply Last reply Aug 20, 2020, 7:34 PM Reply Quote 0
                                • C
                                  chrisgtl @chrisgtl
                                  last edited by Aug 20, 2020, 7:34 PM

                                  @luckman212

                                  Scrap that! I can't enable unbound forwarder due to this after clicking save

                                  The following input errors were detected:

                                  The generated config file cannot be parsed by unbound. Please correct the following errors:
                                  /var/unbound/test/unbound.conf:103: error: syntax error
                                  read /var/unbound/test/unbound.conf failed: 1 errors in configuration file

                                  1 Reply Last reply Reply Quote 0
                                  • C
                                    chrcoluk
                                    last edited by Aug 20, 2020, 8:22 PM

                                    For me this is resolved since updating to 2.4.5-p1.

                                    pfSense CE 2.7.2

                                    1 Reply Last reply Reply Quote 0
                                    • P
                                      ProfessorManhattan
                                      last edited by ProfessorManhattan Aug 23, 2020, 3:43 AM Aug 23, 2020, 3:42 AM

                                      Possible Solution for Those Who are Using RAM Disk
                                      If you are using the feature where /var is stored in RAM. This issue will arise if the /var folder is at capacity. To fix, go to System->Advanced->Miscellaneous-> RAM Disk Size and increase the RAM disk size so that it is not at capacity.

                                      After you increase the size of the RAM disk, you need to reboot by going to Diagnostics->Reboot.

                                      You can verify that you have enough space allocated by going to the Dashboard and then scrolling to the bottom of the System Information widget. You should give /var some wiggle room.

                                      1 Reply Last reply Reply Quote 0
                                      • First post
                                        Last post
                                      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                                        This community forum collects and processes your personal information.
                                        consent.not_received