Cannot update gravity after latest upgrade

The issue I am facing:
During the latest upgrade, Pi-hole cannot rebuild the gravity database. Every adlist returns Connection Refused. I confirmed that I can manually reach with a browser the adlists that Pi-hole cannot reach.

After a reboot, running pihole -g or pihole -g -f locks up and never responds. The system has to be rebooted for DNS resolution to continue.

Details about my system:
Pi-Hole running on Ubuntu 22 LTS

What I have changed since installing Pi-hole:
Upgraded to FTL v5.22, Web v5.19, Core v5.16.1

Debug file
https://tricorder.pi-hole.net/dWOXb2Ni/

If Pi-hole is able to resolve the domain name to an IP (which appears to be the case), then the problem lies in the underlying host OS ("connection refused").

With the same adlists in my Pi-hole running the same version, I have no problems loading the adlists, so I think the problem lies with your Pi.

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] Imported 192872 domains, ignoring 2 non-domain entries
      Sample of non-domain entries:
        - 0.0.0.0
        - seg.hadron.ad.g

  [i] Target: http://sysctl.org/cameleon/hosts
  [✓] Status: Retrieval successful
  [i] Imported 20561 domains

  [i] Target: https://adaway.org/hosts.txt
  [✓] Status: Retrieval successful
  [i] Imported 7355 domains

  [i] Target: https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts
  [✓] Status: Retrieval successful
  [i] Imported 57 domains

  [i] Target: https://raw.githubusercontent.com/PolishFiltersTeam/KADhosts/master/KADhosts_without_controversies.txt
  [✓] Status: Retrieval successful
  [i] Imported 0 domains

  [i] Target: https://raw.githubusercontent.com/anudeepND/blacklist/master/adservers.txt
  [✓] Status: Retrieval successful
  [i] Imported 42536 domains

  [i] Target: https://s3.amazonaws.com/lists.disconnect.me/simple_ad.txt
  [✓] Status: Retrieval successful
  [i] Imported 2701 domains

  [i] Target: https://s3.amazonaws.com/lists.disconnect.me/simple_tracking.txt
  [✓] Status: Retrieval successful
  [i] Imported 34 domains

  [i] Target: https://v.firebog.net/hosts/AdguardDNS.txt
  [✓] Status: Retrieval successful
  [i] Imported 49462 domains, ignoring 3 non-domain entries
      Sample of non-domain entries:
        - 10.10.34.
        - ejghgjhhgadcdchjaada.ru.
        - pxlk9.net.

  [i] Target: https://v.firebog.net/hosts/Admiral.txt
  [✓] Status: Retrieval successful
  [i] Imported 1013 domains

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

  [✓] Creating new gravity databases
  [✓] Storing downloaded domains in new gravity database
  [✓] Building tree
  [✓] Swapping databases
  [✓] The old database remains available.
  [i] Number of gravity domains: 316938 (287609 unique domains)
  [i] Number of exact blacklisted domains: 1
  [i] Number of regex blacklist filters: 24
  [i] Number of exact whitelisted domains: 26
  [i] Number of regex whitelist filters: 0
  [✓] Flushing DNS cache
  [✓] Cleaning up stray matter

  [✓] FTL is listening on port 53
     [✓] UDP (IPv4)
     [✓] TCP (IPv4)
     [✓] UDP (IPv6)
     [✓] TCP (IPv6)

  [✓] Pi-hole blocking is enabled

The same OS is able to curl adlists that failed. Only Pi-hole is failing.

Revised the title. I'm no longer getting connection refused. Instead, the gravity update process is simply stopping as soon as it fetches the first list. If I disable that particular list and try again, then it stops at whatever the next list is.

 [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

And that's as far as it gets.

I have the same error! Any solution, please?

Did you try to update pi-hole on the last 2 days?

There is a new version with gravity improvements:

The hotfix fixed my issue. Gravity is updating again. Closing this issue.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.