Error updating Pihole (Downloading and Installing FTL Error: URL not found)

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

Expected Behaviour:

Expected the pihole to update

Actual Behaviour:

The same error shown here Error while updating Pi Hole although my version is a little different

The suggested solution below did not work:
echo "FTLDNS" | sudo tee /etc/pihole/ftlbranch
pihole checkout core FTLDNS
pihole checkout web FTLDNS

pi@raspberrypi:~ $ 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
pi@raspberrypi:~ $ pihole -v
Pi-hole version is v3.3.1-369-g169a428 (Latest: v4.0)
AdminLTE version is v3.3-238-g8c7521f3 (Latest: v4.0)
FTL version is vDev-3e40158 (Latest: v4.0)

I also ran the suggested updates to no avail

Debug Token:

Debug token is 1rldwwvm28

v4.0 is on GitHub now, try running pihole checkout master and you should move up to the latest release. The FTL branch is being decommissioned.

I tried this and got the error below. Tried apt-get update with no luck. It has an issue with an unrelated package (Open VPN). Would this be related?

[i] Existing PHP installation detected : PHP version 7.0.30-0+deb9u1
[i] Performing unattended setup, no whiptail dialogs will be displayed
[✓] Disk space check

[✗] Update local cache of available packages
Error: Unable to update package cache. Please try "apt-get update" Error: Unable to complete update, please contact support

I removed Open VPN and had some luck. I now get this error

pi@raspberrypi:~ $ 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: (22) The requested URL returned error: 404 Not Found
[✗] Downloading and Installing FTL
Error: URL not found

New debug token is em3mrwqd8i

Can you please post the output from pihole -v for the currently installed versions, a copy of /etc/resolv.conf and then try to update again?

Pi-hole version is v4.0 (Latest: v4.0)
AdminLTE version is v4.0 (Latest: v4.0)
FTL version is vDev-8493df4 (Latest: v4.0)

Generated by resolvconf

nameserver 127.0.0.1

New debug token 5k8dtb5o23

You have everything but the FTL binary, and it may be from the /etc/pihole/ftlbranch file, remove that file sudo rm /etc/pihole/ftlbranch and then run pihole checkout master again to see if that will install all the programs.

Didn't make a difference unfortunately. Removed ftlbranch, checked out master again but still no juice. Same 404 error when running pihole -up and showing an update

pi@raspberrypi:/etc $ sudo rm /etc/pihole/ftlbranch
pi@raspberrypi:/etc $ pihole checkout master
Please note that changing branches severely alters your Pi-hole subsystems
Features that work on the master branch, may not on a development branch
This feature is NOT supported unless a Pi-hole developer explicitly asks!
Have you read and understood this? [y/N] y

[i] Shortcut "master" detected - checking out master branches...
[i] Pi-hole core
[✓] Switching to branch: 'master' from 'refs/heads/master'
[i] Already up-to-date.
[i] Web interface
[✓] Switching to branch: 'master' from 'refs/heads/master'
[i] Already up-to-date.
[✓] Detected ARM-hf architecture (armv7+)
[✓] Installing FTL
pi@raspberrypi:/etc $ 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: (22) The requested URL returned error: 404 Not Found
[✗] Downloading and Installing FTL
Error: URL not found

The 404 error seems to be coming from GitHub and we're not sure why exactly it is happening. They do limit the number of API calls per time period, but I would think an attempt spaced out would pass through. Can you run a new pihole -d and get us the token just to check on things in general?

Almost same problem cannot find url . No data on dash . Footer on webpage: Pi-hole Version v4.0 Web Interface Version v4.0 FTL Version vDev (master , vDev-8493df4 ) Donate if you found this useful.

Debug uploaded my token 4v0m08q7q6

Same issue. My debug token is ieo9yuc2zb.

Thank you!

Can you all run this successfully on the Pi-hole devices?

cd /tmp
curl -sSL https://github.com/pi-hole/FTL/releases/download/v4.0/pihole-FTL-arm-linux-gnueabihf -o pihole-FTL
2 Likes

Yes, the curl works successfully. Creates pihole-FTL in /tmp.

And the update still fails? Trying to figure out why the 404 is occurring.

Sure, the token is kmhu36k9ek

Yes, still fails.

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: (22) The requested URL returned error: 404 Not Found
[✗] Downloading and Installing FTL
Error: URL not found

The curl command was successful for me as well. Thanks

Okay, this will get rather verbose, but try running:

sudo bash -x /etc/.pihole/automated\ install/basic-install.sh

Again, it's going to output a lot of lines on the terminal, but this will let us see exactly what URL is being called for.

Output:

  • return 0

  • [[ true == true ]]

  • getGitFiles /var/www/html/admin https://github.com/pi-hole/AdminLTE.git

  • local directory=/var/www/html/admin

  • local remoteRepo=https://github.com/pi-hole/AdminLTE.git

  • local 'str=Check for existing repository in /var/www/html/admin'

  • echo -ne ' [i] Check for existing repository in /var/www/html/admin...'
    [i] Check for existing repository in /var/www/html/admin...+ is_repo /var/www/html/admin

  • local directory=/var/www/html/admin

  • local curdir

  • local rc

  • curdir=/tmp

  • [[ -d /var/www/html/admin ]]

  • cd /var/www/html/admin

  • git status --short

  • cd /tmp

  • return 0

  • echo -e '\r [✓] Check for existing repository in /var/www/html/admin'
    [✓] Check for existing repository in /var/www/html/admin

  • update_repo /var/www/html/admin

  • local directory=/var/www/html/admin

  • local curdir

  • local 'str=Update repo in /var/www/html/admin'

  • curdir=/tmp

  • cd /var/www/html/admin

  • echo -ne ' [i] Update repo in /var/www/html/admin...'
    [i] Update repo in /var/www/html/admin...+ git stash --all --quiet

  • git clean --quiet --force -d

  • git pull --quiet

  • return 128

  • echo -e '\n Error: Could not update local repository. Contact support.'

    Error: Could not update local repository. Contact support.

  • exit 1

Okay, one of your issues is that you still are on web version 3.x. Try the following:

cd /var/www/html/admin
sudo git status

And lets see about solving that portion.