Creating a bug report/issue
- DietPi version | v9.11.2
- Distro version | Dietpi
- SBC model | RPi 3 Model B+
Additional Information (if applicable)
- Software title | Unbound
- Fresh Install from library “dietpi-software”
- Yes
Ref Code: 40cd4e04-4a8e-4cc7-a403-67a172fac9bb
Steps to reproduce
Select software from dietpi-software
Expected behaviour
Installing Unbound
Actual behaviour
- Command: systemctl restart unbound │
│ - Exit code: 1 │
│ - DietPi version: v9.11.2 (MichaIng/master) | HW_MODEL: 3 | HW_ARCH: 3 | DISTRO: 7 │
│ - Error log: │
│ Warning: The unit file, source configuration file or drop-ins of unbound.service changed on │
│ disk. Run 'systemctl daemon-reload' to reload units. │
│ Job for unbound.service failed because the control process exited with error code.
Extra details
/boot/dietpi/func/dietpi-globals: line 959: /tmp/G_EXEC_LOG: No such file or directory
[FAILED] DietPi-Software | Unable to continue, DietPi-Software will now terminate.
Good afternoon, just trying to do a simple install of Unbound from the software directory but it fails sadly. Any help appreciated.
Thanks
can you share the entire log? just scroll up on your ssh terminal
Oh sorry, I rebooted etc to try and clean up. I will run the install again so I can grab the details. thanks
EDIT: This page wouldnt let me paste the whole log it gave 403 error. Everything before this part didnt show any errors
The following NEW packages will be installed:
unbound
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 884 kB of archives.
After this operation, 4929 kB of additional disk space will be used.
Get:1 https://deb.debian.org/debian bookworm/main arm64 unbound arm64 1.17.1-2+deb12u2 [884 kB]
debconf: delaying package configuration, since apt-utils is not installed
Fetched 884 kB in 0s (2992 kB/s)
Selecting previously unselected package unbound.
(Reading database ... 17108 files and directories currently installed.)
Preparing to unpack .../unbound_1.17.1-2+deb12u2_arm64.deb ...
Unpacking unbound (1.17.1-2+deb12u2) ...
Setting up unbound (1.17.1-2+deb12u2) ...
Could not execute systemctl: at /usr/bin/deb-systemd-invoke line 145.
[ OK ] DietPi-Software | APT install unbound
[ OK ] DietPi-Software | systemctl --no-reload disable --now unbound-resolvconf
[ ..]Synchronizing state of unbound.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable unbound
Job for unbound.service failed because the control process exited with error code.
See "systemctl status unbound.service" and "journalctl -xeu unbound.service" for details.
[FAILED] DietPi-Software | systemctl enable --now unbound
[FAILED] DietPi-Software | Unable to continue, DietPi-Software will now terminate.
can you share the service log
journalctl -u unbound.service
I get this:
root@DietPi:~# journalctl -u unbound. Service
Failed to add match 'Service': Invalid argument
Some kind of autocorrection damage the command. I corrected it above. Can you try again pls
Wow! That created a huge log 
root@DietPi:~# journalctl -u unbound.service
Mar 10 13:17:52 DietPi systemd[1]: Starting unbound.service - Unbound DNS server...
Mar 10 13:17:52 DietPi unbound[1420]: [1741612672] unbound[1420:0] error: can't bind socket: Cannot assign requested address for ::1 port 53
Mar 10 13:17:52 DietPi unbound[1420]: [1741612672] unbound[1420:0] fatal error: could not open ports
Mar 10 13:17:52 DietPi systemd[1]: unbound.service: Main process exited, code=exited, status=1/FAILURE
Mar 10 13:17:52 DietPi systemd[1]: unbound.service: Failed with result 'exit-code'.
Mar 10 13:17:52 DietPi systemd[1]: Failed to start unbound.service - Unbound DNS server.
Mar 10 13:17:52 DietPi systemd[1]: unbound.service: Scheduled restart job, restart counter is at 1.
Mar 10 13:17:52 DietPi systemd[1]: Stopped unbound.service - Unbound DNS server.
Mar 10 13:17:52 DietPi systemd[1]: Starting unbound.service - Unbound DNS server...
Mar 10 13:17:52 DietPi unbound[1430]: [1741612672] unbound[1430:0] error: can't bind socket: Cannot assign requested address for ::1 port 53
Mar 10 13:17:52 DietPi unbound[1430]: [1741612672] unbound[1430:0] fatal error: could not open ports
Mar 10 13:17:52 DietPi systemd[1]: unbound.service: Main process exited, code=exited, status=1/FAILURE
Mar 10 13:17:52 DietPi systemd[1]: unbound.service: Failed with result 'exit-code'.
Mar 10 13:17:52 DietPi systemd[1]: Failed to start unbound.service - Unbound DNS server.
Mar 10 13:17:53 DietPi systemd[1]: unbound.service: Scheduled restart job, restart counter is at 2.
Mar 10 13:17:53 DietPi systemd[1]: Stopped unbound.service - Unbound DNS server.
Mar 10 13:17:53 DietPi systemd[1]: Starting unbound.service - Unbound DNS server...
Mar 10 13:17:55 DietPi unbound[1459]: [1741612675] unbound[1459:0] error: can't bind socket: Cannot assign requested address for ::1 port 53
Mar 10 13:17:55 DietPi unbound[1459]: [1741612675] unbound[1459:0] fatal error: could not open ports
Mar 10 13:17:55 DietPi systemd[1]: unbound.service: Main process exited, code=exited, status=1/FAILURE
****Note - it does this another 5 times then below********
Mar 10 13:54:07 DietPi unbound[1578]: [1578:0] warning: subnetcache: serve-expired is set but not working for data originating from the subnet module cache.
Mar 10 13:54:07 DietPi unbound[1578]: [1578:0] warning: subnetcache: prefetch is set but not working for data originating from the subnet module cache.
Mar 10 13:54:07 DietPi unbound[1578]: [1578:0] notice: init module 1: validator
Mar 10 13:54:07 DietPi unbound[1578]: [1578:0] error: unable to open /var/lib/unbound/root.key for reading: No such file or directory
Mar 10 13:54:07 DietPi unbound[1578]: [1578:0] error: error reading auto-trust-anchor-file: /var/lib/unbound/root.key
Mar 10 13:54:07 DietPi unbound[1578]: [1578:0] error: validator: error in trustanchors config
Mar 10 13:54:07 DietPi unbound[1578]: [1578:0] error: validator: could not apply configuration settings.
Mar 10 13:54:07 DietPi unbound[1578]: [1578:0] error: module init for module validator failed
Mar 10 13:54:07 DietPi unbound[1578]: [1578:0] fatal error: failed to setup modules
Mar 10 13:54:07 DietPi systemd[1]: unbound.service: Main process exited, code=exited, status=1/FAILURE
Mar 10 13:54:07 DietPi systemd[1]: unbound.service: Failed with result 'exit-code'.
Mar 10 13:54:07 DietPi systemd[1]: Failed to start unbound.service - Unbound DNS server.
Ok can you reboot and check system log again
1 Like
root@DietPi:~# journalctl -u unbound.service
Mar 10 20:02:28 DietPi systemd[1]: Starting unbound.service - Unbound DNS server...
Mar 10 20:02:29 DietPi unbound-helper[346]: [1741636949] unbound-checkconf[346:0] error: Could not open /etc/unbound/unbound.conf: No such file or directory
Mar 10 20:02:29 DietPi unbound-helper[353]: [1741636949] unbound-checkconf[353:0] error: Could not open /etc/unbound/unbound.conf: No such file or directory
Mar 10 20:02:29 DietPi unbound[354]: [1741636949] unbound[354:0] error: Could not open /etc/unbound/unbound.conf: No such file or directory
Mar 10 20:02:29 DietPi unbound[354]: [1741636949] unbound[354:0] warning: Continuing with default config settings
Mar 10 20:02:29 DietPi unbound[354]: [1741636949] unbound[354:0] error: can't bind socket: Cannot assign requested address for ::1 port 53
Mar 10 20:02:29 DietPi unbound[354]: [1741636949] unbound[354:0] fatal error: could not open ports
Mar 10 20:02:29 DietPi systemd[1]: unbound.service: Main process exited, code=exited, status=1/FAILURE
Mar 10 20:02:29 DietPi unbound-helper[356]: [1741636949] unbound-checkconf[356:0] error: Could not open /etc/unbound/unbound.conf: No such file or directory
Mar 10 20:02:29 DietPi systemd[1]: unbound.service: Failed with result 'exit-code'.
Mar 10 20:02:29 DietPi systemd[1]: Failed to start unbound.service - Unbound DNS server.
Mar 10 20:02:30 DietPi systemd[1]: unbound.service: Scheduled restart job, restart counter is at 1.
Mar 10 20:02:30 DietPi systemd[1]: Stopped unbound.service - Unbound DNS server.
Mar 10 20:02:30 DietPi systemd[1]: Starting unbound.service - Unbound DNS server...
Mar 10 20:02:30 DietPi unbound-helper[384]: [1741636950] unbound-checkconf[384:0] error: Could not open /etc/unbound/unbound.conf: No such file or directory
Mar 10 20:02:30 DietPi unbound-helper[386]: [1741636950] unbound-checkconf[386:0] error: Could not open /etc/unbound/unbound.conf: No such file or directory
Mar 10 20:02:30 DietPi unbound[391]: [1741636950] unbound[391:0] error: Could not open /etc/unbound/unbound.conf: No such file or directory
Mar 10 20:02:30 DietPi unbound[391]: [1741636950] unbound[391:0] warning: Continuing with default config settings
Mar 10 20:02:30 DietPi unbound[391]: [1741636950] unbound[391:0] error: can't bind socket: Cannot assign requested address for ::1 port 53
Mar 10 20:02:30 DietPi unbound[391]: [1741636950] unbound[391:0] fatal error: could not open ports
Mar 10 20:02:30 DietPi systemd[1]: unbound.service: Main process exited, code=exited, status=1/FAILURE
Mar 10 20:02:30 DietPi unbound-helper[396]: [1741636950] unbound-checkconf[396:0] error: Could not open /etc/unbound/unbound.conf: No such file or directory
Mar 10 20:02:30 DietPi systemd[1]: unbound.service: Failed with result 'exit-code'.
Mar 10 20:02:30 DietPi systemd[1]: Failed to start unbound.service - Unbound DNS server.
Mar 10 20:02:30 DietPi systemd[1]: unbound.service: Scheduled restart job, restart counter is at 2.
Mar 10 20:02:30 DietPi systemd[1]: Stopped unbound.service - Unbound DNS server.
Mar 10 20:02:30 DietPi systemd[1]: Starting unbound.service - Unbound DNS server...
Mar 10 20:02:30 DietPi unbound-helper[402]: [1741636950] unbound-checkconf[402:0] error: Could not open /etc/unbound/unbound.conf: No such file or directory
Mar 10 20:02:30 DietPi unbound-helper[404]: [1741636950] unbound-checkconf[404:0] error: Could not open /etc/unbound/unbound.conf: No such file or directory
Mar 10 20:02:30 DietPi unbound[405]: [1741636950] unbound[405:0] error: Could not open /etc/unbound/unbound.conf: No such file or directory
Mar 10 20:02:30 DietPi unbound[405]: [1741636950] unbound[405:0] warning: Continuing with default config settings
Mar 10 20:02:30 DietPi unbound[405]: [1741636950] unbound[405:0] error: can't bind socket: Cannot assign requested address for ::1 port 53
Mar 10 20:02:30 DietPi unbound[405]: [1741636950] unbound[405:0] fatal error: could not open ports
Mar 10 20:02:30 DietPi systemd[1]: unbound.service: Main process exited, code=exited, status=1/FAILURE
Mar 10 20:02:30 DietPi unbound-helper[407]: [1741636950] unbound-checkconf[407:0] error: Could not open /etc/unbound/unbound.conf: No such file or directory
Mar 10 20:02:30 DietPi systemd[1]: unbound.service: Failed with result 'exit-code'.
Mar 10 20:02:30 DietPi systemd[1]: Failed to start unbound.service - Unbound DNS server.
Mar 10 20:02:31 DietPi systemd[1]: unbound.service: Scheduled restart job, restart counter is at 3.
Mar 10 20:02:31 DietPi systemd[1]: Stopped unbound.service - Unbound DNS server.
Mar 10 20:02:31 DietPi systemd[1]: Starting unbound.service - Unbound DNS server...
Mar 10 20:02:31 DietPi unbound-helper[409]: [1741636951] unbound-checkconf[409:0] error: Could not open /etc/unbound/unbound.conf: No such file or directory
Mar 10 20:02:31 DietPi unbound-helper[411]: [1741636951] unbound-checkconf[411:0] error: Could not open /etc/unbound/unbound.conf: No such file or directory
Mar 10 20:02:31 DietPi unbound[412]: [1741636951] unbound[412:0] error: Could not open /etc/unbound/unbound.conf: No such file or directory
Mar 10 20:02:31 DietPi unbound[412]: [1741636951] unbound[412:0] warning: Continuing with default config settings
Mar 10 20:02:31 DietPi unbound[412]: [1741636951] unbound[412:0] error: can't bind socket: Cannot assign requested address for ::1 port 53
Mar 10 20:02:31 DietPi unbound[412]: [1741636951] unbound[412:0] fatal error: could not open ports
Mar 10 20:02:31 DietPi systemd[1]: unbound.service: Main process exited, code=exited, status=1/FAILURE
Mar 10 20:02:31 DietPi unbound-helper[414]: [1741636951] unbound-checkconf[414:0] error: Could not open /etc/unbound/unbound.conf: No such file or directory
Mar 10 20:02:31 DietPi systemd[1]: unbound.service: Failed with result 'exit-code'.
Mar 10 20:02:31 DietPi systemd[1]: Failed to start unbound.service - Unbound DNS server.
Mar 10 20:02:31 DietPi systemd[1]: unbound.service: Scheduled restart job, restart counter is at 4.
Mar 10 20:02:31 DietPi systemd[1]: Stopped unbound.service - Unbound DNS server.
Mar 10 20:02:31 DietPi systemd[1]: Starting unbound.service - Unbound DNS server...
Mar 10 20:02:31 DietPi unbound-helper[416]: [1741636951] unbound-checkconf[416:0] error: Could not open /etc/unbound/unbound.conf: No such file or directory
Mar 10 20:02:31 DietPi unbound-helper[418]: [1741636951] unbound-checkconf[418:0] error: Could not open /etc/unbound/unbound.conf: No such file or directory
Mar 10 20:02:31 DietPi unbound[419]: [1741636951] unbound[419:0] error: Could not open /etc/unbound/unbound.conf: No such file or directory
Mar 10 20:02:31 DietPi unbound[419]: [1741636951] unbound[419:0] warning: Continuing with default config settings
Mar 10 20:02:31 DietPi unbound[419]: [1741636951] unbound[419:0] error: can't bind socket: Cannot assign requested address for ::1 port 53
Mar 10 20:02:31 DietPi unbound[419]: [1741636951] unbound[419:0] fatal error: could not open ports
Mar 10 20:02:31 DietPi systemd[1]: unbound.service: Main process exited, code=exited, status=1/FAILURE
Mar 10 20:02:31 DietPi unbound-helper[421]: [1741636951] unbound-checkconf[421:0] error: Could not open /etc/unbound/unbound.conf: No such file or directory
Mar 10 20:02:31 DietPi systemd[1]: unbound.service: Failed with result 'exit-code'.
Mar 10 20:02:31 DietPi systemd[1]: Failed to start unbound.service - Unbound DNS server.
Mar 10 20:02:32 DietPi systemd[1]: unbound.service: Scheduled restart job, restart counter is at 5.
Mar 10 20:02:32 DietPi systemd[1]: Stopped unbound.service - Unbound DNS server.
Mar 10 20:02:32 DietPi systemd[1]: unbound.service: Start request repeated too quickly.
Mar 10 20:02:32 DietPi systemd[1]: unbound.service: Failed with result 'exit-code'.
Mar 10 20:02:32 DietPi systemd[1]: Failed to start unbound.service - Unbound DNS server.
root@DietPi:~#
Let’s remove it and try to install again
apt purge unbound
reboot
Try to share the whole install log. Feel free to attache as text file if needed
1 Like
SUCCESS!!! After purging everything twice then rebooting it still had the “unbound” directory, so I deleted that also, rang the purge again and rebooted.
Reinstalled again and this time it went all the way through without any errors.
Thank you for your time and patience its appreciated very much
2 Likes