Pihole-service doesn`t come up after update

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

Please ensure that you are running the latest version of the beta code.
Run pihole -up to update to the latest, then verify that the problem still exists before reporting it.

Problem with Beta 5.0:
The whole PiHole-System doesn`t come up since the last update. Starting the ftl-Service manualy gives the following logentry. No other changes has been applied to the system.

 A start job for unit pihole-FTL.service has begun execution.
--
-- The job identifier is 867.
Apr 29 18:12:18 pihole systemd[930]: pihole-FTL.service: Failed to execute command: Exec format error
Apr 29 18:12:18 pihole systemd[930]: pihole-FTL.service: Failed at step EXEC spawning /etc/init.d/pihole-FTL: Exec format error
-- Subject: Process /etc/init.d/pihole-FTL could not be executed

Debug Token:
Due to no Pihole running immposible

Please provide the output from the following

sudo systemctl cat pihole-FTL.service

sudo /etc/init.d/pihole-FTL status
sudo /etc/init.d/pihole-FTL start
pi@pihole:~ $ sudo systemctl cat pihole-FTL.service
# /run/systemd/generator.late/pihole-FTL.service
# Automatically generated by systemd-sysv-generator

[Unit]
Documentation=man:systemd-sysv-generator(8)
SourcePath=/etc/init.d/pihole-FTL
Before=multi-user.target
Before=multi-user.target
Before=multi-user.target
Before=graphical.target

[Service]
Type=forking
Restart=no
TimeoutSec=5min
IgnoreSIGPIPE=no
KillMode=process
GuessMainPID=no
RemainAfterExit=yes
ExecStart=/etc/init.d/pihole-FTL start
ExecStop=/etc/init.d/pihole-FTL stop

Here you are. Thanks for your fast help.

And the output from the last two commands?

No output at all... :no_mouth:

Thats the whole log:

pi@pihole:~ $ sudo systemctl cat pihole-FTL.service
# /run/systemd/generator.late/pihole-FTL.service
# Automatically generated by systemd-sysv-generator

[Unit]
Documentation=man:systemd-sysv-generator(8)
SourcePath=/etc/init.d/pihole-FTL
Before=multi-user.target
Before=multi-user.target
Before=multi-user.target
Before=graphical.target

[Service]
Type=forking
Restart=no
TimeoutSec=5min
IgnoreSIGPIPE=no
KillMode=process
GuessMainPID=no
RemainAfterExit=yes
ExecStart=/etc/init.d/pihole-FTL start
ExecStop=/etc/init.d/pihole-FTL stop
pi@pihole:~ $ sudo /etc/init.d/pihole-FTL status
pi@pihole:~ $ sudo /etc/init.d/pihole-FTL start
pi@pihole:~ $

Okay, sudo ls -lach /etc/init.d/pihole-FTL and sudo cat /etc/init.d/pihole-FTL please.

Here we go

pi@pihole:~ $ sudo ls -lach /etc/init.d/pihole-FTL
-rwxr-xr-x 1 root root 0 Apr 29 18:05 /etc/init.d/pihole-FTL
pi@pihole:~ $ sudo cat /etc/init.d/pihole-FTL

€dit: Sry, been looking to long on screens today. :thinking:

1 Like

The file is empty. Repair Pi-hole pihole -r

Already tried that without success. The system isn`t responding to "pihole" in any form at all.

Does which pihole give you a path to the binary?

Jep. I have absolutely no idee what happend here...

pi@pihole:~ $ which pihole
/usr/local/bin/pihole

Not sure myself either. What is your $PATH set to? echo $PATH

pi@pihole:~ $ echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games

The session just stopped while requesting the first blocklist after the "successfull" update and then ftl just kicked out. Restarting the whole system didn`t change anything, Pihole was just gone.

Should be there, not sure why you don't have it. Try with the full path.

/usr/local/bin/pihole -r

Same thing, just nothing...

pi@pihole:~ $ /usr/local/bin/pihole -r
pi@pihole:~ $

It's probably empty as well.

sudo ls -lach /usr/local/bin/pihole
sudo cat /usr/local/bin/pihole
pi@pihole:/usr/local/bin $ sudo ls -lach /usr/local/bin/pihole
-rwxr-xr-x 1 root root 0 Apr 29 18:05 /usr/local/bin/pihole
pi@pihole:/usr/local/bin $ sudo cat /usr/local/bin/pihole
pi@pihole:/usr/local/bin $

Yep, that's empty as well.

sudo df -h please.

Here we go!

pi@pihole:/usr/local/bin $ sudo df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/root        14G  2.2G   12G  17% /
devtmpfs        430M     0  430M   0% /dev
tmpfs           463M     0  463M   0% /dev/shm
tmpfs           463M  6.2M  457M   2% /run
tmpfs           5.0M  4.0K  5.0M   1% /run/lock
tmpfs           463M     0  463M   0% /sys/fs/cgroup
/dev/mmcblk0p1  253M   53M  200M  21% /boot
tmpfs            93M     0   93M   0% /run/user/1000
pi@pihole:/usr/local/bin $

Well, you're not out of disk space so I don't know why the files don't exist with any contents.

Back up what you need and then try running the curl -sSL https://install.pi-hole.net | bash command again, I don't know what state that will leave you in with the beta, you may have to do the version 4 to 5 commands again. I don't know for sure that this will work, so make sure you have what you need.