OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • English Forums »
  • General Discussion »
  • Unbound fails to start on boot
« previous next »
  • Print
Pages: [1] 2

Author Topic: Unbound fails to start on boot  (Read 7549 times)

lox

  • Newbie
  • *
  • Posts: 36
  • Karma: 1
    • View Profile
Unbound fails to start on boot
« on: July 19, 2019, 01:16:01 am »
I have two instances installed and running the latest release.

Whenever it reboots unbound won't start.

"The command '/usr/local/sbin/unbound -c '/var/unbound/unbound.conf'' returned exit code '1', the output was '[1560960202] unbound[50455:0] error: can't bind socket: Can't assign requested address for fe80::5868:342b:b04d:bb1f port 53"

But "Register IPv6 link-local addresses" is disables as IPV6 in interfaces configuration is.

If I start it manually after reboot, it starts up properly.

I want to enable monit to monitor it and start it automatically when it fails, but I cannot find the shell command to start/stop it.
« Last Edit: July 19, 2019, 01:31:26 am by lox »
Logged

lox

  • Newbie
  • *
  • Posts: 36
  • Karma: 1
    • View Profile
Re: Unbound fails to start on boot
« Reply #1 on: July 25, 2019, 11:36:43 pm »
Bump
Logged

lox

  • Newbie
  • *
  • Posts: 36
  • Karma: 1
    • View Profile
Re: Unbound fails to start on boot
« Reply #2 on: August 05, 2019, 02:19:23 am »
Bump
Logged

Pocket_Sevens

  • Jr. Member
  • **
  • Posts: 51
  • Karma: 2
    • View Profile
Re: Unbound fails to start on boot
« Reply #3 on: August 23, 2019, 03:34:40 pm »
I've noticed this too.  After an overnight shutdown (due to storms in the area), I started up my router and found Unbound didn't start.  I was able to manually start Unbound so we could get connectivity.  Is there any reason why it doesn't auto-start upon boot?
Logged

LouieLouie

  • Newbie
  • *
  • Posts: 43
  • Karma: 8
    • View Profile
Re: Unbound fails to start on boot
« Reply #4 on: August 26, 2019, 07:41:47 pm »
Here's the command:

/usr/local/sbin/pluginctl -s unbound start

you can change the 'start' to stop or restart.

I'm attaching a screenshot of my Monit config for Unbound.

Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 13929
  • Karma: 1208
    • View Profile
Re: Unbound fails to start on boot
« Reply #5 on: August 27, 2019, 06:38:07 pm »
Is fe80::5868:342b:b04d:bb1f on a PPPoE?


Cheers,
Franco
Logged

circlenaut

  • Newbie
  • *
  • Posts: 8
  • Karma: 1
    • View Profile
Re: Unbound fails to start on boot
« Reply #6 on: October 08, 2019, 03:37:49 am »
I'm also getting this issue. Put a bandaid on it as suggested with monit. When I search for the ip6 address I see it listed as link#11 and link#12 with Flags "UHS" and Use "0" under System:Routes:Status.

Anyway to figure out what this address is?
Logged

MarcelW

  • Newbie
  • *
  • Posts: 16
  • Karma: 0
    • View Profile
Re: Unbound fails to start on boot
« Reply #7 on: October 24, 2019, 06:33:02 am »
I have the same issue with these IPv6 bindings.
I dont use any IPv6 on my opnsense but unbound always tries to bind on a IPv6 address.

Code: [Select]
opnsense: /usr/local/etc/rc.bootup: The command '/usr/local/sbin/unbound -c '/var/unbound/unbound.conf'' returned exit code '1', the output was '[1571684608] unbound[58561:0] error: can't bind socket: Can't assign requested address for fe80::d468:38e9:5205:560a port 53 [1571684608] unbound[58561:0] fatal error: could not open ports'
Any ideas?
Logged

mimugmail

  • Hero Member
  • *****
  • Posts: 6332
  • Karma: 435
    • View Profile
Re: Unbound fails to start on boot
« Reply #8 on: October 24, 2019, 07:17:29 am »
Do you have an OpenVPN instance running?
Logged
Twitter: mimu_muc
WWW: www.routerperformance.net
Support plans: https://www.max-it.de/en/it-services/opnsense/
Commercial Plugins (German): https://opnsense.max-it.de/

u89

  • Newbie
  • *
  • Posts: 7
  • Karma: 0
    • View Profile
Re: Unbound fails to start on boot
« Reply #9 on: December 02, 2019, 11:07:27 pm »
I have this problem too, and YES I have openvpn server running.
« Last Edit: December 02, 2019, 11:09:19 pm by u89 »
Logged

mimugmail

  • Hero Member
  • *****
  • Posts: 6332
  • Karma: 435
    • View Profile
Re: Unbound fails to start on boot
« Reply #10 on: December 03, 2019, 05:57:18 am »
Can you try to only let it listen on LAN interface?
Logged
Twitter: mimu_muc
WWW: www.routerperformance.net
Support plans: https://www.max-it.de/en/it-services/opnsense/
Commercial Plugins (German): https://opnsense.max-it.de/

u89

  • Newbie
  • *
  • Posts: 7
  • Karma: 0
    • View Profile
Re: Unbound fails to start on boot
« Reply #11 on: April 18, 2020, 11:13:18 pm »
I do confirm. When openvpn server is set up for a single interface only, unbound starts on boot without issues.
Logged

mdbraber

  • Newbie
  • *
  • Posts: 4
  • Karma: 1
    • View Profile
Re: Unbound fails to start on boot
« Reply #12 on: May 17, 2020, 04:06:42 pm »
I've got a similar issue with unbound not restarting and also running an OpenVPN server (where Unbound is set to listen to the LAN + OpenVPN interface). Were you able to solve this?
Logged

bvwj

  • Newbie
  • *
  • Posts: 8
  • Karma: 0
    • View Profile
Re: Unbound fails to start on boot
« Reply #13 on: August 29, 2020, 11:57:48 pm »
Exact same issue listening to LAN and VPN.  I can start it from the GUI, but it would sure be nice if it could start itself.
Logged

verasense

  • Newbie
  • *
  • Posts: 40
  • Karma: 1
    • View Profile
Re: Unbound fails to start on boot
« Reply #14 on: February 21, 2022, 02:36:03 pm »
Is there a solution for this?

When I reboot OpnSense, at some point all my devices are left with apparently no Internet access and it is just a DNS issue - because the Unbound DNS service is stopped.
Logged

  • Print
Pages: [1] 2
« previous next »
  • OPNsense Forum »
  • English Forums »
  • General Discussion »
  • Unbound fails to start on boot
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2023 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2