Segmentation Fault on Update

Folks,

Am currently running the following;

Pi-hole Version v3.0.1 (Update available!) Web Interface Version v3.0.1 (Update available!) FTL Version v2.6.2 (Update available!)

If I run pihole -up I get the following error;

:::  Using ARM binary
:::  Installing FTL... /etc/.pihole/automated install/basic-install.sh: line 1200:  8445 Segmentation fault      sha1sum --status --quiet -c "${binary}".sha1
failed (download of binary from Github failed)

Not sure what the Segmentation Fault relates to.

Geffers

Try this.

Run

sudo rm -rf /var/www/html/admin

Then

sudo git clone https://github.com/pi-hole/adminLTE.git /var/www/html/admin

Then

run pihole -up

Check /tmp for a .sha1 file and share its contents.

Edit: Also, run df -h

in /tmp 71 Sep 13 20:10 pihole-FTL-arm-linux-gnueabi.sha1

df -h
Filesystem Size Used Avail Use% Mounted on
/dev/root 15G 1.1G 13G 8% /
devtmpfs 213M 0 213M 0% /dev
tmpfs 218M 0 218M 0% /dev/shm
tmpfs 218M 4.4M 213M 3% /run
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs 218M 0 218M 0% /sys/fs/cgroup
/dev/mmcblk0p1 41M 21M 20M 52% /boot

Geffers

Is the file empty? What is the output of this command?

cat /tmp/pihole-FTL-arm-linux-gnueabi.sha1

This is the output from that command;

d4dfd75ab48060828087c4df7fe32064fba76851 pihole-FTL-arm-linux-gnueabi

Geffers

What is the output of these commands?

cd /tmp
ls -l
sha1sum --status --quiet -c pihole-FTL-arm-linux-gnueabi.sha1

Here are the outputs;

ls -l
total 1308
-rw-r--r-- 1 root root 1333009 Sep 13 20:10 pihole-FTL-arm-linux-gnueabi
-rw-r--r-- 1 root root 71 Sep 13 20:10 pihole-FTL-arm-linux-gnueabi.sha1

pi@Pi-vpn:/tmp $ sha1sum --status --quiet -c /tmp/pihole-FTL-arm-linux-gnueabi.sha1
Segmentation fault

Geffers

If you try other arguments on the sha1sum program such as --help, does it still crash?

sha1sum on its own and with --help give me same output of;

Segmentation fault

Geffers

It sounds like it is having an internal issue. Try reinstalling your OS (or if you know how, reinstall sha1sum).

Before you try wiping everything, what's the output of these commands?

uname -a
file $(which sha1sum)

Output as below;

uname -a
Linux Pi-vpn 4.9.24+ #993 Wed Apr 26 17:56:54 BST 2017 armv6l GNU/Linux

file $(which sha1sum)
/usr/bin/sha1sum: ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-armhf.so.3, for GNU/Linux 2.6.32, BuildID[sha1]=5759dd6546113acf30e93646132331e6105d0c51, stripped

Geffers

Do you have this file? /lib/ld-linux-armhf.so.3

Shows as;

ld-linux-armhf.so.3 -> arm-linux-gnueabihf/ld-2.19.so

Geffers

Try a reinstall of the OS. Right after installing again, check to see if sha1sum still fails.