I'm running latest updated Raspbian Buster lite on Pi4 4GB. The installation fails in middle with below pasted logs. The pihole doesn't get installed at all, so no "pihole" command is available either.
Expected Behaviour:
Should be getting final "Installation complete" page, but
[i] Main Dependency checks...
[✓] Checking for cron
[✓] Checking for curl
[i] Checking for dnsutils (will be installed)
[✓] Checking for iputils-ping
[i] Checking for lsof (will be installed)
[i] Checking for netcat (will be installed)
[✓] Checking for psmisc
[✓] Checking for sudo
[✓] Checking for unzip
[✓] Checking for wget
[i] Checking for idn2 (will be installed)
[i] Checking for sqlite3 (will be installed)
[✓] Checking for libcap2-bin
[i] Checking for dns-root-data (will be installed)
[i] Checking for resolvconf (will be installed)
[✓] Checking for libcap2
[i] Checking for lighttpd (will be installed)
[i] Checking for php-common (will be installed)
[i] Checking for php-cgi (will be installed)
[i] Checking for php-sqlite3 (will be installed)
[✓] Enabling lighttpd service to start on reboot...
[i] FTL Checks...
[✓] Detected ARM-hf architecture (armv7+)
[i] Checking for existing FTL binary...
[✗] Downloading and Installing FTL
Error: Unable to get latest release location from GitHub
[✗] FTL Engine not installed
pi@raspberrypi:~ $
Debug Token:
pi@raspberrypi:~ $ pihole -d
-bash: pihole: command not found
I tried fresh install of raspbian and hence pihole.
nameserver before pihole install was set to 8.8.8.8 but after install failed the config file was blank. Did set it to google DNS again and then ran DIG command
This isn't a Pi-Hole problem at this point. Pi-Hole is not installed, your Pi can't reach the internet reliably using a third party nameserver. Check your ethernet cable if you are using one. What are you using for a power supply on the Pi-4?
I think power supply is right because I have another Pi4 with same power supply and running OMV with HDD attached to USB.
Anyway, I got it. Somehow the nameserver was resetting back to 127.0.0.1.This time I tried 1.1.1.1 and then restarted pi(didn't restart earlier at all). Afterwards Curl command ran fine.
Good that it's sorted now. But, if you are running an inadquate power supply, you will soon have SD card failures. With inadequate power, the Pi won't write properly to the card. It may run for now, but it will fail early with inadequate power.
I am having the exact same problems on clean image Raspbian install on RPi3b+. I've tried new SD cards, a new power adapter, and even a new RPi3b+, without any luck. The install script seems to set DNS 127.0.0.1 "too early", and the rest of the script fails. If I set DNS to i.e. 8.8.8.8, I can now retry the install script, and it will succeed. But the Pi-hole installation will mess up the Raspbian system, eth0 has lots of problems, and in my case it always ends in system crash (kernel panic?).