hat3ph / docker-adguard-unbound

This solution is a combination of AdGuard and Unbound in a docker-compose project with the intent of enabling users to quickly and easily create and deploy a personally managed ad blocking capabilities , family safe search, parental controls (via AdGuard), and DNS caching with additional privacy options and DNSSEC validation (via Unbound).
31 stars 5 forks source link

[error] exec /opt/entrypoint.sh: exec format error #6

Closed FelixBorgel closed 5 days ago

FelixBorgel commented 2 months ago

i can´t start the docker. This is in the log of the docker container. What can i do to fix the problem.

hat3ph commented 2 months ago

Are you using docker compose? Pls post the output of docker compose logs.

FelixBorgel commented 2 months ago

That's basically what it says, just now 984 times.

FelixBorgel commented 2 months ago

and yes im using docker compose

hat3ph commented 2 months ago

I have setup the container on a fresh Ubuntu 24.04 and it is working with out issue. What is your docker host distro?

administrator@ubuntu-svr:~/docker-adguard-unbound$ docker compose logs
WARN[0000] /home/administrator/docker-adguard-unbound/docker-compose.yml: `version` is obsolete 
adguard-unbound  | 2024/06/19 22:54:03.130936 [info] AdGuard Home, version v0.107.51
adguard-unbound  | 2024/06/19 22:54:03.130991 [info] This is the first time AdGuard Home is launched
adguard-unbound  | 2024/06/19 22:54:03.130994 [info] Checking if AdGuard Home has necessary permissions
adguard-unbound  | 2024/06/19 22:54:03.131398 [info] AdGuard Home can bind to port 53
adguard-unbound  | 2024/06/19 22:54:03.133602 [info] safesearch default: disabled
adguard-unbound  | 2024/06/19 22:54:03.135817 [info] Initializing auth module: /opt/adguardhome/work/data/sessions.db
adguard-unbound  | 2024/06/19 22:54:03.139587 [info] auth: initialized.  users:0  sessions:0
adguard-unbound  | 2024/06/19 22:54:03.139680 [info] AdGuard Home updates are disabled
adguard-unbound  | 2024/06/19 22:54:03.139685 [info] web: initializing
adguard-unbound  | 2024/06/19 22:54:03.139709 [info] This is the first launch of AdGuard Home, redirecting everything to /install.html 
adguard-unbound  | 2024/06/19 22:54:03.139731 [info] AdGuard Home is available at the following addresses:
adguard-unbound  | 2024/06/19 22:54:03.139877 [info] go to http://127.0.0.1:3000
adguard-unbound  | 2024/06/19 22:54:03.139881 [info] go to http://[::1]:3000
adguard-unbound  | 2024/06/19 22:54:03.139883 [info] go to http://172.18.0.2:3000
adguard-unbound  | 2024/06/19 22:56:08.534797 [info] WARNING: preparing resolvers: no upstream specified; trying to disable private RDNS resolution
adguard-unbound  | 2024/06/19 22:56:08.534853 [info] dnsproxy: cache: enabled, size 4096 b
adguard-unbound  | 2024/06/19 22:56:08.534857 [info] dnsproxy: max goroutines is set to 300
adguard-unbound  | 2024/06/19 22:56:08.534885 [info] Ratelimit is enabled and set to 20 rps, IPv4 subnet mask len 24, IPv6 subnet mask len 56
adguard-unbound  | 2024/06/19 22:56:08.534887 [info] dnsproxy: server will refuse requests of type ANY
adguard-unbound  | 2024/06/19 22:56:08.534897 [info] dnsproxy: cache: enabled, size 4194304 b
adguard-unbound  | 2024/06/19 22:56:08.534900 [info] dnsproxy: max goroutines is set to 300
adguard-unbound  | 2024/06/19 22:56:08.538301 [info] clients: processing addresses
adguard-unbound  | 2024/06/19 22:56:08.541409 [info] dnsproxy: starting dns proxy server
adguard-unbound  | 2024/06/19 22:56:08.541432 [info] dnsproxy: creating udp server socket 0.0.0.0:53
adguard-unbound  | 2024/06/19 22:56:08.541553 [info] dnsproxy: listening to udp://[::]:53
adguard-unbound  | 2024/06/19 22:56:08.541560 [info] dnsproxy: creating tcp server socket 0.0.0.0:53
adguard-unbound  | 2024/06/19 22:56:08.541614 [info] dnsproxy: listening to tcp://[::]:53
adguard-unbound  | 2024/06/19 22:56:08.541726 [info] dnsproxy: entering udp listener loop on [::]:53
adguard-unbound  | 2024/06/19 22:56:08.541811 [info] dnsproxy: entering tcp listener loop on [::]:53
adguard-unbound  | 2024/06/19 22:56:08.548429 [info] go to http://127.0.0.1:80
adguard-unbound  | 2024/06/19 22:56:08.548452 [info] go to http://[::1]:80
adguard-unbound  | 2024/06/19 22:56:08.548458 [info] go to http://172.18.0.2:80
adguard-unbound  | 2024/06/19 22:56:14.082571 [info] filtering: saving contents of filter 1 into "/opt/adguardhome/work/data/filters/1.txt"
adguard-unbound  | 2024/06/19 22:56:14.090937 [info] filtering: updated filter 1: 1375026 bytes, 68309 rules
adguard-unbound  | 2024/06/19 22:56:14.090947 [info] filtering: updated filter 1; rule count: 68309 (was 0)
adguard-unbound  | 2024/06/19 22:56:16.582046 [info] auth: user "admin" successfully logged in from ip 192.168.1.10
adguard-unbound  | 2024/06/20 10:13:02.881964 [info] AdGuard Home, version v0.107.51
adguard-unbound  | 2024/06/20 10:13:02.886748 [info] tls: using default ciphers
adguard-unbound  | 2024/06/20 10:13:02.894135 [info] safesearch default: disabled
adguard-unbound  | 2024/06/20 10:13:02.909269 [info] Initializing auth module: /opt/adguardhome/work/data/sessions.db
adguard-unbound  | 2024/06/20 10:13:02.911162 [info] auth: initialized.  users:1  sessions:1
adguard-unbound  | 2024/06/20 10:13:02.911185 [info] AdGuard Home updates are disabled
adguard-unbound  | 2024/06/20 10:13:02.911191 [info] web: initializing
adguard-unbound  | 2024/06/20 10:13:02.931154 [info] dnsproxy: cache: enabled, size 4096 b
adguard-unbound  | 2024/06/20 10:13:02.931305 [info] dnsproxy: max goroutines is set to 300
adguard-unbound  | 2024/06/20 10:13:02.931607 [info] Ratelimit is enabled and set to 20 rps, IPv4 subnet mask len 24, IPv6 subnet mask len 56
adguard-unbound  | 2024/06/20 10:13:02.931632 [info] dnsproxy: server will refuse requests of type ANY
adguard-unbound  | 2024/06/20 10:13:02.931639 [info] dnsproxy: cache: enabled, size 4194304 b
adguard-unbound  | 2024/06/20 10:13:02.931647 [info] dnsproxy: max goroutines is set to 300
adguard-unbound  | 2024/06/20 10:13:02.933409 [info] clients: processing addresses
adguard-unbound  | 2024/06/20 10:13:02.933423 [info] AdGuard Home is available at the following addresses:
adguard-unbound  | 2024/06/20 10:13:02.933868 [info] go to http://127.0.0.1:80
adguard-unbound  | 2024/06/20 10:13:02.933879 [info] go to http://[::1]:80
adguard-unbound  | 2024/06/20 10:13:02.933886 [info] go to http://172.18.0.2:80
adguard-unbound  | 2024/06/20 10:13:03.156544 [info] dnsproxy: starting dns proxy server
adguard-unbound  | 2024/06/20 10:13:03.156578 [info] dnsproxy: creating udp server socket 0.0.0.0:53
adguard-unbound  | 2024/06/20 10:13:03.156745 [info] dnsproxy: listening to udp://[::]:53
adguard-unbound  | 2024/06/20 10:13:03.156757 [info] dnsproxy: creating tcp server socket 0.0.0.0:53
adguard-unbound  | 2024/06/20 10:13:03.156789 [info] dnsproxy: listening to tcp://[::]:53
adguard-unbound  | 2024/06/20 10:13:03.156915 [info] dnsproxy: entering udp listener loop on [::]:53
adguard-unbound  | 2024/06/20 10:13:03.157044 [info] dnsproxy: entering tcp listener loop on [::]:53
administrator@ubuntu-svr:~/docker-adguard-unbound$ 
hat3ph commented 2 months ago

@FelixBorgel , any update? If not I will close this issue.

hat3ph commented 2 months ago

Ticket closed

sypion commented 1 month ago

Hi there! I'm encountering this same issue. I believe this is due to the fact I'm trying to run this on ARM64 environment. Do you have an image that supports that?

hat3ph commented 3 weeks ago

Hi there! I'm encountering this same issue. I believe this is due to the fact I'm trying to run this on ARM64 environment. Do you have an image that supports that?

There is. Pls check out https://github.com/hat3ph/adguard-unbound/pkgs/container/adguard-unbound

sypion commented 3 weeks ago

Hmm, I thought that would fix the issue but it didn't. Thank you for directing me to the ARM image regardless. Only thing I'm getting in my log is:

exec /opt/entrypoint.sh: exec format error
exec /opt/entrypoint.sh: exec format error
exec /opt/entrypoint.sh: exec format error
exec /opt/entrypoint.sh: exec format error
exec /opt/entrypoint.sh: exec format error
exec /opt/entrypoint.sh: exec format error
exec /opt/entrypoint.sh: exec format error
exec /opt/entrypoint.sh: exec format error

With the following docker compose:

version: "3"

services:
  adguard-unbound:
    container_name: adguard-unbound
    image: ghcr.io/hat3ph/adguard-unbound:0.107.52
    restart: unless-stopped
    hostname: adguard-unbound
    # Volumes store your data between container upgrades
    volumes:
      - "./adguard/opt-adguard-work:/opt/adguardhome/work" # adguard container work directory
      - "./adguard/opt-adguard-conf:/opt/adguardhome/conf" # adguard container conf directory
      - "./unbound:/opt/unbound" # map custom unbound config
      - "/usr/share/dns:/usr/share/dns" # map DNSSEC key and root hints from dns-root-data package
    ports:
      - 53:53/tcp # AdGuard Home DNS connection
      - 53:53/udp # AdGuard Home DNS connection
      - 3000:3000/tcp # AdGuard Home install web panel. Can disable after installation is completed.
      - 85:80/tcp # AdGuard Home web panel HTTP
      #- 443:443/tcp # AdGuard Home web panel HTTPS
      #- 784:784/udp # AdGuard Home DNS-over-QUIC service
      #- 853:853/tcp # AdGuard Home DNS-over-TLS/QUIC service
      #- 67:67/udp # DHCP server
      #- 68:68/udp # DHCP server
      - 5053:5053/tcp # Uncomment to enable unbound access on local server
      - 5053:5053/udp # Uncomment to enable unbound access on local server

I am currently trying to run this on Debian.

hat3ph commented 3 weeks ago

@sypion I have no idea what is causing the issue as I can run the amd64 image in my environment and I do not have any arm device for testing. Can run below command and show me the output in your docker host?

administrator@ubuntu-svr:~$ docker image ls
REPOSITORY                       TAG       IMAGE ID       CREATED         SIZE
ghcr.io/hat3ph/adguard-unbound   latest    db51c27dd87b   7 weeks ago     42.3MB
hello-world                      latest    d2c94e258dcb   15 months ago   13.3kB
administrator@ubuntu-svr:~$ docker image history db51c27dd87b
IMAGE          CREATED        CREATED BY                                      SIZE      COMMENT
db51c27dd87b   7 weeks ago    LABEL maintainer=hata_ph <hata_ph@gmail.com>    0B        buildkit.dockerfile.v0
<missing>      7 weeks ago    CMD ["/opt/entrypoint.sh"]                      0B        buildkit.dockerfile.v0
<missing>      7 weeks ago    HEALTHCHECK &{["CMD-SHELL" "sh /opt/healthch…   0B        buildkit.dockerfile.v0
<missing>      7 weeks ago    EXPOSE map[3000/tcp:{} 443/tcp:{} 5053/tcp:{…   0B        buildkit.dockerfile.v0
<missing>      7 weeks ago    VOLUME [/opt/adguardhome/conf /opt/adguardho…   0B        buildkit.dockerfile.v0
<missing>      7 weeks ago    WORKDIR /opt/adguardhome/work                   0B        buildkit.dockerfile.v0
<missing>      7 weeks ago    RUN |4 AGH_VER=v0.107.52 TARGETPLATFORM=linu…   30.4MB    buildkit.dockerfile.v0
<missing>      7 weeks ago    COPY files/ /opt/ # buildkit                    1.01kB    buildkit.dockerfile.v0
<missing>      7 weeks ago    RUN |4 AGH_VER=v0.107.52 TARGETPLATFORM=linu…   3.31kB    buildkit.dockerfile.v0
<missing>      7 weeks ago    WORKDIR /tmp                                    0B        buildkit.dockerfile.v0
<missing>      7 weeks ago    RUN |4 AGH_VER=v0.107.52 TARGETPLATFORM=linu…   4.04MB    buildkit.dockerfile.v0
<missing>      7 weeks ago    RUN |4 AGH_VER=v0.107.52 TARGETPLATFORM=linu…   0B        buildkit.dockerfile.v0
<missing>      7 weeks ago    ARG TARGETVARIANT=                              0B        buildkit.dockerfile.v0
<missing>      7 weeks ago    ARG TARGETARCH=amd64                            0B        buildkit.dockerfile.v0
<missing>      7 weeks ago    ARG TARGETPLATFORM=linux/amd64                  0B        buildkit.dockerfile.v0
<missing>      7 weeks ago    ARG AGH_VER=v0.107.52                           0B        buildkit.dockerfile.v0
<missing>      2 months ago   /bin/sh -c #(nop)  CMD ["/bin/sh"]              0B        
<missing>      2 months ago   /bin/sh -c #(nop) ADD file:33ebe56b967747a97…   7.8MB
sypion commented 3 weeks ago

Sure, here you go:

chris@device:~ $ docker image ls
REPOSITORY                       TAG        IMAGE ID       CREATED        SIZE
ghcr.io/hat3ph/adguard-unbound   0.107.52   817bad118323   7 weeks ago    41.2MB
chris@device:~ $ docker image history 817bad118323
IMAGE          CREATED        CREATED BY                                      SIZE      COMMENT
817bad118323   7 weeks ago    LABEL maintainer=hata_ph <hata_ph@gmail.com>    0B        buildkit.dockerfile.v0
<missing>      7 weeks ago    CMD ["/opt/entrypoint.sh"]                      0B        buildkit.dockerfile.v0
<missing>      7 weeks ago    HEALTHCHECK &{["CMD-SHELL" "sh /opt/healthch…   0B        buildkit.dockerfile.v0
<missing>      7 weeks ago    EXPOSE map[3000/tcp:{} 443/tcp:{} 5053/tcp:{…   0B        buildkit.dockerfile.v0
<missing>      7 weeks ago    VOLUME [/opt/adguardhome/conf /opt/adguardho…   0B        buildkit.dockerfile.v0
<missing>      7 weeks ago    WORKDIR /opt/adguardhome/work                   0B        buildkit.dockerfile.v0
<missing>      7 weeks ago    RUN |4 AGH_VER=v0.107.52 TARGETPLATFORM=linu…   29.4MB    buildkit.dockerfile.v0
<missing>      7 weeks ago    COPY files/ /opt/ # buildkit                    1.01kB    buildkit.dockerfile.v0
<missing>      7 weeks ago    RUN |4 AGH_VER=v0.107.52 TARGETPLATFORM=linu…   3.31kB    buildkit.dockerfile.v0
<missing>      7 weeks ago    WORKDIR /tmp                                    0B        buildkit.dockerfile.v0
<missing>      7 weeks ago    RUN |4 AGH_VER=v0.107.52 TARGETPLATFORM=linu…   4.04MB    buildkit.dockerfile.v0
<missing>      7 weeks ago    RUN |4 AGH_VER=v0.107.52 TARGETPLATFORM=linu…   0B        buildkit.dockerfile.v0
<missing>      7 weeks ago    ARG TARGETVARIANT=                              0B        buildkit.dockerfile.v0
<missing>      7 weeks ago    ARG TARGETARCH=arm64                            0B        buildkit.dockerfile.v0
<missing>      7 weeks ago    ARG TARGETPLATFORM=linux/arm64                  0B        buildkit.dockerfile.v0
<missing>      7 weeks ago    ARG AGH_VER=v0.107.52                           0B        buildkit.dockerfile.v0
<missing>      2 months ago   /bin/sh -c #(nop)  CMD ["/bin/sh"]              0B        
<missing>      2 months ago   /bin/sh -c #(nop) ADD file:33ebe56b967747a97…   7.8MB 
hat3ph commented 3 weeks ago

@sypion I can see you are using the correct arm64 image. Can you give me the output when manually start the docker using command docker compose up.

<missing>      7 weeks ago    ARG TARGETARCH=arm64                            0B        buildkit.dockerfile.v0
<missing>      7 weeks ago    ARG TARGETPLATFORM=linux/arm64                  0B        buildkit.dockerfile.v0
administrator@ubuntu-svr:~/docker-adguard-unbound$ ls
README.md  adguard  disable_dnsstublistener.sh  docker-compose.yml  iptables_ddns_update.sh  letsencrypt_renewal_post_hook.sh  letsencrypt_renewal_pre_hook.sh  unbound
administrator@ubuntu-svr:~/docker-adguard-unbound$ docker compose up
WARN[0000] /home/administrator/docker-adguard-unbound/docker-compose.yml: the attribute `version` is obsolete, it will be ignored, please remove it to avoid potential confusion 
[+] Running 2/2
 ✔ Network docker-adguard-unbound_default  Created                                                                                                                                                                                0.1s 
 ✔ Container adguard-unbound               Created                                                                                                                                                                                0.0s 
Attaching to adguard-unbound
adguard-unbound  | 2024/08/23 22:44:08.357521 [info] AdGuard Home, version v0.107.52
adguard-unbound  | 2024/08/23 22:44:08.357588 [info] This is the first time AdGuard Home is launched
adguard-unbound  | 2024/08/23 22:44:08.357595 [info] Checking if AdGuard Home has necessary permissions
adguard-unbound  | 2024/08/23 22:44:08.357715 [info] AdGuard Home can bind to port 53
adguard-unbound  | 2024/08/23 22:44:08.358699 [info] safesearch default: disabled
adguard-unbound  | 2024/08/23 22:44:08.359046 [info] Initializing auth module: /opt/adguardhome/work/data/sessions.db
adguard-unbound  | 2024/08/23 22:44:08.359106 [info] auth: initialized.  users:0  sessions:0
adguard-unbound  | 2024/08/23 22:44:08.359111 [info] AdGuard Home updates are disabled
adguard-unbound  | 2024/08/23 22:44:08.359114 [info] web: initializing
adguard-unbound  | 2024/08/23 22:44:08.359124 [info] This is the first launch of AdGuard Home, redirecting everything to /install.html 
adguard-unbound  | 2024/08/23 22:44:08.359143 [info] AdGuard Home is available at the following addresses:
adguard-unbound  | 2024/08/23 22:44:08.359298 [info] go to http://127.0.0.1:3000
adguard-unbound  | 2024/08/23 22:44:08.359306 [info] go to http://[::1]:3000
adguard-unbound  | 2024/08/23 22:44:08.359308 [info] go to http://172.18.0.2:3000
sypion commented 3 weeks ago

Here is the result from docker compose up:

chris@device:/home/containers/adguard-unbound $ docker compose up
WARN[0000] /home/containers/adguard-unbound/docker-compose.yml: the attribute `version` is obsolete, it will be ignored, please remove it to avoid potential confusion 
[+] Running 1/0
 ✔ Container adguard-unbound  Created                                                                                                                   0.0s 
Attaching to adguard-unbound
adguard-unbound  | exec /opt/entrypoint.sh: exec format error
adguard-unbound exited with code 0
hat3ph commented 3 weeks ago

@sypion pls try use this docker image ghcr.io/hat3ph/adguard-unbound:0.107.52.1

sypion commented 2 weeks ago

Hi there! Getting closer! Here's my recent logs for the container with your specified image:

[1724531726] unbound[7:0] error: Could not open /opt/unbound/unbound.conf: No such file or directory
[1724531726] unbound[7:0] warning: Continuing with default config settings
2024/08/24 20:35:26.483245 [info] AdGuard Home, version v0.107.52
2024/08/24 20:35:26.483396 [info] This is the first time AdGuard Home is launched
2024/08/24 20:35:26.483417 [info] Checking if AdGuard Home has necessary permissions
2024/08/24 20:35:26.483874 [info] AdGuard failed to bind to port 53: listen tcp 127.0.0.1:53: bind: address already in use
Please note, that this is crucial for a DNS server to be able to use that port.
2024/08/24 20:35:26.483897 [info] AdGuard Home can bind to port 53
2024/08/24 20:35:26.486358 [info] safesearch default: disabled
2024/08/24 20:35:26.488191 [info] Initializing auth module: /opt/adguardhome/work/data/sessions.db
2024/08/24 20:35:26.488473 [info] auth: initialized.  users:0  sessions:0
2024/08/24 20:35:26.488505 [info] AdGuard Home updates are disabled
2024/08/24 20:35:26.488514 [info] web: initializing
2024/08/24 20:35:26.488571 [info] This is the first launch of AdGuard Home, redirecting everything to /install.html 
2024/08/24 20:35:26.488644 [info] AdGuard Home is available at the following addresses:
2024/08/24 20:35:26.489390 [info] go to http://127.0.0.1:3000
2024/08/24 20:35:26.489424 [info] go to http://[::1]:3000
2024/08/24 20:35:26.489432 [info] go to http://192.168.4.55:3000
2024/08/24 20:35:26.489440 [info] go to http://[fdc4:61ee:7bae:4755:c139:4aec:d49b:ed8c]:3000
2024/08/24 20:35:26.489447 [info] go to http://[fe80::de87:ad99:3c4:881%wlan0]:3000
2024/08/24 20:35:26.489454 [info] go to http://172.17.0.1:3000
2024/08/24 20:35:26.489461 [info] go to http://[fe80::42:1bff:fe6e:75d2%docker0]:3000
2024/08/24 20:35:26.489468 [info] go to http://[fe80::f8d5:6ff:fedf:844a%veth4180728]:3000

Interestingly, the container says port 53 is already in use, but port 53 only activates when the container is started. Do you know how I can resolve that and the first error (error: Could not open /opt/unbound/unbound.conf: No such file or directory)?

Edit: Remnants of unbound was in my system. Fully removed Unbound, restarted the container, and everything now works as it should. Thank you for your help!

hat3ph commented 2 weeks ago

@sypion glad to know, can you try ghcr.io/hat3ph/adguard-unbound:0.107.52.2?

sypion commented 2 weeks ago

Sorry for the delay! Here are the container logs when using that image:

[1724642175] unbound[7:0] error: Could not open /opt/unbound/unbound.conf: No such file or directory
[1724642175] unbound[7:0] warning: Continuing with default config settings
2024/08/26 03:16:15.864657 [info] AdGuard Home, version v0.107.52
2024/08/26 03:16:15.867889 [info] tls: using default ciphers
2024/08/26 03:16:15.870862 [info] safesearch default: disabled
2024/08/26 03:16:15.877346 [info] Initializing auth module: /opt/adguardhome/work/data/sessions.db
2024/08/26 03:16:15.877614 [info] auth: initialized.  users:1  sessions:1
2024/08/26 03:16:15.877662 [info] AdGuard Home updates are disabled
2024/08/26 03:16:15.877673 [info] web: initializing
2024/08/26 03:16:15.899623 [info] dnsproxy: cache: enabled, size 4096 b
2024/08/26 03:16:15.899668 [info] dnsproxy: max goroutines is set to 300
2024/08/26 03:16:15.899774 [info] Ratelimit is enabled and set to 20 rps, IPv4 subnet mask len 24, IPv6 subnet mask len 56
2024/08/26 03:16:15.899797 [info] dnsproxy: server will refuse requests of type ANY
2024/08/26 03:16:15.899804 [info] dnsproxy: cache: enabled, size 4194304 b
2024/08/26 03:16:15.899812 [info] dnsproxy: max goroutines is set to 300
2024/08/26 03:16:15.900854 [info] AdGuard Home is available at the following addresses:
2024/08/26 03:16:15.901425 [info] clients: processing addresses
2024/08/26 03:16:15.904351 [info] go to http://127.0.0.1:80
2024/08/26 03:16:15.904403 [info] go to http://[::1]:80
2024/08/26 03:16:15.905320 [info] go to http://192.168.4.55:80
2024/08/26 03:16:15.905372 [info] go to http://[fdc4:61ee:7bae:4755:c139:4aec:d49b:ed8c]:80
2024/08/26 03:16:15.905384 [info] go to http://[fe80::de87:ad99:3c4:881%wlan0]:80
2024/08/26 03:16:15.905396 [info] go to http://172.17.0.1:80
2024/08/26 03:16:15.905582 [info] go to http://[fe80::42:4fff:fe18:860f%docker0]:80
2024/08/26 03:16:15.905607 [info] go to http://[fe80::48d9:2cff:fe76:9cfa%veth4fcd1b8]:80
2024/08/26 03:16:16.441563 [info] dnsproxy: starting dns proxy server
2024/08/26 03:16:16.441655 [info] dnsproxy: creating udp server socket 0.0.0.0:53
2024/08/26 03:16:16.441864 [info] dnsproxy: listening to udp://[::]:53
2024/08/26 03:16:16.441888 [info] dnsproxy: creating tcp server socket 0.0.0.0:53
2024/08/26 03:16:16.441979 [info] dnsproxy: listening to tcp://[::]:53
2024/08/26 03:16:16.442111 [info] dnsproxy: entering udp listener loop on [::]:53
2024/08/26 03:16:16.442205 [info] dnsproxy: entering tcp listener loop on [::]:53

Unbound is still not initializing correctly, causing 127.0.0.1:53 to not be usable as a upstream DNS server.

hat3ph commented 2 weeks ago

@sypion pls check is the /opt/unbound/unbound.conf available in the container? User command docker exec -it image_name sh to access the container.

[1724642175] unbound[7:0] error: Could not open /opt/unbound/unbound.conf: No such file or directory

sypion commented 2 weeks ago

I do see the directory is present, but not the .conf file: Screenshot 2024-08-25 at 8 25 20 PM

hat3ph commented 2 weeks ago

@sypion i have try on my x86_64 host with 0.107.52 and upgrade to 0.107.52.2. The file /opt/unbound/unbound.conf is there. Can you try start from fresh again?

administrator@ubuntu2404-svr:~/docker-adguard-unbound$ cat docker-compose.yml | grep image
    image: ghcr.io/hat3ph/adguard-unbound:0.107.52
administrator@ubuntu2404-svr:~/docker-adguard-unbound$ docker ps
CONTAINER ID   IMAGE                                     COMMAND                CREATED              STATUS
           PORTS

                                   NAMES
f2ebef0c0be4   ghcr.io/hat3ph/adguard-unbound:0.107.52   "/opt/entrypoint.sh"   About a minute ago   Up About a minute (healthy)   0.0.0.0:53->53/tcp, :::53->53/tcp, 443/tcp, 0.0.0.0:80->80/tcp, :::80->80/tcp, 0.0.0.0:3000->3000/tcp, 0.0.0.0:53->53/udp, :::3000->3000/tcp, :::53->53/udp, 0.0.0.0:5053->5053/tcp, 0.0.0.0:5053->5053/udp, :::5053->5053/tcp, :::5053->5053/udp, 67-68/udp, 853/tcp   adguard-unbound
administrator@ubuntu2404-svr:~/docker-adguard-unbound$ docker exec -it f2ebef0c0be4 sh
/opt/adguardhome/work # ls /opt/unbound/
unbound.conf
/opt/adguardhome/work #
administrator@ubuntu2404-svr:~/docker-adguard-unbound$ cat docker-compose.yml | grep image
    image: ghcr.io/hat3ph/adguard-unbound:0.107.52.2
administrator@ubuntu2404-svr:~/docker-adguard-unbound$ docker ps
CONTAINER ID   IMAGE                                       COMMAND                CREATED          STATUS
     PORTS

                             NAMES
f969c14aa213   ghcr.io/hat3ph/adguard-unbound:0.107.52.2   "/opt/entrypoint.sh"   32 seconds ago   Up 30 seconds (healthy)   0.0.0.0:53->53/tcp, :::53->53/tcp, 443/tcp, 0.0.0.0:80->80/tcp, :::80->80/tcp, 0.0.0.0:3000->3000/tcp, 0.0.0.0:53->53/udp, :::3000->3000/tcp, :::53->53/udp, 0.0.0.0:5053->5053/tcp, 0.0.0.0:5053->5053/udp, :::5053->5053/tcp, :::5053->5053/udp, 67-68/udp, 853/tcp   adguard-unbound
administrator@ubuntu2404-svr:~/docker-adguard-unbound$ docker exec -it f969c14aa213 sh
/opt/adguardhome/work # ls /opt/unbound/
unbound.conf
/opt/adguardhome/work #
sypion commented 2 weeks ago

I've removed all images, the container itself, and volumes. Issue persists. How odd! I guess I could just supply a config file myself?

chris@device:/home/containers/adguard-unbound $ docker ps
CONTAINER ID   IMAGE                                       COMMAND                CREATED          STATUS                    PORTS                                                                                            NAMES
059dfc8d4a5b   ghcr.io/hat3ph/adguard-unbound:0.107.52.2   "/opt/entrypoint.sh"   51 seconds ago   Up 50 seconds (healthy)                                                                                                    adguard-unbound
2fa2397571c3   portainer/portainer-ce:latest               "/portainer"           2 weeks ago      Up 31 hours               9000/tcp, 0.0.0.0:8005->8000/tcp, :::8005->8000/tcp, 0.0.0.0:9660->9443/tcp, :::9660->9443/tcp   portainer
chris@device:/home/containers/adguard-unbound $ docker exec -it adguard-unbound sh
/opt/adguardhome/work # ls /opt/unbound/
/opt/adguardhome/work # 
hat3ph commented 2 weeks ago

@sypion can you make sure there is unbound.conf under your docker-adguard-unbound folder?

administrator@ubuntu2404-svr:~/docker-adguard-unbound$ ls
README.md  disable_dnsstublistener.sh  iptables_ddns_update.sh           letsencrypt_renewal_pre_hook.sh
adguard    docker-compose.yml          letsencrypt_renewal_post_hook.sh  unbound
administrator@ubuntu2404-svr:~/docker-adguard-unbound$ ls ./unbound/
unbound.conf
administrator@ubuntu2404-svr:~/docker-adguard-unbound$

EDIT: btw, i have update the official docker image, pls try ghcr.io/hat3ph/adguard-unbound:0.107.52 again.

hat3ph commented 2 weeks ago

@sypion does it work?

sypion commented 2 weeks ago

Hi there! I'm very sorry for the delay. I'm currently running the latest image you mentioned and made sure there was a unbound.conf file in the right directory. Give me a bit to make sure everything is running just right and I'll reach back out. Thanks for all your help! :)

hat3ph commented 6 days ago

@sypion any update?

bozzio83 commented 5 days ago

@hat3ph Hello. I'm not sure if this is the right place, but I'm trying to install this via docker compose. Everything install fine and I get to the dashboard setup page, change my port to match what i put in the compose file, and these are the list of web interface ips I get: http://127.0.0.1:88/ http://172.18.0.2:88/ http://[::1]:88/

So when I continue through the process the current IP im using 192.168.1.139:88 doesn't load anything and neither do the other ones.

I have this setup without issue on unraid and I'm trying to install this on a mini pc running ubuntu server and I can't figure this one out. Any help would be greatly appreciated.

sypion commented 5 days ago

@sypion any update?

Issue resolved! Works like a charm. Thanks again for all your help!

sypion commented 5 days ago

@hat3ph Hello. I'm not sure if this is the right place, but I'm trying to install this via docker compose. Everything install fine and I get to the dashboard setup page, change my port to match what i put in the compose file, and these are the list of web interface ips I get:

`http://127.0.0.1:88/

http://172.18.0.2:88/

http://[::1]:88/`

So when I continue through the process the current IP im using 192.168.1.139:88 doesn't load anything and neither do the other ones.

I have this setup without issue on unraid and I'm trying to install this on a mini pc running ubuntu server and I can't figure this one out. Any help would be greatly appreciated.

Are you running the container on the "host" network rather than bridge?

bozzio83 commented 5 days ago

@hat3ph Hello. I'm not sure if this is the right place, but I'm trying to install this via docker compose. Everything install fine and I get to the dashboard setup page, change my port to match what i put in the compose file, and these are the list of web interface ips I get: http://127.0.0.1:88/ http://172.18.0.2:88/ http://[::1]:88/ So when I continue through the process the current IP im using 192.168.1.139:88 doesn't load anything and neither do the other ones. I have this setup without issue on unraid and I'm trying to install this on a mini pc running ubuntu server and I can't figure this one out. Any help would be greatly appreciated.

Are you running the container on the "host" network rather than bridge?

How do I set it to host?

hat3ph commented 5 days ago

@sypion thanks for your testing and verification.

@bozzio83 I will close this issue. Pls submit a new issue for your problem.