Pihole -v returns an error

#1

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)
0 Likes

#2

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

0 Likes

#4
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?

0 Likes

#5

Yes. Try pihole -v again.

0 Likes

#6

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’ ?

0 Likes

#7

I’ll defer to the devs for this answer.

0 Likes

#8

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

0 Likes

#9

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

0 Likes

#10

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