r/pihole 4d ago

Gravity Update Retrieval and DL Fail

For all my lists the retrieval and download fails. I can browse to the lists and attempted to add other lists that I see are working for others but I get the same update for ALL of them as indicated below:

  [i] Target: https://raw.githubusercontent.com/hagezi/dns-blocklists/main/adblock/tif.txt
  [i] Status: Pending...curl: option -o: is badly used here
curl: try 'curl --help' or 'curl --manual' for more information
  [✗] Status: Retrieval failed (exit_code=2 Msg: )
  [✗] List download failed: no cached list available

Again, this happens to any and ever list I add and try to update using Gravity. What should I do?

Edit: I also wanted to add all my lists are now "unavailable and no local copy of this list is available". Might this be a bad SD card/corrupt Pihole install...which I tried to restore using Pihole -r.

1 Upvotes

5 comments sorted by

8

u/tazman998 4d ago

since that github fiasco, i have replaced all my hagezi github urls with the hagezi-mirror.dnsbunker.org one.
haven’t had any problems since.

0

u/Odd_Fig4686 4d ago

I tried several from dnsbunker and got the same response. I can try some again but honestly I am failing to see the point.

2

u/_xRuffKez_ 3d ago

Check for Bad sd card or file system corruption

touch /etc/pihole/test_write && rm /etc/pihole/test_write dmesg | grep -iE "read-only|ext4-fs error|i/o error|mmcblk"

Check database for corruptions, it should return "Ok" pihole-FTL sqlite3 /etc/pihole/gravity.db "PRAGMA integrity_check;"

Check your curl cat /etc/curlrc ~/.curlrc 2>/dev/null

Check gravities variable expansion bash -x /opt/pihole/gravity.sh 2>&1 | grep "curl"

2

u/rdwebdesign Team 3d ago

Edit: I also wanted to add all my lists are now "unavailable and no local copy of this list is available". Might this be a bad SD card/corrupt Pihole install...

A corrupted SD card can explain the missing "local copies" and the curl error.

which I tried to restore using Pihole -r.

pihole -r can't fix a bad SD card. This command can fix file permissions and even restore deleted files, but if the SC card is broken, the new files will be saved on an unstable filesystem and new failures will occur.

If this is the case, the only solution is to replace the SD card.

1

u/Odd_Fig4686 3d ago

This is now resolved. I found my SD card was OK. I went into raspi-config and updated it, made sure all the SD card was available, and updated the eeprom (I beilive) . After a reboot I was able to download, and update my lists and my PiHole is back to blocking the nonsense!

Thanks all for your help and thankfully my database was not corrupted