Disk full error during gravity rebuild but its not full

I have RPi 2b running standard setup pi hole.
I am getting this error

Unable to build gravity tree in /etc/pihole/gravity.db_temp
  Error: stepping, database or disk is full (13)
   [✗] Unable to create database. Please contact support.

My debug log is as follows

*** [ INITIALIZING ]
[i] 2022-05-20:17:04:01 debug log has been initialized.
[i] System has been running for 0 days, 3 hours, 25 minutes

*** [ INITIALIZING ] Sourcing setup variables
[i] Sourcing /etc/pihole/setupVars.conf...

*** [ DIAGNOSING ]: Core version
[i] Core: v5.10 (https://discourse.pi-hole.net/t/how-do-i-update-pi-hole/249)
[i] Remotes: origin	https://github.com/pi-hole/pi-hole.git (fetch)
             origin	https://github.com/pi-hole/pi-hole.git (push)
[i] Branch: master
[i] Commit: v5.10-0-g853f6b7d

*** [ DIAGNOSING ]: Web version
[i] Web: v5.12 (https://discourse.pi-hole.net/t/how-do-i-update-pi-hole/249)
[i] Remotes: origin	https://github.com/pi-hole/AdminLTE.git (fetch)
             origin	https://github.com/pi-hole/AdminLTE.git (push)
[i] Branch: master
[i] Commit: v5.12-0-g6c320a42

*** [ DIAGNOSING ]: FTL version
[✓] FTL: v5.15

*** [ DIAGNOSING ]: lighttpd version
[i] 1.4.59

*** [ DIAGNOSING ]: php version
[i] 7.4.28

*** [ DIAGNOSING ]: Operating system
[i] dig return code:  0
[i] dig response:  "Raspbian=9,10,11 Ubuntu=16,18,20,21 Debian=9,10,11 Fedora=33,34 CentOS=7,8"
[✓] Distro:  Raspbian
[✓] Version: 11

*** [ DIAGNOSING ]: SELinux
[i] SELinux not detected

*** [ DIAGNOSING ]: FirewallD
[i] Firewalld service inactive

*** [ DIAGNOSING ]: Processor
[✓] armv6l

*** [ DIAGNOSING ]: Disk usage
   Filesystem      Size  Used Avail Use% Mounted on
   /dev/root       7.0G  3.3G  3.4G  50% /
   devtmpfs         87M     0   87M   0% /dev
   tmpfs           215M  1.2M  214M   1% /dev/shm
   tmpfs            86M  704K   86M   1% /run
   tmpfs           5.0M  4.0K  5.0M   1% /run/lock
   none            1.0M     0  1.0M   0% /var/tmp
   /dev/mmcblk0p1  253M   50M  203M  20% /boot
   tmpfs            43M   20K   43M   1% /run/user/1000
   tmpfs            43M   16K   43M   1% /run/user/999

*** [ DIAGNOSING ]: Network interfaces and addresses
   1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
       link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
       inet 127.0.0.1/8 scope host lo
          valid_lft forever preferred_lft forever
       inet6 ::1/128 scope host 
          valid_lft forever preferred_lft forever
   2: enxb827eb01a50a: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
       link/ether b8:27:eb:01:a5:0a brd ff:ff:ff:ff:ff:ff
       inet 192.168.1.200/24 brd 192.168.1.255 scope global noprefixroute enxb827eb01a50a
          valid_lft forever preferred_lft forever
       inet6 2a00:23c4:e1c5:8a01:5f86:4412:d6d6:a8ff/64 scope global dynamic mngtmpaddr noprefixroute 
          valid_lft 257sec preferred_lft 77sec
       inet6 fe80::322d:fb7d:805f:475d/64 scope link 
          valid_lft forever preferred_lft forever

*** [ DIAGNOSING ]: Network routing table
   default via 192.168.1.254 dev enxb827eb01a50a src 192.168.1.200 metric 202 
   192.168.1.0/24 dev enxb827eb01a50a proto dhcp scope link src 192.168.1.200 metric 202 

*** [ DIAGNOSING ]: Networking
[✓] IPv4 address(es) bound to the enxb827eb01a50a interface:
    192.168.1.200/24

[✓] IPv6 address(es) bound to the enxb827eb01a50a interface:
    2a00:23c4:e1c5:8a01:5f86:4412:d6d6:a8ff/64
    fe80::322d:fb7d:805f:475d/64

[i] Default IPv4 gateway: 192.168.1.254
   * Pinging 192.168.1.254...
[✓] Gateway responded.
[i] Default IPv6 gateway: fe80::c6e5:32ff:fe7d:9133
   * Pinging fe80::c6e5:32ff:fe7d:9133...
[✓] Gateway responded.

*** [ DIAGNOSING ]: Ports in use
[✓] udp:0.0.0.0:53 is in use by pihole-FTL
    udp:0.0.0.0:68 is in use by dhcpcd
    udp:0.0.0.0:48801 is in use by avahi-daemon
    udp:0.0.0.0:5353 is in use by avahi-daemon
[✓] udp:*:53 is in use by pihole-FTL
    udp:*:53200 is in use by avahi-daemon
    udp:*:5353 is in use by avahi-daemon
    udp:*:546 is in use by dhcpcd
[✓] tcp:0.0.0.0:80 is in use by lighttpd
[✓] tcp:0.0.0.0:53 is in use by pihole-FTL
    tcp:0.0.0.0:22 is in use by sshd
[✓] tcp:127.0.0.1:4711 is in use by pihole-FTL
[✓] tcp:*:80 is in use by lighttpd
[✓] tcp:*:53 is in use by pihole-FTL
    tcp:*:22 is in use by sshd
[✓] tcp:[::1]:4711 is in use by pihole-FTL

*** [ DIAGNOSING ]: Name resolution (IPv4) using a random blocked domain and a known ad-serving domain
[✓] us.clickintext.net is 0.0.0.0 on lo (127.0.0.1)
[✓] us.clickintext.net is 0.0.0.0 on enxb827eb01a50a (192.168.1.200)
[✓] doubleclick.com is 172.217.169.14 via a remote, public DNS server (8.8.8.8)

*** [ DIAGNOSING ]: Name resolution (IPv6) using a random blocked domain and a known ad-serving domain
[✓] www.d2v81tfe2x14j0.cloudfront.net is :: on lo (::1)
[✓] www.d2v81tfe2x14j0.cloudfront.net is :: on enxb827eb01a50a (2a00:23c4:e1c5:8a01:5f86:4412:d6d6:a8ff)
[✓] www.d2v81tfe2x14j0.cloudfront.net is :: on enxb827eb01a50a (fe80::322d:fb7d:805f:475d)
[✓] doubleclick.com is 2a00:1450:4009:81d::200e via a remote, public DNS server (2001:4860:4860::8888)

*** [ DIAGNOSING ]: Discovering active DHCP servers (takes 10 seconds)
   Scanning all your interfaces for DHCP servers
   Timeout: 10 seconds
   
   * Received 350 bytes from enxb827eb01a50a:192.168.1.254
     Offered IP address: 192.168.1.200
     Server IP address: 192.168.1.254
     Relay-agent IP address: N/A
     BOOTP server: (empty)
     BOOTP file: (empty)
     DHCP options:
      Message type: DHCPOFFER (2)
      server-identifier: 192.168.1.254
      lease-time: 86400 ( 1d )
      renewal-time: 43200 ( 12h )
      rebinding-time: 75600 ( 21h )
      netmask: 255.255.255.0
      broadcast: 192.168.1.255
      domain-name: "home"
      dns-server: 192.168.1.254
      router: 192.168.1.254
      wpad-server: "
"
         --- end of options ---
    
   DHCP packets received on interface lo: 0
   DHCP packets received on interface enxb827eb01a50a: 1

*** [ DIAGNOSING ]: Pi-hole processes
[✓] lighttpd daemon is active
[✓] pihole-FTL daemon is active

*** [ DIAGNOSING ]: Pi-hole-FTL full status
   ● pihole-FTL.service - LSB: pihole-FTL daemon
     Loaded: loaded (/etc/init.d/pihole-FTL; generated)
     Active: active (exited) since Fri 2022-05-20 17:02:11 BST; 2min 55s ago
       Docs: man:systemd-sysv-generator(8)
    Process: 10499 ExecStart=/etc/init.d/pihole-FTL start (code=exited, status=0/SUCCESS)
        CPU: 550ms

May 20 17:02:07 raspberrypi systemd[1]: Starting LSB: pihole-FTL daemon...
May 20 17:02:08 raspberrypi pihole-FTL[10499]: Not running
May 20 17:02:08 raspberrypi su[10511]: (to pihole) root on none
May 20 17:02:08 raspberrypi su[10511]: pam_unix(su:session): session opened for user pihole(uid=999) by (uid=0)
May 20 17:02:11 raspberrypi systemd[1]: Started LSB: pihole-FTL daemon.

*** [ DIAGNOSING ]: Setup variables
    DNSSEC=false
    REV_SERVER=true
    REV_SERVER_CIDR=192.168.1.1/24
    REV_SERVER_TARGET=192.168.1.254
    REV_SERVER_DOMAIN=local
    BLOCKING_ENABLED=true
    PIHOLE_INTERFACE=enxb827eb01a50a
    IPV4_ADDRESS=192.168.1.200/24
    IPV6_ADDRESS=fde6:4571:c068:0:b0d4:ef2c:5b19:4976
    QUERY_LOGGING=true
    INSTALL_WEB_SERVER=true
    INSTALL_WEB_INTERFACE=true
    LIGHTTPD_ENABLED=true
    CACHE_SIZE=10000
    DNS_FQDN_REQUIRED=true
    DNS_BOGUS_PRIV=true
    DNSMASQ_LISTENING=local
    PIHOLE_DNS_1=1.1.1.1
    PIHOLE_DNS_2=1.0.0.1

*** [ DIAGNOSING ]: Dashboard and block page
[✗] Block page X-Header: X-Header does not match or could not be retrieved.
HTTP/1.1 200 OK
Content-type: text/html; charset=UTF-8
Expires: Fri, 20 May 2022 16:05:11 GMT
Cache-Control: max-age=0
Date: Fri, 20 May 2022 16:05:11 GMT
Server: lighttpd/1.4.59

[✓] Web interface X-Header: X-Pi-hole: The Pi-hole Web interface is working!

*** [ DIAGNOSING ]: Gravity Database
-rw-rw-r-- 1 pihole pihole 61M May 20 16:57 /etc/pihole/gravity.db

*** [ DIAGNOSING ]: Info table
   property              value                                   
   --------------------  ----------------------------------------
   version               15                                      
   updated               1643888065                              
   gravity_count         958195                                  
   Last gravity run finished at: Thu Feb  3 11:34:25 GMT 2022

   ----- First 10 Gravity Domains -----
   localhost.localdomain
   localhost.localdomain
   wizhumpgyros.com
   wizhumpgyros.com
   coccyxwickimp.com
   coccyxwickimp.com
   n2019cov.000webhostapp.com
   n2019cov.000webhostapp.com
   webmail-who-int.000webhostapp.com
   webmail-who-int.000webhostapp.com


*** [ DIAGNOSING ]: Groups
   id    enabled  name                                                date_added           date_modified        description                                       
   ----  -------  --------------------------------------------------  -------------------  -------------------  --------------------------------------------------
   0           1  Default                                             2022-02-03 01:17:17  2022-02-03 01:17:17  The default group                                 
   1           1  New                                                 2022-02-03 03:28:06  2022-02-03 03:28:06  Test                                              

*** [ DIAGNOSING ]: Domainlist (0/1 = exact white-/blacklist, 2/3 = regex white-/blacklist)

*** [ DIAGNOSING ]: Clients
   id    group_ids     ip                                                                                                    date_added           date_modified        comment                                           
   ----  ------------  ----------------------------------------------------------------------------------------------------  -------------------  -------------------  --------------------------------------------------
   1     0,1           20:CF:30:CC:72:8E                                                                                     2022-02-03 05:07:51  2022-02-03 05:08:06                                                    
   2     0,1           DC:A6:32:04:D1:4C                                                                                     2022-02-03 05:08:18  2022-02-03 10:38:10                                                    

*** [ DIAGNOSING ]: Adlists
   id     enabled  group_ids     address                                                                                               date_added           date_modified        comment                                           
   -----  -------  ------------  ----------------------------------------------------------------------------------------------------  -------------------  -------------------  --------------------------------------------------
   1            1  0,1           https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts                                      2022-02-03 01:17:17  2022-02-03 11:27:25  Migrated from /etc/pihole/adlists.list            
   2            1  0,1           https://blocklistproject.github.io/Lists/tracking.txt                                                 2022-02-03 02:02:17  2022-02-03 11:27:28  Tracking                                          
   3            1  0,1           https://blocklistproject.github.io/Lists/scam.txt                                                     2022-02-03 02:02:50  2022-02-03 11:27:33  Scam                                              
   4            1  0,1           https://blocklistproject.github.io/Lists/redirect.txt                                                 2022-02-03 02:03:35  2022-02-03 11:29:59  Redirect                                          
   5            1  0,1           https://blocklistproject.github.io/Lists/ransomware.txt                                               2022-02-03 02:04:00  2022-02-03 11:30:02  Ransomware                                        
   6         0     0,1           https://blocklistproject.github.io/Lists/piracy.txt                                                   2022-02-03 02:04:24  2022-05-20 16:57:02  Piracy                                            
   7         0     0,1           https://blocklistproject.github.io/Lists/phishing.txt                                                 2022-02-03 02:04:44  2022-05-20 16:56:48  Phishing                                          
   8         0     0,1           https://blocklistproject.github.io/Lists/malware.txt                                                  2022-02-03 02:05:17  2022-05-20 16:56:45  Malware                                           
   9            1  0,1           https://blocklistproject.github.io/Lists/ads.txt                                                      2022-02-03 02:05:58  2022-02-03 11:30:19  ads                                               
   10           1  0,1           https://raw.githubusercontent.com/kboghdady/youTube_ads_4_pi-hole/master/crowed_list.txt              2022-02-03 02:08:10  2022-02-03 11:30:23  YouTube Ads                                       
   12        0     0,1           https://raw.githubusercontent.com/danielcuthbert/thescum/master/dailyexpress_web.csv                  2022-02-03 04:52:47  2022-05-20 16:57:51  dailyexpress_web                                  
   13        0     0,1           https://raw.githubusercontent.com/danielcuthbert/thescum/master/dailymail_web.csv                     2022-02-03 04:53:15  2022-05-20 16:57:48  dailymail_web                                     
   14        0     0,1           https://raw.githubusercontent.com/danielcuthbert/thescum/master/telegraph_web.csv                     2022-02-03 04:53:48  2022-05-20 16:57:46  telegraph_web                                     
   15        0     0,1           https://raw.githubusercontent.com/danielcuthbert/thescum/master/thesun_web.csv                        2022-02-03 04:54:14  2022-05-20 16:57:42  thesun_web                                        

*** [ DIAGNOSING ]: contents of /etc/pihole

-rw-r--r-- 1 root root 0 Feb  3 01:16 /etc/pihole/custom.list

-rw-r--r-- 1 root root 65 May 20 16:59 /etc/pihole/local.list

-rw-r--r-- 1 root root 234 Feb  3 01:16 /etc/pihole/logrotate
   /var/log/pihole.log {
   	su root root
   	daily
   	copytruncate
   	rotate 5
   	compress
   	delaycompress
   	notifempty
   	nomail
   }
   /var/log/pihole-FTL.log {
   	su root root
   	weekly
   	copytruncate
   	rotate 3
   	compress
   	delaycompress
   	notifempty
   	nomail
   }

-rw-rw-r-- 1 pihole root 163 May 20 17:02 /etc/pihole/pihole-FTL.conf
   CHECK_LOAD=false
   PRIVACYLEVEL=0
   RATE_LIMIT=1000/60

*** [ DIAGNOSING ]: contents of /etc/dnsmasq.d

-rw-r--r-- 1 root root 1.5K May 20 17:02 /etc/dnsmasq.d/01-pihole.conf
   addn-hosts=/etc/pihole/local.list
   addn-hosts=/etc/pihole/custom.list
   localise-queries
   no-resolv
   cache-size=10000
   log-queries
   log-facility=/var/log/pihole.log
   log-async
   server=1.1.1.1
   server=1.0.0.1
   domain-needed
   expand-hosts
   bogus-priv
   local-service
   rev-server=192.168.1.1/24,192.168.1.254
   server=/local/192.168.1.254

-rw-r--r-- 1 root root 2.2K May 20 16:01 /etc/dnsmasq.d/06-rfc6761.conf
   server=/test/
   server=/localhost/
   server=/invalid/
   server=/bind/
   server=/onion/

*** [ DIAGNOSING ]: contents of /etc/lighttpd

-rw-r--r-- 1 root root 0 Feb  3 01:16 /etc/lighttpd/external.conf

-rw-r--r-- 1 root root 3.9K May 20 16:01 /etc/lighttpd/lighttpd.conf
   server.modules = (
       "mod_access",
       "mod_accesslog",
       "mod_auth",
       "mod_expire",
       "mod_redirect",
       "mod_setenv",
       "mod_rewrite"
   )
   server.document-root        = "/var/www/html"
   server.error-handler-404    = "/pihole/index.php"
   server.upload-dirs          = ( "/var/cache/lighttpd/uploads" )
   server.errorlog             = "/var/log/lighttpd/error.log"
   server.pid-file             = "/run/lighttpd.pid"
   server.username             = "www-data"
   server.groupname            = "www-data"
   server.port                 = 80
   accesslog.filename          = "/var/log/lighttpd/access.log"
   accesslog.format            = "%{%s}t|%V|%r|%s|%b"
   server.stream-response-body = 1
   index-file.names            = ( "index.php", "index.html", "index.lighttpd.html" )
   url.access-deny             = ( "~", ".inc", ".md", ".yml", ".ini" )
   static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" )
   mimetype.assign = (
       ".ico"   => "image/x-icon",
       ".jpeg"  => "image/jpeg",
       ".jpg"   => "image/jpeg",
       ".png"   => "image/png",
       ".svg"   => "image/svg+xml",
       ".css"   => "text/css; charset=utf-8",
       ".html"  => "text/html; charset=utf-8",
       ".js"    => "text/javascript; charset=utf-8",
       ".json"  => "application/json; charset=utf-8",
       ".map"   => "application/json; charset=utf-8",
       ".txt"   => "text/plain; charset=utf-8",
       ".eot"   => "application/vnd.ms-fontobject",
       ".otf"   => "font/otf",
       ".ttc"   => "font/collection",
       ".ttf"   => "font/ttf",
       ".woff"  => "font/woff",
       ".woff2" => "font/woff2"
   )
   include_shell "cat external.conf 2>/dev/null"
   include_shell "/usr/share/lighttpd/use-ipv6.pl " + server.port
   include_shell "find /etc/lighttpd/conf-enabled -name '*.conf' -a ! -name 'letsencrypt.conf' -printf 'include \"%p\"
' 2>/dev/null"
   $HTTP["url"] =~ "^/admin/" {
       setenv.add-response-header = (
           "X-Pi-hole" => "The Pi-hole Web interface is working!",
           "X-Frame-Options" => "DENY"
       )
   }
   $HTTP["url"] =~ "^/admin/\.(.*)" {
       url.access-deny = ("")
   }
   $HTTP["url"] =~ "/(teleporter|api_token)\.php$" {
       $HTTP["referer"] =~ "/admin/settings\.php" {
           setenv.add-response-header = ( "X-Frame-Options" => "SAMEORIGIN" )
       }
   }
   expire.url = ( "" => "access plus 0 seconds" )

*** [ DIAGNOSING ]: contents of /etc/cron.d

-rw-r--r-- 1 root root 1.8K May 20 16:01 /etc/cron.d/pihole
   26 3   * * 7   root    PATH="$PATH:/usr/sbin:/usr/local/bin/" pihole updateGravity >/var/log/pihole_updateGravity.log || cat /var/log/pihole_updateGravity.log
   00 00   * * *   root    PATH="$PATH:/usr/sbin:/usr/local/bin/" pihole flush once quiet
   @reboot root /usr/sbin/logrotate --state /var/lib/logrotate/pihole /etc/pihole/logrotate
   */10 *  * * *   root    PATH="$PATH:/usr/sbin:/usr/local/bin/" pihole updatechecker local
   6 13  * * *   root    PATH="$PATH:/usr/sbin:/usr/local/bin/" pihole updatechecker remote
   @reboot root    PATH="$PATH:/usr/sbin:/usr/local/bin/" pihole updatechecker remote reboot

*** [ DIAGNOSING ]: contents of /var/log/lighttpd

-rw-r--r-- 1 www-data www-data 298 May 20 16:02 /var/log/lighttpd/error.log
   -----head of error.log------
   2022-05-20 13:39:42: server.c.1787) logfiles cycled UID = 0 PID = 778
   2022-05-20 16:02:01: server.c.1976) server stopped by UID = 0 PID = 1
   2022-05-20 16:02:07: server.c.1513) server started (lighttpd/1.4.59)
   2022-05-20 16:02:07: configfile.c.1142) WARNING: unknown config-key: alias.url (ignored)

   -----tail of error.log------
   2022-05-20 13:39:42: server.c.1787) logfiles cycled UID = 0 PID = 778
   2022-05-20 16:02:01: server.c.1976) server stopped by UID = 0 PID = 1
   2022-05-20 16:02:07: server.c.1513) server started (lighttpd/1.4.59)
   2022-05-20 16:02:07: configfile.c.1142) WARNING: unknown config-key: alias.url (ignored)

*** [ DIAGNOSING ]: contents of /var/log

-rw-r--r-- 1 pihole pihole 6.1K May 20 17:02 /var/log/pihole-FTL.log
   -----head of pihole-FTL.log------
   [2022-05-20 17:02:10.801 10515M] Using log file /var/log/pihole-FTL.log
   [2022-05-20 17:02:10.802 10515M] ########## FTL started on raspberrypi! ##########
   [2022-05-20 17:02:10.803 10515M] FTL branch: master
   [2022-05-20 17:02:10.803 10515M] FTL version: v5.15
   [2022-05-20 17:02:10.805 10515M] FTL commit: 4bb0bfe
   [2022-05-20 17:02:10.806 10515M] FTL date: 2022-04-20 19:35:19 +0100
   [2022-05-20 17:02:10.806 10515M] FTL user: pihole
   [2022-05-20 17:02:10.808 10515M] Compiled for armv6hf (compiled on CI) using arm-linux-gnueabihf-gcc (crosstool-NG crosstool-ng-1.22.0-88-g8460611) 4.9.3
   [2022-05-20 17:02:10.811 10515M] Creating mutex
   [2022-05-20 17:02:10.812 10515M] Creating mutex
   [2022-05-20 17:02:10.827 10515M] Starting config file parsing (/etc/pihole/pihole-FTL.conf)
   [2022-05-20 17:02:10.828 10515M]    SOCKET_LISTENING: only local
   [2022-05-20 17:02:10.828 10515M]    AAAA_QUERY_ANALYSIS: Show AAAA queries
   [2022-05-20 17:02:10.829 10515M]    MAXDBDAYS: max age for stored queries is 365 days
   [2022-05-20 17:02:10.829 10515M]    RESOLVE_IPV6: Resolve IPv6 addresses
   [2022-05-20 17:02:10.830 10515M]    RESOLVE_IPV4: Resolve IPv4 addresses
   [2022-05-20 17:02:10.830 10515M]    DBINTERVAL: saving to DB file every minute
   [2022-05-20 17:02:10.830 10515M]    DBFILE: Using /etc/pihole/pihole-FTL.db
   [2022-05-20 17:02:10.831 10515M]    MAXLOGAGE: Importing up to 24.0 hours of log data
   [2022-05-20 17:02:10.831 10515M]    PRIVACYLEVEL: Set to 0
   [2022-05-20 17:02:10.832 10515M]    IGNORE_LOCALHOST: Show queries from localhost
   [2022-05-20 17:02:10.832 10515M]    BLOCKINGMODE: Null IPs for blocked domains
   [2022-05-20 17:02:10.833 10515M]    ANALYZE_ONLY_A_AND_AAAA: Disabled. Analyzing all queries
   [2022-05-20 17:02:10.833 10515M]    DBIMPORT: Importing history from database
   [2022-05-20 17:02:10.834 10515M]    PIDFILE: Using /run/pihole-FTL.pid
   [2022-05-20 17:02:10.834 10515M]    PORTFILE: Using /run/pihole-FTL.port
   [2022-05-20 17:02:10.835 10515M]    SOCKETFILE: Using /run/pihole/FTL.sock
   [2022-05-20 17:02:10.836 10515M]    SETUPVARSFILE: Using /etc/pihole/setupVars.conf
   [2022-05-20 17:02:10.836 10515M]    MACVENDORDB: Using /etc/pihole/macvendor.db
   [2022-05-20 17:02:10.837 10515M]    GRAVITYDB: Using /etc/pihole/gravity.db
   [2022-05-20 17:02:10.837 10515M]    PARSE_ARP_CACHE: Active
   [2022-05-20 17:02:10.838 10515M]    CNAME_DEEP_INSPECT: Active
   [2022-05-20 17:02:10.838 10515M]    DELAY_STARTUP: No delay requested.
   [2022-05-20 17:02:10.840 10515M]    BLOCK_ESNI: Enabled, blocking _esni.{blocked domain}
   [2022-05-20 17:02:10.840 10515M]    NICE: Set process niceness to -10 (default)

   -----tail of pihole-FTL.log------
   [2022-05-20 17:02:10.856 10515M]    PIHOLE_PTR: internal PTR generation enabled (pi.hole)
   [2022-05-20 17:02:10.857 10515M]    ADDR2LINE: Enabled
   [2022-05-20 17:02:10.858 10515M]    REPLY_WHEN_BUSY: Permit queries when the database is busy
   [2022-05-20 17:02:10.859 10515M]    BLOCK_TTL: 2 seconds
   [2022-05-20 17:02:10.859 10515M]    BLOCK_ICLOUD_PR: Enabled
   [2022-05-20 17:02:10.860 10515M]    CHECK_LOAD: Disabled
   [2022-05-20 17:02:10.861 10515M]    CHECK_SHMEM: Warning if shared-memory usage exceeds 90%
   [2022-05-20 17:02:10.864 10515M]    CHECK_DISK: Warning if certain disk usage exceeds 90%
   [2022-05-20 17:02:10.867 10515M] Finished config file parsing
   [2022-05-20 17:02:10.884 10515M] Database version is 12
   [2022-05-20 17:02:10.884 10515M] Resizing "FTL-strings" from 40960 to (81920 * 1) == 81920 (/dev/shm: 1.1MB used, 225.3MB total, FTL uses 1.1MB)
   [2022-05-20 17:02:10.888 10515M] Imported 0 alias-clients
   [2022-05-20 17:02:10.889 10515M] Database successfully initialized
   [2022-05-20 17:02:10.962 10515M] New upstream server: 1.1.1.1:53 (0/256)
   [2022-05-20 17:02:11.150 10515M] New upstream server: 1.0.0.1:53 (1/256)
   [2022-05-20 17:02:11.186 10515M] Imported 1872 queries from the long-term database
   [2022-05-20 17:02:11.188 10515M]  -> Total DNS queries: 1872
   [2022-05-20 17:02:11.188 10515M]  -> Cached DNS queries: 44
   [2022-05-20 17:02:11.189 10515M]  -> Forwarded DNS queries: 418
   [2022-05-20 17:02:11.189 10515M]  -> Blocked DNS queries: 1401
   [2022-05-20 17:02:11.189 10515M]  -> Unknown DNS queries: 0
   [2022-05-20 17:02:11.189 10515M]  -> Unique domains: 105
   [2022-05-20 17:02:11.190 10515M]  -> Unique clients: 2
   [2022-05-20 17:02:11.190 10515M]  -> Known forward destinations: 2
   [2022-05-20 17:02:11.190 10515M] Successfully accessed setupVars.conf
   [2022-05-20 17:02:11.208 10515M] listening on 0.0.0.0 port 53
   [2022-05-20 17:02:11.208 10515M] listening on :: port 53
   [2022-05-20 17:02:11.274 10518M] PID of FTL process: 10518
   [2022-05-20 17:02:11.281 10518M] INFO: FTL is running as user pihole (UID 999)
   [2022-05-20 17:02:11.319 10518/T10519] Listening on port 4711 for incoming IPv4 telnet connections
   [2022-05-20 17:02:11.331 10518/T10521] Listening on Unix socket
   [2022-05-20 17:02:11.356 10518/T10520] Listening on port 4711 for incoming IPv6 telnet connections
   [2022-05-20 17:02:11.376 10518M] Reloading DNS cache
   [2022-05-20 17:02:11.538 10518/T10522] Compiled 0 whitelist and 0 blacklist regex filters for 2 clients in 42.0 msec
   [2022-05-20 17:02:11.539 10518/T10522] Blocking status is enabled

*** [ DIAGNOSING ]: contents of /dev/shm
-rw------- 1 pihole pihole 668K May 20 17:04 /dev/shm/FTL-clients
-rw------- 1 pihole pihole 240 May 20 17:02 /dev/shm/FTL-counters
-rw------- 1 pihole pihole 4.0K May 20 17:02 /dev/shm/FTL-dns-cache
-rw------- 1 pihole pihole 20K May 20 17:02 /dev/shm/FTL-domains
-rw------- 1 pihole pihole 56 May 20 17:02 /dev/shm/FTL-lock
-rw------- 1 pihole pihole 12K May 20 17:02 /dev/shm/FTL-overTime
-rw------- 1 pihole pihole 4.0K May 20 17:02 /dev/shm/FTL-per-client-regex
-rw------- 1 pihole pihole 176K May 20 17:02 /dev/shm/FTL-queries
-rw------- 1 pihole pihole 12 May 20 17:02 /dev/shm/FTL-settings
-rw------- 1 pihole pihole 80K May 20 17:02 /dev/shm/FTL-strings
-rw------- 1 pihole pihole 156K May 20 17:02 /dev/shm/FTL-upstreams

*** [ DIAGNOSING ]: contents of /etc

-rw-r--r-- 1 root root 24 May 20 16:01 /etc/dnsmasq.conf
   conf-dir=/etc/dnsmasq.d

-rw-r--r-- 1 root root 91 Feb 14 15:02 /etc/resolv.conf
   search home
   nameserver fe80::c6e5:32ff:fe7d:9133%enxb827eb01a50a

*** [ DIAGNOSING ]: Pi-hole diagnosis messages

*** [ DIAGNOSING ]: Locale
    LANG=

*** [ DIAGNOSING ]: Pi-hole log
-rw-r--r-- 1 pihole pihole 6.1K May 20 17:04 /var/log/pihole.log
   -----head of pihole.log------
   May 20 17:02:11 dnsmasq[10518]: started, version pi-hole-2.87test8 cachesize 10000
   May 20 17:02:11 dnsmasq[10518]: DNS service limited to local subnets
   May 20 17:02:11 dnsmasq[10518]: compile time options: IPv6 GNU-getopt no-DBus no-UBus no-i18n IDN DHCP DHCPv6 Lua TFTP no-conntrack ipset no-nftset auth cryptohash DNSSEC loop-detect inotify dumpfile
   May 20 17:02:11 dnsmasq[10518]: using nameserver 1.1.1.1#53
   May 20 17:02:11 dnsmasq[10518]: using nameserver 1.0.0.1#53
   May 20 17:02:11 dnsmasq[10518]: using nameserver 192.168.1.254#53 for domain 1.168.192.in-addr.arpa 
   May 20 17:02:11 dnsmasq[10518]: using nameserver 192.168.1.254#53 for domain local 
   May 20 17:02:11 dnsmasq[10518]: using only locally-known addresses for onion
   May 20 17:02:11 dnsmasq[10518]: using only locally-known addresses for bind
   May 20 17:02:11 dnsmasq[10518]: using only locally-known addresses for invalid
   May 20 17:02:11 dnsmasq[10518]: using only locally-known addresses for localhost
   May 20 17:02:11 dnsmasq[10518]: using only locally-known addresses for test
   May 20 17:02:11 dnsmasq[10518]: read /etc/hosts - 12 addresses
   May 20 17:02:11 dnsmasq[10518]: read /etc/pihole/custom.list - 0 addresses
   May 20 17:02:11 dnsmasq[10518]: read /etc/pihole/local.list - 0 addresses
   May 20 17:02:54 dnsmasq[10518]: query[AAAA] b-graph.facebook.com from 192.168.1.5
   May 20 17:02:54 dnsmasq[10518]: forwarded b-graph.facebook.com to 1.1.1.1
   May 20 17:02:54 dnsmasq[10518]: forwarded b-graph.facebook.com to 1.0.0.1
   May 20 17:02:54 dnsmasq[10518]: query[A] b-graph.facebook.com from 192.168.1.5
   May 20 17:02:55 dnsmasq[10518]: forwarded b-graph.facebook.com to 1.1.1.1

   -----tail of pihole.log------
   May 20 17:03:44 dnsmasq[10518]: reply graph.facebook.com is <CNAME>
   May 20 17:03:44 dnsmasq[10518]: reply api.facebook.com is <CNAME>
   May 20 17:03:44 dnsmasq[10518]: reply star.c10r.facebook.com is 2a03:2880:f058:11:face:b00c:0:2
   May 20 17:03:44 dnsmasq[10518]: reply graph.facebook.com is <CNAME>
   May 20 17:03:44 dnsmasq[10518]: reply api.facebook.com is <CNAME>
   May 20 17:03:44 dnsmasq[10518]: reply star.c10r.facebook.com is 157.240.221.18
   May 20 17:03:52 dnsmasq[10518]: query[AAAA] s.youtube.com from 192.168.1.5
   May 20 17:03:52 dnsmasq[10518]: gravity blocked s.youtube.com is ::
   May 20 17:03:52 dnsmasq[10518]: query[A] s.youtube.com from 192.168.1.5
   May 20 17:03:52 dnsmasq[10518]: gravity blocked s.youtube.com is 0.0.0.0
   May 20 17:04:31 dnsmasq[10518]: query[A] us.clickintext.net from 127.0.0.1
   May 20 17:04:31 dnsmasq[10518]: gravity blocked us.clickintext.net is 0.0.0.0
   May 20 17:04:32 dnsmasq[10518]: query[A] us.clickintext.net from 192.168.1.200
   May 20 17:04:32 dnsmasq[10518]: gravity blocked us.clickintext.net is 0.0.0.0
   May 20 17:04:53 dnsmasq[10518]: query[AAAA] www.d2v81tfe2x14j0.cloudfront.net from ::1
   May 20 17:04:53 dnsmasq[10518]: gravity blocked www.d2v81tfe2x14j0.cloudfront.net is ::
   May 20 17:04:54 dnsmasq[10518]: query[AAAA] www.d2v81tfe2x14j0.cloudfront.net from 2a00:23c4:e1c5:8a01:5f86:4412:d6d6:a8ff
   May 20 17:04:54 dnsmasq[10518]: gravity blocked www.d2v81tfe2x14j0.cloudfront.net is ::
   May 20 17:04:54 dnsmasq[10518]: query[AAAA] www.d2v81tfe2x14j0.cloudfront.net from fe80::322d:fb7d:805f:475d
   May 20 17:04:54 dnsmasq[10518]: gravity blocked www.d2v81tfe2x14j0.cloudfront.net is ::

Why is this happening ?

What are the outputs of the following from the Pi terminal:

ls -lha -R /etc/pihole

pihole -g

ls output is

ls -lha -R /etc/pihole
/etc/pihole:
total 111M
drwxrwxr-x   3 pihole pihole 4.0K May 20 18:32 .
drwxr-xr-x 117 root   root    12K May 20 16:01 ..
-rw-r--r--   1 root   root     65 May 20 16:00 adlists.list
-rw-r--r--   1 root   root      0 Feb  3 01:16 custom.list
-rw-r--r--   1 pihole pihole    0 Feb 14 15:02 dhcp.leases
-rw-r--r--   1 root   root    651 May 20 16:01 dns-servers.conf
-rw-r--r--   1 root   root     17 May 20 13:39 GitHubVersions
-rw-rw-r--   1 pihole pihole  61M May 20 16:57 gravity.db
-rw-r--r--   1 root   root    12M May 20 16:59 gravity.db_temp
-rw-r--r--   1 root   root   1.2K May 20 16:02 install.log
-rw-r--r--   1 root   root   210K May 20 16:59 list.10.raw.githubusercontent.com.domains
-rw-r--r--   1 root   root     96 May 20 16:10 list.10.raw.githubusercontent.com.domains.sha1
-rw-r--r--   1 root   root   6.2K May 20 16:49 list.12.raw.githubusercontent.com.domains
-rw-r--r--   1 root   root     96 May 20 16:10 list.12.raw.githubusercontent.com.domains.sha1
-rw-r--r--   1 root   root   229K May 20 16:49 list.13.raw.githubusercontent.com.domains
-rw-r--r--   1 root   root     96 May 20 16:11 list.13.raw.githubusercontent.com.domains.sha1
-rw-r--r--   1 root   root    80K May 20 16:49 list.14.raw.githubusercontent.com.domains
-rw-r--r--   1 root   root     96 May 20 16:11 list.14.raw.githubusercontent.com.domains.sha1
-rw-r--r--   1 root   root   6.9K May 20 16:49 list.15.raw.githubusercontent.com.domains
-rw-r--r--   1 root   root     96 May 20 16:11 list.15.raw.githubusercontent.com.domains.sha1
-rw-r--r--   1 root   root   2.5M May 20 16:58 list.1.raw.githubusercontent.com.domains
-rw-r--r--   1 root   root     95 May 20 16:04 list.1.raw.githubusercontent.com.domains.sha1
-rw-r--r--   1 root   root   194K May 20 16:04 list.2.blocklistproject.github.io.domains
-rw-r--r--   1 root   root     96 May 20 16:04 list.2.blocklistproject.github.io.domains.sha1
-rw-r--r--   1 root   root    24K May 20 16:04 list.3.blocklistproject.github.io.domains
-rw-r--r--   1 root   root     96 May 20 16:04 list.3.blocklistproject.github.io.domains.sha1
-rw-r--r--   1 root   root   1.7M May 20 16:04 list.4.blocklistproject.github.io.domains
-rw-r--r--   1 root   root     96 May 20 16:05 list.4.blocklistproject.github.io.domains.sha1
-rw-r--r--   1 root   root    51K May 20 16:05 list.5.blocklistproject.github.io.domains
-rw-r--r--   1 root   root     96 May 20 16:05 list.5.blocklistproject.github.io.domains.sha1
-rw-r--r--   1 root   root    38K May 20 16:05 list.6.blocklistproject.github.io.domains
-rw-r--r--   1 root   root     96 May 20 16:05 list.6.blocklistproject.github.io.domains.sha1
-rw-r--r--   1 root   root   4.0M May 20 16:05 list.7.blocklistproject.github.io.domains
-rw-r--r--   1 root   root     96 May 20 16:06 list.7.blocklistproject.github.io.domains.sha1
-rw-r--r--   1 root   root   9.0M May 20 16:07 list.8.blocklistproject.github.io.domains
-rw-r--r--   1 root   root     96 May 20 16:09 list.8.blocklistproject.github.io.domains.sha1
-rw-r--r--   1 root   root   3.4M May 20 16:09 list.9.blocklistproject.github.io.domains
-rw-r--r--   1 root   root     96 May 20 16:10 list.9.blocklistproject.github.io.domains.sha1
-rw-r--r--   1 root   root     20 May 20 18:30 localbranches
-rw-r--r--   1 root   root     65 May 20 16:59 local.list
-rw-r--r--   1 root   root     41 May 20 18:30 localversions
-rw-r--r--   1 root   root    234 Feb  3 01:16 logrotate
-rw-r--r--   1 pihole pihole 2.7M May 20 16:01 macvendor.db
drwxr-xr-x   2 root   root   4.0K Feb  3 01:17 migration_backup
-rw-rw-r--   1 pihole root    163 May 20 17:02 pihole-FTL.conf
-rw-rw-r--   1 pihole pihole  15M May 20 18:32 pihole-FTL.db
-rw-r--r--   1 root   root    546 May 20 17:02 setupVars.conf
-rw-r--r--   1 root   root    547 Feb  8 14:36 setupVars.conf.update.bak

/etc/pihole/migration_backup:
total 12K
drwxr-xr-x 2 root   root   4.0K Feb  3 01:17 .
drwxrwxr-x 3 pihole pihole 4.0K May 20 18:32 ..
-rw-r--r-- 1 root   root     65 Feb  3 01:06 adlists.list

and output of pihole -g is:

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] Analyzed 115063 domains
  [i] List stayed unchanged

  [i] Target: https://blocklistproject.github.io/Lists/tracking.txt
  [✓] Status: No changes detected
  [i] Analyzed 15050 domains

  [i] Target: https://blocklistproject.github.io/Lists/scam.txt
  [✓] Status: No changes detected
  [i] Analyzed 1265 domains

  [i] Target: https://blocklistproject.github.io/Lists/redirect.txt
  [✓] Status: No changes detected
  [i] Analyzed 108674 domains

  [i] Target: https://blocklistproject.github.io/Lists/ransomware.txt
  [✓] Status: No changes detected
  [i] Analyzed 1904 domains

  [i] Target: https://blocklistproject.github.io/Lists/ads.txt
  [✓] Status: No changes detected
  [i] Analyzed 154559 domains

  [i] Target: https://raw.githubusercontent.com/kboghdady/youTube_ads_4_pi-hole/master/crowed_list.txt
  [✓] Status: Retrieval successful
  [i] Analyzed 6290 domains
  [i] List stayed unchanged

  [✓] Creating new gravity databases
  [✓] Storing downloaded domains in new gravity database
  [i] Building tree...
  [✗] Unable to build gravity tree in /etc/pihole/gravity.db_temp
  Error: stepping, database or disk is full (13)
   [✗] Unable to create database. Please contact support.

The gravity tree is partially built in temporary memory space as this is typically faster. The error message comes from SQLite3's core and may very well point to a lack of free temporary memory. This can either be RAM or disk space.

What looks somewhat suspicious is

but it may mean nothing.

What is the output of

df -h /tmp

?

df -h /tmp
Filesystem      Size  Used Avail Use% Mounted on
/dev/root       7.0G  3.3G  3.4G  50% /

I Fixed it....
Maybe the diagnostics could test for this fault.

I recently moved house and forgot i was attempting to make the RPI not use the sd card for logging as much before the move (4monts ago)

I had turned off swap and messed with the fstab see below

I commented out my changes and ran dphys-swapfile swap on

but I think the swap will not persist across reboots as no entry for it in fstab. Unless the swap is loaded in a different fashion now.

cat /etc/fstab 
proc            /proc           proc    defaults          0       0
#PARTUUID=65459422-01  /boot           vfat    ro,noatime          0       2
PARTUUID=65459422-01  /boot           vfat    rw,noatime          0       2

PARTUUID=65459422-02  /               ext4    rw,noatime          0       1
#none                  /var/log        tmpfs   size=200M,noatime   0       0
#none                  /var/tmp        tmpfs   size=1M,noatime   0       0
none                  /var/tmp        tmpfs   size=500M,noatime   0       0

#a swapfile is not a swap partition, no line here
#use  dphys-swapfile swap[on|off]  for that