Git Product home page Git Product logo

balena-pihole's Introduction

Kyle Harding

Welcome to my GitHub! I'm Kyle, a passionate technologist and problem-solver. I thrive on challenges and love sharing my experiences and knowledge.

๐Ÿ”ญ Iโ€™m currently working on ...

Building innovative products at balena.io! My focus is on creating solutions that reduce developer friction and enhance productivity.

๐Ÿ’ฌ Ask me about ...

  • Removing Developer Friction: Strategies and tools for a smoother development process.
  • Product Development: From ideation to execution, let's talk about building great products.
  • Docker & Containers: Best practices and advanced techniques.
  • Support & Support Auditing: How to provide effective and efficient customer support.
  • Yocto Project: Insights into this powerful customization tool for Linux distributions.
  • CI/CD: Techniques for continuous integration and continuous delivery.
  • DevOps: Bridging the gap between development and operations.

๐ŸŒฑ Iโ€™m currently learning ...

I'm diving into orchestrating ephemeral microVMs for container isolation, with a focus on thin provisioning. My learning path is centered on optimizing security and resource efficiency. This involves understanding how to dynamically manage microVMs for enhanced container security, while ensuring optimal resource utilization and system performance.

๐Ÿ‘ฏ Iโ€™m looking to collaborate on ...

While I'm not actively seeking collaborations at the moment, I'm always open to interesting ideas and discussions. Feel free to reach out!

๐Ÿค” Iโ€™m looking for help with ...

Currently, I don't have any specific requests for help, but I'm always eager to engage in knowledge sharing and mutual learning.

๐Ÿ“ซ How to reach me ...

Got something to share or just want to say hi? You can email me at [email protected].

๐Ÿ˜„ Other interests ...

  • Cracking dad jokes and enjoying a good laugh.
  • Brewing beer - the art and science behind it.
  • Exploring the world of self-hosting.
  • Solving regex puzzles for fun and challenge.
  • Drumming - my rhythmical escapade.
  • Gaming - from strategy to action.
  • Love for dogs and houseplants.
  • Playing billiards - a game of focus and precision.

โšก Fun fact about me ...

I'm almost entirely self-taught, having honed my skills through a series of personal projects. This hands-on approach has been my pathway to learning and mastering new technologies, reflecting my dedication to continuous self-improvement and practical problem-solving.

balena-pihole's People

Contributors

0xflotus avatar chemical-soup avatar chrisys avatar dependabot[bot] avatar eiddor avatar itechdhaval avatar jps3 avatar klutchell avatar m-m-m-m-m-m-m-m-m-m-m-m avatar nucleardreamer avatar renovate-bot avatar scls19fr avatar shawaj avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

balena-pihole's Issues

'Dockerfile parse error' pushing Pi-Hole to RPi4

Iโ€™m trying to run pi-hole on a Raspberry Pi 4B, but when I attempt to push the project code to my device, I always get the following error message. I am deploying the code from a Windows machine and made sure to push with --convert-eol.

[Error] Some services failed to build: [Error] Service: pihole [Error] Error: Dockerfile parse error line 1: unknown instruction: DOCKERFILE.ARMV7HF

Has anyone else run into this? Any suggestions? Thanks in advance!

Currently broken on rpi3

I tried to deploy on rpi3 after the issues with rpizero, and I've run into what is apparently an issue others have seen in the forums.

::: Testing pihole-FTL DNS: sudo: unable to resolve host f61e339

dnsmasq: unknown interface eth0
[cont-init.d] 20-start.sh: exited 1.
[cont-finish.d] executing container finish scripts...
[cont-finish.d] done.
[s6-finish] syncing disks.
[s6-finish] sending all processes the TERM signal.

I did set DNSMASQ_LISTENING=wlan0 as well, since I'm on wifi, to try to resolve it, as mentioned in the forum post, but no change.

Web panel service not working

The lighttpd service didn't started porperly. I manually start it up and the web page isn't able to show up properly. After trying to access the admin page, lighttpd will stop by itself.
Here's the log(/var/log/lighttpd/error.log):

2019-10-11 18:49:08: (log.c.217) server started
2019-10-11 18:50:41: (server.c.1534) logfiles cycled UID = 0 PID = 893
2019-10-11 18:50:41: (mod_fastcgi.c.2424) unexpected end-of-file (perhaps the fastcgi process died): pid: 525 socket: unix:/var/run/lighttpd/php.socket-0
2019-10-11 18:50:41: (mod_fastcgi.c.3175) response not received, request sent: 1004 on socket: unix:/var/run/lighttpd/php.socket-0 for /admin/index.php?login, closing connection
2019-10-11 18:50:41: (mod_fastcgi.c.2424) unexpected end-of-file (perhaps the fastcgi process died): pid: 525 socket: unix:/var/run/lighttpd/php.socket-0
2019-10-11 18:50:41: (mod_fastcgi.c.3175) response not received, request sent: 993 on socket: unix:/var/run/lighttpd/php.socket-0 for /admin/index.php?, closing connection
2019-10-11 18:50:41: (server.c.1828) server stopped by UID = 0 PID = 893

I'd viewed This solution. But in my case the php didn't give me the php fatal error.

dnscrypt-proxy does not start on balenaOS 2.32.0

More of an FYI for anyone having issues than anything else, but:

Due to this bug in the supervisor, the dnscrypt-proxy service won't start, which in turn means pihole won't function, if you're using balenaOS 2.32.0.

To work around this until it's resolved you can use v2.31.5 when adding the device if you still want to use dnscrypt, otherwise don't set DNS1 and DNS2 to let pihole do internal resolution and you should be fine!

This is due to the fact the image for dnscrypt uses EXPOSE for port 53 in its Dockerfile which is then overridden within the docker-compose.yml within this project. The bug in the supervisor prevents this functionality from working right now.

Curl error - openFleets?

Pihole service is failing to start due to the recent changes to the 10-custom.sh.

# openFleets: configure hostname
curl -X PATCH --header "Content-Type:application/json" \
   --data "{\"network\": {\"hostname\": \"$BALENA_HOSTNAME\"}}" \
   "$BALENA_SUPERVISOR_ADDRESS/v1/device/host-config?apikey=$BALENA_SUPERVISOR_API_KEY"

I don't know what openFleets is. Even after finding and reading the blog post on it I don't understand.

28.05.21 09:14:28 (-0500) pihole [cont-init.d] executing container initialization scripts...
28.05.21 09:14:28 (-0500) pihole [cont-init.d] 10-custom.sh: executing...
28.05.21 09:14:28 (-0500) pihole curl: (3) URL using bad/illegal format or missing URL
28.05.21 09:14:28 (-0500) pihole [cont-init.d] 10-custom.sh: exited 3.
28.05.21 09:14:28 (-0500) pihole [cont-finish.d] executing container finish scripts...
28.05.21 09:14:28 (-0500) pihole [cont-finish.d] done.
28.05.21 09:14:28 (-0500) pihole [s6-finish] waiting for services.
28.05.21 09:14:28 (-0500) pihole [s6-finish] sending all processes the TERM signal.
28.05.21 09:14:31 (-0500) pihole [s6-finish] sending all processes the KILL signal and exiting.

Building error

When using the 1-click button to copy the app into my balena cloud account, I got this for the release build:

[Info]            Starting build for balena-pihole, user gh_clawfire
[Info]            Dashboard link: https://dashboard.balena-cloud.com/apps/1730930/devices
[Info]            Building on arm03
[Info]            Pulling previous images for caching purposes...
[Success]         Successfully pulled cache images
[Info]            Starting to build dnscrypt-proxy
[Info]            Starting to build pihole
[Success]         Successfully built service pihole
[Info]            Uploading images
[Success]         Successfully uploaded images
[Error]           Some services failed to build:
[Error]             Service: dnscrypt-proxy
[Error]               Error: The command '/bin/sh -c install_packages ca-certificates curl     && curl -L "${DNSCRYPT_PROXY_URL}${DNSCRYPT_PROXY_VERSION}.tar.gz" -o /tmp/dnscrypt-proxy.tar.gz      && tar xzf /tmp/dnscrypt-proxy.tar.gz --strip 1 -C /go/src/github.com/DNSCrypt        && go build -v -ldflags="-s -w"' returned a non-zero code: 1
[Info]            Built on arm03
[Error]           Not deploying release.

Automatic config management for pihole?

@klutchell As far as I can tell, the only configuration management in balena-pihole is manual export/import via Teleporter.

I would like to automatically commit to private git repositories whenever the configuration is updated, such as when a new blocklist is added, or when whitelist and blacklist entries are updated.

Would the addition of a 3rd Balena service be a good strategy for configuration management? The 3rd container could run gitwatch to monitor and commit any changes to the named volumes. etckeeper is another option, though it might be overkill.

If a gitwatch service is implemented, should the pihole Dockerfile be updated to pull /etc/pihole and /etc/dnsmasq.d from git during build?

Does not work for rpizero

The main symptom is the container repeatedly crashing, in the logs you see:

cont-init.d] 20-start.sh: executing...
[cont-init.d] 20-start.sh: exited 267.

(among other things).

This appears to be caused by the fact that the pihole image for arm only runs on armv7. See (pihole/docker-pihole/issues/218](pi-hole/docker-pi-hole#218).

If you dive into the various related links on that issue, you can find that pihole is in a world of difficulty in trying to get an armv6-compatible image to build.

To cap it all off, even if they did produce such an image, there's still a chance things could go wrong when pulling to the rpizero, since the rpizero also - confusingly - reports:

# cat /proc/cpuinfo 
processor	: 0
model name	: ARMv6-compatible processor rev 7 (v6l)
BogoMIPS	: 697.95
Features	: half thumb fastmult vfp edsp java tls 
CPU implementer	: 0x41
CPU architecture: 7
CPU variant	: 0x0
CPU part	: 0xb76
CPU revision	: 7

Hardware	: BCM2835
Revision	: 9000c1
Serial		: 000000008c985d90

Note CPU architecture 7. So, the rpizero may end up pulling the wrong image anyways.

Error building dnscrypt-proxy

Following https://www.balena.io/blog/deploy-network-wide-ad-blocking-with-pi-hole-and-a-raspberry-pi/

Raspberry Pi 4 B
balenaOS 2.46.1+rev3

Balena CLI (installed with brew)

$ balena version
11.21.7
$ git log
3a262e0 (HEAD -> master, origin/master, origin/HEAD) update readme
$ balena push Pi-hole
[Info]            Starting build for Pi-hole, user g_wesley_thomas
[Info]            Dashboard link: https://dashboard.balena-cloud.com/apps/1572884/devices
[Info]            Building on arm03
[Info]            Pulling previous images for caching purposes...
[Success]         Successfully pulled cache images
[pihole]          Step 1/17 : FROM balenalib/raspberrypi3-debian:jessie-build AS build
[dnscrypt-proxy]  Step 1/17 : FROM balenalib/raspberrypi3-alpine-golang:1.12-3.10 as build
[pihole]           ---> fb41fe462cd7
[pihole]          Step 2/17 : WORKDIR /usr/src
[dnscrypt-proxy]   ---> 88b016536cff
[dnscrypt-proxy]  Step 2/17 : WORKDIR /go/src/github.com/DNSCrypt/dnscrypt-proxy/
[pihole]           ---> Running in 726008c13c54
[dnscrypt-proxy]   ---> Running in 82ddb8dd603d
[pihole]          Removing intermediate container 726008c13c54
[pihole]           ---> b75e7615c4be
[pihole]          Step 3/17 : RUN install_packages cmake libraspberrypi-dev
[dnscrypt-proxy]  Removing intermediate container 82ddb8dd603d
[dnscrypt-proxy]   ---> 45b3fb9ffd4d
[dnscrypt-proxy]  Step 3/17 : ARG DNSCRYPT_PROXY_VERSION=2.0.36
[pihole]           ---> Running in 065e7e622735
[dnscrypt-proxy]   ---> Running in e23a25666877
[dnscrypt-proxy]  Removing intermediate container e23a25666877
[dnscrypt-proxy]   ---> 76a501beab69
[dnscrypt-proxy]  Step 4/17 : ARG DNSCRYPT_PROXY_URL=https://github.com/DNSCrypt/dnscrypt-proxy/archive/
[dnscrypt-proxy]   ---> Running in fa5a54a6335e
[dnscrypt-proxy]  Removing intermediate container fa5a54a6335e
[dnscrypt-proxy]   ---> bd11b8976ca0
[dnscrypt-proxy]  Step 5/17 : ENV CGO_ENABLED 0
[dnscrypt-proxy]   ---> Running in c830dd2973b8
[dnscrypt-proxy]  Removing intermediate container c830dd2973b8
[dnscrypt-proxy]   ---> 660c05ff8c91
[dnscrypt-proxy]  Step 6/17 : RUN apk add --no-cache ca-certificates curl 	&& curl -L "${DNSCRYPT_PROXY_URL}${DNSCRYPT_PROXY_VERSION}.tar.gz" -o /tmp/dnscrypt-proxy.tar.gz 	&& tar xzf /tmp/dnscrypt-proxy.tar.gz --strip 1 -C /go/src/github.com/DNSCrypt 	&& go build -v -ldflags="-s -w"
[dnscrypt-proxy]   ---> Running in a8656cf20e66
[dnscrypt-proxy]  fetch http://dl-cdn.alpinelinux.org/alpine/v3.10/main/armv7/APKINDEX.tar.gz
[dnscrypt-proxy]  fetch http://dl-cdn.alpinelinux.org/alpine/v3.10/community/armv7/APKINDEX.tar.gz
[dnscrypt-proxy]  OK: 95 MiB in 80 packages
[dnscrypt-proxy]    % Total    % Received % Xferd  Average Spee
[dnscrypt-proxy]  d   Time    Time     Time  Current
[dnscrypt-proxy]
[dnscrypt-proxy]
[dnscrypt-proxy]         Dload
[dnscrypt-proxy]   Upload   Total
[dnscrypt-proxy]   Spent    Le
[dnscrypt-proxy]  ft  Speed
[dnscrypt-proxy]
  0     0-proxy]
[dnscrypt-proxy]      0
[dnscrypt-proxy]      0
[dnscrypt-proxy]   0
[dnscrypt-proxy]   0
[dnscrypt-proxy]   0
[dnscrypt-proxy]     0 -
[dnscrypt-proxy]  -:--:-- -
[dnscrypt-proxy]  -:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:-- -
[dnscrypt-proxy]  -:--:-- --:--:--     0
[dnscrypt-proxy]
[dnscrypt-proxy]  curl: (56) OpenSSL SSL
[dnscrypt-proxy]  _read: SSL_ERROR_SY
[dnscrypt-proxy]  SCALL, e
[dnscrypt-proxy]  rrno 1
[dnscrypt-proxy]  04
[dnscrypt-proxy]
[dnscrypt-proxy]  Removing intermediate container a8656cf20e66
[dnscrypt-proxy]  The command '/bin/sh -c apk add --no-cache ca-certificates curl 	&& curl -L "${DNSCRYPT_PROXY_URL}${DNSCRYPT_PROXY_VERSION}.tar.gz" -o /tmp/dnscrypt-proxy.tar.gz 	&& tar xzf /tmp/dnscrypt-proxy.tar.gz --strip 1 -C /go/src/github.com/DNSCrypt 	&& go build -v -ldflags="-s -w"' returned a non-zero code: 56
[Info]            Still Working...
[Info]            Still Working...
[Info]            Still Working...
[Info]            Still Working...
[Info]            Still Working...
[Info]            Still Working...
[Info]            Still Working...
[pihole]          Reading package lists...
[pihole]          Building dependency tree...
[pihole]          Reading state information...
[pihole]          The following extra packages will be installed:
[pihole]            cmake-data libarchive13 libjsoncpp0
[pihole]          Suggested packages:
[pihole]            codeblocks eclipse ninja-build lrzip
[pihole]          The following NEW packages will be installed:
[pihole]            cmake cmake-data libarchive13 libjsoncpp0 libraspberrypi-dev
[pihole]          0 upgraded, 5 newly installed, 0 to remove and 30 not upgraded.
[pihole]          Need to get 4255 kB of archives.
[pihole]          After this operation, 22.3 MB of additional disk space will be used.
[pihole]          Get:1 http://deb.debian.org/debian/ jessie/main libjsoncpp0 armhf 0.6.0~rc2-3.1 [62.6 kB]
[pihole]          Get:2 http://archive.raspberrypi.org/debian/ jessie/main cmake-data all 3.6.2-2~bpo8+1 [1168 kB]
[pihole]          Get:3 http://archive.raspberrypi.org/debian/ jessie/main cmake armhf 3.6.2-2~bpo8+1 [2379 kB]
[pihole]          Get:4 http://archive.raspbian.org/raspbian/ jessie/firmware libraspberrypi-dev armhf 1.20180328-1~nokernel1~jessie [405 kB]
[pihole]          Get:5 http://security.debian.org/debian-security/ jessie/updates/main libarchive13 armhf 3.1.2-11+deb8u8 [240 kB]
[pihole]          debconf: delaying package configuration, since apt-utils is not installed
[pihole]
[pihole]          Fetched 4255 kB in 1s (3165 kB/s)
[pihole]          Selecting previously unselected package cmake-data.
[pihole]          (Reading database ...
(Reading database ... 35%g database ... 5%
(Reading database ... 65%g database ... 40%
[pihole]          (Reading database ... 70%
[pihole]          (Reading database ... 75%
[pihole]          (Reading database ... 80%
[pihole]          (Reading database ... 85%
[pihole]          (Reading database ... 90%
[pihole]          (Reading database ... 95%
(Reading database ... 21752 files and directories currently installed.)
[pihole]          Preparing to unpack .../cmake-data_3.6.2-2~bpo8+1_all.deb ...
[pihole]          Unpacking cmake-data (3.6.2-2~bpo8+1) ...
[pihole]          Selecting previously unselected package libarchive13:armhf.
[pihole]          Preparing to unpack .../libarchive13_3.1.2-11+deb8u8_armhf.deb ...
[pihole]          Unpacking libarchive13:armhf (3.1.2-11+deb8u8) ...
[pihole]          Selecting previously unselected package libjsoncpp0.
[pihole]          Preparing to unpack .../libjsoncpp0_0.6.0~rc2-3.1_armhf.deb ...
[pihole]          Unpacking libjsoncpp0 (0.6.0~rc2-3.1) ...
[pihole]          Selecting previously unselected package cmake.
[pihole]          Preparing to unpack .../cmake_3.6.2-2~bpo8+1_armhf.deb ...
[pihole]          Unpacking cmake (3.6.2-2~bpo8+1) ...
[pihole]          Selecting previously unselected package libraspberrypi-dev.
[pihole]          Preparing to unpack .../libraspberrypi-dev_1.20180328-1~nokernel1~jessie_armhf.deb ...
[pihole]          Unpacking libraspberrypi-dev (1.20180328-1~nokernel1~jessie) ...
[pihole]          Setting up cmake-data (3.6.2-2~bpo8+1) ...
[pihole]          Setting up libarchive13:armhf (3.1.2-11+deb8u8) ...
[pihole]          Setting up libjsoncpp0 (0.6.0~rc2-3.1) ...
[pihole]          Setting up cmake (3.6.2-2~bpo8+1) ...
[pihole]          Setting up libraspberrypi-dev (1.20180328-1~nokernel1~jessie) ...
[pihole]          Processing triggers for libc-bin (2.19-18+deb8u10) ...
[pihole]          Removing intermediate container 065e7e622735
[pihole]           ---> 7fdaebd1d274
[pihole]          Step 4/17 : RUN curl -sSL https://raw.githubusercontent.com/tasanakorn/rpi-fbcp/master/CMakeLists.txt -O
[pihole]           ---> Running in d02c785bea33
[pihole]          Removing intermediate container d02c785bea33
[pihole]           ---> 10d66738b957
[pihole]          Step 5/17 : RUN curl -sSL https://raw.githubusercontent.com/tasanakorn/rpi-fbcp/master/main.c -O
[pihole]           ---> Running in 5d22df4f926f
[pihole]          Removing intermediate container 5d22df4f926f
[pihole]           ---> 9a1310d0a74a
[pihole]          Step 6/17 : WORKDIR /usr/src/build
[pihole]           ---> Running in 0e3064c296c3
[pihole]          Removing intermediate container 0e3064c296c3
[pihole]           ---> e1d05f199e7a
[pihole]          Step 7/17 : RUN cmake .. && make
[pihole]           ---> Running in 7f3403175948
[pihole]          -- The C compiler identification is GNU 4.9.2
[pihole]          -- The CXX compiler identification is GNU 4.9.2
[pihole]          -- Check for working C compiler: /usr/bin/cc
[pihole]          -- Check for working C compiler: /usr/bin/cc -- works
[pihole]          -- Detecting C compiler ABI info
[pihole]          -- Detecting C compiler ABI info - done
[pihole]          -- Detecting C compile features
[pihole]          -- Detecting C compile features - done
[pihole]          -- Check for working CXX compiler: /usr/bin/c++
[pihole]          -- Check for working CXX compiler: /usr/bin/c++ -- works
[pihole]          -- Detecting CXX compiler ABI info
[pihole]          -- Detecting CXX compiler ABI info - done
[pihole]          -- Detecting CXX compile features
[pihole]          -- Detecting CXX compile features - done
[pihole]          -- Configuring done
[pihole]          -- Generating done
[pihole]          -- Build files have been written to: /usr/src/build
[pihole]          Scanning dependencies of target fbcp
[pihole]          [ 50%] Building C object CMakeFiles/fbcp.dir/main.c.o
[pihole]          [100%] Linking C executable fbcp
[pihole]          [100%] Built target fbcp
[pihole]          Removing intermediate container 7f3403175948
[pihole]           ---> 662552ef1d04
[pihole]          Step 8/17 : FROM pihole/pihole:4.3.2-1_armhf
[pihole]           ---> 1ad60393d9c2
[pihole]          Step 9/17 : WORKDIR /usr/src
[pihole]           ---> Running in f70baa7f47c5
[pihole]          Removing intermediate container f70baa7f47c5
[pihole]           ---> 906840b42e14
[pihole]          Step 10/17 : COPY --from=build /opt/vc/lib/* /opt/vc/lib/
[pihole]           ---> 78036c193f32
[pihole]          Step 11/17 : COPY --from=build /usr/src/build/fbcp /usr/src/
[pihole]           ---> 9ef65a34d309
[pihole]          Step 12/17 : COPY services/ /etc/services.d/
[pihole]           ---> 9ff01a5d2b8e
[pihole]          Step 13/17 : COPY init/ /etc/cont-init.d/
[pihole]           ---> b746c0863108
[pihole]          Step 14/17 : RUN sed -i '/$AUTHORIZED_HOSTNAMES = array(/ a "balena-devices.com",' /var/www/html/admin/scripts/pi-hole/php/auth.php
[pihole]           ---> Running in b06278e03d71
[pihole]          Removing intermediate container b06278e03d71
[pihole]           ---> a28416fec654
[pihole]          Step 15/17 : RUN echo "bind-interfaces" >> /etc/dnsmasq.conf
[pihole]           ---> Running in a746ee9e729c
[pihole]          Removing intermediate container a746ee9e729c
[pihole]           ---> fe8d65d79950
[pihole]          Step 16/17 : SHELL ["/bin/bash", "-o", "pipefail", "-c"]
[pihole]           ---> Running in bd29acb1d55f
[pihole]          Removing intermediate container bd29acb1d55f
[pihole]           ---> 6d0056b4fb2b
[pihole]          Step 17/17 : RUN curl -fsSL https://github.com/jpmck/PADD/archive/v3.0.2.tar.gz | tar xz --strip-components 1 	&& chmod +x padd.sh
[pihole]           ---> Running in 6b20276f6c5c
[pihole]          Removing intermediate container 6b20276f6c5c
[pihole]           ---> 54bfb12190b6
[pihole]          Successfully built 54bfb12190b6
[Info]            Uploading images
[Success]         Successfully uploaded images
[Error]           Some services failed to build:
[Error]             Service: dnscrypt-proxy
[Error]               Error: The command '/bin/sh -c apk add --no-cache ca-certificates curl 	&& curl -L "${DNSCRYPT_PROXY_URL}${DNSCRYPT_PROXY_VERSION}.tar.gz" -o /tmp/dnscrypt-proxy.tar.gz 	&& tar xzf /tmp/dnscrypt-proxy.tar.gz --strip 1 -C /go/src/github.com/DNSCrypt 	&& go build -v -ldflags="-s -w"' returned a non-zero code: 56
[Info]            Built on arm03
[Error]           Not deploying release.
Remote build failed

Additional information may be available by setting a DEBUG=1 environment
variable: "set DEBUG=1" on a Windows command prompt, or "export DEBUG=1"
on Linux or macOS.

If you need help, don't hesitate in contacting our support forums at
https://forums.balena.io

For CLI bug reports or feature requests, have a look at the GitHub issues or
create a new one at: https://github.com/balena-io/balena-cli/issues/

(node:20892) [DEP0066] DeprecationWarning: OutgoingMessage.prototype._headers is deprecated

Update to 5.0?

As in the title. Is this setup safe to update to 5.0? Can I just change the pihole/pihole:v4.4-armel to 5.0? Or is their an incompatibility issue causing trouble with the newest version?

Updating WEBPASSWORD has no effect after initial setup

Forgot to set WEBPASSWORD before first deploy so I added the variable via dashboard and restarted services but logs only say:

pihole  ::: Pre existing WEBPASSWORD found

Had to SSH into the running container and run pihole -a -p "$WEBPASSWORD" to update it.

@klutchell I'm not familiar with PiHole's startup process, do you think adding the above line here would work to avoid this?

Why the removal of Raspberry Pi 2?

Why the reason for the removal of Raspberry Pi 2? I have balena-PiHole 5.4 running it on two Pi 2 and runs fine, even with the slightly older kernel of the balena host for it.
Screen Shot 2021-01-20 at 14 52 11

Container restarting endlessly (Pi Zero)

This is, apparently, the exact same issue mentioned at #15, but opening a new one as requested by @klutchell.

The issue is I've tried to update PiHole version from 4.4 (installed by the One Click deploy button) to 5.4 (or any subversion from major version 5), since I know my PiZero can run it (installed it manually using another tutorial), but when the container tries to start, it keeps restarting.

Also on PiHole's version 4.4 (using balena-pihole), I'm stuck with the "Domains in blocklist" card showing -2.

Running host os version: balenaOS 2.54.2+rev1

@klutchell support access can be granted, if needed.

This is just a snippet (full log can be provided)

19.01.21 20:30:10 (-0300) Starting service 'pihole sha256:7bdea0d0f0b62420fea0e71c20d8eebd37a4fef8dc6f3ae5d85731f16c400843'
19.01.21 20:30:18 (-0300) Started service 'pihole sha256:7bdea0d0f0b62420fea0e71c20d8eebd37a4fef8dc6f3ae5d85731f16c400843'
19.01.21 20:29:12 (-0300)  pihole  [s6-finish] sending all processes the KILL signal and exiting.
19.01.21 20:30:17 (-0300)  pihole  [s6-init] making user provided files available at /var/run/s6/etc...exited 0.
19.01.21 20:30:19 (-0300)  pihole  [s6-init] ensuring user provided files have correct perms...exited 0.
19.01.21 20:30:19 (-0300)  pihole  [fix-attrs.d] applying ownership & permissions fixes...
19.01.21 20:30:19 (-0300)  pihole  [fix-attrs.d] 01-resolver-resolv: applying... 
19.01.21 20:30:19 (-0300)  pihole  [fix-attrs.d] 01-resolver-resolv: exited 0.
19.01.21 20:30:19 (-0300)  pihole  [fix-attrs.d] done.
19.01.21 20:30:19 (-0300)  pihole  [cont-init.d] executing container initialization scripts...
19.01.21 20:30:19 (-0300)  pihole  [cont-init.d] 20-start.sh: executing... 
19.01.21 20:30:19 (-0300)  pihole  [cont-init.d] 20-start.sh: exited 267.
19.01.21 20:30:19 (-0300)  pihole  [cont-finish.d] executing container finish scripts...
19.01.21 20:30:19 (-0300)  pihole  [cont-finish.d] done.
19.01.21 20:30:19 (-0300)  pihole  [s6-finish] waiting for services.
19.01.21 20:30:20 (-0300)  pihole  [s6-finish] sending all processes the TERM signal.
19.01.21 20:30:23 (-0300)  pihole  [s6-finish] sending all processes the KILL signal and exiting.
19.01.21 20:30:27 (-0300) Service exited 'pihole sha256:7bdea0d0f0b62420fea0e71c20d8eebd37a4fef8dc6f3ae5d85731f16c400843'
19.01.21 20:30:34 (-0300) Restarting service 'pihole sha256:7bdea0d0f0b62420fea0e71c20d8eebd37a4fef8dc6f3ae5d85731f16c400843'
19.01.21 20:30:23 (-0300)  pihole  [s6-finish] sending all processes the KILL signal and exiting.
19.01.21 20:30:34 (-0300)  pihole  [s6-init] making user provided files available at /var/run/s6/etc...exited 0.
19.01.21 20:30:35 (-0300)  pihole  [s6-init] ensuring user provided files have correct perms...exited 0.
19.01.21 20:30:35 (-0300)  pihole  [fix-attrs.d] applying ownership & permissions fixes...
19.01.21 20:30:35 (-0300)  pihole  [fix-attrs.d] 01-resolver-resolv: applying... 
19.01.21 20:30:35 (-0300)  pihole  [fix-attrs.d] 01-resolver-resolv: exited 0.
19.01.21 20:30:35 (-0300)  pihole  [fix-attrs.d] done.
19.01.21 20:30:35 (-0300)  pihole  [cont-init.d] executing container initialization scripts...
19.01.21 20:30:35 (-0300)  pihole  [cont-init.d] 20-start.sh: executing... 
19.01.21 20:30:35 (-0300)  pihole  [cont-init.d] 20-start.sh: exited 267.
19.01.21 20:30:35 (-0300)  pihole  [cont-finish.d] executing container finish scripts...
19.01.21 20:30:35 (-0300)  pihole  [cont-finish.d] done.
19.01.21 20:30:35 (-0300)  pihole  [s6-finish] waiting for services.
19.01.21 20:30:36 (-0300)  pihole  [s6-finish] sending all processes the TERM signal.
19.01.21 20:30:39 (-0300)  pihole  [s6-finish] sending all processes the KILL signal and exiting.
19.01.21 20:30:43 (-0300) Service exited 'pihole sha256:7bdea0d0f0b62420fea0e71c20d8eebd37a4fef8dc6f3ae5d85731f16c400843'
19.01.21 20:30:51 (-0300) Killing service 'pihole sha256:7bdea0d0f0b62420fea0e71c20d8eebd37a4fef8dc6f3ae5d85731f16c400843'
19.01.21 20:30:51 (-0300) Restarting service 'pihole sha256:7bdea0d0f0b62420fea0e71c20d8eebd37a4fef8dc6f3ae5d85731f16c400843'
19.01.21 20:30:39 (-0300)  pihole  [s6-finish] sending all processes the KILL signal and exiting.
19.01.21 20:30:50 (-0300)  pihole  [s6-init] making user provided files available at /var/run/s6/etc...exited 0.
19.01.21 20:30:52 (-0300)  pihole  [s6-init] ensuring user provided files have correct perms...exited 0.
19.01.21 20:30:52 (-0300)  pihole  [fix-attrs.d] applying ownership & permissions fixes...
19.01.21 20:30:52 (-0300)  pihole  [fix-attrs.d] 01-resolver-resolv: applying... 
19.01.21 20:30:52 (-0300)  pihole  [fix-attrs.d] 01-resolver-resolv: exited 0.
19.01.21 20:30:53 (-0300)  pihole  [fix-attrs.d] done.
19.01.21 20:30:53 (-0300)  pihole  [cont-init.d] executing container initialization scripts...
19.01.21 20:30:53 (-0300)  pihole  [cont-init.d] 20-start.sh: executing... 
19.01.21 20:30:53 (-0300)  pihole  [cont-init.d] 20-start.sh: exited 267.
19.01.21 20:30:53 (-0300)  pihole  [cont-finish.d] executing container finish scripts...
19.01.21 20:30:53 (-0300)  pihole  [cont-finish.d] done.
19.01.21 20:30:53 (-0300)  pihole  [s6-finish] waiting for services.
19.01.21 20:30:53 (-0300)  pihole  [s6-finish] sending all processes the TERM signal.
19.01.21 20:30:56 (-0300)  pihole  [s6-finish] sending all processes the KILL signal and exiting.
19.01.21 20:31:01 (-0300) Killed service 'pihole sha256:7bdea0d0f0b62420fea0e71c20d8eebd37a4fef8dc6f3ae5d85731f16c400843'
19.01.21 20:31:01 (-0300) Service exited 'pihole sha256:7bdea0d0f0b62420fea0e71c20d8eebd37a4fef8dc6f3ae5d85731f16c400843'

Any help will be very much appreciated! ๐Ÿ˜„

curl returned a non-zero code: 60

Sorry, me again...
I'm now getting a curl error as below:

[pihole]          Step 4/17 : RUN curl -sSL https://raw.githubusercontent.com/tasanakorn/rpi-fbcp/master/CMakeLists.txt -O
[pihole]           ---> Running in deb229db9a21
[pihole]          curl: (60) SSL certificate problem: unable to get local issuer certificate
[pihole]          More details here: https://curl.haxx.se/docs/sslcerts.html
[pihole]          curl failed to verify the legitimacy of the server and therefore could not
[pihole]          establish a secure connection to it. To learn more about this situation and
[pihole]          how to fix it, please visit the web page mentioned above.
[pihole]
[pihole]          Removing intermediate container deb229db9a21
[Info]            Uploading images
[pihole]          The command '/bin/sh -c curl -sSL https://raw.githubusercontent.com/tasanakorn/rpi-fbcp/master/CMakeLists.txt -O' returned a non-zero code: 60
[Success]         Successfully uploaded images
[Error]           Some services failed to build:
[Error]             Service: pihole
[Error]               Error: The command '/bin/sh -c curl -sSL https://raw.githubusercontent.com/tasanakorn/rpi-fbcp/master/CMakeLists.txt -O' returned a non-zero code: 60
[Error]             Service: undefined
[Error]               Error: Information not available
[Error]           Not deploying release.
Remote build failed

Additional information may be available by setting a DEBUG=1 environment
variable: "set DEBUG=1" on a Windows command prompt, or "export DEBUG=1"
on Linux or macOS.

If you need help, don't hesitate in contacting our support forums at
https://forums.balena.io

For bug reports or feature requests, have a look at the GitHub issues or
create a new one at: https://github.com/balena-io/balena-cli/issues/

I had to edit pihole/Dockerfile and change the lines to:

RUN curl -k -sSL https://raw.githubusercontent.com/tasanakorn/rpi-fbcp/master/CMakeLists.txt -O
RUN curl -k -sSL https://raw.githubusercontent.com/tasanakorn/rpi-fbcp/master/main.c -O

Not ideal, I know. But skipping the verification makes it work!

Duplicate padd.sh processes preventing startup

This issue has been plaguing me for a long time, but I've always just worked-around it thinking that it was local.

Following a reboot, restart, or new push (restart), my Pi-hole/padd (RPi3 with TFT display) gets stuck at this stage which is displayed on the screen:

- Writing PID (1135) to file...
- Checking for PROD version file...
   - PROD version file not found.
- Gathering system information...
- Gathering Pi-hole information...

If I look at the pihole container, I can see two padd.sh processes trying to start

/usr/src# ps -ef | grep padd
root      1114     1  0 08:18 pts/0    00:00:00 s6-supervise padd
root      1135  1119  8 08:18 ?        00:02:19 bash /usr/src/padd.sh
root      1293  1135 99 08:18 ?        00:26:49 bash /usr/src/padd.sh

Killing the second PID (1293 in this case) allows things to continue and the pihole fully starts. Judging by the PIDs, it looks like the first process (1135) is spawning the second, but I'm not comfortable enough in shell scripting to figure out where the problem lies (if there is a problem).

I've tried starting with a fresh machine and though it works the first time, subsequent pushes will trigger this issue.

I'm running the latest version as of today, but this issue has been present for me for over a year.

My RPi3 is running balenaOS 2.58.3+rev1 / Sup 11.14.0.

Let me know if I can provide any other information.

Thanks!
Roddie

Unable to resolve `pi.hole` in build `2021.10`

This was working in build 2021.09 and appears to only impact Pi-hole instances in this balena fleet.

# 2021.09
> nslookup pi.hole 192.168.1.141           
Server:         192.168.1.141
Address:        192.168.1.141#53

Name:   pi.hole
Address: 192.168.1.141
Name:   pi.hole
Address: fe80::c88d:7302:fe39:bc60
# 2021.10
> nslookup pi.hole 192.168.1.141
Server:         192.168.1.141
Address:        192.168.1.141#53

Non-authoritative answer:
*** Can't find pi.hole: No answer

Investigation will be tracked here...

why no more dnscrypt-proxy?

Sorry for disturbing you here, I just don't know the correct place to ask this question.
Thank you very much for this project - I use your project for a while and happy with it.
I haven't updated my pihole for quite a while and now I noticed that dnscrypt-proxy is not in your project any longer...
May I ask you why did you move from dnscrpyt-proxy?
Thank you.

PADD does not work with pitft 2.8"

Following these instructions but using adafruit 2.8" capacitive pitft display instead.

Here are the instructions for enabling the mentioned pitft display: https://github.com/balena-io-projects/balena-wpe#capacitive-touchscreen

The display seems to work well after adding the following balena vars:

RESIN_HOST_CONFIG_gpu_mem  =  64
RESIN_HOST_CONFIG_dtoverlay  =  pitft28-capacitive,rotate=270,speed=25000000,fps=20
RESIN_HOST_CONFIG_hdmi_cvt  =  320 240 60 1 0 0 0
RESIN_HOST_CONFIG_hdmi_force_hotplug  = 1
RESIN_HOST_CONFIG_hdmi_group  = 4
RESIN_HOST_CONFIG_hdmi_mode  =  87

After booting pi the screen is white with the Balena Logo, then after I see in logs Starting PADD the screen turns black, but no text is visible.

Please help to make PADD work with the mentioned display.
Thank you.

Move PADD to a separate service container

We can reduce the changes made to the official Pi-hole container if we move PADD to a separate service and point it to the correct FTL port on the pihole service.

No external screen detected in balenablocks/fbcp causing pihole container to exit

Starting a new issue as per @klutchell request. The new implementation of fbcp seems to be causing the pihole container to KILL all processes and exit because no display is detected by fbcp.

OS Version:

ID="balena-os"
NAME="balenaOS"
VERSION="2.65.0+rev1"
VERSION_ID="2.65.0+rev1"
PRETTY_NAME="balenaOS 2.65.0+rev1"
MACHINE="raspberrypi3-64"
VARIANT="Development"
VARIANT_ID="dev"
META_BALENA_VERSION="2.65.0"
RESIN_BOARD_REV="7105b35"
META_RESIN_REV="88025c4"
SLUG="raspberrypi3-64"

Here are the logs of what is happening during startup:

20.01.21 11:38:55 (-0600) Downloading delta for image 'registry2.balena-cloud.com/v2/cadbb7fd82bca3b0d30fb510e2db7481@sha256:d0556bf4f6fd18ac832635c1d4b3be12fcf04f6fe71554ee5456f8a4b3764b18'
20.01.21 11:39:46 (-0600) Downloaded image 'registry2.balena-cloud.com/v2/cadbb7fd82bca3b0d30fb510e2db7481@sha256:d0556bf4f6fd18ac832635c1d4b3be12fcf04f6fe71554ee5456f8a4b3764b18'
20.01.21 11:39:47 (-0600) Installing service 'fbcp sha256:44ce3640dff23af0aa9f0f87c0bce59950fe226f540bf4da51bd01addd04e0b9'
20.01.21 11:39:47 (-0600) Killing service 'pihole sha256:bc413244e6892e904f1255585a45a179e695184e7a8e27a562a0088b6f66295b'
20.01.21 11:39:47 (-0600) Installed service 'fbcp sha256:44ce3640dff23af0aa9f0f87c0bce59950fe226f540bf4da51bd01addd04e0b9'
20.01.21 11:39:47 (-0600) Starting service 'fbcp sha256:44ce3640dff23af0aa9f0f87c0bce59950fe226f540bf4da51bd01addd04e0b9'
20.01.21 11:39:47 (-0600) pihole Stopping lighttpd
20.01.21 11:39:47 (-0600) pihole Stopping pihole-FTL
20.01.21 11:39:47 (-0600) pihole Stopping cron
20.01.21 11:39:47 (-0600) pihole [cont-finish.d] executing container finish scripts...
20.01.21 11:39:47 (-0600) pihole [cont-finish.d] done.
20.01.21 11:39:47 (-0600) pihole [s6-finish] waiting for services.
20.01.21 11:39:48 (-0600) pihole [s6-finish] sending all processes the TERM signal.
20.01.21 11:39:49 (-0600) Started service 'fbcp sha256:44ce3640dff23af0aa9f0f87c0bce59950fe226f540bf4da51bd01addd04e0b9'
20.01.21 11:39:49 (-0600) fbcp Display not detected, exiting...
20.01.21 11:39:49 (-0600) fbcp Display not detected, exiting...
20.01.21 11:39:51 (-0600) Service exited 'fbcp sha256:44ce3640dff23af0aa9f0f87c0bce59950fe226f540bf4da51bd01addd04e0b9'
20.01.21 11:39:51 (-0600) pihole [s6-finish] sending all processes the KILL signal and exiting.
20.01.21 11:39:52 (-0600) Service exited 'pihole sha256:bc413244e6892e904f1255585a45a179e695184e7a8e27a562a0088b6f66295b'
20.01.21 11:39:52 (-0600) Killed service 'pihole sha256:bc413244e6892e904f1255585a45a179e695184e7a8e27a562a0088b6f66295b'
20.01.21 11:39:53 (-0600) Deleting image 'registry2.balena-cloud.com/v2/10aeed7798b9e8488e20e83d28b5ecdb@sha256:a955e2efd8e5fa08e9a221514fa6760d44ea48e50a5284fd70daefc5d2579636'
20.01.21 11:39:53 (-0600) Deleted image 'registry2.balena-cloud.com/v2/10aeed7798b9e8488e20e83d28b5ecdb@sha256:a955e2efd8e5fa08e9a221514fa6760d44ea48e50a5284fd70daefc5d2579636'

Processes don't use the config file

After solving #44 , I ran into another issue which is, despite I changed the balena.yml file to use wlan0 I can see the both pihole process and dnscript-proxy using eth0 which my pi zero don't have.

08.09.20 20:21:12 (+0200) Installing service 'dnscrypt-proxy sha256:786c5d65a7e0ad8c4c655f3f678281b5048315cdf522e0d87e0aa00e8c50b391'
08.09.20 20:21:12 (+0200) Installing service 'pihole sha256:9653e07ef791894c92b58eb4cc78c3aadf0b3ca8f84980c6eaa82a4d27434dbd'
08.09.20 20:21:14 (+0200) Installed service 'dnscrypt-proxy sha256:786c5d65a7e0ad8c4c655f3f678281b5048315cdf522e0d87e0aa00e8c50b391'
08.09.20 20:21:14 (+0200) Starting service 'dnscrypt-proxy sha256:786c5d65a7e0ad8c4c655f3f678281b5048315cdf522e0d87e0aa00e8c50b391'
08.09.20 20:21:14 (+0200) Installed service 'pihole sha256:9653e07ef791894c92b58eb4cc78c3aadf0b3ca8f84980c6eaa82a4d27434dbd'
08.09.20 20:21:14 (+0200) Starting service 'pihole sha256:9653e07ef791894c92b58eb4cc78c3aadf0b3ca8f84980c6eaa82a4d27434dbd'
08.09.20 20:21:28 (+0200) Started service 'pihole sha256:9653e07ef791894c92b58eb4cc78c3aadf0b3ca8f84980c6eaa82a4d27434dbd'
08.09.20 20:21:26 (+0200)  pihole  [s6-init] making user provided files available at /var/run/s6/etc...exited 0.
08.09.20 20:21:28 (+0200)  pihole  [s6-init] ensuring user provided files have correct perms...exited 0.
08.09.20 20:21:28 (+0200)  pihole  [fix-attrs.d] applying ownership & permissions fixes...
08.09.20 20:21:28 (+0200)  pihole  [fix-attrs.d] 01-resolver-resolv: applying... 
08.09.20 20:21:28 (+0200)  pihole  [fix-attrs.d] 01-resolver-resolv: exited 0.
08.09.20 20:21:28 (+0200)  pihole  [fix-attrs.d] done.
08.09.20 20:21:28 (+0200)  pihole  [cont-init.d] executing container initialization scripts...
08.09.20 20:21:28 (+0200)  pihole  [cont-init.d] 20-start.sh: executing... 
08.09.20 20:21:30 (+0200)  pihole   ::: Starting docker specific checks & setup for docker pihole/pihole
08.09.20 20:21:30 (+0200)  pihole  OK: Checks passed for /etc/resolv.conf DNS servers
08.09.20 20:21:30 (+0200)  pihole  
08.09.20 20:21:30 (+0200)  pihole  nameserver 127.0.0.1
08.09.20 20:21:30 (+0200)  pihole  nameserver 1.1.1.1
08.09.20 20:21:30 (+0200)  pihole  options timeout:15
08.09.20 20:21:30 (+0200)  pihole  Assigning random password: -mdrNUeQ
08.09.20 20:21:33 (+0200)  pihole    [i] Existing PHP installation detected : PHP version 7.0.33-0+deb9u7
08.09.20 20:21:34 (+0200) Started service 'dnscrypt-proxy sha256:786c5d65a7e0ad8c4c655f3f678281b5048315cdf522e0d87e0aa00e8c50b391'
08.09.20 20:21:32 (+0200)  dnscrypt-proxy  [2020-09-08 18:21:32] [NOTICE] dnscrypt-proxy 2.0.44
08.09.20 20:21:32 (+0200)  dnscrypt-proxy  [2020-09-08 18:21:32] [NOTICE] Network connectivity detected
08.09.20 20:21:32 (+0200)  dnscrypt-proxy  [2020-09-08 18:21:32] [NOTICE] Now listening to 0.0.0.0:5053 [UDP]
08.09.20 20:21:32 (+0200)  dnscrypt-proxy  [2020-09-08 18:21:32] [NOTICE] Now listening to 0.0.0.0:5053 [TCP]
08.09.20 20:21:32 (+0200)  dnscrypt-proxy  [2020-09-08 18:21:32] [NOTICE] Source [public-resolvers] loaded
08.09.20 20:21:33 (+0200)  dnscrypt-proxy  [2020-09-08 18:21:33] [NOTICE] Source [relays] loaded
08.09.20 20:21:33 (+0200)  dnscrypt-proxy  [2020-09-08 18:21:33] [NOTICE] Firefox workaround initialized
08.09.20 20:21:33 (+0200)  dnscrypt-proxy  [2020-09-08 18:21:33] [NOTICE] [deffer-dns.au] OK (DNSCrypt) - rtt: 317ms
08.09.20 20:21:36 (+0200)  dnscrypt-proxy  [2020-09-08 18:21:36] [NOTICE] [powerdns-doh] OK (DoH) - rtt: 106ms
08.09.20 20:21:36 (+0200)  pihole  
08.09.20 20:21:36 (+0200)  pihole    [i] Installing configs from /etc/.pihole...
08.09.20 20:21:36 (+0200)  pihole    [i] Existing dnsmasq.conf found... it is not a Pi-hole file, leaving alone!
08.09.20 20:21:36 (+0200)  pihole    [i] Copying 01-pihole.conf to /etc/dnsmasq  [โœ“] Copying 01-pihole.conf to /etc/dnsmasq.d/01-pihole.conf
08.09.20 20:21:37 (+0200)  dnscrypt-proxy  [2020-09-08 18:21:37] [NOTICE] [dnslify-doh] OK (DoH) - rtt: 226ms
08.09.20 20:21:37 (+0200)  dnscrypt-proxy  [2020-09-08 18:21:37] [NOTICE] [dnscrypt.be] OK (DNSCrypt) - rtt: 53ms
08.09.20 20:21:37 (+0200)  pihole  chown: cannot access '/etc/pihole/dhcp.leases': No such file or directory
08.09.20 20:21:38 (+0200)  dnscrypt-proxy  [2020-09-08 18:21:38] [NOTICE] [dnscrypt.ca-1-doh] OK (DoH) - rtt: 157ms
08.09.20 20:21:38 (+0200)  dnscrypt-proxy  [2020-09-08 18:21:38] [NOTICE] [v.dnscrypt.uk-ipv4] OK (DNSCrypt) - rtt: 60ms
08.09.20 20:21:39 (+0200)  pihole  ::: Pre existing WEBPASSWORD found
08.09.20 20:21:39 (+0200)  pihole  Using default DNS servers: 8.8.8.8 & 8.8.4.4
08.09.20 20:21:39 (+0200)  pihole  DNSMasq binding to default interface: eth0
08.09.20 20:21:40 (+0200)  pihole  Added ENV to php:
08.09.20 20:21:40 (+0200)  pihole                       "PHP_ERROR_LOG" => "/var/log/lighttpd/error.log",
08.09.20 20:21:40 (+0200)  pihole                       "ServerIP" => "0.0.0.0",
08.09.20 20:21:40 (+0200)  pihole                       "VIRTUAL_HOST" => "0.0.0.0",
08.09.20 20:21:40 (+0200)  pihole  Using IPv4 and IPv6
08.09.20 20:21:40 (+0200)  pihole  ::: Preexisting ad list /etc/pihole/adlists.list detected ((exiting setup_blocklists early))
08.09.20 20:21:40 (+0200)  pihole  https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts
08.09.20 20:21:40 (+0200)  pihole  https://mirror1.malwaredomains.com/files/justdomains
08.09.20 20:21:40 (+0200)  pihole  http://sysctl.org/cameleon/hosts
08.09.20 20:21:40 (+0200)  pihole  https://s3.amazonaws.com/lists.disconnect.me/simple_tracking.txt
08.09.20 20:21:40 (+0200)  pihole  https://s3.amazonaws.com/lists.disconnect.me/simple_ad.txt
08.09.20 20:21:40 (+0200)  pihole  https://hosts-file.net/ad_servers.txt
08.09.20 20:21:41 (+0200)  pihole  ::: Testing pihole-FTL DNS: sudo: unable to resolve host 9f5acc1
08.09.20 20:21:42 (+0200)  pihole  
08.09.20 20:21:42 (+0200)  pihole  dnsmasq: unknown interface eth0
08.09.20 20:21:42 (+0200)  pihole  [cont-init.d] 20-start.sh: exited 1.
08.09.20 20:21:42 (+0200)  pihole  [cont-finish.d] executing container finish scripts...
08.09.20 20:21:42 (+0200)  pihole  [cont-finish.d] done.
08.09.20 20:21:42 (+0200)  pihole  [s6-finish] waiting for services.
08.09.20 20:21:42 (+0200)  pihole  [s6-finish] sending all processes the TERM signal.
08.09.20 20:21:46 (+0200)  dnscrypt-proxy  [2020-09-08 18:21:46] [NOTICE] [doh-ibksturm] OK (DoH) - rtt: 66ms
08.09.20 20:21:46 (+0200)  pihole  [s6-finish] sending all processes the KILL signal and exiting.
08.09.20 20:21:51 (+0200)  dnscrypt-proxy  [2020-09-08 18:21:51] [WARNING] [opennic-fische] Incorrect signature for provider name: [2.dnscrypt-cert.ns2.iriseden.fr.]
08.09.20 20:21:52 (+0200)  dnscrypt-proxy  [2020-09-08 18:21:52] [NOTICE] [sth-doh-se] OK (DoH) - rtt: 113ms
08.09.20 20:21:52 (+0200)  dnscrypt-proxy  [2020-09-08 18:21:52] [NOTICE] [d0wn-is-ns2] OK (DNSCrypt) - rtt: 80ms
08.09.20 20:21:53 (+0200)  dnscrypt-proxy  [2020-09-08 18:21:53] [NOTICE] [jp.tiar.app-doh] OK (DoH) - rtt: 283ms
08.09.20 20:21:53 (+0200)  dnscrypt-proxy  [2020-09-08 18:21:53] [NOTICE] [faelix-uk-ipv4] OK (DNSCrypt) - rtt: 56ms
08.09.20 20:21:54 (+0200)  dnscrypt-proxy  [2020-09-08 18:21:54] [NOTICE] [bortzmeyer] OK (DoH) - rtt: 36ms
08.09.20 20:21:54 (+0200)  dnscrypt-proxy  [2020-09-08 18:21:54] [NOTICE] [acsacsar-ams-ipv4] OK (DNSCrypt) - rtt: 35ms
08.09.20 20:21:54 (+0200)  dnscrypt-proxy  [2020-09-08 18:21:54] [NOTICE] [dns.digitale-gesellschaft.ch] OK (DoH) - rtt: 68ms
08.09.20 20:21:54 (+0200)  dnscrypt-proxy  [2020-09-08 18:21:54] [NOTICE] [sth-dnscrypt-se] OK (DNSCrypt) - rtt: 126ms
08.09.20 20:21:55 (+0200) Service exited 'pihole sha256:9653e07ef791894c92b58eb4cc78c3aadf0b3ca8f84980c6eaa82a4d27434dbd'
08.09.20 20:21:55 (+0200)  dnscrypt-proxy  [2020-09-08 18:21:55] [NOTICE] [dnscrypt.ca-2-doh] OK (DoH) - rtt: 129ms
08.09.20 20:21:56 (+0200)  dnscrypt-proxy  [2020-09-08 18:21:56] [NOTICE] [faelix-ch-ipv4-doh] OK (DoH) - rtt: 48ms
08.09.20 20:21:56 (+0200)  dnscrypt-proxy  [2020-09-08 18:21:56] [NOTICE] [jp.tiarap.org] OK (DoH) - rtt: 46ms
08.09.20 20:21:57 (+0200)  dnscrypt-proxy  [2020-09-08 18:21:57] [NOTICE] [ev-va] OK (DNSCrypt) - rtt: 181ms
08.09.20 20:21:59 (+0200)  dnscrypt-proxy  [2020-09-08 18:21:59] [NOTICE] [bcn-doh] OK (DoH) - rtt: 99ms
08.09.20 20:21:59 (+0200)  dnscrypt-proxy  [2020-09-08 18:21:59] [NOTICE] [doh.ffmuc.net] OK (DoH) - rtt: 73ms
08.09.20 20:22:00 (+0200)  dnscrypt-proxy  [2020-09-08 18:22:00] [NOTICE] [cz.nic] OK (DoH) - rtt: 65ms
08.09.20 20:22:01 (+0200)  dnscrypt-proxy  [2020-09-08 18:22:01] [NOTICE] [nextdns] OK (DoH) - rtt: 47ms
08.09.20 20:22:04 (+0200)  dnscrypt-proxy  [2020-09-08 18:22:04] [NOTICE] [doh.appliedprivacy.net] OK (DoH) - rtt: 97ms
08.09.20 20:22:04 (+0200)  dnscrypt-proxy  [2020-09-08 18:22:04] [NOTICE] [meganerd] OK (DNSCrypt) - rtt: 58ms
08.09.20 20:22:04 (+0200)  dnscrypt-proxy  [2020-09-08 18:22:04] [NOTICE] [soltysiak] OK (DNSCrypt) - rtt: 67ms
08.09.20 20:22:04 (+0200)  dnscrypt-proxy  [2020-09-08 18:22:04] [NOTICE] [ams-dnscrypt-nl] OK (DNSCrypt) - rtt: 49ms
08.09.20 20:22:05 (+0200)  dnscrypt-proxy  [2020-09-08 18:22:05] [NOTICE] [arvind-io] OK (DNSCrypt) - rtt: 177ms
08.09.20 20:22:10 (+0200)  dnscrypt-proxy  [2020-09-08 18:22:10] [NOTICE] [publicarray-au2] OK (DNSCrypt) - rtt: 293ms
08.09.20 20:22:10 (+0200)  dnscrypt-proxy  [2020-09-08 18:22:10] [NOTICE] [jp.tiar.app] OK (DNSCrypt) - rtt: 285ms
08.09.20 20:22:10 (+0200)  dnscrypt-proxy  [2020-09-08 18:22:10] [NOTICE] [faelix-uk-ipv4-doh] OK (DoH) - rtt: 95ms
08.09.20 20:22:12 (+0200)  dnscrypt-proxy  [2020-09-08 18:22:12] [NOTICE] [publicarray-au-doh] OK (DoH) - rtt: 295ms
08.09.20 20:22:12 (+0200) Restarting service 'pihole sha256:9653e07ef791894c92b58eb4cc78c3aadf0b3ca8f84980c6eaa82a4d27434dbd'

Balena PiHole/Unbound and Plex

Since updating to the build with Unbound, I've lost access to my Plex Server on several devices(Vizio Smart TV, Roku Streaming Stick, PS4, and Xbox360). The rest of the devices on my network (iPads, PCs, Android and iPhones) can still see, connect to the server, and stream shows just fine. I can access the Server using the Roku Media Player on the Streaming Stick, just not the Plex App.

I found this on a search, but can't figure out how to add the custom domain to Unbound on this build:

Hello Pihole Github Community,
I have a small request for the Pihole Doc's, because I lost a lot of hours with a configuration error and I would like to pass on the resulting solution.
Pihole with unbound causes a big problem with the Config described in the doc's (https://docs.pi-hole.net/guides/unbound/) when using a plex server in the network (no secure connection can be established via the website "app.plex.tv").

My request now would be to include this known error in the docs.
For people who have a plex server in the network, you have to add this entry to the config:

private domain: plex.direct
Afterwards the problem is also permanently solved.

Many thanks for the development of Pihole,
Xedon

From url: https://github.com/pi-hole/pi-hole/issues/3461

Apologies if this is not the right way to ask for help. I'm very new to this.

Activate DHCP on first boot

Thanks for sharing this, great project and it works amazing!

Quick question, I'm using the DHCP from the PiHole and I would like to see if there is a way to have it turned ON by default so that it's enabled straight from the start on first boot of the balena app.

And, of course, if there is a way to pre-set the DHCP settings (ip range, etc.)

Thanks!

Password variable

I've tried to use the WEBPASSWORD variable but it does not appear to work

I added the variable AFTER installing the services

image

image

Can't get into dnscrypt-proxy container

When trying to get into the dnscrypt-proxy container getting:

$ balena ssh 192.168.2.2 dnscrypt-proxy
OCI runtime exec failed: exec failed: container_linux.go:345: starting container process caused "exec: \"/bin/sh\": stat /bin/sh: no such file or directory": unknown
Connection to 192.168.2.2 closed.

Similar results in BalenaCloud shell:
Screen Shot 2020-02-09 at 8 42 00 PM

Is it supposed to be possible to get there?

Can't build Service

I just did some modification to my Balena cloud project which is utilizing your your balena-pihole module. However currently the service DnscryptProxy is unable to be built. Here is the log:

[DnscryptProxy]  standard_init_linux.go:207: exec user process caused "no such file or directory"
[DnscryptProxy]  
[DnscryptProxy]  Removing intermediate container 2b511a2f05bf
[DnscryptProxy]  The command '/bin/sh -c apk add --no-cache ca-certificates curl        && curl -L "${DNSCRYPT_PROXY_URL}${DNSCRYPT_PROXY_VERSION}.tar.gz" -o /tmp/dnscrypt-proxy.tar.gz        && tar xzf /tmp/dnscrypt-proxy.tar.gz --strip 1 -C /go/src/github.com/DNSCrypt  && go build -v -ldflags="-s -w"' returned a non-zero code: 1

dnscrypt-proxy stopped working since last update

I've updated to the yesterdays release with the changed environment variables/new dnscrypt-proxy and noticed that dnscrypt-proxy stopped working.

Environment variables updated and even with a brand new install, dnscrypt-proxy still don't work.

Could you please check it? Thanks in advance.

Pi-hole and Homeassistant Port 80 Problem

Hi,
sorry must briefly open an issue, for you certainly a klacks :)
On your config and ports I have changed nothing so runs over unbound with 5053.
I would have to change something in the lighttpd because of the webinterface port assignment (port 80).
I have homeassistant running on another Pi and now have problems with the certificate renewal.
in principle i would like that the webinterface does not listen on the port 80 but on eg. 85. on the normal Pi without balena I have always adjusted this via lighttpd.

can you help me there?

big thanks

pihole doesn't respond to DNS queries without container restart

After a full restart of my RPi3 (shutdown and power off/on), pihole doesn't respond to DNS queries until I restart the pihole container again. Logs/testing output below:

Logs from power-on:

20.02.21 12:50:19 (-0600) Supervisor starting
20.02.21 12:49:55 (-0600)  pihole  [s6-init] making user provided files available at /var/run/s6/etc...exited 0.
20.02.21 12:49:56 (-0600)  pihole  [s6-init] ensuring user provided files have correct perms...exited 0.
20.02.21 12:49:56 (-0600)  pihole  [fix-attrs.d] applying ownership & permissions fixes...
20.02.21 12:49:56 (-0600)  pihole  [fix-attrs.d] 01-resolver-resolv: applying... 
20.02.21 12:49:56 (-0600)  pihole  [fix-attrs.d] 01-resolver-resolv: exited 0.
20.02.21 12:49:56 (-0600)  pihole  [fix-attrs.d] done.
20.02.21 12:49:56 (-0600)  pihole  [cont-init.d] executing container initialization scripts...
20.02.21 12:49:56 (-0600)  pihole  [cont-init.d] 20-start.sh: executing... 
20.02.21 12:49:57 (-0600)  pihole   ::: Starting docker specific checks & setup for docker pihole/pihole
20.02.21 12:49:57 (-0600)  pihole  
20.02.21 12:49:57 (-0600)  pihole    [i] Installing configs from /etc/.pihole...
20.02.21 12:49:58 (-0600)  pihole    [i] Existing dnsmasq.conf found... it is not a Pi-hole file, leaving alone!
20.02.21 12:49:58 (-0600)  pihole    [i] Copying 01-pi  [รข] Copying 01-pihole.conf to /etc/dnsmasq.d/01-pihole.conf
20.02.21 12:49:59 (-0600)  pihole  Converting DNS1 to PIHOLE_DNS_
20.02.21 12:49:59 (-0600)  pihole  Converting DNS2 to PIHOLE_DNS_
20.02.21 12:49:59 (-0600)  pihole  Setting DNS servers based on PIHOLE_DNS_ variable
20.02.21 12:49:59 (-0600)  pihole  ::: Pre existing WEBPASSWORD found
20.02.21 12:49:59 (-0600)  pihole  DNSMasq binding to default interface: eth0
20.02.21 12:50:00 (-0600)  pihole  Added ENV to php:
20.02.21 12:50:00 (-0600)  pihole                    "PHP_ERROR_LOG" => "/var/log/lighttpd/error.log",
20.02.21 12:50:00 (-0600)  pihole                    "ServerIP" => "0.0.0.0",
20.02.21 12:50:00 (-0600)  pihole                    "VIRTUAL_HOST" => "0.0.0.0",
20.02.21 12:50:00 (-0600)  pihole  Using IPv4 and IPv6
20.02.21 12:50:00 (-0600)  pihole  ::: Preexisting ad list /etc/pihole/adlists.list detected ((exiting setup_blocklists early))
20.02.21 12:50:00 (-0600)  pihole  https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts
20.02.21 12:50:00 (-0600)  pihole  ::: Testing pihole-FTL DNS: sudo: unable to resolve host 7ed1bcc: Temporary failure in name resolution
20.02.21 12:50:06 (-0600)  pihole  FTL started!
20.02.21 12:50:07 (-0600)  pihole  ::: Testing lighttpd config: Syntax OK
20.02.21 12:50:07 (-0600)  pihole  ::: All config checks passed, cleared for startup ...
20.02.21 12:50:07 (-0600)  pihole  ::: Enabling Query Logging
20.02.21 12:50:07 (-0600)  pihole    [i] Enabling logging...
20.02.21 12:50:07 (-0600)  pihole    [i] Restarting DN  [รข] Restarting DNS server
  [รข] Logging has been enabled!
20.02.21 12:50:07 (-0600)  pihole   ::: Docker start setup complete
20.02.21 12:50:08 (-0600)  pihole    [i] Neutrino emissions detected...
  [รข] Pulling blocklist source list into range
20.02.21 12:50:08 (-0600)  pihole  
20.02.21 12:50:08 (-0600)  pihole    [i] Preparing new  [รข] Preparing new gravity database
20.02.21 12:50:08 (-0600)  pihole    [i] Using libz compression
20.02.21 12:50:08 (-0600)  pihole  
20.02.21 12:50:08 (-0600)  pihole    [i] Target: https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts
20.02.21 12:50:08 (-0600)  pihole    [i] Status: Pendi  [รข] Status: Connection Refused
20.02.21 12:50:08 (-0600)  pihole    [รข] List download failed: using previously cached list
20.02.21 12:50:10 (-0600)  pihole    [i] Received 62904 domains
20.02.21 12:50:10 (-0600)  pihole  
20.02.21 12:50:10 (-0600)  pihole    [i] Target: https://mirror1.malwaredomains.com/files/justdomains
20.02.21 12:50:10 (-0600)  pihole    [i] Status: Pendi  [รข] Status: Connection Refused
20.02.21 12:50:10 (-0600)  pihole    [รข] List download failed: no cached list available
20.02.21 12:50:10 (-0600)  pihole  
20.02.21 12:50:10 (-0600)  pihole    [i] Target: http://sysctl.org/cameleon/hosts
20.02.21 12:50:10 (-0600)  pihole    [i] Status: Pendi  [รข] Status: Connection Refused
20.02.21 12:50:10 (-0600)  pihole    [รข] List download failed: using previously cached list
20.02.21 12:50:11 (-0600)  pihole    [i] Received 20566 domains
20.02.21 12:50:11 (-0600)  pihole  
20.02.21 12:50:11 (-0600)  pihole    [i] Target: https://zeustracker.abuse.ch/blocklist.php?download=domainblocklist
20.02.21 12:50:11 (-0600)  pihole    [i] Status: Pendi  [รข] Status: Connection Refused
20.02.21 12:50:11 (-0600)  pihole    [รข] List download failed: using previously cached list
20.02.21 12:50:11 (-0600)  pihole    [i] Received 0 domains
20.02.21 12:50:11 (-0600)  pihole  
20.02.21 12:50:11 (-0600)  pihole    [i] Target: https://s3.amazonaws.com/lists.disconnect.me/simple_tracking.txt
20.02.21 12:50:12 (-0600)  pihole    [i] Status: Pendi  [รข] Status: Connection Refused
20.02.21 12:50:12 (-0600)  pihole    [รข] List download failed: using previously cached list
20.02.21 12:50:12 (-0600)  pihole    [i] Received 34 domains
20.02.21 12:50:12 (-0600)  pihole  
20.02.21 12:50:12 (-0600)  pihole    [i] Target: https://s3.amazonaws.com/lists.disconnect.me/simple_ad.txt
20.02.21 12:50:12 (-0600)  pihole    [i] Status: Pendi  [รข] Status: Connection Refused
20.02.21 12:50:12 (-0600)  pihole    [รข] List download failed: using previously cached list
20.02.21 12:50:12 (-0600)  pihole    [i] Received 2701 domains
20.02.21 12:50:12 (-0600)  pihole  
20.02.21 12:50:12 (-0600)  pihole    [i] Target: https://hosts-file.net/ad_servers.txt
20.02.21 12:50:13 (-0600)  pihole    [i] Status: Pendi  [รข] Status: Connection Refused
20.02.21 12:50:13 (-0600)  pihole    [รข] List download failed: no cached list available
20.02.21 12:50:13 (-0600)  pihole  
20.02.21 12:50:14 (-0600)  pihole    [i] Storing downl  [รข] Storing downloaded domains in new gravity database
20.02.21 12:50:15 (-0600)  pihole    [i] Building tree  [รข] Building tree
20.02.21 12:50:15 (-0600)  pihole    [i] Swapping data  [รข] Swapping databases
20.02.21 12:50:17 (-0600)  pihole    [i] Number of gravity domains: 86205 (74489 unique domains)
20.02.21 12:50:17 (-0600)  pihole    [i] Number of exact blacklisted domains: 1
20.02.21 12:50:17 (-0600)  pihole    [i] Number of regex blacklist filters: 0
20.02.21 12:50:17 (-0600)  pihole    [i] Number of exact whitelisted domains: 108
20.02.21 12:50:17 (-0600)  pihole    [i] Number of regex whitelist filters: 0
20.02.21 12:50:17 (-0600)  pihole    [i] Flushing DNS   [รข] Flushing DNS cache
20.02.21 12:50:17 (-0600)  pihole    [i] Cleaning up s  [รข] Cleaning up stray matter
20.02.21 12:50:17 (-0600)  pihole  
20.02.21 12:50:18 (-0600)  pihole    [รข] DNS service is listening
20.02.21 12:50:18 (-0600)  pihole       [รข] UDP (IPv4)
20.02.21 12:50:18 (-0600)  pihole       [รข] TCP (IPv4)
20.02.21 12:50:18 (-0600)  pihole       [รข] UDP (IPv6)
20.02.21 12:50:18 (-0600)  pihole       [รข] TCP (IPv6)
20.02.21 12:50:18 (-0600)  pihole  
20.02.21 12:50:18 (-0600)  pihole    [รข] Pi-hole blocking is enabled
20.02.21 12:50:18 (-0600)  pihole    Pi-hole version is v5.2.4 (Latest: v5.2.4)
20.02.21 12:50:18 (-0600)  pihole    AdminLTE version is v5.4 (Latest: v5.4)
20.02.21 12:50:18 (-0600)  pihole    FTL version is v5.7 (Latest: v5.7)
20.02.21 12:50:18 (-0600)  pihole  [cont-init.d] 20-start.sh: exited 0.
20.02.21 12:50:18 (-0600)  pihole  [cont-init.d] done.
20.02.21 12:50:18 (-0600)  pihole  [services.d] starting services
20.02.21 12:50:18 (-0600)  pihole  Starting crond
20.02.21 12:50:18 (-0600)  pihole  Starting lighttpd
20.02.21 12:50:18 (-0600)  pihole  Starting PADD
20.02.21 12:50:18 (-0600)  pihole  Starting pihole-FTL (no-daemon) as root
20.02.21 12:50:18 (-0600)  pihole  [services.d] done.
20.02.21 12:49:59 (-0600)  unbound  [1613846999] unbound[1:0] notice: init module 0: validator
20.02.21 12:49:59 (-0600)  unbound  [1613846999] unbound[1:0] notice: init module 1: iterator
20.02.21 12:49:59 (-0600)  unbound  [1613846999] unbound[1:0] info: start of service (unbound 1.13.0).
20.02.21 12:50:21 (-0600) Starting service 'dbus sha256:ca6de21b82870c1b7278e017977d90be0fcf1c1bdb61ac7e059a6b194881cea5'
20.02.21 12:58:54 (-0600) Started service 'dbus sha256:ca6de21b82870c1b7278e017977d90be0fcf1c1bdb61ac7e059a6b194881cea5'
20.02.21 12:58:54 (-0600)  dbus  method return time=1613847534.437242 sender=:1.0 -> destination=:1.89 serial=585 reply_serial=2
20.02.21 12:58:54 (-0600)  dbus     object path "/org/freedesktop/systemd1/job/707"
20.02.21 12:58:54 (-0600)  dbus  method return time=1613847534.437242 sender=:1.0 -> destination=:1.89 serial=585 reply_serial=2
20.02.21 12:58:54 (-0600)  dbus     object path "/org/freedesktop/systemd1/job/707"
20.02.21 12:58:56 (-0600) Service exited 'dbus sha256:ca6de21b82870c1b7278e017977d90be0fcf1c1bdb61ac7e059a6b194881cea5'

DNS query:

bash-3.2$ nslookup
> server 10.10.10.10
Default server: 10.10.10.10
Address: 10.10.10.10#53
> google.com
;; connection timed out; no servers could be reached
>

Logs following pihole container restart:

20.02.21 13:02:07 (-0600) Killing service 'pihole sha256:4f00e2485051978fffdfb56d069f40da2b1e83ad1ef399926cc5ac157cc48264'
20.02.21 13:02:07 (-0600)  pihole  Stopping PADD
20.02.21 13:02:07 (-0600)  pihole  Stopping lighttpd
20.02.21 13:02:07 (-0600)  pihole  Stopping pihole-FTL
20.02.21 13:02:07 (-0600)  pihole  padd.sh: no process found
20.02.21 13:02:07 (-0600)  pihole  Stopping cron
20.02.21 13:02:07 (-0600)  pihole  [cont-finish.d] executing container finish scripts...
20.02.21 13:02:07 (-0600)  pihole  [cont-finish.d] done.
20.02.21 13:02:07 (-0600)  pihole  [s6-finish] waiting for services.
20.02.21 13:02:08 (-0600)  pihole  [s6-finish] sending all processes the TERM signal.
20.02.21 13:02:11 (-0600)  pihole  [s6-finish] sending all processes the KILL signal and exiting.
20.02.21 13:02:12 (-0600) Service exited 'pihole sha256:4f00e2485051978fffdfb56d069f40da2b1e83ad1ef399926cc5ac157cc48264'
20.02.21 13:02:12 (-0600) Killed service 'pihole sha256:4f00e2485051978fffdfb56d069f40da2b1e83ad1ef399926cc5ac157cc48264'
20.02.21 13:02:13 (-0600) Installing service 'pihole sha256:4f00e2485051978fffdfb56d069f40da2b1e83ad1ef399926cc5ac157cc48264'
20.02.21 13:02:13 (-0600) Installed service 'pihole sha256:4f00e2485051978fffdfb56d069f40da2b1e83ad1ef399926cc5ac157cc48264'
20.02.21 13:02:13 (-0600) Starting service 'pihole sha256:4f00e2485051978fffdfb56d069f40da2b1e83ad1ef399926cc5ac157cc48264'
20.02.21 13:02:15 (-0600) Started service 'pihole sha256:4f00e2485051978fffdfb56d069f40da2b1e83ad1ef399926cc5ac157cc48264'
20.02.21 13:02:15 (-0600)  pihole  [s6-init] making user provided files available at /var/run/s6/etc...exited 0.
20.02.21 13:02:15 (-0600)  pihole  [s6-init] ensuring user provided files have correct perms...exited 0.
20.02.21 13:02:15 (-0600)  pihole  [s6-init] making user provided files available at /var/run/s6/etc...exited 0.
20.02.21 13:02:15 (-0600)  pihole  [s6-init] ensuring user provided files have correct perms...exited 0.
20.02.21 13:02:15 (-0600)  pihole  [fix-attrs.d] applying ownership & permissions fixes...
20.02.21 13:02:15 (-0600)  pihole  [fix-attrs.d] 01-resolver-resolv: applying... 
20.02.21 13:02:15 (-0600)  pihole  [fix-attrs.d] 01-resolver-resolv: exited 0.
20.02.21 13:02:15 (-0600)  pihole  [fix-attrs.d] done.
20.02.21 13:02:15 (-0600)  pihole  [cont-init.d] executing container initialization scripts...
20.02.21 13:02:15 (-0600)  pihole  [cont-init.d] 20-start.sh: executing... 
20.02.21 13:02:15 (-0600)  pihole  [fix-attrs.d] applying ownership & permissions fixes...
20.02.21 13:02:15 (-0600)  pihole  [fix-attrs.d] 01-resolver-resolv: applying... 
20.02.21 13:02:15 (-0600)  pihole  [fix-attrs.d] 01-resolver-resolv: exited 0.
20.02.21 13:02:15 (-0600)  pihole  [fix-attrs.d] done.
20.02.21 13:02:15 (-0600)  pihole  [cont-init.d] executing container initialization scripts...
20.02.21 13:02:15 (-0600)  pihole  [cont-init.d] 20-start.sh: executing... 
20.02.21 13:02:15 (-0600)  pihole   ::: Starting docker specific checks & setup for docker pihole/pihole
20.02.21 13:02:16 (-0600)  pihole  
20.02.21 13:02:16 (-0600)  pihole    [i] Installing configs from /etc/.pihole...
20.02.21 13:02:16 (-0600)  pihole    [i] Existing dnsmasq.conf found... it is not a Pi-hole file, leaving alone!
20.02.21 13:02:16 (-0600)  pihole    [i] Copying 01-pihole.  [รข] Copying 01-pihole.conf to /etc/dnsmasq.d/01-pihole.conf
20.02.21 13:02:17 (-0600)  pihole  Converting DNS1 to PIHOLE_DNS_
20.02.21 13:02:17 (-0600)  pihole  Converting DNS2 to PIHOLE_DNS_
20.02.21 13:02:17 (-0600)  pihole  Setting DNS servers based on PIHOLE_DNS_ variable
20.02.21 13:02:17 (-0600)  pihole  ::: Pre existing WEBPASSWORD found
20.02.21 13:02:17 (-0600)  pihole  DNSMasq binding to default interface: eth0
20.02.21 13:02:17 (-0600)  pihole  Added ENV to php:
20.02.21 13:02:17 (-0600)  pihole                       "PHP_ERROR_LOG" => "/var/log/lighttpd/error.log",
20.02.21 13:02:17 (-0600)  pihole                       "ServerIP" => "0.0.0.0",
20.02.21 13:02:17 (-0600)  pihole                       "VIRTUAL_HOST" => "0.0.0.0",
20.02.21 13:02:18 (-0600)  pihole  Using IPv4 and IPv6
20.02.21 13:02:18 (-0600)  pihole  ::: Preexisting ad list /etc/pihole/adlists.list detected ((exiting setup_blocklists early))
20.02.21 13:02:18 (-0600)  pihole  https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts
20.02.21 13:02:18 (-0600)  pihole  ::: Testing pihole-FTL DNS: sudo: unable to resolve host 7ed1bcc: Name or service not known
20.02.21 13:02:19 (-0600)  pihole  FTL started!
20.02.21 13:02:19 (-0600)  pihole  ::: Testing lighttpd config: Syntax OK
20.02.21 13:02:19 (-0600)  pihole  ::: All config checks passed, cleared for startup ...
20.02.21 13:02:19 (-0600)  pihole  ::: Enabling Query Logging
20.02.21 13:02:19 (-0600)  pihole    [i] Enabling logging...
20.02.21 13:02:19 (-0600)  pihole    [i] Restarting DNS se  [รข] Restarting DNS server
  [รข] Logging has been enabled!
20.02.21 13:02:19 (-0600)  pihole   ::: Docker start setup complete
20.02.21 13:02:20 (-0600)  pihole    [i] Neutrino emissions detected...
  [รข] Pulling blocklist source list into range
20.02.21 13:02:20 (-0600)  pihole  
20.02.21 13:02:20 (-0600)  pihole    [i] Preparing new gra  [รข] Preparing new gravity database
20.02.21 13:02:20 (-0600)  pihole    [i] Using libz compression
20.02.21 13:02:20 (-0600)  pihole  
20.02.21 13:02:20 (-0600)  pihole    [i] Target: https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts
20.02.21 13:02:20 (-0600)  pihole    [i] Status: Pending..  [รข] Status: Retrieval successful
20.02.21 13:02:21 (-0600)  pihole    [i] Received 62904 domains
20.02.21 13:02:21 (-0600)  pihole  
20.02.21 13:02:21 (-0600)  pihole    [i] Target: https://mirror1.malwaredomains.com/files/justdomains
20.02.21 13:02:21 (-0600)  pihole    [i] Status: Pending..  [รข] Status: Not found
20.02.21 13:02:21 (-0600)  pihole    [รข] List download failed: no cached list available
20.02.21 13:02:21 (-0600)  pihole  
20.02.21 13:02:21 (-0600)  pihole    [i] Target: http://sysctl.org/cameleon/hosts
20.02.21 13:02:22 (-0600)  pihole    [i] Status: Pending..  [รข] Status: No changes detected
20.02.21 13:02:22 (-0600)  pihole    [i] Received 20566 domains
20.02.21 13:02:22 (-0600)  pihole  
20.02.21 13:02:22 (-0600)  pihole    [i] Target: https://zeustracker.abuse.ch/blocklist.php?download=domainblocklist
20.02.21 13:02:23 (-0600)  pihole    [i] Status: Pending..  [รข] Status: Retrieval successful
20.02.21 13:02:23 (-0600)  pihole    [i] Received 0 domains
20.02.21 13:02:23 (-0600)  pihole  
20.02.21 13:02:23 (-0600)  pihole    [i] Target: https://s3.amazonaws.com/lists.disconnect.me/simple_tracking.txt
20.02.21 13:02:23 (-0600)  pihole    [i] Status: Pending..  [รข] Status: No changes detected
20.02.21 13:02:23 (-0600)  pihole    [i] Received 34 domains
20.02.21 13:02:23 (-0600)  pihole  
20.02.21 13:02:23 (-0600)  pihole    [i] Target: https://s3.amazonaws.com/lists.disconnect.me/simple_ad.txt
20.02.21 13:02:24 (-0600)  pihole    [i] Status: Pending..  [รข] Status: No changes detected
20.02.21 13:02:24 (-0600)  pihole    [i] Received 2701 domains
20.02.21 13:02:24 (-0600)  pihole  
20.02.21 13:02:24 (-0600)  pihole    [i] Target: https://hosts-file.net/ad_servers.txt
20.02.21 13:02:24 (-0600)  pihole    [i] Status: Pending..  [รข] Status: Not found
20.02.21 13:02:24 (-0600)  pihole    [รข] List download failed: no cached list available
20.02.21 13:02:24 (-0600)  pihole  
20.02.21 13:02:25 (-0600)  pihole    [i] Storing downloade  [รข] Storing downloaded domains in new gravity database
  [รข] Building tree
20.02.21 13:02:26 (-0600)  pihole    [i] Swapping database  [รข] Swapping databases
20.02.21 13:02:27 (-0600)  pihole    [i] Number of gravity domains: 86205 (74489 unique domains)
20.02.21 13:02:27 (-0600)  pihole    [i] Number of exact blacklisted domains: 1
20.02.21 13:02:27 (-0600)  pihole    [i] Number of regex blacklist filters: 0
20.02.21 13:02:27 (-0600)  pihole    [i] Number of exact whitelisted domains: 108
20.02.21 13:02:27 (-0600)  pihole    [i] Number of regex whitelist filters: 0
20.02.21 13:02:27 (-0600)  pihole    [i] Flushing DNS cach  [รข] Flushing DNS cache
20.02.21 13:02:27 (-0600)  pihole    [i] Cleaning up stray  [รข] Cleaning up stray matter
20.02.21 13:02:27 (-0600)  pihole  
20.02.21 13:02:28 (-0600)  pihole    [รข] DNS service is listening
20.02.21 13:02:28 (-0600)  pihole       [รข] UDP (IPv4)
20.02.21 13:02:28 (-0600)  pihole       [รข] TCP (IPv4)
20.02.21 13:02:28 (-0600)  pihole       [รข] UDP (IPv6)
20.02.21 13:02:28 (-0600)  pihole       [รข] TCP (IPv6)
20.02.21 13:02:28 (-0600)  pihole  
20.02.21 13:02:28 (-0600)  pihole    [รข] Pi-hole blocking is enabled
20.02.21 13:02:28 (-0600)  pihole    Pi-hole version is v5.2.4 (Latest: v5.2.4)
20.02.21 13:02:28 (-0600)  pihole    AdminLTE version is v5.4 (Latest: v5.4)
20.02.21 13:02:29 (-0600)  pihole    FTL version is v5.7 (Latest: v5.7)
20.02.21 13:02:29 (-0600)  pihole  [cont-init.d] 20-start.sh: exited 0.
20.02.21 13:02:29 (-0600)  pihole  [cont-init.d] done.
20.02.21 13:02:29 (-0600)  pihole  [services.d] starting services
20.02.21 13:02:29 (-0600)  pihole  Starting lighttpd
20.02.21 13:02:29 (-0600)  pihole  Starting pihole-FTL (no-daemon) as root
20.02.21 13:02:29 (-0600)  pihole  Starting PADD
20.02.21 13:02:29 (-0600)  pihole  Starting crond
20.02.21 13:02:29 (-0600)  pihole  [services.d] done.

DNS query following pihole container restart:

bash-3.2$ nslookup
> server 10.10.10.10
Default server: 10.10.10.10
Address: 10.10.10.10#53
> google.com
Server:		10.10.10.10
Address:	10.10.10.10#53

Non-authoritative answer:
Name:	google.com
Address: 172.217.9.142
>

Orange Pi Zero Dockerfile parse error line 1: Unknown flag: platform

DEBUG=1 ../balena-cli/balena push 192.168.7.75

[debug] original argv0="../balena-cli/balena" argv=[/root/balena-cli/balena,/snapshot/versioned-source/bin/balena,push,192.168.7.75] length=4
[debug] Using . as build source
[Debug] Checking we can access device
[Debug] Sending request to http://192.168.7.75:48484/ping
[Debug] Checking device version: 9.11.3
[Info] Starting build on device 192.168.7.75
[Debug] Loading project...
[Debug] Resolving project...
[Info] Compose file detected
[Debug] Creating project...
[Debug] Tarring all non-ignored files...
[Debug] Sending request to http://192.168.7.75:48484/v2/local/device-info
[Debug] Found build tasks:
[Debug] pihole: build [./pihole]
[Debug] dnscrypt-proxy: build [./dnscrypt-proxy]
[Debug] Resolving services with [orange-pi-zero|armv7hf]
[Debug] Found project types:
[Debug] pihole: Standard Dockerfile
[Debug] dnscrypt-proxy: Standard Dockerfile
[Debug] Probing remote daemon for cache images
[Debug] Using 19 on-device images for cache...
[Debug] Starting builds...
[Build] [pihole] Step 1/18 : FROM balenalib/raspberrypi3-debian:jessie-build AS build
[Build] [pihole] ---> 17662902215f
[Build] [pihole] Step 2/18 : WORKDIR /usr/src
[Build] [pihole] ---> Using cache
[Build] [pihole] ---> ac19bbf6da5b
[Build] [pihole] Step 3/18 : RUN install_packages cmake libraspberrypi-dev
[Build] [pihole] ---> Using cache
[Build] [pihole] ---> 9394463b9b3a
[Build] [pihole] Step 4/18 : RUN curl -sSL https://raw.githubusercontent.com/tasanakorn/rpi-fbcp/master/CMakeLists.txt -O
[Build] [pihole] ---> Using cache
[Build] [pihole] ---> d5f7753147a6
[Build] [pihole] Step 5/18 : RUN curl -sSL https://raw.githubusercontent.com/tasanakorn/rpi-fbcp/master/main.c -O
[Build] [pihole] ---> Using cache
[Build] [pihole] ---> 9850ced08904
[Build] [pihole] Step 6/18 : WORKDIR /usr/src/build
[Build] [pihole] ---> Using cache
[Build] [pihole] ---> 21f0839c213c
[Build] [pihole] Step 7/18 : RUN cmake .. && make
[Build] [pihole] ---> Using cache
[Build] [pihole] ---> 44cc809a7173
[Build] [pihole] Step 8/18 : FROM pihole/pihole:4.3.2-1_armhf
[Build] [pihole] ---> 1ad60393d9c2
[Build] [pihole] Step 9/18 : WORKDIR /usr/src
[Build] [pihole] ---> Using cache
[Build] [pihole] ---> c778e3f9888a
[Build] [pihole] Step 10/18 : COPY --from=build /opt/vc/lib/* /opt/vc/lib/
[Build] [pihole] ---> Using cache
[Build] [pihole] ---> bca8c01ef88d
[Build] [pihole] Step 11/18 : COPY --from=build /usr/src/build/fbcp /usr/src/
[Build] [pihole] ---> Using cache
[Build] [pihole] ---> 9080fb6e9035
[Build] [pihole] Step 12/18 : COPY services/ /etc/services.d/
[Build] [pihole] ---> Using cache
[Build] [pihole] ---> 96436e73d341
[Build] [pihole] Step 13/18 : COPY init/ /etc/cont-init.d/
[Build] [pihole] ---> Using cache
[Build] [pihole] ---> c06f133b63bb
[Build] [pihole] Step 14/18 : RUN sed -i '/$AUTHORIZED_HOSTNAMES = array(/ a "balena-devices.com",' /var/www/html/admin/scripts/pi-hole/php/auth.php
[Build] [pihole] ---> Using cache
[Build] [pihole] ---> a96f75c25b84
[Build] [pihole] Step 15/18 : RUN echo "bind-interfaces" >> /etc/dnsmasq.conf
[Build] [pihole] ---> Using cache
[Build] [pihole] ---> 680e88eb288f
[Build] [pihole] Step 16/18 : RUN curl -fsSL https://github.com/jpmck/PADD/archive/v3.0.2.tar.gz | tar xz --strip-components 1 && chmod +x padd.sh
[Build] [pihole] ---> Using cache
[Build] [pihole] ---> 0ca866d0e138
[Build] [pihole] Step 17/18 : RUN curl -sSL https://v.firebog.net/hosts/lists.php?type=tick -o /etc/pihole/adlists.list
[Build] [pihole] ---> Using cache
[Build] [pihole] ---> b7229e0cd151
[Build] [pihole] Step 18/18 : LABEL "io.resin.local.image"='1' "io.resin.local.service"='pihole'
[Build] [pihole] ---> Using cache
[Build] [pihole] ---> 24984605b959
[Build] [pihole] Successfully built 24984605b959
[Build] [pihole] Successfully tagged local_image_pihole:latest
Some services failed to build:
dnscrypt-proxy: (HTTP code 400) unexpected - Dockerfile parse error line 1: Unknown flag: platform

If you need help, don't hesitate in contacting our support forums at
https://forums.balena.io

For CLI bug reports or feature requests, have a look at the GitHub issues or
create a new one at: https://github.com/balena-io/balena-cli/issues/

Container continuously restarting

The pihole container is continuously restarting. Adding a snippet, can provide full log if you think its needed. This is my first time working with BalenaCloud, let me know if any other info is needed.

Thanks

HOST OS VERSION: balenaOS 2.38.0+rev1

25.07.19 22:21:53 (-0500) <pihole>   [โœ“] DNS service is running
25.07.19 22:21:53 (-0500) <pihole>   [โœ“] Pi-hole blocking is Enabled
25.07.19 22:21:53 (-0500) <pihole> [cont-init.d] 20-start.sh: exited 0.
25.07.19 22:21:53 (-0500) <pihole> [cont-init.d] 30-checktft.sh: executing... 
25.07.19 22:21:53 (-0500) <pihole> ifelse: fatal: unable to exec bash
: No such file or directory
25.07.19 22:21:53 (-0500) <pihole> [cont-init.d] 30-checktft.sh: exited 111.
25.07.19 22:21:53 (-0500) <pihole> [cont-finish.d] executing container finish scripts...
25.07.19 22:21:53 (-0500) <pihole> [cont-finish.d] done.
25.07.19 22:21:53 (-0500) <pihole> [s6-finish] syncing disks.
25.07.19 22:21:59 (-0500) <pihole> [s6-finish] sending all processes the TERM signal.
25.07.19 22:22:02 (-0500) <pihole> [s6-finish] sending all processes the KILL signal and exiting.
25.07.19 22:22:04 (-0500) Service exited 'pihole sha256:e1072f6ffd746e5be8ca8d812998abee138e22fdbe24607d2cf360e61b9b9de6'
25.07.19 22:22:05 (-0500) Restarting service 'pihole sha256:e1072f6ffd746e5be8ca8d812998abee138e22fdbe24607d2cf360e61b9b9de6'
25.07.19 22:22:05 (-0500) <pihole> [s6-init] making user provided files available at /var/run/s6/etc...exited 0.

Documentation clarity

I was following this guide and at the point of pushing this repo to the remote cloud application I got stuck.
I was following well untill here

Pushing the project code to your Raspberry Pi

As you have the CLI setup and the latest code downloaded, you can now execute a single command to push that code to balenaCloud which in turn builds the Docker image and handles the process of setting it up and running it on your device.

The line

From within the unzipped project directory, execute balena push <appName>, where appName is the application name you set back at the beginning of the guide. For example: balena push balenaPi-hole

was not clear at all.
In the end it was necessary to look at the examples inside another page

$ balena push myApp
$ balena push myApp --source <source directory>
$ balena push myApp -s <source directory>

$ balena push 10.0.0.1
$ balena push 10.0.0.1 --source <source directory>
$ balena push 10.0.0.1 -s <source directory>

and perform the $ balena push myApp --source <source directory> command

My final results

C:\Users\Vlady\Desktop\balena-cli> .\balena.exe push Docker --source .\balena-pihole\

here

image

image

I hope this helps someone else

Can't push release over balenaCloud as dnscrypt-proxy image doesn't exist

The problem

Following balenaCloud pihole tutorial, I got stuck at "3. Deploy the software > 3. Pushing the project code to your Raspberry Pi".
The error is:

[Error] An error occured: (HTTP code 404) no such image - no such image: klutchell/dnscrypt-proxy:arm32v7-2.0.27: No such image: klutchell/dnscrypt-proxy:arm32v7-2.0.27

The solution

Change balena-pihole/docker-compose.yml (line 23):
image: klutchell/dnscrypt-proxy:arm32v7-2.0.27 -> image: klutchell/dnscrypt-proxy

Change balena-pihole/pihole/Dockerfile (line 14):
FROM pihole/pihole:4.3.2-1_armhf -> FROM pihole/pihole

Device configuration

Host OS Version: balenaOS 2.38.0+rev1 production
Supervisor Version: 9.15.7
Type: Raspberry Pi 3 (using 64bit OS) (BETA)

dnscrypt-proxy stopped working after yesterday update (1576f53814b75106539ceca9c4766d553cb8732c)

Seems no one reported this yet, I updated to the last commit today and noticed that dnscrypt-proxy is exiting and restarting constantly:

05.11.19 15:59:22 (-0300) Restarting service 'dnscrypt-proxy sha256:27c95604f138ab1f461d66048be5ede0b222bf11ea3f8fe81aaeeebfd43d9bfa'
05.11.19 15:59:22 (-0300) Service exited 'dnscrypt-proxy sha256:27c95604f138ab1f461d66048be5ede0b222bf11ea3f8fe81aaeeebfd43d9bfa'
05.11.19 15:58:43 (-0300) dnscrypt-proxy standard_init_linux.go:207: exec user process caused "exec format error"
05.11.19 15:59:17 (-0300) dnscrypt-proxy standard_init_linux.go:207: exec user process caused "exec format error"

Problems after FBCP changes

Hi there,

I'm having a couple of issues that I believe started after the recent FBCP changes. I can't be 100% sure because they problems didn't actually appear until after a power cycle (recent power issues in TX).

I'm having two issues:

  1. My LCD no longer displays anything (black screen). This is the official RPi touch screen with the same configuration that I've had in Balena for a couple of years.

The only related thing in the logs is this.


18.02.21 16:35:40 (-0600)  fbcp  WARNING: FBCP_DISPLAY variable not set.
18.02.21 16:31:29 (-0600)  fbcp   Set the value if you are using an SPI-based display.
18.02.21 16:31:29 (-0600)  fbcp  Idling...

There are so many different guides/posts out there about LCD screens, so I hesitate to change anything that was working until I have some idea of where to go, but I have tried setting FBCP_DISPLAY to adafruit-hx8357d-pitft and ````adafruit-ili9341-pitft``` to no avail.

Again, I've got the "Official Raspberry Pi 7-inch display" so I don't even know if this is required. My other settings more or less match what Chris posted here.

  1. This issue depends on what my above settings are. By default (before I started trying to get the display working), all services start and everything looks ok, but pihole does not respond to DNS queries until I restart the container. No issues in the log.

This has happened to me before, btw - years ago when display settings were all over the map, I would have to manually restart the pihole container after a device reboot so that it would work. I don't remember what ended up resolving the issue, likely fixing the display.

Please let me know if I can share any other settings or logs.

Thanks!
Roddie

New Pihole Version

Hi,
Me again ;)
Quick question, there is an update available for Pihole. Is here the same procedure as for Unbound? So just load the ZIP file, adjust version and then push again?

Thank you

Unable to build PiHole: E: Unable to locate package libraspberrypi-dev

RPi3

..\balena.exe push RPi3-Home --verbose
[Info]            Starting build for RPi3-Home, user *********
[Info]            Dashboard link: https://dashboard.balena-cloud.com/apps/*******/devices
[Info]            Building on arm03
[Info]            Pulling previous images for caching purposes...
[Success]         Successfully pulled cache images
[pihole]          Step 1/17 : FROM balenalib/raspberrypi3-64-debian:jessie-build AS build
[dnscrypt-proxy]  Step 1/17 : FROM balenalib/raspberrypi3-64-alpine-golang:1.12-3.10 as build
[pihole]           ---> b9ff226e22de
[pihole]          Step 2/17 : WORKDIR /usr/src
[pihole]          Using cache
[pihole]           ---> 2c2dd19121fd
[pihole]          Step 3/17 : RUN install_packages cmake libraspberrypi-dev
[dnscrypt-proxy]   ---> 3a3c7fccdf78
[dnscrypt-proxy]  Step 2/17 : WORKDIR /go/src/github.com/DNSCrypt/dnscrypt-proxy/
[dnscrypt-proxy]  Using cache
[dnscrypt-proxy]   ---> 27ae110cba1f
[dnscrypt-proxy]  Step 3/17 : ARG DNSCRYPT_PROXY_VERSION=2.0.36
[dnscrypt-proxy]  Using cache
[dnscrypt-proxy]   ---> 2666cbd581fd
[dnscrypt-proxy]  Step 4/17 : ARG DNSCRYPT_PROXY_URL=https://github.com/DNSCrypt/dnscrypt-proxy/archive/  
[dnscrypt-proxy]  Using cache
[dnscrypt-proxy]   ---> 6447963685fd
[dnscrypt-proxy]  Step 5/17 : ENV CGO_ENABLED 0
[pihole]           ---> Running in 099286f44384
[dnscrypt-proxy]  Using cache
[dnscrypt-proxy]   ---> e65842ed87fa
[dnscrypt-proxy]  Step 6/17 : RUN apk add --no-cache ca-certificates curl       && curl -L "${DNSCRYPT_PROXY_URL}${DNSCRYPT_PROXY_VERSION}.tar.gz" -o /tmp/dnscrypt-proxy.tar.gz  && tar xzf /tmp/dnscrypt-proxy.tar.gz --strip 1 -C /go/src/github.com/DNSCrypt    && go build -v -ldflags="-s -w"
[dnscrypt-proxy]  Using cache
[dnscrypt-proxy]   ---> 557da6c7c3f0
[dnscrypt-proxy]  Step 7/17 : WORKDIR /config
[dnscrypt-proxy]  Using cache
[dnscrypt-proxy]   ---> 3dca8ae10ee2
[dnscrypt-proxy]  Step 8/17 : RUN cp -a /go/src/github.com/DNSCrypt/dnscrypt-proxy/example-* ./
[dnscrypt-proxy]  Using cache
[dnscrypt-proxy]   ---> 2b121c9f2419
[dnscrypt-proxy]  Step 9/17 : COPY dnscrypt-proxy.toml ./
[dnscrypt-proxy]  Using cache
[dnscrypt-proxy]   ---> 5a260ff5b4b9
[dnscrypt-proxy]  Step 10/17 : FROM scratch
[dnscrypt-proxy]   --->
[dnscrypt-proxy]  Step 11/17 : COPY --from=build /etc/passwd /etc/group /etc/
[dnscrypt-proxy]  Using cache
[dnscrypt-proxy]   ---> 90195e931997
[dnscrypt-proxy]  Step 12/17 : COPY --from=build /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/       
[dnscrypt-proxy]  Using cache
[dnscrypt-proxy]   ---> 07c405aac592
[dnscrypt-proxy]  Step 13/17 : COPY --from=build /go/src/github.com/DNSCrypt/dnscrypt-proxy/dnscrypt-proxy /usr/local/bin/
[dnscrypt-proxy]  Using cache
[dnscrypt-proxy]   ---> 8e157ad3f46d
[dnscrypt-proxy]  Step 14/17 : COPY --from=build --chown=nobody:nogroup /config /config
[dnscrypt-proxy]  Using cache
[dnscrypt-proxy]   ---> 3c53cfc2573a
[dnscrypt-proxy]  Step 15/17 : USER nobody
[dnscrypt-proxy]  Using cache
[dnscrypt-proxy]   ---> d40ca6ffab72
[dnscrypt-proxy]  Step 16/17 : ENTRYPOINT ["dnscrypt-proxy", "-config", "/config/dnscrypt-proxy.toml"]    
[dnscrypt-proxy]  Using cache
[dnscrypt-proxy]   ---> 38dfbf27a58d
[dnscrypt-proxy]  Step 17/17 : RUN ["dnscrypt-proxy", "-version"]
[dnscrypt-proxy]  Using cache
[dnscrypt-proxy]   ---> 0fcbe8d1aee4
[dnscrypt-proxy]  Successfully built 0fcbe8d1aee4
[pihole]          Reading package lists...
[pihole]          Building dependency tree...
[pihole]          Reading state information...
[pihole]          E: Unable to locate package libraspberrypi-dev
[pihole]
[pihole]          apt failed, retrying
[pihole]          Reading package lists...
[pihole]          Building dependency tree...
[pihole]          Reading state information...
[pihole]          E: Unable to locate package libraspberrypi-dev
[pihole]
[pihole]          apt failed, retrying
[pihole]          Reading package lists...
[pihole]          Building dependency tree...
[pihole]          Reading state information...
[pihole]          E: Unable to locate package libraspberrypi-dev
[pihole]
[pihole]          Removing intermediate container 099286f44384
[pihole]          The command '/bin/sh -c install_packages cmake libraspberrypi-dev' returned a non-zero code: 100
[Info]            Uploading images
[Success]         Successfully uploaded images
[Error]           Some services failed to build:
[Error]             Service: pihole
[Error]               Error: The command '/bin/sh -c install_packages cmake libraspberrypi-dev' returned a non-zero code: 100
[Info]            Built on arm03
[Error]           Not deploying release.
Remote build failed

Additional information may be available in debug mode. Prefix the command
line with DEBUG=1, i.e.:  DEBUG=1 balena ...
If you need help, don't hesitate in contacting our support forums at
https://forums.balena.io

For bug reports or feature requests, have a look at the GitHub issues or
create a new one at: https://github.com/balena-io/balena-cli/issues/

PADD not showing stats in 5.1.1

I just pushed the 5.1.1 release, and though everything loads and displays properly, PADD isn't showing any pihole stats (it does show environment stats of the RPi).

I manually updated PADD in the pihole container and am still having the issue.

balena push <appName> never completes

After following the instructions and getting to the balena push <appName> part. It all runs fine and I get:

[Info] Uploading images
[Success] Successfully uploaded images
[Success] Release successfully created!
[Info] Release: f632086f61288803fc1ea9efaaf59317 (id: 974470)
[Info] โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
[Info] โ”‚ Service โ”‚ Image Size โ”‚ Build Time โ”‚
[Info] โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
[Info] โ”‚ pihole โ”‚ 275.84 MB โ”‚ 11 seconds โ”‚
[Info] โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
[Info] โ”‚ dnscrypt-proxy โ”‚ 19.06 MB โ”‚ < 1 second โ”‚
[Info] โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
[Info] Build finished in 22 seconds

But it never returns to the command prompt. I can ctrl + c to cancel then I get
Received SIGINT, cleaning up. Please wait.

Then if I run balena push <appName> again it creates a new release version, even though nothing has changed.

I am using Windows 10 and Poweshell to run the commands.

Balena OS two Questions about Unbound and Dbus

Hi,

first of all super work! This is the first time that I have no problems with PiHole :) Great work!
However, I have now already read through all the pages but just do not get smarter. Have also tried balena cli but I just do not get it.
How or where do I find the unbound config? I would like to make a few adjustments, but I just can not get to the config file. Do I have to take the device offline and edit the SD card manually? When I am logged into the Balena CLi via root, I can't find unbound anywhere.
Also from Pihole the setupVars.conf same game.
If I go through the Balena Dashboard on Pihole and open a terminal, then I find the files. However, I can not edit them.

The other thing is the Dbus service, is that normal that the starts but then stands on status "exited"?

Am really starting to despair, thank you for your help!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.