Ftl: missing url

Created on 22 Aug 2018  路  20Comments  路  Source: pi-hole/FTL

In raising this issue, I confirm the following (please check boxes, eg [X]) Failure to fill the template will close your issue:

  • [X] I have read and understood the contributors guide.
  • [X] The issue I am reporting can be replicated
  • [X] The issue I am reporting isn't a duplicate

How familiar are you with the codebase?:

_{1}_


[BUG | ISSUE] Expected Behaviour:
pihole -up attempts to get a URL that doesn't exist.

[BUG | ISSUE] Actual Behaviour:

[BUG | ISSUE] Steps to reproduce:

  • pihole -up from root prompt
    -
    -
    -

Log file output [if available]

root@pi-hole:~# 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
root@pi-hole:~#

Device specifics

Hardware Type: rPi
OS:
Linux pi-hole.local 4.9.35-v7+ #1014 SMP Fri Jun 30 14:47:43 BST 2017 armv7l GNU/Linux

_This template was created based on the work of udemy-dl._

Fixed in next release

All 20 comments

I have thee same,

+1

Same

$ bash -x  /opt/pihole/update.sh
[snip - cutting to the end where it matters ]
+ local 'str=Downloading and Installing FTL'
+ echo -ne '  [i] Downloading and Installing FTL...'
  [i] Downloading and Installing FTL...++ curl -sI https://github.com/pi-hole/FTL/releases/latest
++ grep Location
++ awk -F / '{print $NF}'
+ latesttag=$'v4.0\r'
 == v* ]].0
++ mktemp -d
+ pushd /tmp/tmp.Vw7h9OTxkn
+ install -T -m 0755 /etc/.pihole/advanced/Templates/pihole-FTL.service /etc/init.d/pihole-FTL
+ local ftlBranch
+ local url
+ [[ -f /etc/pihole/ftlbranch ]]
+ ftlBranch=master
+ [[ master == \m\a\s\t\e\r ]]
+ url=https://github.com/pi-hole/FTL/releases/download/v4.0
+ curl -sSL --fail https://github.com/pi-hole/FTL/releases/download/v4.0/ -o ''
curl: (22) The requested URL returned error: 404 Not Found
+ popd
+ echo -e '\r  [鉁梋 Downloading and Installing FTL'
  [鉁梋 Downloading and Installing FTL
+ echo -e '  Error: URL not found'
  Error: URL not found
+ return 1
+ return 1

I have the same issue, FTL reported 404, file Not Found

I ran pihole -r and completed a repair process

FTL is now updated and running pihole -up then updates the web interface correctly

Thanks @mgalde, that pointed me to the problem. I found another issue that I will open in another ticket.

I can confirm that after the repair the update worked fine.

Also, in case anyone cares about this actual bug....
I traced the problem to the FTLinstall function in the file '/etc/.pihole/automated install/basic-install.sh' where the "binary" variable was empty because it was empty in the FTLdetect function! I didn't figure out why before I tried the solution above.

same problem.
running pihole -r as suggested from @mgalde, and re-run pihole -up i see the same error:

+ url=https://github.com/pi-hole/FTL/releases/download/v4.0
+ curl -sSL --fail https://github.com/pi-hole/FTL/releases/download/v4.0/ -o ''
curl: (22) The requested URL returned error: 404 Not Found
+ popd
+ echo -e '\r  [鉁梋 Downloading and Installing FTL'
[鉁梋 Downloading and Installing FTL
+ echo -e '  Error: URL not found'
Error: URL not found
+ return 1
+ return 1

Try using an external DNS server in /etc/resolv.conf and then pihole -r

@Mcat12, DNS are already differen because they are those that are used by dnsmasq to forward non-blocked requests.

so, there's any news about?

Did you follow the instructions I gave you?

@Mcat12 seriously, did you read my fast reply on your message?

Yes, and I could not tell from your reply if you were using external DNS in /etc/resolv.conf because your reasoning did not make sense. The upstreams configured for dnsmasq are not the same servers used in resolv.conf.

If you are still having issues after following the directions posted, run pihole -d for a debug token.

@Mcat12 this is the debug token: a7x8vhfjlf.

i see the same problem that gives update process also into debug tool...when it tries to dig a domain, that domain seems to be a null variable.

I've just had the same issue, and as stated higher up, the binary variable was never being set as a result of get_binary_name never being called. Added a call to this in FTLinstall, and all now working.

@lloyda so, it will be fixed?

It will be fixed for the next release.

You can also try download FTL directly to /usr/bin/pihole-FTL from https://ftl.pi-hole.net/v4.0/

@Mcat12 i've got the same problem also downloading new pihole-FTL from URL.

Please make a new issue, this one is closed.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

maniackcrudelis picture maniackcrudelis  路  17Comments

JOHRY picture JOHRY  路  17Comments

ric-dicle picture ric-dicle  路  26Comments

kuerious picture kuerious  路  17Comments

tronyx picture tronyx  路  17Comments