Illegal number: inf / Pi-Hole versions not showing
Yaff1e opened this issue · comments
Before submitting a bug report, are you using a test version of Pi-hole? If so, PADD doesn‘t support beta versions of Pi-hole!
Describe the bug
v3.7.0 and 3.7.1 show the errors below when loading. If loading completes it then shows v in all the Pi-Hole versions.
PADD version file not found
./padd.sh: 882: [: Illegal number: inf
./padd.sh: 884: [: Illegal number: inf
./padd.sh: 882: [: Illegal number: inf
./padd.sh: 884: [: Illegal number: inf
./padd.sh: 882: [: Illegal number: inf
./padd.sh: 884: [: Illegal number: inf
To Reproduce
Load PADD
Expected behavior
PADD to load and show version numbers
Screenshots
Additional context
I updated to v3.7.0 yesterday and 3.7.1 today on both of my Pi-Holes. One of them is fine but the other not. It shows the errors above when loading. It then sits on that screen for a long time and either doesn't go past it or if it does it shows v in all the Pi-Hole versions with the same errors at the bottom of the screen.
What's the output of pihole -v
The version numbers are very likely a red hering. The issue is
Line 240 in 4c888a8
returning inf
(infinity).
What is your output of cat /sys/devices/system/cpu/kernel_max
It returns 0
We discovered the bug. Please try if this version is fixing the issue for you:
https://github.com/pi-hole/PADD/blob/fix/core_count/padd.sh
Yes, that's fixed it thanks.
Could you please post the output of nproc --all
?
That returns 1
Thanks.