Nightly Failures of DB causing outages (Solved: Nebula-sync issue)

Expected Behaviour:

It seems like nightly, and sometimes multiple times a night, my gravity.db will crash out (sometimes resulting in a very small 1-2k gravity.db file), other times just causing outages for 5-10 minutes. Last night there were multiple, though the db did not go down to small (normal size is about 145,000kb on my system).
The gravity db becomes unresponsive, and often system load shoots sky high.
Thankfully so far I've been able to just rename gravity.db_old to gravity.db and restart and the system comes up.

  • Docker Container pihole/pihole:latest
  • Synology NAS
 docker version
Client:
 Version:           24.0.2
 API version:       1.43
 Go version:        go1.20.4
 Git commit:        610b8d0
 Built:             Wed Feb  5 11:08:05 2025
 OS/Arch:           linux/amd64
 Context:           default

Server:
 Engine:
  Version:          24.0.2
  API version:      1.43 (minimum version 1.12)
  Go version:       go1.20.4
  Git commit:       bd0a34d
  Built:            Wed Feb  5 11:06:45 2025
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          v1.7.1
  GitCommit:        067f5021280b8de2059026fb5c43c4adb0f3f244
 runc:
  Version:          v1.1.7
  GitCommit:        0320c58
 docker-init:
  Version:          0.19.0
  GitCommit:        ed96d00

Debug Token:

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

Happy to provide any more information, as this is becoming a real headache (so much so that I'm running a second pihole instance and using nebula-sync to keep them both up to date).

Pi-hole would only schedule a job to update gravity once a week.

Since you see this daily, this seems related to nebula-sync.
You should consider to also open an issue with nebula-sync maintainers.

As I was waiting for this to be approved, I actually did some digging into that exact idea, and I think you've nailed it!

I had been running nebula-sync with "RUN_GRAVITY=true", changing that to false seems to have stopped the gravity sync/update which was causing the slow downs.

I'm hopefully my normal Sunday night gravity update won't cause the issue going forward.

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