-
-
Notifications
You must be signed in to change notification settings - Fork 362
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New Install Not Functioning #920
Comments
I'm having exact same problem restarting unbound when my config file has the line:
If I remove the line restarting unbound works fine. |
This means Unbound itself exited with a failure. You can check the logfile to see what the complain is about. @metablaster, |
I followed this guide Here is the default location:
My config file has the line:
I've run:
And also:
To reproduce the problem I restart service:
And here is what the log says:
There is another trust anchor file located in:
If I set this one in config file instead the error is same. I'm not sure how to continue to troubleshoot this, any suggestions? |
I figured out what's the problem in my case. I copied the contents of my config file which were located in /etc/unbound/unbound.conf.d/unbound.conf I also removed the line which says I didn't change anything else and followed the same steps from my post above and it immediately started to work! The solution is from here: It's funny how you guys close the issue and but don't fix the problem.
|
I could understand the frustration but that part was not necessary.
What may have happened is that In your case I understand that all this is happening on a system with a packaged Unbound installed. I would leave the system configuration intact (with the includes and the included files) because probably there are a lot of supporting scripts and files around that for the distribution. |
Sorry for the other part, yes it's very frustrating when things don't work the way you configure them.
Thank you, this information helps to know what's the problem and I can confirm this is true, Which is different from what From user's perspective therefore |
* nlnet/master: - Update message TTL when using cached RRSETs. It could result in non-expired messages with expired RRSETs (non-usable messages by Unbound). - Update error printout for duplicate trust anchors to include the trust anchor name (relates to NLnetLabs#920). - Fix for NLnetLabs#997: Print details for SSL certificate failure. For analysis workflow, clean up the script to use OpenSSL Configure without change. - workflow for analysis, cleanup of windows compile with msys2 perl. - Fix warning for windres on resource files due to redefinition. For workflow, set perl interpreter for build. - Fix for workflow For workflow, look for pacman. For workflow, use msys2 perl. In workflow, use strawberry perl to run configure script. For workflow, change path separator. For windows runner, look at perl contents. Fix to install with cpanmin a missing perl module for the windows workflow. Fix for workflow to install perl module. - Update workflow for ports to use newer openssl on windows compile. Changelog note for NLnetLabs#993 - Merge NLnetLabs#993: Update b.root-servers.net also in example config file. - Fix to link with libssp for libcrypto and getaddrinfo check for only header. Also update crosscompile to remove ssp for 32bit. Update b.root-servers.net also in example config file - Fix to link with -lcrypt32 for OpenSSL 3.2.0 on Windows.
Putting this here for others to reference. There is already a |
The service is failing to start.
root@DietPi:
# sudo service unbound restart# systemctl status unbound.serviceJob for unbound.service failed because the control process exited with error code.
See "systemctl status unbound.service" and "journalctl -xe" for details.
root@DietPi:
● unbound.service - Unbound DNS server
Loaded: loaded (/lib/systemd/system/unbound.service; enabled; vendor preset: enabled)
Drop-In: /etc/systemd/system/unbound.service.d
└─dietpi.conf
Active: failed (Result: exit-code) since Sat 2023-08-12 19:14:21 BST; 17s ago
Docs: man:unbound(8)
Process: 6870 ExecStartPre=/usr/lib/unbound/package-helper chroot_setup (code=exited, status=0/SUCCESS)
Process: 6873 ExecStartPre=/usr/lib/unbound/package-helper root_trust_anchor_update (code=exited, status=0/SUCCESS)
Process: 6876 ExecStart=/usr/sbin/unbound -d -p $DAEMON_OPTS (code=exited, status=1/FAILURE)
Process: 6877 ExecStopPost=/usr/lib/unbound/package-helper chroot_teardown (code=exited, status=0/SUCCESS)
Main PID: 6876 (code=exited, status=1/FAILURE)
CPU: 170ms
Aug 12 19:14:21 DietPi systemd[1]: unbound.service: Scheduled restart job, restart counter is at 5.
Aug 12 19:14:21 DietPi systemd[1]: Stopped Unbound DNS server.
Aug 12 19:14:21 DietPi systemd[1]: unbound.service: Start request repeated too quickly.
Aug 12 19:14:21 DietPi systemd[1]: unbound.service: Failed with result 'exit-code'.
Aug 12 19:14:21 DietPi systemd[1]: Failed to start Unbound DNS server.
To reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
System:
unbound -V
output:root@DietPi:~# unbound -V
Version 1.13.1
Configure line: --build=aarch64-linux-gnu --prefix=/usr --includedir=${prefix}/include --mandir=${prefix}/share/man --infodir=${prefix}/share/info --sysconfdir=/etc --localstatedir=/var --disable-option-checking --disable-silent-rules --libdir=${prefix}/lib/aarch64-linux-gnu --libexecdir=${prefix}/lib/aarch64-linux-gnu --disable-maintainer-mode --disable-dependency-tracking --disable-rpath --with-pidfile=/run/unbound.pid --with-rootkey-file=/var/lib/unbound/root.key --with-libevent --with-pythonmodule --enable-subnet --enable-dnstap --enable-systemd --with-chroot-dir= --with-dnstap-socket-path=/run/dnstap.sock --libdir=/usr/lib --disable-flto
Linked libs: libevent 2.1.12-stable (it uses epoll), OpenSSL 1.1.1n 15 Mar 2022
Linked modules: dns64 python subnetcache respip validator iterator
BSD licensed, see LICENSE in source package for details.
Report bugs to unbound-bugs@nlnetlabs.nl or https://github.com/NLnetLabs/unbound/issues
Additional information
I was following the Unbound guide from pi-hole.net, but had to stop after the first step. I have no idea how to troubleshoot anything related to Linux.
The text was updated successfully, but these errors were encountered: