Can't update gravity

Please follow the below template, it will help us to help you!

If you are Experiencing issues with a Pi-hole install that has non-standard elements (e.g you are using nginx instead of lighttpd, or there is some other aspect of your install that is customised) - please use the Community Help category.

Expected Behaviour:

pihole -g to update gravity

Actual Behaviour:

root@498a989633cd:/# pihole -g
  [✗] DNS resolution is currently unavailable
  [i] Time until retry: 110^C

  [i] User-abort detected
  [✓] Cleaning up stray matter
  [✓] DNS service is listening
     [✓] UDP (IPv4)
     [✓] TCP (IPv4)
     [✓] UDP (IPv6)
     [✓] TCP (IPv6)

  [✓] Pi-hole blocking is enabled

Debug Token:

https://tricorder.pi-hole.net/R058zNhA/

Please post the complete output of pihole -g

You are using several adlists that are incompatible with Pi-hole. Let's see if they are causing this problem.

I tried it again today and it worked for some reason. I don't know what happened but it seems to be fixed now. Thanks anyway.

pihole -g

  [i] Neutrino emissions detected...
  [✓] Pulling blocklist source list into range

  [✓] Preparing new gravity database
  [i] Using libz compression

  [i] Target: https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts
  [✓] Status: Retrieval successful
  [i] Analyzed 91896 domains

  [i] Target: https://oisd.nl/
  [✓] Status: Retrieval successful
  [i] Analyzed 22 domains, 22 domains invalid!
      Sample of invalid domains:
      - document.createelement("input");
      - document.body.appendchild(temptext);
      - temptext.select();
      - document.execcommand("copy");
      - document.body.removechild(temptext);

  [i] Target: https://www.github.developerdan.com/hosts/lists/ads-and-tracking-extended.txt
  [✓] Status: Retrieval successful
  [i] Analyzed 395778 domains

  [i] Target: https://www.github.developerdan.com/hosts/lists/facebook-extended.txt
  [✓] Status: Retrieval successful
  [i] Analyzed 26312 domains

  [i] Target: https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-porn/hosts
  [✓] Status: Retrieval successful
  [i] Analyzed 134506 domains

  [i] Target: https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&showintro=0&mimetype=plaintext
  [✓] Status: Retrieval successful
  [i] Analyzed 3674 domains

  [i] Target: https://dblw.oisd.nl/
  [✓] Status: Retrieval successful
  [i] Analyzed 383164 domains, 383164 domains invalid!
      Sample of invalid domains:
      - *.0-0-0-0-0-0-0-0-0-0-0-0-0-10-0-0-0-0-0-0-0-0-0-0-0-0-0.info
      - *.0-0-0-0-0-0-0-0-0-0-0-0-0-18-0-0-0-0-0-0-0-0-0-0-0-0-0.info
      - *.0-0-0-0-0-0-0-0-0-0-0-0-0-33-0-0-0-0-0-0-0-0-0-0-0-0-0.info
      - *.0-0.fr
      - *.0-24bpautomentes.hu

  [i] Target: https://dbl.oisd.nl/
  [✓] Status: Retrieval successful
  [i] Analyzed 997951 domains

  [i] Target: https://abp.oisd.nl/
  [✓] Status: Retrieval successful
  [i] Analyzed 383164 domains, 383164 domains invalid!
      Sample of invalid domains:
      - ||0-0-0-0-0-0-0-0-0-0-0-0-0-10-0-0-0-0-0-0-0-0-0-0-0-0-0.info^
      - ||0-0-0-0-0-0-0-0-0-0-0-0-0-18-0-0-0-0-0-0-0-0-0-0-0-0-0.info^
      - ||0-0-0-0-0-0-0-0-0-0-0-0-0-33-0-0-0-0-0-0-0-0-0-0-0-0-0.info^
      - ||0-0.fr^
      - ||0-24bpautomentes.hu^

  [i] Target: https://hosts.oisd.nl/
  [✓] Status: Retrieval successful
  [i] Analyzed 997951 domains

  [i] Target: https://dnsmasq.oisd.nl/
  [✓] Status: Retrieval successful
  [i] Analyzed 0 domains

  [i] Target: https://rpz.oisd.nl/
  [✓] Status: Retrieval successful
  [i] Analyzed 0 domains

  [i] Target: https://v.firebog.net/hosts/static/w3kbl.txt
  [✓] Status: Retrieval successful
  [i] Analyzed 357 domains

  [i] Target: https://raw.githubusercontent.com/DandelionSprout/adfilt/master/Alternate%20versions%20Anti-Malware%20List/AntiMalwareHosts.txt
  [✓] Status: Retrieval successful
  [i] Analyzed 6120 domains

  [i] Target: https://osint.digitalside.it/Threat-Intel/lists/latestdomains.txt
  [✓] Status: Retrieval successful
  [i] Analyzed 63 domains

  [i] Target: https://v.firebog.net/hosts/Prigent-Crypto.txt
  [✓] Status: Retrieval successful
  [i] Analyzed 13908 domains

  [i] Target: https://bitbucket.org/ethanr/dns-blacklists/raw/8575c9f96e5b4a1308f2f12394abd86d0927a4a0/bad_lists/Mandiant_APT1_Report_Appendix_D.txt
  [✓] Status: Retrieval successful
  [i] Analyzed 2046 domains

  [i] Target: https://phishing.army/download/phishing_army_blocklist_extended.txt
  [✓] Status: Retrieval successful
  [i] Analyzed 53652 domains

  [i] Target: https://gitlab.com/quidsup/notrack-blocklists/raw/master/notrack-malware.txt
  [✓] Status: Retrieval successful
  [i] Analyzed 370 domains

  [i] Target: https://raw.githubusercontent.com/Spam404/lists/master/main-blacklist.txt
  [✓] Status: Retrieval successful
  [i] Analyzed 8154 domains

  [i] Target: https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts
  [✓] Status: Retrieval successful
  [i] Analyzed 2204 domains

  [i] Target: https://urlhaus.abuse.ch/downloads/hostfile/
  [✓] Status: Retrieval successful
  [i] Analyzed 1030 domains

  [i] Target: https://v.firebog.net/hosts/Prigent-Ads.txt
  [✓] Status: Retrieval successful
  [i] Analyzed 3670 domains

  [i] Target: https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.2o7Net/hosts
  [✓] Status: Retrieval successful
  [i] Analyzed 1286 domains

  [i] Target: https://raw.githubusercontent.com/crazy-max/WindowsSpyBlocker/master/data/hosts/spy.txt
  [✓] Status: Retrieval successful
  [i] Analyzed 378 domains

  [i] Target: https://hostfiles.frogeye.fr/firstparty-trackers-hosts.txt
  [✓] Status: Retrieval successful
  [i] Analyzed 122117 domains

  [✓] Storing downloaded domains in new gravity database
  [✓] Building tree
  [✓] Swapping databases
  [✓] The old database remains available.
  [i] Number of gravity domains: 2863423 (1535715 unique domains)
  [i] Number of exact blacklisted domains: 0
  [i] Number of regex blacklist filters: 23
  [i] Number of exact whitelisted domains: 54
  [i] Number of regex whitelist filters: 2
  [✓] Flushing DNS cache
  [✓] Cleaning up stray matter

  [✓] DNS service is listening
     [✓] UDP (IPv4)
     [✓] TCP (IPv4)
     [✓] UDP (IPv6)
     [✓] TCP (IPv6)

  [✓] Pi-hole blocking is enabled

I recommend that you remove the adlists that are throwing all the errors in the gravity update process.