Pihole slow to start all services

The issue I am facing:
Hello,

Sometimes my PiHole would stop working completely. I would be browsing the internet and notice an ad. I would ssh into my Pi and would do a "pihole -r". However this time I received some errors about my sudoers file. Then all of the sudden it works again. I ran through the whole repair process and it works again, but only for about 6 hours before it stopped working again.

When I restarted my Pi and started the process of pihole -r, instead of giving me the sudoers error, it gave me a "run apt-get update" errors. After maybe more than a 1/2 hour, pihole -r started working fine and everything has been working fine for over 24 hours.

I left the house with Pihole not working. I was going to buy a new SD card, because I was thinking the card was failing. While waiting in line, I decided to connect to my Pi via OpenVPN and it worked.

Any help would be greatly appreciated.

Details about my system:

I bought this Pi from PiSupply and it had everything already preloaded. Please see what I found out below:

adblock@raspberrypi : ~ $ cat /proc/cpuinfo

processor : 0

model name : ARMv7 Processor rev 4 (v7l)

BogoMIPS : 38.40

Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32

CPU implementer : 0x41

CPU architecture: 7

CPU variant : 0x0

CPU part : 0xd03

CPU revision : 4

processor : 1

model name : ARMv7 Processor rev 4 (v7l)

BogoMIPS : 38.40

Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32

CPU implementer : 0x41

CPU architecture: 7

CPU variant : 0x0

CPU part : 0xd03

CPU revision : 4

processor : 2

model name : ARMv7 Processor rev 4 (v7l)

BogoMIPS : 38.40

Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32

CPU implementer : 0x41

CPU architecture: 7

CPU variant : 0x0

CPU part : 0xd03

CPU revision : 4

processor : 3

model name : ARMv7 Processor rev 4 (v7l)

BogoMIPS : 38.40

Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32

CPU implementer : 0x41

CPU architecture: 7

CPU variant : 0x0

CPU part : 0xd03

CPU revision : 4

adblock@raspberrypi : ~ $ cat /etc/os-release

PRETTY_NAME="Raspbian GNU/Linux 9 (stretch)"

NAME="Raspbian GNU/Linux"

VERSION_ID="9"

VERSION="9 (stretch)"

VERSION_CODENAME=stretch

ID=raspbian

ID_LIKE=debian

HOME_URL="http://www.raspbian.org/"

SUPPORT_URL="http://www.raspbian.org/RaspbianForums"

BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"

What I have changed since installing Pi-hole:

Nothing has changed

Hey mate,

First off make sure your system is up to date and I have suspicion it might be your micro SD card starting to fail/get flaky

Anyway below are debug log instructions so that the mods can review it (for up to 48hrs):
—-

Please upload a debug log and post just the token URL that is generated after the log is uploaded by running the following command from the Pi-hole host terminal:

pihole -d

or do it through the Web interface:

Tools > Generate Debug Log

Thank you for your quick reply. Here is the debug URL

https://tricorder.pi-hole.net/mFvsRoNT/

If you would want me to, I can paste the entire output here, but it's a lot. Let me know if it would help anybody.

You have mismatched versions of the three Pi-hole parts. FTL is up to date, but core and web are not.

Run pihole -up to get the install updated.

1 Like

Thank you for your reply. Unfortunately I get the following errors:

[✓] Storing downloaded domains in new gravity database
[✓] Building tree
[i] Swapping databases...
[✗] Unable to copy data from /etc/pihole/gravity.db to /etc/pihole/gravity.db_temp
Error: near line 12: database disk image is malformed
Error: near line 15: database disk image is malformed
Error: near line 18: database disk image is malformed
Error: near line 22: database disk image is malformed
Error: near line 23: database disk image is malformed
[✗] Unable to create database. Please contact support.

Unable to complete update, please contact Pi-hole Support

Is there anything I should do to help you understand this error?

Thank you.

Run the following command, which may fix this.

pihole -g -r

Hi jfb,

Thank you for replying.

I ran that and it gave me additional options. I ran it as "pihole -g -r recover".

That ran fine but now when I do "pihole -up" I get the following errors:
pihole -up
[✓] Update local cache of available packages
[i] Existing PHP installation detected : PHP version 7.0.33-0+deb9u12
[✓] Checking for git
[✓] Checking for iproute2
[✓] Checking for whiptail
[✓] Checking for ca-certificates

[i] Checking for updates...
git-remote-https: error while loading shared libraries: /usr/lib/arm-linux-gnueabihf/libgmp.so.10: invalid ELF header
[i] Pi-hole Core: up to date
git-remote-https: error while loading shared libraries: /usr/lib/arm-linux-gnueabihf/libgmp.so.10: invalid ELF header
[i] Web Interface: up to date
curl: error while loading shared libraries: /usr/lib/arm-linux-gnueabihf/libgmp.so.10: invalid ELF header
[i] FTL: update available

[i] FTL out of date, it will be updated by the installer.

[✓] Root user check

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

[✓] Update local cache of available packages
[i] Existing PHP installation detected : PHP version 7.0.33-0+deb9u12

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

[i] Checking for / installing Required dependencies for OS Check...
[✓] Checking for grep
[✓] Checking for dnsutils

[✓] Supported OS detected
[i] Checking for / installing Required dependencies for this install script...
[✓] Checking for git
[✓] Checking for iproute2
[✓] Checking for whiptail
[✓] Checking for ca-certificates

[i] SELinux not detected
[i] Performing unattended setup, no whiptail dialogs will be displayed
[i] Performing reconfiguration, skipping download of local repos
[✓] Resetting repository within /etc/.pihole...
[✓] Resetting repository within /var/www/html/admin...
[i] Checking for / installing Required dependencies for Pi-hole software...
[✓] Checking for cron
[✓] Checking for curl
[✓] Checking for iputils-ping
[✓] Checking for psmisc
[✓] Checking for sudo
[✓] Checking for unzip
[✓] Checking for idn2
[✓] Checking for sqlite3
[✓] Checking for libcap2-bin
[✓] Checking for dns-root-data
[✓] Checking for libcap2
[✓] Checking for netcat
[✓] Checking for lighttpd
[✓] Checking for php7.0-common
[✓] Checking for php7.0-cgi
[✓] Checking for php7.0-sqlite3
[✓] Checking for php7.0-xml
[✓] Checking for php7.0-intl
[✓] Checking for php7.0-json

[✓] Enabling lighttpd service to start on reboot...
[✓] Checking for user 'pihole'

[i] FTL Checks...

[✓] Detected ARMv7 processor (with hard-float support)
[i] Checking for existing FTL binary...
curl: error while loading shared libraries: /usr/lib/arm-linux-gnueabihf/libgmp.so.10: invalid ELF header
[i] Downloading and Installing FTL...curl: error while loading shared libraries: /usr/lib/arm-linux-gnueabihf/libgmp.so.10: invalid ELF header
[✗] Downloading and Installing FTL
Error: URL https://github.com/pi-hole/ftl/releases/latest/download/pihole-FTL-armv7-linux-gnueabihf not found
[✗] FTL Engine not installed

Unable to complete update, please contact Pi-hole Support

Thank you for looking at this.

Hey guys,

I've decided to replace my SD card and start from scratch. The only reason why I was holding out is because I have to reinstall pivpn and remake all the openvpn files lol.

I think the consensus was the SD card was going bad and I also believed that prior to posting here.

Thank you

1 Like

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