Pihole -v returns an error

I use pihole -v within a tasker task to check I'm up-to-date....started to see an error:

pi@pi-hole:~ $ pihole -v
  Pi-hole version is v4.2.2 (Latest: ERROR)
  AdminLTE version is v4.2 (Latest: ERROR)
  FTL version is v4.2.3 (Latest: ERROR)

You are up to date, but Pi-Hole was unable to connect with the Github repository to get the latest version to compare to your local version.

From the Pi, run these commands and see if an IP is returned:

dig api.github.com

dig github.com

pi@pi-hole:~ $ dig api.github.com

; <<>> DiG 9.10.3-P4-Raspbian <<>> api.github.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 23632
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;api.github.com.                        IN      A

;; ANSWER SECTION:
api.github.com.         2866    IN      A       192.30.253.116
api.github.com.         2866    IN      A       192.30.253.117

;; Query time: 3 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Sat Mar 16 19:10:12 GMT 2019
;; MSG SIZE  rcvd: 75

pi@pi-hole:~ $ dig github.com

; <<>> DiG 9.10.3-P4-Raspbian <<>> github.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 34875
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 8, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 1472
;; QUESTION SECTION:
;github.com.                    IN      A

;; ANSWER SECTION:
github.com.             3600    IN      A       192.30.253.113
github.com.             3600    IN      A       192.30.253.112

;; AUTHORITY SECTION:
github.com.             2829    IN      NS      ns-1283.awsdns-32.org.
github.com.             2829    IN      NS      ns-1707.awsdns-21.co.uk.
github.com.             2829    IN      NS      ns-421.awsdns-52.com.
github.com.             2829    IN      NS      ns-520.awsdns-01.net.
github.com.             2829    IN      NS      ns1.p16.dynect.net.
github.com.             2829    IN      NS      ns2.p16.dynect.net.
github.com.             2829    IN      NS      ns3.p16.dynect.net.
github.com.             2829    IN      NS      ns4.p16.dynect.net.

;; Query time: 84 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Sat Mar 16 19:10:49 GMT 2019
;; MSG SIZE  rcvd: 291

Looks ok right?

Yes. Try pihole -v again.

Yeah it works now?
I'm wondering if my tasker task kept trying to run the command, and hence repeated queries?
Would a lot of queries result in a short term 'ban' ?

I'll defer to the devs for this answer.

Github will rate limit you if you hammer the API with requests.

Why? Pi-Hole already checks for updates and highlights in the dashboard when an update is available.

That'll explain it! Thanks

Because why not? :man_shrugging:
I don't often open pihole GUI as it's setup to my liking and I have very few problems with it

1 Like