started test with previously disabled 2 big lists (in addition to my 70+), so fully loaded (5.7mio entries all in all):
whole process (pihole upgrade, list upgrade to building new gravitiy) took from
16:36 - 16:57 - 21 mins
mem just fine - 96MB system swap used after process completed
I wanted to post and share my experience with this latest update.
The update ran incredibly slow when updating gravity lists. I've yet to get it to complete on any raspberry pi with the newest/latest version.
I have 5.4M entries on my block list, so a few large lists.
I ran the gravity-test branch, and it seems to have parsed the lists quicker, I can't say for sure if it is back to previous version speeds or not.
What is a previous version that I could go back to and test? I forgot to note it down before upgrading. Or where can I find information on previous versions so I can potentially choose?
Apologies for breaking into your great work, I've been trying to follow what it is your doing, although not easy...
I've noticed the change you made (exit 1) when the database creation fails, thus continuing with the old database, but preventing service interruption. great idea.
Would it be possible to create a diagnostics message before exiting. gravity runs in background (most users), a warning message in the web interface might draw attention to the problem.
Again, thanks for the great work.
P.S. on the dutch forum, there are already some reports of success with the gravity-test branch, using the lists that have been reported to cause the problem.
That was the intent from the very start of things. There is code that return 1 when the database fails, the problem was that we never checked for that return value and kept going no matter what.
Now on gravity-test temporarily and updates are back to normal times, and metrics like cpu, scheduling, memory, disk are also back to normal. It also appears to have cleared the database readonly errors I was getting.
Thankyou to all involved for the troubleshooting and the quick update. 5.16.2 has fixed everything here, gravity updates back to normal times and resources.
Not sure why 5.16.2 not showing up when trying to check for update - is there some specific option i need to use?
21:34:13-pi@dnspi3b:~ $pihole -up --check-only
[✓] Update local cache of available packages
[i] Existing PHP installation detected : PHP version 7.4.33
[✓] Checking for git
[✓] Checking for iproute2
[✓] Checking for dialog
[✓] Checking for ca-certificates
[i] Checking for updates...
[i] Pi-hole Core: update available
[i] Web Interface: update available
[i] FTL: update available
21:34:29-pi@dnspi3b:~ $pihole -v
Pi-hole version is v5.15.5 (Latest: v5.16.1)
AdminLTE version is v5.18.4 (Latest: v5.19)
FTL version is v5.21 (Latest: v5.2
Unfortunately, it is a bit more tricky than that. Reason is v6.0 which relies on the messages being generated solely by FTL so API calls to /api/info/messages do not really have to connect to the database but can use internal buffers to provide this. I'm not sure what is the best strategy right now, probably we have to do this and then we have to give up on this simplification in FTL.