Error while updating Pi Hole

im getting the error "URL not found" when trying to update (FTL)

[i] Checking for updates...
[i] Pi-hole Core: up to date
[i] FTL: update available

[i] FTL out of date

[i] FTL Checks...
[i] Downloading and Installing FTL...curl: (23) Failed writing body (0 != 4707)
[✗] Downloading and Installing FTL
Error: URL not found

curl (23) stands for

"Write error. Curl couldn't write data to a local filesystem or similar."

Do you have enough space on your device?
What about permissions ?

Could also be due to an error where curl closes the pipe and does not process the rest of the request.

Is it consistent ? Or just a one-off ?

yes it seems to be consistent, space is also ok I think

Filesystem     1K-blocks    Used Available Use% Mounted on
/dev/root        7627640 5606264   1647172  78% /
devtmpfs          470116       0    470116   0% /dev
tmpfs             474724       0    474724   0% /dev/shm
tmpfs             474724   12384    462340   3% /run
tmpfs               5120       4      5116   1% /run/lock
tmpfs             474724       0    474724   0% /sys/fs/cgroup
/dev/mmcblk0p1     42131   22137     19994  53% /boot
tmpfs              94944       0     94944   0% /run/user/1000
tmpfs              94944       0     94944   0% /run/user/999

ill have check on the permissions

run a sudo apt update and sudo apt upgrade and then try to update Pi-hole.

still the same

Hit:1 http://raspbian.raspberrypi.org/raspbian stretch InRelease
Hit:2 http://archive.raspberrypi.org/debian stretch InRelease
Reading package lists... Done
Building dependency tree
Reading state information... Done
All packages are up to date.
pi@raspberrypi:~ $ sudo apt upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
pi@raspberrypi:~ $ sudo pihole -up
  [i] Checking for updates...
  [i] Pi-hole Core:     up to date
  [i] FTL:              update available

  [i] FTL out of date

  [i] FTL Checks...
  [i] Downloading and Installing FTL...curl: (23) Failed writing body (0 != 4707)
  [✗] Downloading and Installing FTL
  Error: URL not found

tried with sudo pihole -up but didnt made a difference

you don't have to run it with sudo.
Pi-hole automatically checks for sudo utility and when needed, calls the commands with sudo.

Try running it without the sudo.

i tried both, same thing happens

what's the output of pihole -v ?

im afraid i just fixed it somehow.. dont know on which version i was but im now on

Pi-hole version is v3.3.1-81-g1cae76b (Latest: v3.3.1)
AdminLTE version is v3.2.1-167-gffb75563 (Latest: v3.3)
FTL version is vDev-3656ba2 (Latest: v3.0)

i I tried to reproduce the error by reverting to main and also to development but that did not reproduce it

so fix was to

echo "FTLDNS" | sudo tee /etc/pihole/ftlbranch
pihole checkout core FTLDNS 
pihole checkout web FTLDNS

i tried this (from Help Us Beta Test FTLDNS – Pi-hole ) because i think i remember having enabled that but forgot about it, so idk if it is related because i cannot reproduce the error but at least it fixed it

2 Likes

4 posts were split to a new topic: Auto update Pi-hole question

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