Cannot install Pi-Hole

Expected behavior :
Pi-hole get installed with FTL working

Actual behavior :
installation fail and completly stop usually at FTL installation.

Debug token :

Impossible as -pihole command doesn’t work in this case

Explanation and discovery:

I know a lots of people post for same trouble but all the solutions that worked for them doesnt for me

si have passed more than 48 hours total on this.

actual message at the isntallation end:

[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:~ $

Fixe that has been tryed:

the command pihole -r ou pihole -d doesn’t work

pi@raspberrypi:~ $ sudo tee /etc/resolv.conf <<< $‘nameserver 8.8.8.8’
nameserver 8.8.8.8
pi@raspberrypi:~ $ pihole -r
-bash: pihole: command not found
pi@raspberrypi:~ $ sudo tee /etc/resolv.conf <<< $‘nameserver 8.8.8.8’
nameserver 8.8.8.8
pi@raspberrypi:~ $ pihole -d
-bash: pihole: command not found
pi@raspberrypi:~ $

same result

sudo rm /etc/resolv.conf
echo “nameserver 8.8.8.8” | sudo tee /etc/resolv.conf
curl -sSL https://install.pi-hole.net | bash

sudo nano /etc/resolv.conf
#edited with a good dns ( 1.1.1.1, 8.8.8.8., etc )

chattr +i
#doesn’t work as its been read at the moments or permission denied

also have tryed more then a dozen fresh install, other version ( strech, buster lite, buster, strech lite )

it always end up with resolv.conf preventing me from updating FTL or finishing install by overwritte before the install get completed.

EDIT : as my comment been move to a post. i reformated whole post.

What are the underlying OS and device on which you are installing Pi-Hole?

For the device i use : Raspberry Pi Zero board

For the underlying OS : last try was on Raspian Buster Lite Sept. 29 version kernel 4.19 but i tryed many with same result.

After you installed the OS, I assume you were able to update the OS to the latest with sudo apt update and sudo apt upgrade ?

On your current OS install, have you tried and failed to install Pi-Hole or is this a clean OS install with nothing else?

i have successfully updated my OS with those 2 command.

right now its contain the fail install of the pihole. but if needed i can wipe the SD card again as it won’t change my life much at this point lol.

Let’s start with that. Format and clean install latest Buster Lite (or Buster flavor you prefer), the configure for your locale, etc and run sudo apt update and sudo apt upgrade.

Then we’ll run the installer with verbose output.

1 Like

@MrGoatastic , I saw your reply in the other thread.
I added some:

Thanks you for the follow up. I will follow jfb instructions for now as we went fresh, although if we cant fix it. i will need to you explain it more in details as i’m not sure what i need to enter, etc but you and jbl used the verbose term wich i think that where we will go !

i’m in my first experience with those OS and ssh. Sorry ^^;

@jfb
Local updated and also the timezone.
suso apt update and upgrade done without trouble.

1 Like

Now run the installer with verbose output. If it fails to install, post the complete output.

curl -sSL https://install.pi-hole.net | bash -x

1 Like

@jfb

pi@raspberrypi:~ $ curl -sSL https://install.pi-hole.net | bash -x

+ set -e
++ cat
+ DNS_SERVERS='Google (ECS);8.8.8.8;8.8.4.4;2001:4860:4860:0:0:0:0:8888;2001:486                       0:4860:0:0:0:0:8844
OpenDNS (ECS);208.67.222.222;208.67.220.220;2620:119:35::35;2620:119:53::53
Level3;4.2.2.1;4.2.2.2;;
Comodo;8.26.56.26;8.20.247.20;;
DNS.WATCH;84.200.69.80;84.200.70.40;2001:1608:10:25:0:0:1c04:b12f;2001:1608:10:25:0:0:9249:d69b
Quad9 (filtered, DNSSEC);9.9.9.9;149.112.112.112;2620:fe::fe;2620:fe::9
Quad9 (unfiltered, no DNSSEC);9.9.9.10;149.112.112.10;2620:fe::10;2620:fe::fe:10
Quad9 (filtered + ECS);9.9.9.11;149.112.112.11;2620:fe::11;
Cloudflare;1.1.1.1;1.0.0.1;2606:4700:4700::1111;2606:4700:4700::1001'
+ installLogLoc=/etc/pihole/install.log
+ setupVars=/etc/pihole/setupVars.conf
+ lighttpdConfig=/etc/lighttpd/lighttpd.conf
+ coltable=/opt/pihole/COL_TABLE
+ webroot=/var/www/html
+ webInterfaceGitUrl=https://github.com/pi-hole/AdminLTE.git
+ webInterfaceDir=/var/www/html/admin
+ piholeGitUrl=https://github.com/pi-hole/pi-hole.git
+ PI_HOLE_LOCAL_REPO=/etc/.pihole
+ PI_HOLE_FILES=(chronometer list piholeDebug piholeLogFlush setupLCD update version gravity uninstall webpage)
+ PI_HOLE_INSTALL_DIR=/opt/pihole
+ PI_HOLE_CONFIG_DIR=/etc/pihole
+ PI_HOLE_BIN_DIR=/usr/local/bin
+ PI_HOLE_BLOCKPAGE_DIR=/var/www/html/pihole
+ useUpdateVars=false
+ adlistFile=/etc/pihole/adlists.list
+ regexFile=/etc/pihole/regex.list
+ IPV4_ADDRESS=
+ IPV6_ADDRESS=
+ QUERY_LOGGING=true
+ INSTALL_WEB_INTERFACE=true
+ PRIVACY_LEVEL=0
+ '[' -z pi ']'
+ '[' -t 0 ']'
+ screen_size='24 80'
+ printf -v rows %d 24
+ printf -v columns %d 80
+ r=12
+ c=40
+ r=20
+ c=70
+ skipSpaceCheck=false
+ reconfigure=false
+ runUnattended=false
+ INSTALL_WEB_SERVER=true
+ [[ -f /opt/pihole/COL_TABLE ]]
+ COL_NC='\e[0m'
+ COL_LIGHT_GREEN='\e[1;32m'
+ COL_LIGHT_RED='\e[1;31m'
+ TICK='[\e[1;32m✓\e[0m]'
+ CROSS='[\e[1;31m✗\e[0m]'
+ INFO='[i]'
+ DONE='\e[1;32m done!\e[0m'
+ OVER='\r\033[K'
+ binary=tbd
+ counter=0
+ [[ '' != true ]]
+ main
+ local 'str=Root user check'
+ printf '\n'

+ [[ 1000 -eq 0 ]]
+ printf '  %b %s\n' '[\e[1;31m✗\e[0m]' 'Root user check'
  [✗] Root user check
+ printf '  %b %bScript called with non-root privileges%b\n' '[i]' '\e[1;31m' '\                       e[0m'
  [i] Script called with non-root privileges
+ printf '      The Pi-hole requires elevated privileges to install and run\n'
      The Pi-hole requires elevated privileges to install and run
+ printf '      Please check the installer for any concerns regarding this requi                       rement\n'
      Please check the installer for any concerns regarding this requirement
+ printf '      Make sure to download this script from a trusted source\n\n'
      Make sure to download this script from a trusted source

+ printf '  %b Sudo utility check' '[i]'
  [i] Sudo utility check+ is_command sudo
+ local check_command=sudo
+ command -v sudo
+ printf '%b  %b Sudo utility check\n' '\r\033[K' '[\e[1;32m✓\e[0m]'
  [✓] Sudo utility check
+ exec curl -sSL https://raw.githubusercontent.com/pi-hole/pi-hole/master/automa                       ted%20install/basic-install.sh
+ sudo bash

  [✓] Root user check

        .;;,.
        .ccccc:,.
         :cccclll:.      ..,,
          :ccccclll.   ;ooodc
           'ccll:;ll .oooodc
             .;cll.;;looo:.
                 .. ','.
                .',,,,,,'.
              .',,,,,,,,,,.
            .',,,,,,,,,,,,....
          ....''',,,,,,,'.......
        .........  ....  .........
        ..........      ..........
        ..........      ..........
        .........  ....  .........
          ........,,,,,,,'......
            ....',,,,,,,,,,,,.
               .',,,,,,,,,'.
                .',,,,,,'.
                  ..'''.

  [✓] Disk space check
  [✓] Update local cache of available packages

  [✓] Checking apt-get for upgraded packages... up to date!

  [i] Installer Dependency checks...
  [✓] Checking for apt-utils
  [i] Checking for dialog (will be installed)
  [✓] Checking for debconf
  [✓] Checking for dhcpcd5
  [i] Checking for git (will be installed)
  [✓] Checking for iproute2
  [✓] Checking for whiptail
  [i] Using Cloudflare
  [✓] Set IP address to 192.168.2.42
  You may need to restart after the install is complete
  [i] Unable to find IPv6 ULA/GUA address, IPv6 adblocking will not be enabled
  [i] IPv4 address: 192.168.2.42/24
  [i] IPv6 address:
  [i] Web Interface On
  [i] Web Server On
  [i] Logging On.
  [✗] Check for existing repository in /etc/.pihole
  [✓] Clone https://github.com/pi-hole/pi-hole.git into /etc/.pihole

  [✗] Check for existing repository in /var/www/html/admin
  [✓] Clone https://github.com/pi-hole/AdminLTE.git into /var/www/html/admin

  [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 (armv6 or lower) Using ARM binary
  [i] Checking for existing FTL binary...
  [✗] Downloading and Installing FTL
  Error: Unable to get latest release location from GitHub
  [✗] FTL Engine not installed

that’s the whole log of the install. same trouble

All the packages marked for installation, are they actually installed now ?

apt policy lsof netcat idn2 sqlite3 dns-root-data resolvconf lighttpd php-common php-cgi php-sqlite3

EDIT:

And some more:

apt policy dialog git

all installed. i scanned through all of them to make sure they were all listed. i can post the log if you like.

Whats you resolver at the moment ?

cat /etc/resolv.conf

And does it resolve github ?

host github.com

Back in the 127.0.0.1 loop i’ve been stuck in

pi@raspberrypi:~ $ cat /etc/resolv.conf
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
#  DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 127.0.0.1
pi@raspberrypi:~ $ host github.com
;; connection timed out; no servers could be reached
pi@raspberrypi:~ $

Upload a debug log first and post token here for the devs/mods to have a look:

sudo tee /etc/resolv.conf <<< $'nameserver 8.8.8.8'

pihole -d

Probably running repair will fix but maybe the devs/mods have some questions first before you try below:

the pihole command still not working even if we installed with verbose -x

i cant pihole -r or -d still

pi@raspberrypi:~ $ sudo tee /etc/resolv.conf <<< $'nameserver 8.8.8.8'
nameserver 8.8.8.8
pi@raspberrypi:~ $ pihole -d
-bash: pihole: command not found

Sh.t creek :wink:

And dirty:

sudo tee /etc/resolv.conf <<< $'nameserver 8.8.8.8'

sudo wget https://github.com/pi-hole/FTL/releases/download/v4.3.1/pihole-FTL-arm-linux-gnueabi -O /usr/bin/pihole-FTL

sudo chmod +x /usr/bin/pihole-FTL

And run installer again with nameserver hack.

EDIT: sorry, needed nameserver hack before wget too

i think we made progress :slight_smile: although the page for the admin and password etc didn’t came up liek i got told. but i will leave that in your hand, next step is pihole -d?

[i] Main Dependency checks...
 [✓] Checking for cron
 [✓] Checking for curl
 [✓] Checking for dnsutils
 [✓] Checking for iputils-ping
 [✓] Checking for lsof
 [✓] Checking for netcat
 [✓] Checking for psmisc
 [✓] Checking for sudo
 [✓] Checking for unzip
 [✓] Checking for wget
 [✓] Checking for idn2
 [✓] Checking for sqlite3
 [✓] Checking for libcap2-bin
 [✓] Checking for dns-root-data
 [✓] Checking for resolvconf
 [✓] Checking for libcap2
 [✓] Checking for lighttpd
 [✓] Checking for php7.3-common
 [✓] Checking for php7.3-cgi
 [✓] Checking for php7.3-sqlite3
 [✓] Enabling lighttpd service to start on reboot...

 [i] FTL Checks...

 [✓] Detected ARM-hf architecture (armv6 or lower) Using ARM binary
 [i] Checking for existing FTL binary...
 [✗] Failed to retrieve latest FTL release metadata  [i] Checking for user 'pih 
 [✓] Creating user 'pihole'
 [✓] Installing scripts from /etc/.pihole

 [i] Installing configs from /etc/.pihole...
 [✓] No dnsmasq.conf found... restoring default dnsmasq.conf...
 [✓] Copying 01-pihole.conf to /etc/dnsmasq.d/01-pihole.conf

 [i] Installing blocking page...
 [✓] Creating directory for blocking page, and copying files
 [✗] Backing up index.lighttpd.html
     No default index.lighttpd.html file found... not backing up

 [✓] Installing sudoer file

 [✓] Installing latest Cron script

 [✓] Installing latest logrotate script
 [i] Backing up /etc/dnsmasq.conf to /etc/dnsmasq.conf.old

 [i] Skipping firewall configuration
 [✓] man pages installed and database updated
 [i] Testing if systemd-resolved is enabled
 [i] Systemd-resolved is not enabled
 [✓] Restarting lighttpd service...
 [✓] Enabling lighttpd service to start on reboot...
 [i] Restarting services...
pi@raspberrypi:~ $

Yes do that first so the devs have a reference if need too.
Isnt she running now ?

pihole status

command working now,

pihole -d is debugging but cant put up a token. i tryed to “hack” the nameserver first and it still fail ( return to normal before the question )

[?] Would you like to upload the log? [y/N] y
    * Using curl for transmission.
[✗]  There was an error uploading your debug log.
   * Please try again or contact the Pi-hole team for assistance.
   * A local copy of the debug log can be found at: /var/log/pihole_debug.log

for pihole status i got this

pi@raspberrypi:~ $ pihole status
  [✗] DNS service is NOT running