Looking at some of your 305 subscribed blocklists, I find many that aren't in hosts format. You are basically importing junk into your gravity list, and this is causing you problems.
This list in particular is fairly representative of some on your block list. It clearly states not to use as a blocklist, and it does not contain domain names - it is a list of IP's that are of no use to Pi-Hole.
# ipsascii.html
# DO NOT USE AS BLOCKLIST
# you may obtain longer/shorter lists by adding '?limit=1234' to the URL
# "1234" is the number of IPs returned. You can specify a number between 10
# and 10,000.
# NOTE: Please use your API instead. See https://isc.sans.edu/api
#
# IMPORTANT: Include your e-mail address in the user agent if you are using
# a script to access this page.
#
# created: Fri, 15 Mar 2019 20:34:43 +0000# Date in GMT. YYYY-MM-DD format.
077.072.085.026 220891 9442 2018-12-27 2019-02-15
185.176.027.118 246484 9395 2019-02-02 2019-03-15
185.254.123.012 88391 8854 2019-01-10 2019-02-18
193.032.160.035 112718 8745 2019-01-18 2019-03-15
If I may ask, what is your purpose in blocking almost 10 million domains? And, how are you screening the block lists to which you subscribe? Have you looked at the contents of any of those lists, or are you just finding them listed online and adding them to your blocklists?
Thank you for all the prompt replies. I have deleted lists that aren't giving data in the format required or data that is required (IPs as opposed to hostname, which DNS is queried for).
I took the lists I could find from the internet (most are from threads on discourse.pi-hole.net).
I have manually ran an update post deletion of the list. Is there a specific command to "rebuild" gravity list?
Ah thank you very much. it is the same switch as updategravity.
I will post output of tail, head and grep commands in sometime. I have deleted lost of lists too. You gave me a text file, how do I import it to my list?
The link was to the block list that contained the invalid domain .docs.google.com that is causing your problem. This is one of many lists you are using that have improper domains, and this list should be removed from your blocklist.
The head and tail of your gravity list shows that your gravity list contains improperly formatted domains that won't work with Pi-Hole. We only looked at the very ends of the gravity list, since that's where odd characters show up. The search for "https" in the gravity list shows further evidence - the text "https:" should not appear in a hosts format list.
The solution for you - completely remove all your block lists. Put back the seven original blocklists (link below), then selectively add properly formatted block lists one at a time. There is no value in randomly grabbing junk lists from the internet - this is preventing your Pi-Hole from working properly as evidenced by your post.
Both of which did not give any output. I considered this to be a good sign. I have added few custom list but only after posting the thread. At the time I ran my first update there were no custom lists added. After the first update, I started getting these errors (I always update via SSH). -- Ignoring the auto-update.
This list that you have added (not one of the default lists) is known to contain a large number of false positives, including domains that serve other blocklists.
Note that despite this list blocking other lists, Pi-Hole has bypassed itself to download the requested list.
You are adding lists that won't block any more domains that you will ever run across, but will cause a large number of false positives and cause you trouble.