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

    Unbound fails silently?

    Scheduled Pinned Locked Moved 2.2 Snapshot Feedback and Problems - RETIRED
    9 Posts 2 Posters 2.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.
    • S
      sazv
      last edited by

      I have two machines running 2.2 RC.  Both are identical hardware, with similar configurations.  No packages installed.  Since pursuing the 2.x tree, unbound has always worked on one, and never on the other.  On the inoperative one, it fails silently, with no log entries written.  Services shows unbound stopped, attempting to start it results in no errors, and it stays stopped.

      grep -r unbound * in /var/log shows 2 entries in user log where the user and groups are created for unbound, and that's it.

      unbound -v -d -c /var/unbound/unbound.conf results in:
      notice: Start of unbound 1.4.22.
      and it immediately stops.

      Is there somewhere else I should be looking?

      1 Reply Last reply Reply Quote 0
      • W
        wagonza
        last edited by

        If you increase the verbosity (-vvvv) what gets displayed?

        Follow me on twitter http://twitter.com/wagonza
        http://www.thepackethub.co.za

        1 Reply Last reply Reply Quote 0
        • S
          sazv
          last edited by

          [2.2-RC][root@.]/var/unbound: unbound -vvvv -d -c /var/unbound/unbound.conf
          [1418920283] unbound[10754:0] notice: Start of unbound 1.4.22.
          [1418920283] unbound[10754:0] info: ignored infra-lame-ttl: 900 (option removed, use infra-host-ttl)
          [1418920283] unbound[10754:0] debug: creating udp4 socket 192.168.xxx.yyy 53
          [1418920283] unbound[10754:0] debug: creating tcp4 socket 192.168.xxx.yyy 53
          [1418920283] unbound[10754:0] debug: creating udp4 socket 192.168.aaa.bbb 53
          [1418920283] unbound[10754:0] debug: creating tcp4 socket 192.168.aaa.bbb 53
          [1418920283] unbound[10754:0] debug: creating udp4 socket 127.0.0.1 53
          [1418920283] unbound[10754:0] debug: creating tcp4 socket 127.0.0.1 53
          [1418920283] unbound[10754:0] debug: creating udp6 socket ::1 53
          [1418920283] unbound[10754:0] debug: creating tcp6 socket ::1 53
          [1418920283] unbound[10754:0] debug: creating tcp4 socket 127.0.0.1 953
          [1418920283] unbound[10754:0] debug: switching log to syslog

          1 Reply Last reply Reply Quote 0
          • W
            wagonza
            last edited by

            @sazv:

            [2.2-RC][root@.]/var/unbound: unbound -vvvv -d -c /var/unbound/unbound.conf
            [1418920283] unbound[10754:0] notice: Start of unbound 1.4.22.
            [1418920283] unbound[10754:0] info: ignored infra-lame-ttl: 900 (option removed, use infra-host-ttl)
            [1418920283] unbound[10754:0] debug: creating udp4 socket 192.168.xxx.yyy 53
            [1418920283] unbound[10754:0] debug: creating tcp4 socket 192.168.xxx.yyy 53
            [1418920283] unbound[10754:0] debug: creating udp4 socket 192.168.aaa.bbb 53
            [1418920283] unbound[10754:0] debug: creating tcp4 socket 192.168.aaa.bbb 53
            [1418920283] unbound[10754:0] debug: creating udp4 socket 127.0.0.1 53
            [1418920283] unbound[10754:0] debug: creating tcp4 socket 127.0.0.1 53
            [1418920283] unbound[10754:0] debug: creating udp6 socket ::1 53
            [1418920283] unbound[10754:0] debug: creating tcp6 socket ::1 53
            [1418920283] unbound[10754:0] debug: creating tcp4 socket 127.0.0.1 953
            [1418920283] unbound[10754:0] debug: switching log to syslog

            And it silently quits after that? Anything in /var/log/system.log ?

            Follow me on twitter http://twitter.com/wagonza
            http://www.thepackethub.co.za

            1 Reply Last reply Reply Quote 0
            • S
              sazv
              last edited by

              Quits silently, with no syslog entries at all.

              Strange, eh?

              1 Reply Last reply Reply Quote 0
              • S
                sazv
                last edited by

                And by syslog, i meant /var/log/system.log.

                1 Reply Last reply Reply Quote 0
                • W
                  wagonza
                  last edited by

                  @sazv:

                  Quits silently, with no syslog entries at all.

                  Strange, eh?

                  yeah it is.

                  @sazv:

                  [2.2-RC][root@.]/var/unbound: unbound -vvvv -d -c /var/unbound/unbound.conf

                  2 things
                  First can you pm your unbound.conf and sanitise your private info and 2nd thing is I noticed your box does not seem to have a hostname set?

                  Follow me on twitter http://twitter.com/wagonza
                  http://www.thepackethub.co.za

                  1 Reply Last reply Reply Quote 0
                  • W
                    wagonza
                    last edited by

                    By the way after it logs 'switching to syslog..' it starts to log to /var/log/resolver.log. Does that have anything further?
                    Also once you run that does a ps not show unbound running?

                    Follow me on twitter http://twitter.com/wagonza
                    http://www.thepackethub.co.za

                    1 Reply Last reply Reply Quote 0
                    • S
                      sazv
                      last edited by

                      Nothing in syslog or resolver.log, and no unbound running.

                      It was the hostname.  <facepalm>.  Strange that it didn't throw an error anywhere, though.</facepalm>

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