Pi-Hole Admin Page Not Loading

Hello All,
I have followed this link https://www.balena.io/blog/deploy-network-wide-ad-blocking-with-pi-hole-and-a-raspberry-pi/#configurationoptions

To install the pi-hole on raspberry Pi and it went all well.
When i test the link provided in the above link, it says Add-Blocking enabled.
But I am not able to login to the Web console. It gives me this error and port is not listening on this device. There are no other applications installed on this raspberry pi.
I verified this post :: Cannot get pi-hole running on balena cloud - not being able to access public url
Setup all the environment variables and also the web password , still I am not able to login to the Web interface.

Thank you for any inputs to resolve this issue.

Kind regards.

We encountered an error when reaching this balena.io device:

UUID 08f93b39af429a36e8f36d938279cd92

tunneling socket could not be established: socket hang up

One possible reason is that nothing is listening on port 80 on the device.

Also I’m getting this while watching services

50%20PM

Hi @mdlisenbery, and welcome to the balena forums!

If you are able to enable support access for that device, we can take a closer look.

Please let us know if and when you enable access!

Also, does your RPi have 1 GB of memory? Some models have only 512 MB, and lack of memory is a possible reason for occasional “service exited”. (It’s just a thought: I don’t know for sure that the Pi-Hole project requires at least 1 GB of memory.)

UUID 08f93b39af429a36e8f36d938279cd92

Remote support enabled

Hi again @mdlisenbery,

We have taken a look at your device, and suspect it is not well suited to this project. The architecture of an RPi 1 / Zero is slightly different (armv6) than a RPi 2 or later (armhf). As there is no pihole project for your architecture provided from upstream, you might just be incompatible in that way. The project mentions that it’s only been tested on some of the more robust RPi models:

Raspberry Pi 2/3B/B+ (older devices might work, but we’ve not tested them)

If you have a RPi 2/3B/B+, you can try pushing to that device instead!

So this guide is incorrect? https://learn.adafruit.com/pi-hole-ad-blocker-with-pi-zero-w/install-pi-hole

https://forums.balena.io/t/pihole-newbie-problems-due-to-lack-of-understanding-general-principles/5586/29

Hey @mdlisenbery,

I’ve tested the Pi-Hole project on the Zero W and I can confirm that it doesn’t work correctly.
The Pi Zero is power/memory limited and may not work properly with balena.

I would suggest following the steps on the 3rd party source. If you are up for the challenge, you can also try merging both projects together and port it to balena.
Anything let us know.

Thank you

I followed the instructions from the website listed in this thread, and I did get the “line ending” errors, but the installation did not fail. The dashboard show pihole and dns
crypt running but I cannot access the pihole admin page. I will appreciate any help gettign it running

I am also getting the error: Service exited ‘pihole sha256:74c0523afeaabf43aaef5476575290862a18fc055e25d17ea045821af36cce8c’

Hi @garman. Welcome to the Balena forums.

Are you able to provide any information from the logs before the pihole service shuts down?

Thanks,
James.

31.03.20 10:11:28 (-0400) Service exited ‘pihole sha256:74c0523afeaabf43aaef5476575290862a18fc055e25d17ea045821af36cce8c’
31.03.20 10:11:32 (-0400) Restarting service ‘pihole sha256:74c0523afeaabf43aaef5476575290862a18fc055e25d17ea045821af36cce8c’
31.03.20 10:11:26 (-0400) pihole [s6-finish] sending all processes the KILL signal and exiting.
31.03.20 10:11:32 (-0400) pihole [s6-init] making user provided files available at /var/run/s6/etc…exited 0.
31.03.20 10:11:32 (-0400) pihole [s6-init] ensuring user provided files have correct perms…exited 0.
31.03.20 10:11:32 (-0400) pihole [fix-attrs.d] applying ownership & permissions fixes…
31.03.20 10:11:32 (-0400) pihole [fix-attrs.d] 01-resolver-resolv: applying…
31.03.20 10:11:32 (-0400) pihole [fix-attrs.d] 01-resolver-resolv: exited 0.
31.03.20 10:11:32 (-0400) pihole [fix-attrs.d] done.
31.03.20 10:11:32 (-0400) pihole [cont-init.d] executing container initialization scripts…
31.03.20 10:11:32 (-0400) pihole [cont-init.d] 20-start.sh: executing…
31.03.20 10:11:33 (-0400) pihole ::: Starting docker specific checks & setup for docker pihole/pihole
31.03.20 10:11:33 (-0400) pihole OK: Checks passed for /etc/resolv.conf DNS servers
31.03.20 10:11:33 (-0400) pihole
31.03.20 10:11:33 (-0400) pihole nameserver 127.0.0.1
31.03.20 10:11:33 (-0400) pihole nameserver 1.1.1.1
31.03.20 10:11:33 (-0400) pihole [i] Existing PHP installation detected : PHP version 7.0.33-0+deb9u7
31.03.20 10:11:33 (-0400) pihole
31.03.20 10:11:33 (-0400) pihole [i] Installing configs from /etc/.pihole…
31.03.20 10:11:33 (-0400) pihole [i] Existing dnsmasq.conf found… it is not a Pi-hole file, leaving alone!
31.03.20 10:11:33 (-0400) pihole [i] Copying 01-pihole.conf to /etc/dnsmasq.d/0 [✓] Copying 01-pihole.conf to /etc/dnsmasq.d/01-pihole.conf
31.03.20 10:11:35 (-0400) pihole chown: cannot access ‘/etc/pihole/dhcp.leases’: No such file or directory
31.03.20 10:11:35 (-0400) pihole ::: Pre existing WEBPASSWORD found
31.03.20 10:11:35 (-0400) pihole Docker DNS variables not used
31.03.20 10:11:35 (-0400) pihole Existing DNS servers used (127.0.0.1#5053 & 127.0.0.1#5053)
31.03.20 10:11:35 (-0400) pihole DNSMasq binding to default interface: eth0
31.03.20 10:11:35 (-0400) pihole Added ENV to php:
31.03.20 10:11:35 (-0400) pihole “PHP_ERROR_LOG” => “/var/log/lighttpd/error.log”,
31.03.20 10:11:35 (-0400) pihole “ServerIP” => “0.0.0.0”,
31.03.20 10:11:35 (-0400) pihole “VIRTUAL_HOST” => “0.0.0.0”,
31.03.20 10:11:35 (-0400) pihole Using IPv4 and IPv6
31.03.20 10:11:35 (-0400) pihole ::: Preexisting ad list /etc/pihole/adlists.list detected ((exiting setup_blocklists early))
[>>>>>>>>>>>>I removed links in the logs here<<<<<<<<<<<<<<<<<<]
31.03.20 10:11:36 (-0400) pihole ::: Testing pihole-FTL DNS: sudo: unable to resolve host 17945d1
31.03.20 10:11:36 (-0400) pihole FTL started!
31.03.20 10:11:36 (-0400) pihole ::: Testing lighttpd config: Syntax OK
31.03.20 10:11:36 (-0400) pihole ::: All config checks passed, cleared for startup …
31.03.20 10:11:36 (-0400) pihole ::: Docker start setup complete
31.03.20 10:11:36 (-0400) pihole [i] Pi-hole blocking is enabled
31.03.20 10:11:38 (-0400) pihole [i] Neutrino emissions detected…
[✓] Pulling blocklist source list into range
31.03.20 10:11:38 (-0400) pihole
[>>>>>>>>>>>>I removed links in the logs here<<<<<<<<<<<<<<<<<<]

[✗] Status: Not found
31.03.20 10:11:50 (-0400) pihole [✗] List download failed: using previously cached list
31.03.20 10:11:50 (-0400) pihole
[✓] Consolidating blocklists
[✓] Extracting domains from blocklists
31.03.20 10:11:53 (-0400) pihole [i] Number of domains being pulled in by gravity: 150074
[✓] Removing duplicate domains
31.03.20 10:11:54 (-0400) pihole [i] Number of unique domains trapped in the Event Horizon: 127889
31.03.20 10:11:54 (-0400) pihole [i] Nothing to whitelist!
31.03.20 10:11:54 (-0400) pihole [i] Number of regex filters: 0
[✓] Parsing domains into hosts format
[✓] Cleaning up stray matter
31.03.20 10:11:54 (-0400) pihole
[✓] Force-reloading DNS service
31.03.20 10:11:54 (-0400) pihole [✓] DNS service is running
31.03.20 10:11:54 (-0400) pihole [✓] Pi-hole blocking is Enabled
31.03.20 10:11:54 (-0400) pihole [cont-init.d] 20-start.sh: exited 0.
31.03.20 10:11:54 (-0400) pihole [cont-init.d] 30-checktft.sh: executing…
: No such file or directorypihole ifelse: fatal: unable to exec bash
31.03.20 10:11:54 (-0400) pihole [cont-init.d] 30-checktft.sh: exited 111.
31.03.20 10:11:54 (-0400) pihole [cont-finish.d] executing container finish scripts…
31.03.20 10:11:54 (-0400) pihole [cont-finish.d] done.
31.03.20 10:11:54 (-0400) pihole [s6-finish] syncing disks.
31.03.20 10:11:59 (-0400) pihole [s6-finish] sending all processes the TERM signal.
31.03.20 10:12:02 (-0400) pihole [s6-finish] sending all processes the KILL signal and exiting.
31.03.20 10:12:07 (-0400) Service exited ‘pihole sha256:74c0523afeaabf43aaef5476575290862a18fc055e25d17ea045821af36cce8c’

Hi @garman,
Unfortunately the Pi Zero is not considered suitable for this project. (The hardware requirements do state “not 1/Zero”) However there are some third party versions of the project mentioned earlier in the thread that may work with the Zero.
One other issue it looks like you might be experiencing is a line ending error in the 30-checktft.sh file. This can happen when using Git on Windows. One workaround is to download the zip file and unzip it yourself. You can find more details about the issue here: piHole webinterface not reachable - If you’re using the balena CLI, versions from 11.25.0 and up warn when this is occurring. It may be worthwhile to resolve this and try again although it still may not run on the Pi Zero.

I am not using a Pi Zero:
Connecting to 17945d17d0b736aafe00ca9a09989df6…
Spawning shell…

Welcome to balenaOS

=============================================================
root@17945d1:~# cat /proc/device-tree/model
Raspberry Pi 2 Model B Rev 1.1root@17945d1:~#

I followed the instructions to force git not to change the line endings
cloned the project then did a balena push and all seems well now, thanks!

Glad it worked!