Closed XxAcielxX closed 2 years ago
Your run command looks right. This makes me think your custom unbound.conf isn't getting picked up by the volume mount because it may be in the wrong location. What is your local directory structure (tree of /storage/downloads/docker/unbound)?
On Mon, Aug 16, 2021, 4:29 AM Aciel @.***> wrote:
Hello,
I want to customise the unbound.conf by binding it to a volume following your guide ( https://github.com/MatthewVance/unbound-docker-rpi#use-a-fully-customize-unbound-configuration), but I keep getting "could not read/open" errors.
My run command:
docker run -d \ --name unbound \ -p 5335:53/udp \ -p 5335:53/tcp \ -v /storage/downloads/docker/unbound:/opt/unbound/etc/unbound/ \ --restart=always \ mvance/unbound-rpi:latest
When I check the container logs, I see it full of errors.
[1629105694] libunbound[21:0] error: udp connect failed: Cannot assign requested address for 2001:dc3::35 port 53, /opt/unbound/etc/unbound/unbound.conf:293: error: cannot open include file '/opt/unbound/etc/unbound/a-records.conf': No such file or directory, /opt/unbound/etc/unbound/unbound.conf:294: error: cannot open include file '/opt/unbound/etc/unbound/srv-records.conf': No such file or directory, /opt/unbound/etc/unbound/unbound.conf:300: error: cannot open include file '/opt/unbound/etc/unbound/forward-records.conf': No such file or directory, read /opt/unbound/etc/unbound/unbound.conf failed: 3 errors in configuration file, [1629105695] unbound[1:0] fatal error: Could not read config file: /opt/unbound/etc/unbound/unbound.conf. Maybe try unbound -dd, it stays on the commandline to see more errors, or unbound-checkconf, [1629105696] libunbound[20:0] error: udp connect failed: Cannot assign requested address for 2001:500:2::c port 53, [1629105697] libunbound[20:0] error: udp connect failed: Cannot assign requested address for 2001:500:2d::d port 53, [1629105697] libunbound[20:0] error: udp connect failed: Cannot assign requested address for 2001:500:200::b port 53, [1629105697] libunbound[20:0] error: udp connect failed: Cannot assign requested address for 2001:500:2d::d port 53, /opt/unbound/etc/unbound/unbound.conf:293: error: cannot open include file '/opt/unbound/etc/unbound/a-records.conf': No such file or directory, /opt/unbound/etc/unbound/unbound.conf:294: error: cannot open include file '/opt/unbound/etc/unbound/srv-records.conf': No such file or directory, /opt/unbound/etc/unbound/unbound.conf:300: error: cannot open include file '/opt/unbound/etc/unbound/forward-records.conf': No such file or directory, read /opt/unbound/etc/unbound/unbound.conf failed: 3 errors in configuration file, [1629105697] unbound[1:0] fatal error: Could not read config file: /opt/unbound/etc/unbound/unbound.conf. Maybe try unbound -dd, it stays on the commandline to see more errors, or unbound-checkconf, [1629105698] libunbound[21:0] error: udp connect failed: Cannot assign requested address for 2001:503:c27::2:30 port 53, [1629105698] libunbound[21:0] error: udp connect failed: Cannot assign requested address for 2001:dc3::35 port 53, [1629105699] libunbound[21:0] error: udp connect failed: Cannot assign requested address for 2001:500:1::53 port 53, [1629105699] libunbound[21:0] error: udp connect failed: Cannot assign requested address for 2001:503:c27::2:30 port 53, [1629105700] libunbound[21:0] error: udp connect failed: Cannot assign requested address for 2001:503:c27::2:30 port 53, [1629105700] libunbound[21:0] error: udp connect failed: Cannot assign requested address for 2001:500:12::d0d port 53, /opt/unbound/etc/unbound/unbound.conf:293: error: cannot open include file '/opt/unbound/etc/unbound/a-records.conf': No such file or directory, /opt/unbound/etc/unbound/unbound.conf:294: error: cannot open include file '/opt/unbound/etc/unbound/srv-records.conf': No such file or directory, /opt/unbound/etc/unbound/unbound.conf:300: error: cannot open include file '/opt/unbound/etc/unbound/forward-records.conf': No such file or directory, read /opt/unbound/etc/unbound/unbound.conf failed: 3 errors in configuration file, [1629105700] unbound[1:0] fatal error: Could not read config file: /opt/unbound/etc/unbound/unbound.conf. Maybe try unbound -dd, it stays on the commandline to see more errors, or unbound-checkconf, [1629105702] libunbound[20:0] error: udp connect failed: Cannot assign requested address for 2001:500:1::53 port 53, /opt/unbound/etc/unbound/unbound.conf:293: error: cannot open include file '/opt/unbound/etc/unbound/a-records.conf': No such file or directory, /opt/unbound/etc/unbound/unbound.conf:294: error: cannot open include file '/opt/unbound/etc/unbound/srv-records.conf': No such file or directory, /opt/unbound/etc/unbound/unbound.conf:300: error: cannot open include file '/opt/unbound/etc/unbound/forward-records.conf': No such file or directory, read /opt/unbound/etc/unbound/unbound.conf failed: 3 errors in configuration file, [1629105702] unbound[1:0] fatal error: Could not read config file: /opt/unbound/etc/unbound/unbound.conf. Maybe try unbound -dd, it stays on the commandline to see more errors, or unbound-checkconf, /opt/unbound/etc/unbound/unbound.conf:293: error: cannot open include file '/opt/unbound/etc/unbound/a-records.conf': No such file or directory, /opt/unbound/etc/unbound/unbound.conf:294: error: cannot open include file '/opt/unbound/etc/unbound/srv-records.conf': No such file or directory, /opt/unbound/etc/unbound/unbound.conf:300: error: cannot open include file '/opt/unbound/etc/unbound/forward-records.conf': No such file or directory, read /opt/unbound/etc/unbound/unbound.conf failed: 3 errors in configuration file, [1629105704] unbound[1:0] fatal error: Could not read config file: /opt/unbound/etc/unbound/unbound.conf. Maybe try unbound -dd, it stays on the commandline to see more errors, or unbound-checkconf, [1629105707] libunbound[21:0] error: udp connect failed: Cannot assign requested address for 2001:500:a8::e port 53, /opt/unbound/etc/unbound/unbound.conf:293: error: cannot open include file '/opt/unbound/etc/unbound/a-records.conf': No such file or directory, /opt/unbound/etc/unbound/unbound.conf:294: error: cannot open include file '/opt/unbound/etc/unbound/srv-records.conf': No such file or directory, /opt/unbound/etc/unbound/unbound.conf:300: error: cannot open include file '/opt/unbound/etc/unbound/forward-records.conf': No such file or directory, read /opt/unbound/etc/unbound/unbound.conf failed: 3 errors in configuration file, [1629105707] unbound[1:0] fatal error: Could not read config file: /opt/unbound/etc/unbound/unbound.conf. Maybe try unbound -dd, it stays on the commandline to see more errors, or unbound-checkconf
My SBC OS: LibreELEC 9.2.6 (Kodi 18.9) Arch: ARM-64v8 User: root Docker: 18.09.7
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/MatthewVance/unbound-docker-rpi/issues/21, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAUMHOUFTMI3SRVIVUY57FTT5DK7LANCNFSM5CHLJNGA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email .
The structure is like this
/storage/downloads/docker/unbound/
dev/
null
random
urandom
var/
root.key
unbound.conf
These are created by the container itself.
Thanks, that helps. It looks like you're missing some include files:
You'll need to provide this so they're available to be mounted (see default examples) or modify your custom unbound.conf to not include them. Using default unbound.conf generated by unbound.sh, you'd remove lines 333-334. You would also need to insert a forward records entry to replace line 340 or set your config as a recursive server rather than a forwarding one.
You can ignore the [1629105698] libunbound[21:0] error: udp connect failed: Cannot assign requested address for 2001:503:c27::2:30 port 53,
errors. See https://github.com/MatthewVance/unbound-docker/issues/73#issuecomment-899883832 and https://github.com/MatthewVance/unbound-docker/issues/55.
Hello,
I want to customise the
unbound.conf
by binding a volume following your guide (https://github.com/MatthewVance/unbound-docker-rpi#use-a-fully-customize-unbound-configuration), but I keep getting "could not read/open" errors.My run command:
When I check the container logs, I see it full of errors.
My SBC OS: LibreELEC 9.2.6 (Kodi 18.9) Arch: ARM-64v8 User: root Docker: 18.09.7
P.S If I run the container without binding volume, there are no read/open errors at all.