Pihole installtion freezes & fails

Please follow the below template, it will help us to help you!

Expected Behaviour:

installation of pihole

Actual Behaviour:

installation freezes

Debug Token:

not possible

Hi,

I'm trying to do a fresh install of pihole one a raspberry pi. Done this before, everything worked, old pi-hole is doing fine.

I did a fresh install of raspian, expanded the file system nothing more.
Installation of pihole starts, works fine untill "expanding urls from blacklists"
Seems the pi is freezing at this point, after waiting for some time ssh session closes down, the raspi seems reboot automatically.

After reboot you can see, that pi-hole is installad partly, web interface is reachable but non functional.
pihole%20stuck|690x360

Second try to install does not work, because pi-hole is partly running there seems no connection to the net, cosole output follows:

Linux raspberrypi 4.14.34-v7+ #1110 SMP Mon Apr 16 15:18:51 BST 2018 armv7l

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Sun May 20 07:53:20 2018 from 192.168.4.99

Wi-Fi is disabled because the country is not set.
Use raspi-config to set the country before use.



   ┌───────────────────┤ Existing Install Detected! ├───────────────────┐       │                                                                    │       │                                                                    │       │ We have detected an existing install.                              │       │                                                                    │       │ Please choose from the following options:                          │       │ (You will be updated to the latest version.)                       │       │                                                                    │       │        Update      This will retain existing settings.             │       │        Reconfigure This will allow you to enter new settings       │       │                                                                    │       │                                                                    │       │                                                                    │       │                                                                    │       │                                                                    │       │                                                                    │       │                                                                    │       │                 <Ok>                     <Cancel>                  │       │                                                                    │       └────────────────────────────────────────────────────────────────────┘       Update option selected
   Disk space check

   Update local cache of available packages...   Update local cache of available packages

   Checking apt-get for upgraded packages...   Checking apt-get for upgraded packages... 5 updates available
   It is recommended to update your OS after installing the Pi-hole!

   Installer Dependency checks...
   Checking for apt-utils...   Checking for apt-utils
   Checking for dialog...   Checking for dialog
   Checking for debconf...   Checking for debconf
   Checking for dhcpcd5...   Checking for dhcpcd5
   Checking for git...   Checking for git
   Checking for iproute2...   Checking for iproute2
   Checking for whiptail...   Checking for whiptail

   Check for existing repository in /etc/.pihole...   Check for existing repository in /etc/.pihole
   Update repo in /etc/.pihole...   Update repo in /etc/.pihole

   Check for existing repository in /var/www/html/admin...   Check for existing repository in /var/www/html/admin
   Update repo in /var/www/html/admin...   Update repo in /var/www/html/admin
   Main Dependency checks...
   Checking for bc...   Checking for bc
   Checking for cron...   Checking for cron
   Checking for curl...   Checking for curl
   Checking for dnsmasq...   Checking for dnsmasq
   Checking for dnsutils...   Checking for dnsutils
   Checking for iputils-ping...   Checking for iputils-ping
   Checking for lsof...   Checking for lsof
   Checking for netcat...   Checking for netcat
   Checking for sudo...   Checking for sudo
   Checking for unzip...   Checking for unzip
   Checking for wget...   Checking for wget
   Checking for idn2...   Checking for idn2
   Checking for sqlite3...   Checking for sqlite3
   Checking for lighttpd...   Checking for lighttpd
   Checking for php-common...   Checking for php-common
   Checking for php-cgi...   Checking for php-cgi
   Checking for php-sqlite3...   Checking for php-sqlite3

   Installing scripts from /etc/.pihole...   Installing scripts from /etc/.pihole

   Installing configs from /etc/.pihole...
   Existing dnsmasq.conf found... it is not a Pi-hole file, leaving alone!
   Copying 01-pihole.conf to /etc/dnsmasq.d/01-pihole.conf...   Copying 01-pihole.conf to /etc/dnsmasq.d/01-pihole.conf

   Creating log and changing owner to dnsmasq... log already exists!

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

   Installing sudoer file...   Installing sudoer file

   Installing latest Cron script...   Installing latest Cron script

   Installing latest logrotate script...   Installing latest logrotate script
   FTL Checks...
   Detecting architecture...   Detected ARM-hf architecture (armv7+)
   Checking for existing FTL binary...
   Downloading and Installing FTL.../tmp/tmp.9uH5Azchwr /etc/.pihole
transferred... /etc/.pihole
   Downloading and Installing FTL
  [i] Restarting services...

  [✓] Starting dnsmasq service

  [✓] Enabling dnsmasq service to start on reboot

  [✓] Starting lighttpd service

  [✓] Enabling lighttpd service to start on reboot

   ┌───────────────────┤ Existing Install Detected! ├───────────────────┐       │                                                                    │       │                                                                    │       │ We have detected an existing install.                              │       │                                                                    │       │ Please choose from the following options:                          │       │ (You will remain on the same version)                              │       │                                                                    │       │        Repair      This will retain existing settings              │       │        Reconfigure This will allow you to enter new settings       │    Initiating network interface                                                 IP information                                                                  ┌────────────────────────────────────────────────────────────────────┐       │ Do you want to log queries?                                        │       │  (Disabling will render graphs on the Admin page useless):         │       │                                                                    │       │    (*) On (Recommended)                                            │       │    ( ) Off                                                         │       │                                                                    │       │                                                                    │       │                                                                    │       │                                                                    │       │                                                                    │       │                                                                    │       │                                                                    │       │                                                                    │       │                                                                    │       │                                                                    │       │                                                                    │       │                 <Ok>                     <Cancel>                  │       │                                                                    │       └────────────────────────────────────────────────────────────────────┘      [i] Logging On.
  [i] Performing reconfiguration, skipping download of local repos
  [✓] Resetting repository within /etc/.pihole...
  [✓] Resetting repository within /var/www/html/admin...
  [i] Main Dependency checks...
  [✓] Checking for bc
  [✓] Checking for cron
  [✓] Checking for curl
  [✓] Checking for dnsmasq
  [✓] Checking for dnsutils
  [✓] Checking for iputils-ping
  [✓] Checking for lsof
  [✓] Checking for netcat
  [✓] Checking for sudo
  [✓] Checking for unzip
  [✓] Checking for wget
  [✓] Checking for idn2
  [✓] Checking for sqlite3
  [✓] Checking for lighttpd
  [✓] Checking for php-common
  [✓] Checking for php-cgi
  [✓] Checking for php-sqlite3


  [✓] Enabling lighttpd service to start on reboot
  [✓] Installing scripts from /etc/.pihole                                   
  [i] Installing configs from /etc/.pihole...
  [i] Existing dnsmasq.conf found... it is not a Pi-hole file, leaving alone!  [✓] Copying 01-pihole.conf to /etc/dnsmasq.d/01-pihole.conf

  [i] Creating log and changing owner to dnsmasq... log already exists!

  [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] 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

  [i] Skipping firewall configuration
  [i] Restarting services...

  [✓] Starting dnsmasq service

  [✓] Enabling dnsmasq service to start on reboot

  [✓] Starting lighttpd service

  [✓] Enabling lighttpd service to start on reboot

  [✓] Starting pihole-FTL service

  [✓] Enabling pihole-FTL service to start on reboot

  [i] Preparing to run gravity.sh to refresh hosts...
  [i] Running gravity.sh
  [i] Neutrino emissions detected...
  [✗] Pulling blocklist source list into range
  [✓] Cleaning up stray matter
  [✓] DNS service is running
  [✓] Pi-hole blocking is Enabled
pi@raspberrypi:~ $

Try editing /etc/resolv.conf and change 127.0.0.1 to 8.8.8. And then run pihole -r to repair the installation.

1 Like

Typing error, it's 8.8.8.8

1 Like

Changing the nameserver worked, repair installation was possible.

Unfortunately pi-hole does not really work after that installation, dashboard shows pi-hole, web-interface and ftl version, but still no mire than thos rotating arrows.
After login, when hitting anything I get the following popup:piholestuck2

See this :

following your link,

php --ini gives me

pi@raspberrypi:~ $ php --ini
Configuration File (php.ini) Path: /etc/php/7.0/cli
Loaded Configuration File: /etc/php/7.0/cli/php.ini
Scan for additional .ini files in: /etc/php/7.0/cli/conf.d
Additional .ini files parsed: /etc/php/7.0/cli/conf.d/10-opcache.ini,
/etc/php/7.0/cli/conf.d/10-pdo.ini,
/etc/php/7.0/cli/conf.d/20-calendar.ini,
/etc/php/7.0/cli/conf.d/20-ctype.ini,
/etc/php/7.0/cli/conf.d/20-exif.ini,
/etc/php/7.0/cli/conf.d/20-fileinfo.ini,
/etc/php/7.0/cli/conf.d/20-ftp.ini,
/etc/php/7.0/cli/conf.d/20-gettext.ini,
/etc/php/7.0/cli/conf.d/20-iconv.ini,
/etc/php/7.0/cli/conf.d/20-json.ini,
/etc/php/7.0/cli/conf.d/20-pdo_sqlite.ini,
/etc/php/7.0/cli/conf.d/20-phar.ini,
/etc/php/7.0/cli/conf.d/20-posix.ini,
/etc/php/7.0/cli/conf.d/20-readline.ini,
/etc/php/7.0/cli/conf.d/20-shmop.ini,
/etc/php/7.0/cli/conf.d/20-sockets.ini,
/etc/php/7.0/cli/conf.d/20-sqlite3.ini,
/etc/php/7.0/cli/conf.d/20-sysvmsg.ini,
/etc/php/7.0/cli/conf.d/20-sysvsem.ini,
/etc/php/7.0/cli/conf.d/20-sysvshm.ini,
/etc/php/7.0/cli/conf.d/20-tokenizer.ini

Check /etc/php/7.0/cli/conf.d/20-json.ini to see if you can enable the JSON module.

The file is there but emmpty

Have you installed the PHP JSON package?

shouldnt it be installed together with php?
Overall, shouldnt it installed with pihole alltogether?

Correct. It should have been installed with php.

run this to have it installed: sudo apt install php-json

no effect, sorry

pi@raspberrypi:~ $ sudo apt-get install php-json
Reading package lists... Done
Building dependency tree
Reading state information... Done
php-json is already the newest version (1:7.0+49).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

add the following strings to the 20-json.ini

; configuration for php json module
; priority=20
extension=json.so

after, restart lighttpd sudo systemctl reload-or-restart lighttpd.service

1 Like

seems that did it!
at least webfrontend works, I will have a look if everything else too.

edit: No, sorry, there seem to be more.
Blocklist seems empty, refresh via tools -> update leist works, gives no errors, but frontend still shows -1
If I hit "long term data" and "query log" I get another popup


stuch3

After fixing the first errors I was able to generate a token:

7stl1giy6z

run sudo apt update && sudo apt upgrade -y, clear cache and cookies and re-try.

The reason for the -1 is that you are missing some necessary files:

   [2018-05-21 00:00:02.132] Error: failed to read /etc/pihole/list.preEventHorizon
   [2018-05-21 00:00:02.132] Gravity list entries: -1

Share the output of pihole -g and then make a new debug token.

I ran "sudo apt update && sudo apt upgrade -y"

pihole -g

The new key
61jk7t3454

What is the output of pihole -g, and make a new debug token.

problem solved.
Switched the power supply, seem it was good enough to run the pi on idle, but not while installation

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.