mokshc
October 19, 2025, 4:52am
1
Expected Behaviour:
Domain list should show number of domains.
Operating System (Family and Version)
Raspberry Pi 3 Model A Plus Rev 1.0
PRETTY_NAME="Raspbian GNU/Linux 11 (bullseye)"
NAME="Raspbian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"
VERSION_CODENAME=bullseye
ID=raspbian
ID_LIKE=debian
Please note I have been using this script without issue for a month as well.
Update Pi-hole's lists from remote sources easily
Actual Behaviour:
Debug Token:
https://tricorder.pi-hole.net/zUqjv0Rx/
It is actually showing Error (-2), which indicates a database error has occurred (that's why the number of domains is not shown) .
Your log shows the error was:
2025-10-18 20:21:00.012 PDT [581/T1033] ERROR: Cannot read gravity database at /etc/pihole/gravity.db - file does not exist or is not readable
It also shows the database file exists:
*** [ DIAGNOSING ]: Gravity Database
-rw-r----- 1 root root 114M Oct 18 04:02 /etc/pihole/gravity.db
But the ownership is wrong.
Your file is owned by root, but it should be owned by pihole user.
Update gravity from command line (running pihole -g) to try to fix the files ownership, then check the dashboard again.
mokshc
October 19, 2025, 7:42am
3
Tried this and didnt work for some reason. Kept getting this line
7466 Segmentation fault chown pihole:pihole "${1}"
Much longer spit out below
ignored 2 non-domain entries)
Sample of non-domain entries:
- admi2fib4exit
- javascriptbasics
[i] Target: https://pgl.yoyo.org/adservers/serverlist.php?hostfor
mat=hosts&showintro=0&mimetype=plaintext
[✓] Status: No changes detected
[✓] Parsed 3439 exact domains and 0 ABP-style domains (blocking,
ignored 0 non-domain entries)
[i] Target: https://raw.githubusercontent.com/FadeMind/hosts.extr
as/master/UncheckyAds/hosts
[✓] Status: No changes detected
[✓] Parsed 9 exact domains and 0 ABP-style domains (blocking, ign
ored 0 non-domain entries)
[i] Target: https://raw.githubusercontent.com/bigdargon/hostsVN/m
aster/hosts
[✓] Status: No changes detected
[✓] Parsed 19034 exact domains and 0 ABP-style domains (blocking,
ignored 0 non-domain entries)
[i] Target: https://v.firebog.net/hosts/Easyprivacy.txt
[✓] Status: No changes detected
[✓] Parsed 42038 exact domains and 0 ABP-style domains (blocking,
ignored 0 non-domain entries)
[i] Target: https://v.firebog.net/hosts/Prigent-Ads.txt
[✓] Status: No changes detected
[✓] Parsed 4270 exact domains and 0 ABP-style domains (blocking,
ignored 0 non-domain entries)
[i] Target: https://raw.githubusercontent.com/FadeMind/hosts.extr
as/master/add.2o7Net/hosts
[✓] Status: No changes detected
[✓] Parsed 2030 exact domains and 0 ABP-style domains (blocking,
ignored 0 non-domain entries)
[i] Target: https://raw.githubusercontent.com/crazy-max/WindowsSp
yBlocker/master/data/hosts/spy.txt
[✓] Status: No changes detected
[✓] Parsed 347 exact domains and 0 ABP-style domains (blocking, i
gnored 0 non-domain entries)
[i] Target: https://hostfiles.frogeye.fr/firstparty-trackers-host
s.txt
[✓] Status: No changes detected
[✓] Parsed 32486 exact domains and 0 ABP-style domains (blocking,
ignored 0 non-domain entries)
[i] Target: https://raw.githubusercontent.com/DandelionSprout/adf
ilt/master/Alternate%20versions%20Anti-Malware%20List/AntiMalwareHo
sts.txt
[✓] Status: No changes detected
[✓] Parsed 25834 exact domains and 0 ABP-style domains (blocking,
ignored 0 non-domain entries)
[i] Target: https://v.firebog.net/hosts/Prigent-Crypto.txt
[✓] Status: No changes detected
[✓] Parsed 16291 exact domains and 0 ABP-style domains (blocking,
ignored 0 non-domain entries)
[i] Target: https://raw.githubusercontent.com/FadeMind/hosts.extr
as/master/add.Risk/hosts
[✓] Status: No changes detected
[✓] Parsed 2189 exact domains and 0 ABP-style domains (blocking,
ignored 0 non-domain entries)
[i] Target: https://bitbucket.org/ethanr/dns-blacklists/raw/8575c
9f96e5b4a1308f2f12394abd86d0927a4a0/bad_lists/Mandiant_APT1_Report_
Appendix_D.txt
[✓] Status: No changes detected
[✓] Parsed 2046 exact domains and 0 ABP-style domains (blocking,
ignored 0 non-domain entries)
[i] Target: https://phishing.army/download/phishing_army_blocklis
t_extended.txt
[✓] Status: Retrieval successful
/opt/pihole/gravity.sh: line 67: 7341 Segmentation fault chow
n pihole:pihole "${1}"
/opt/pihole/gravity.sh: line 67: 7348 Segmentation fault chow
n pihole:pihole "${1}"
[i] List has been updated
[✓] Parsed 148469 exact domains and 0 ABP-style domains (blocking
, ignored 0 non-domain entries)
[i] Target: https://gitlab.com/quidsup/notrack-blocklists/raw/mas
ter/notrack-malware.txt
[✓] Status: Retrieval successful
/opt/pihole/gravity.sh: line 67: 7377 Segmentation fault chow
n pihole:pihole "${1}"
/opt/pihole/gravity.sh: line 67: 7383 Segmentation fault chow
n pihole:pihole "${1}"
[i] List has been updated
[✓] Parsed 141 exact domains and 0 ABP-style domains (blocking, i
gnored 0 non-domain entries)
[i] Target: https://raw.githubusercontent.com/Spam404/lists/maste
r/main-blacklist.txt
[✓] Status: No changes detected
[✓] Parsed 8140 exact domains and 0 ABP-style domains (blocking,
ignored 0 non-domain entries)
[i] Target: https://raw.githubusercontent.com/AssoEchap/stalkerwa
re-indicators/master/generated/hosts
[✓] Status: No changes detected
[✓] Parsed 919 exact domains and 0 ABP-style domains (blocking, i
gnored 0 non-domain entries)
[i] Target: https://urlhaus.abuse.ch/downloads/hostfile/
[✓] Status: Retrieval successful
/opt/pihole/gravity.sh: line 67: 7460 Segmentation fault chow
n pihole:pihole "${1}"
/opt/pihole/gravity.sh: line 67: 7466 Segmentation fault chow
n pihole:pihole "${1}"
[i] List has been updated
[✓] Parsed 560 exact domains and 0 ABP-style domains (blocking, i
gnored 0 non-domain entries)
[i] Target: https://lists.cyberhost.uk/malware.txt
[✓] Status: No changes detected
[✓] Parsed 19968 exact domains and 0 ABP-style domains (blocking,
ignored 0 non-domain entries)
/opt/pihole/gravity.sh: line 67: 7504 Segmentation fault chow
n pihole:pihole "${1}"
[✓] Building tree
[i] Number of gravity domains: 1834727 (1433248 unique domains)
[i] Number of exact denied domains: 54
[i] Number of regex denied filters: 19
[i] Number of exact allowed domains: 252
[i] Number of regex allowed filters: 11
[✓] Optimizing database
[✓] Swapping databases
[✓] The old database remains available
[✓] Cleaning up stray matter
[✓] Done.
pi@raspberrypi:~ $
system
Closed
November 9, 2025, 7:42am
4
This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.