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

Unbound: fatal error: Could not read config file: /unbound.conf

Scheduled Pinned Locked Moved DHCP and DNS
unboundunbound.conf
4 Posts 3 Posters 3.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.
  • M
    myman
    last edited by myman Dec 20, 2021, 9:13 AM Dec 20, 2021, 9:10 AM

    Hi there,
    I have a problem where I sometimes wake up to unbound not running any more. I'm having that problem for some years now. I occures from once a month to once a week. When I then go to Status -> Services, I can see unbound being stopped. Clicking on Start Service makes it work for some days/weeks again.

    Unbound log: unbound.txt

    unbound-checkconf returns unbound-checkconf: no errors in /usr/local/etc/unbound/unbound.conf

    What I don't understand is why unbound restarts every couple of minutes. My WAN interface is PPPoE and has it's custom reset a 5AM, maybe that triggers it.

    Here's my config:

    unbound.png

    Generally I have quite a simple setup, so no VPN, no QoS, no pfblocker. Also I use Pihole as my main DNS server and unbound only resolves the local hosts

    F G 2 Replies Last reply Dec 20, 2021, 9:13 AM Reply Quote 0
    • F
      fireodo @myman
      last edited by Dec 20, 2021, 9:13 AM

      @myman 1639990344205-unbound.png

      Disable that and you'll be fine.

      Regards,
      fireodo

      Kettop Mi4300YL CPU: i5-4300Y @ 1.60GHz RAM: 8GB Ethernet Ports: 4
      SSD: SanDisk pSSD-S2 16GB (ZFS) WiFi: WLE200NX
      pfsense 2.7.2 CE
      Packages: Apcupsd Cron Iftop Iperf LCDproc Nmap pfBlockerNG RRD_Summary Shellcmd Snort Speedtest System_Patches.

      M 1 Reply Last reply Dec 20, 2021, 9:17 AM Reply Quote 1
      • M
        myman @fireodo
        last edited by Dec 20, 2021, 9:17 AM

        @fireodo Thanks, I'll give it a try. I don't think I ever used that feature anyway

        1 Reply Last reply Reply Quote 0
        • G
          Gertjan @myman
          last edited by Dec 20, 2021, 10:54 AM

          @myman said in Unbound: fatal error: Could not read config file: /unbound.conf:

          unbound-checkconf returns unbound-checkconf: no errors in /usr/local/etc/unbound/unbound.conf

          Runing " unbound-checkconf" will check the default /usr/local/etc/unbound/unbound.conf, a file that exists, but it is just a demo file.
          The real "unbound.conf", the one unbound for pfSense is using, is here/var/unbound/

          Your unbound is restating every couple of minutes.
          If these restarts happen to often, then the start code can overlap with another startup. Then one of then can fail and you see the error shown.

          Disabling "DHCP registration" is one of the first things to try.

          No "help me" PM's please. Use the forum, the community will thank you.
          Edit : and where are the logs ??

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