A Few issues with the beta on a fresh install

From mobile screen shot, chrome browser.

Okay, it is still a bit confusing, so the -2 on the number of blocked domains is gone and replaced by the correct number, but the rest is still not working (guessing from your photo of your screen).

No, the number of blocking domains is mostly irrelevant and we're commonly seeing that Pi-hole works with such large numbers even on low-end hardware.

What is the output of

sudo getenforce
sudo aa-status 

? This will check SELinux and AppArmor. If any error pops up, this may be okay as that might just show that this respective thing is not even installed.

Did you point any device at the Pi-hole? If not, please perform a few queries on the device locally, e.g. using

dig discourse.pi-hole.net @127.0.0.1

The photos is from the 4.0 installation before I updated to 5.0 after I updated to 5 I lost a few domains due to the gravity error.

I pointed my phone at it at one point, but not recently.

Okay, so next question is: What is the output of
http://192.168.50.47/admin/api.php

edit Also, could you tell me what blocking lists you're using? I will try to reproduce this.

sqlite3 /etc/pihole/gravity.db "SELECT address FROM vw_adlist;"

should tell you

{"domains_being_blocked":-2,"dns_queries_today":0,"ads_blocked_today":0,"ads_percentage_today":0,"unique_domains":0,"queries_forwarded":0,"queries_cached":0,"clients_ever_seen":0,"unique_clients":0,"dns_queries_all_types":0,"reply_NODATA":0,"reply_NXDOMAIN":0,"reply_CNAME":0,"reply_IP":0,"privacy_level":0,"status":"disabled","gravity_last_updated":{"file_exists":true,"absolute":0,"relative":{"days":18307,"hours":15,"minutes":50}}}

Thanks, please also see my edit. I think I need to try to reproduce this locally.

Do you still see the same when disabling all but one standard blocking list and running pihole -g thereafter?

I don't have a Rock64, I had an old Pine that just never worked with the stock OS. This looks like Armbian and that should be fine.

Results for dig and se linux

lists
https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts
https://mirror1.malwaredomains.com/files/justdomains
http://sysctl.org/cameleon/hosts
https://s3.amazonaws.com/lists.disconnect.me/simple_tracking.txt
https://s3.amazonaws.com/lists.disconnect.me/simple_ad.txt
https://hosts-file.net/ad_servers.txt
https://reddestdream.github.io/Projects/MinimalHosts/etc/MinimalHostsBlocker/minimalhosts
https://raw.githubusercontent.com/StevenBlack/hosts/master/data/KADhosts/hosts
https://raw.githubusercontent.com/StevenBlack/hosts/master/data/add.Spam/hosts
https://v.firebog.net/hosts/static/w3kbl.txt
https://adaway.org/hosts.txt
https://v.firebog.net/hosts/AdguardDNS.txt
https://raw.githubusercontent.com/anudeepND/blacklist/master/adservers.txt
https://v.firebog.net/hosts/Easylist.txt
https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts;showintro=0
https://raw.githubusercontent.com/StevenBlack/hosts/master/data/UncheckyAds/hosts
https://www.squidblacklist.org/downloads/dg-ads.acl
https://v.firebog.net/hosts/Easyprivacy.txt
https://v.firebog.net/hosts/Prigent-Ads.txt
https://gitlab.com/quidsup/notrack-blocklists/raw/master/notrack-blocklist.txt
https://raw.githubusercontent.com/StevenBlack/hosts/master/data/add.2o7Net/hosts
https://raw.githubusercontent.com/crazy-max/WindowsSpyBlocker/master/data/hosts/spy.txt
https://s3.amazonaws.com/lists.disconnect.me/simple_malvertising.txt
https://hosts-file.net/exp.txt
https://hosts-file.net/emd.txt
https://hosts-file.net/psh.txt
https://mirror.cedia.org.ec/malwaredomains/immortal_domains.txt
https://www.malwaredomainlist.com/hostslist/hosts.txt
https://bitbucket.org/ethanr/dns-blacklists/raw/8575c9f96e5b4a1308f2f12394abd86d0927a4a0/bad_lists/Mandiant_APT1_Report_Appendix_D.txt
https://v.firebog.net/hosts/Prigent-Malware.txt
https://v.firebog.net/hosts/Prigent-Phishing.txt
https://phishing.army/download/phishing_army_blocklist_extended.txt
https://gitlab.com/quidsup/notrack-blocklists/raw/master/notrack-malware.txt
https://v.firebog.net/hosts/Shalla-mal.txt
https://raw.githubusercontent.com/StevenBlack/hosts/master/data/add.Risk/hosts
https://www.squidblacklist.org/downloads/dg-malicious.acl
https://zerodot1.gitlab.io/CoinBlockerLists/hosts
https://raw.githubusercontent.com/Perflyst/PiHoleBlocklist/master/android-tracking.txt
https://raw.githubusercontent.com/HorusTeknoloji/TR-PhishingList/master/url-lists.txt
https://raw.githubusercontent.com/Perflyst/PiHoleBlocklist/master/SmartTV.txt
https://raw.githubusercontent.com/HenningVanRaumle/pihole-ytadblock/master/ytadblock.txt
https://raw.githubusercontent.com/HenningVanRaumle/pihole-ytadblock/master/googlevideo.com%20domains/adverisment.txt
https://raw.githubusercontent.com/CamelCase11/UnifiedHosts/master/hosts.all
http://pgl.yoyo.org/as/serverlist.php?hostformat=hosts
http://jasonhill.co.uk/pfsense/ytadblock.txt
https://raw.githubusercontent.com/FadeMind/hosts.extras/master/StreamingAds/hosts
https://raw.githubusercontent.com/piwik/referrer-spam-blacklist/master/spammers.txt
http://winhelp2002.mvps.org/hosts.txt
https://ssl.bblck.me/blacklists/hosts-file.txt
https://raw.githubusercontent.com/deathbybandaid/piholeparser/master/Subscribable-Lists/ParsedBlacklists/ABP-Clickbait-Blocklist.txt
https://raw.githubusercontent.com/deathbybandaid/piholeparser/master/Subscribable-Lists/ParsedBlacklists/AakList.txt
https://raw.githubusercontent.com/deathbybandaid/piholeparser/master/Subscribable-Lists/ParsedBlacklists/AdAway-Default-Blocklist.txt
https://raw.githubusercontent.com/austinheap/sophos-xg-block-lists/master/add-2o7net.txt
https://raw.githubusercontent.com/r-a-y/mobile-hosts/master/AdguardMobileAds.txt
https://raw.githubusercontent.com/r-a-y/mobile-hosts/master/AdguardMobileSpyware.txt
https://raw.githubusercontent.com/r-a-y/mobile-hosts/master/AdguardApps.txt
https://raw.githubusercontent.com/lightswitch05/hosts/master/ads-and-tracking-extended.txt
https://raw.githubusercontent.com/lightswitch05/hosts/master/ads-and-tracking.txt
http://getadhell.com/standard-package.txt
https://raw.githubusercontent.com/CitizenXVIL/Hosts/master/mobile%20domains.txt
https://raw.githubusercontent.com/cb-software/CB-Malicious-Domains/master/block_lists/hosts
https://raw.githubusercontent.com/deathbybandaid/piholeparser/master/Subscribable-Lists/ParsedBlacklists/Ayucat-Powerful.txt
https://raw.githubusercontent.com/kowith337/PersonalFilterListCollection/master/hosts/hosts_google_adservice_id.txt
https://raw.githubusercontent.com/deathbybandaid/piholeparser/master/Subscribable-Lists/ParsedBlacklists/Adware-Filters.txt
https://raw.githubusercontent.com/deathbybandaid/piholeparser/master/Subscribable-Lists/ParsedBlacklists/Anudeep-Youtube.txt
https://raw.githubusercontent.com/jerryn70/GoodbyeAds/master/Hosts/GoodbyeAds.txt
https://raw.githubusercontent.com/biroloter/Mobile-Ad-Hosts/master/hosts
https://gitlab.com/intr0/iVOID.GitLab.io/raw/master/iVOID.hosts
https://tgc.cloud/downloads/iOSAds.txt
https://raw.githubusercontent.com/TakoYachty/Gift-Card-Killer/master/giftcardkiller.txt
https://raw.githubusercontent.com/Firestorrrm/Minimal-Hosts-Blocker/master/iosadlist.txt
https://dbl.oisd.nl/
https://raw.githubusercontent.com/ADsecu/black-domains/master/domain_hosts.txt
https://raw.githubusercontent.com/Akamaru/Pi-Hole-Lists/master/jbfake.txt
https://raw.githubusercontent.com/Akamaru/Pi-Hole-Lists/master/other.txt
https://raw.githubusercontent.com/XionKzn/PiHole-Lists/master/Blocklist.txt
https://raw.githubusercontent.com/XionKzn/PiHole-Lists/master/PiHole_HOSTS_Spyware.txt
https://raw.githubusercontent.com/SweetSophia/androidappspihole/master/testrareandroappblock.txt
https://tgc.cloud/downloads/hosts.txt
https://raw.githubusercontent.com/TheBinaryLoop/pi-hole-blocklist/master/blocklist.txt
https://raw.githubusercontent.com/jawz101/MobileAdTrackers/master/hosts
https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.2o7Net/hosts
https://raw.githubusercontent.com/austinheap/sophos-xg-block-lists/master/add-dead.txt
https://raw.githubusercontent.com/austinheap/sophos-xg-block-lists/master/adguard.txt
https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts
https://280blocker.net/files/280blocker_domain.txt
https://raw.githubusercontent.com/EnergizedProtection/block/master/extensions/xtreme/formats/domains.txt
https://blocklist.site/app/dl/ads
https://blocklist.site/app/dl/crypto
https://blocklist.site/app/dl/fraud
https://blocklist.site/app/dl/malware
https://blocklist.site/app/dl/phishing
https://blocklist.site/app/dl/ransomware
https://blocklist.site/app/dl/redirect
https://blocklist.site/app/dl/scam
https://blocklist.site/app/dl/spam
https://blocklist.site/app/dl/tracking
https://blocklist.site/app/dl/youtube
https://www.github.developerdan.com/hosts/lists/tracking-aggressive-extended.txt
https://hostsmobile.oisd.nl
https://sesipod.info/DATA_FILES/pfsense/blockytube.txt
https://sesipod.info/DATA_FILES/pfsense/personalblock.txt
https://raw.githubusercontent.com/jkrejcha/AdmiraList/master/AdmiraList.txt
https://gitlab.com/kowith337/PersonalFilterListCollection/raw/master/hosts/hosts_google_adservice_id.txt
https://raw.githubusercontent.com/austinheap/sophos-xg-block-lists/master/add-spam.txt
https://v.firebog.net/hosts/BillStearns.txt
https://raw.githubusercontent.com/vokins/yhosts/master/hosts
https://raw.githubusercontent.com/eLVee1991/youtubeblock/master/blocklist.txt
https://raw.githubusercontent.com/kboghdady/youTube_ads_4_pi-hole/master/black.list
https://adblock.amroemischengutshof.de/youtube-ads-list.txt
https://pastebin.com/raw/sq81V4xz
https://codeberg.org/spootle/blocklist/raw/branch/master/blocklist.txt
https://dbl.oisd.nl
https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts
https://jasonhill.co.uk/pfsense/ytadblock.txt
https://raw.githubusercontent.com/BlackJack8/iOSAdblockList/master/Hosts.txt
https://pastebin.com/raw/KuqmMhsq
https://www.micu.eu/adblock/ad_list.txt

http://www.mediafire.com/file/by4r266hqu9ikg8/pac_list-2.txt
http://www.mediafire.com/file/k8pcx70b0uk6j6h/youtubeblock.txt
http://www.mediafire.com/file/q6098nn40dq5d7w/We_BLue.txt
https://git.jarv.is/jake/ios-trackers/raw/master/blocklist.txt
http://www.mediafire.com/file/hkduh38zvy9zot6/gads.txt
https://raw.githubusercontent.com/MajkiIT/polish-ads-filter/master/polish-pihole-filters/ads-and-tracking.txt
https://raw.githubusercontent.com/RooneyMcNibNug/pihole-stuff/master/SNAFU.txt
https://raw.githubusercontent.com/deathbybandaid/piholeparser/master/Subscribable-Lists/CountryCodesLists/Australia.txt
https://raw.githubusercontent.com/EnergizedProtection/block/master/ultimate/formats/domains.txt
https://raw.githubusercontent.com/EnergizedProtection/block/master/extensions/regional/formats/domains.txt
https://raw.githubusercontent.com/vokins/yhosts/master/data/os/android.txt
https://raw.githubusercontent.com/Akamaru/Pi-Hole-Lists/master/mobile.txt
https://raw.githubusercontent.com/Akamaru/Pi-Hole-Lists/master/youtube.txt
https://raw.githubusercontent.com/Akamaru/Pi-Hole-Lists/master/cryptomine.txt
https://raw.githubusercontent.com/hoshsadiq/adblock-nocoin-list/master/hosts.txt
https://raw.githubusercontent.com/deathbybandaid/piholeparser/master/Subscribable-Lists/CountryCodesLists/NewZealand.txt
https://raw.githubusercontent.com/r-a-y/mobile-hosts/master/AdguardDNS.txt
https://getadhell.com/standard-package.txt
https://www.github.developerdan.com/hosts/lists/ads-and-tracking-extended.txt
https://raw.githubusercontent.com/deathbybandaid/piholeparser/master/Subscribable-Lists/ParsedBlacklists/Dshield-Suspicious-Medium.txt
https://raw.githubusercontent.com/deathbybandaid/piholeparser/master/Subscribable-Lists/ParsedBlacklists/Dshield-Suspicious-Low.txt
https://raw.githubusercontent.com/deathbybandaid/piholeparser/master/Subscribable-Lists/ParsedBlacklists/Dshield-Suspicious-High.txt
https://raw.githubusercontent.com/jakejarvis/ios-trackers/master/blocklist.txt
https://raw.githubusercontent.com/deathbybandaid/piholeparser/master/Subscribable-Lists/ParsedBlacklists/Mat1th-DNS-add-block.txt
https://v.firebog.net/hosts/RansomTrack.txt
https://raw.githubusercontent.com/notracking/hosts-blocklists/master/hostnames.txt
https://raw.githubusercontent.com/ReddestDream/reddestdream.github.io/master/Projects/MinimalHostsCB/etc/MinimalHostsBlocker/minimalhosts
https://raw.githubusercontent.com/Sinfonietta/hostfiles/master/snuff-hosts
https://raw.githubusercontent.com/FadeMind/hosts.extras/master/UncheckyAds/hosts
https://raw.githubusercontent.com/xorcan/hosts/master/xhosts.txt
https://raw.githubusercontent.com/arcetera/Minimal-Hosts-Blocker/master/etc/MinimalHostsBlocker/minimalhosts
https://raw.githubusercontent.com/lewisje/jansal/master/adblock/hosts
https://hblock.molinero.dev/hosts
https://raw.githubusercontent.com/DataMaster-2501/DataMaster-Android-AdBlock-Hosts/master/hosts
https://raw.githubusercontent.com/mkb2091/blockconvert/master/output/hosts.txt
https://raw.githubusercontent.com/xlimit91/xlimit91-block-list/master/blacklist.txt
https://raw.githubusercontent.com/adhell/adhell.github.io/master/standard-package.txt
https://raw.githubusercontent.com/zznidar/BAR/master/BAR-list
https://raw.githubusercontent.com/ligyxy/Blocklist/master/BLOCKLIST
https://raw.githubusercontent.com/bjornstar/hosts/master/hosts
https://raw.githubusercontent.com/CitizenXVIL/Hosts/master/Youtube%20hosts.txt
https://github.com/blocktastic/pihole/blob/b7c68c6f6c9445e9f678828276550da850466c47/blocktastic.txt
https://1hos.cf/complete/hosts.txt
https://raw.githubusercontent.com/broerict/blacklists/master/ads
https://raw.githubusercontent.com/broerict/blacklists/master/malware
https://raw.githubusercontent.com/broerict/blacklists/master/phishing
https://raw.githubusercontent.com/anarki999/Adblock-List-Archive/master/AdBlock%20Manager.txt
https://raw.githubusercontent.com/joeylane/hosts/master/hosts
https://joewein.net/dl/bl/dom-bl-base.txt
https://raw.githubusercontent.com/pirat28/IHateTracker/master/iHateTracker.txt
https://joewein.net/dl/bl/dom-bl.txt
https://raw.githubusercontent.com/KurzGedanke/kurzBlock/master/kurzBlock.txt
https://blocklist.kowabit.de/list.txt
https://raw.githubusercontent.com/mhxion/pornaway/master/hosts/porn_ads.txt
https://pastebin.com/raw/UP3s7pEB
https://raw.githubusercontent.com/deathbybandaid/piholeparser/master/Subscribable-Lists/ParsedBlacklists/Mayvs-Private-Adblock-Filters.txt
https://raw.githubusercontent.com/herrbischoff/trackers/master/trackers.txt
https://raw.githubusercontent.com/stamparm/maltrail/master/trails/static/suspicious/pua.txt
https://raw.githubusercontent.com/genediazjr/nopelist/master/nopelist.txt
https://raw.githubusercontent.com/infinitytec/blocklists/master/ads-and-trackers.txt
https://raw.githubusercontent.com/some-username-here1/motd-adblock/master/motd-adblock
https://raw.githubusercontent.com/deathbybandaid/piholeparser/master/Subscribable-Lists/CountryCodesLists/Philippines.txt
https://raw.githubusercontent.com/Akamaru/Pi-Hole-Lists/master/gamefake.txt
https://raw.githubusercontent.com/XionKzn/PiHole-Lists/master/Yahoo_Ad_Servers.txt
https://raw.githubusercontent.com/nickspaargaren/pihole-google/master/categories/doubleclickparsed
http://thedumbterminal.co.uk/files/services/squidblockedsites/blocked.txt
https://raw.githubusercontent.com/qxstyles/turris-hole-czech-block-list/master/turris-hole-czech-block-list
https://raw.githubusercontent.com/mitchellkrogza/Stop.Google.Analytics.Ghost.Spam.HOWTO/master/output/domains/ACTIVE/list
https://raw.githubusercontent.com/FleuryK/pihole-ads/master/youtube/ytadblock.txt
https://raw.githubusercontent.com/FleuryK/pihole-ads/master/blocklist-ads-website/blocklist.txt
https://raw.githubusercontent.com/hell-sh/Evil-Domains/master/evil-domains.txt
https://raw.githubusercontent.com/deathbybandaid/piholeparser/master/Subscribable-Lists/ParsedBlacklists/GandJ-Hosts.txt
https://raw.githubusercontent.com/MetaMask/eth-phishing-detect/master/src/hosts.txt
https://raw.githubusercontent.com/michaeltrimm/hosts-blocking/master/_hosts.txt
https://raw.githubusercontent.com/deathbybandaid/piholeparser/master/Subscribable-Lists/ParsedBlacklists/Hant05080-Filters.txt
https://raw.githubusercontent.com/blocktastic/pihole/master/blocktastic.txt
https://raw.githubusercontent.com/angelics/pfbng/master/ads/ads-domain-list.txt

First try reducing the lists to the first few:

https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts
https://mirror1.malwaredomains.com/files/justdomains
http://sysctl.org/cameleon/hosts
https://s3.amazonaws.com/lists.disconnect.me/simple_tracking.txt
https://s3.amazonaws.com/lists.disconnect.me/simple_ad.txt
https://hosts-file.net/ad_servers.txt

to check if this restores the basic Pi-hole functionality. Then, we know where to go forward.

You do not need to delete the others, you can simply disable them.

well that fixes the error with gravity

Some of those lists aren't in pihole format - probably choking somewhere.

Odd pihole 4 has no issues with the lists seems that it's an issue in 5 with SQL having issues.

Yes, Pi-hole v4.0 accepted invalid domains to some degree (containing quotation marks, etc.). It'd be enormously helpful if you could find out which of these domains is causing the issue. We can then adjust the domains parser to work with them.

Let me be honest: Getting Pi-hole to work isn't highest priority with all the other beta things going on. However, if you can help us identify which list is the culprit, I promise to make the necessary adjustments to let gravity run through. I'll look at some of them but given the large number, it is unlikely that I'll find it by just cherry-picking random domains.

I'll check my main concern is to fix the database locking error that is preventing me for using the GUI, gravity is secondary also thank you for the help I greatly appreciate it, I'm considering wiping it and seeing if it work or if all else fails just buy a pi 4.

So is this still present with the reduced set of lists? It could have been due to the gravity errors before. We've already checked all the permissions for the web user, the database folder and file and they all seemed file so there should be nothing left causing this.

gravity parsing error is gone but the database is still locked, ill have to look at the lists to see which have issues being parsed.

i might have to nuke it again see if it works this time, only issue i can see is that all the domains are 0 on gravity.

What is the output of

ps aux | grep sqlite3

?

The only thing that could be causing this when all the permissions are fine may be a still running sqlite3 transaction, not sure how to resolve this.

You could also try a selective nuke option:

rm /etc/pihole/gravity.db
pihole -g -r

but please ensure first that /etc/pihole/migration_backup/adlists.list (path may actually be slightly different) does contain only the few domains you've seen Pi-hole working correctly with.

vexira@WonderBoom2:~$ ps aux | grep sqlite3
vexira 4859 0.0 0.0 5820 664 pts/0 S+ 20:40 0:00 grep sqlite3

Okay, so no running gravity process. I really hope that the restored/newly created database will fix this issue for you.