Skip to content
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

Unbound Error upon start up #47

Open
RobotUser1 opened this issue Sep 14, 2021 · 2 comments
Open

Unbound Error upon start up #47

RobotUser1 opened this issue Sep 14, 2021 · 2 comments

Comments

@RobotUser1
Copy link

Hi There,

I'm running into an issue after initiating docker-compose up. The QR code will display and it appears that pi-hole and WireGuard are working but unbound is reading a couple errors. The first one states "unbound | standard_init_linux.go:228: exec user process caused: exec format error". The second error that pops up is "unbound | standard_init_linux.go:228: exec user process caused: exec format error and continues infinitely."

@catleeball
Copy link

Same error here. Here's what I'm seeing on Ubuntu 20.04 on Oracle's free tier ARM VPS:

$ sudo docker-compose up

[ long output at:  https://gist.github.com/catleeball/c49896f9dd721bb081f9955be94e4e0f ]

^CGracefully stopping... (press Ctrl+C again to force)
Stopping wireguard ... done
Stopping pihole    ... done
Stopping unbound   ... done

$ sudo docker ps -a
CONTAINER ID   IMAGE                   COMMAND         CREATED          STATUS                     PORTS     NAMES
9ca0004cf6ea   linuxserver/wireguard   "/init"         31 minutes ago   Exited (0) 3 minutes ago             wireguard
f51d5bb31e9e   pihole/pihole:latest    "/s6-init"      31 minutes ago   Exited (0) 3 minutes ago             pihole
fce8b8849aa1   mvance/unbound:latest   "/unbound.sh"   31 minutes ago   Exited (1) 3 minutes ago             unbound


$ for i in $(sudo docker ps -a | awk '{print $1}' | tail -n 3); do
    sudo docker inspect -f '{{ index .Config.Labels "build_version" }}' $i;
done
Linuxserver.io version:- v1.0.20210914-ls41 Build-date:- 2021-09-14T01:35:25+02:00


$ sudo docker logs unbound | head -n 50
standard_init_linux.go:228: exec user process caused: exec format error
[repeated 49x]

I did make a couple small changes, but reverting them I still get the same behavior:

$ git diff
diff --git a/docker-compose.yml b/docker-compose.yml
index 3b56f20..3572bd1 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -32,9 +32,10 @@ services:
       - TZ=America/Los_Angeles # Change to your timezone
       - SERVERPORT=51820
       #- SERVERURL=my.ddns.net #optional - For use with DDNS (Uncomment to use)
-      - PEERS=1 # How many peers to generate for you (clients)
+      - PEERS=6 # How many peers to generate for you (clients)
       - PEERDNS=10.2.0.100 # Set it to point to pihole
       - INTERNAL_SUBNET=10.6.0.0
+      - SERVERURL=[redacted VPS public ipv4 address]

     volumes:
       - ./wireguard:/config
diff --git a/unbound/unbound.conf b/unbound/unbound.conf
index 235ff3b..64d480d 100644
--- a/unbound/unbound.conf
+++ b/unbound/unbound.conf
@@ -303,13 +303,13 @@ server:
     # OPTIONAL:
     # Forward Secure DNS to upstread provider Cloudflare DNS

-    # forward-zone:
-    #     name: "."
-    #     forward-addr: 1.1.1.1@853#cloudflare-dns.com
-    #     forward-addr: 1.0.0.1@853#cloudflare-dns.com
-    #     forward-addr: 2606:4700:4700::1111@853#cloudflare-dns.com
-    #     forward-addr: 2606:4700:4700::1001@853#cloudflare-dns.com
-    #     forward-tls-upstream: yes
+    forward-zone:
+        name: "."
+        forward-addr: 1.1.1.1@853#cloudflare-dns.com
+        forward-addr: 1.0.0.1@853#cloudflare-dns.com
+        forward-addr: 2606:4700:4700::1111@853#cloudflare-dns.com
+        forward-addr: 2606:4700:4700::1001@853#cloudflare-dns.com
+        forward-tls-upstream: yes

     remote-control:
         control-enable: no

I'm checked out to the current head of the repo:

$ git log -n 1
commit 9f5a9ee09f4e16aee95259c7f5c1dea77ac511ff (grafted, HEAD -> master, origin/master, origin/HEAD)

System info:

$ uname -a
Linux phx 5.11.0-1017-oracle #18~20.04.1-Ubuntu SMP Fri Aug 27 11:09:43 UTC 2021 aarch64 aarch64 aarch64 GNU/Linux

$ docker --version
Docker version 20.10.8, build 3967b7d

$ docker-compose --version
docker-compose version 1.29.2, build unknown

Let me know if you need any additional info!

@Jojonintendo
Copy link

This looks like you're on ARM hardware, but the Unbound image isn't made for this architecture. Change it to mvance/unbound-rpi:latest or pedantic/unbound:latest and it should run. Latest versions of Pi-Hole seem to have issues with Unbound anyway, I can no longer resolve DNS locally, it only works when forwarding the requests, but that's another subject.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants