Pihole DNS resolution not available | cannot update gravity

i had pihole installed on rpi3b and it worked fine for a while
then i installed it on rpi4 and it works "good",
web interface works but can't add adlist blocklist.

when i try to update gravity it gives out this message
[✗] DNS resolution is currently unavailable
[✗] DNS resolution is not available

I had generated a debug file and it says that ports are already in use and that 2 daemons also are not working ( mabye bc of the ports)
[✗] lighttpd daemon is inactive
[✗] pihole-FTL daemon is inactive

then i had removed pihole on the rpi3b with the command:
sudo rm -rf /etc/.pihole /etc/pihole /opt/pihole /usr/bin/pihole-FTL /usr/local/bin/pihole /var/www/html/admin

generated another debug file and then saw that the ports were still in use and the 2 daemons still didn't work.
I have no idea on why the ports are still blocked and how to "unblock" them.

I removed the comment from /etc/resolvconf.conf.
I put at /etc/resolv.conf that it points to 127.0.0.1 but
this does nothing.

even though pihole "doesn't work", queries are logged and there are 4 clients on it.

hope someone is able to help me work this out, thanks in advance
(also excuse my english, it is not my first language)

my debug file:

This process collects information from your Pi-hole, and optionally uploads it to a unique and random directory on tricorder.pi-hole.net.

The intent of this script is to allow users to self-diagnose their installations.  This is accomplished by running tests against our software and providing the user with links to FAQ articles when a problem is detected.  Since we are a small team and Pi-hole has been growing steadily, it is our hope that this will help us spend more time on development.

NOTE: All log files auto-delete after 48 hours and ONLY the Pi-hole developers can access your data via the given token. We have taken these extra steps to secure your data and will work to further reduce any personal information gathered.

*** [ INITIALIZING ]
[i] 2022-08-09:23:55:44 debug log has been initialized.
[i] System has been running for 0 days, 0 hours, 28 minutes

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

*** [ DIAGNOSING ]: Core version
[i] Core: v5.11.4 (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.11.4-0-gaefbe1f

*** [ DIAGNOSING ]: Web version
[i] Web: v5.13 (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.13-0-g1714b08

*** [ DIAGNOSING ]: FTL version
[✓] FTL: v5.16.1 (https://discourse.pi-hole.net/t/how-do-i-update-pi-hole/249)

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

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

*** [ DIAGNOSING ]: Operating system
[i] dig return code:  10
[i] dig response:  dig: couldn't get address for 'ns1.pi-hole.net': failure
[✗] Distro:  Debian
[✗] Error: Debian is not a supported distro (https://docs.pi-hole.net/main/prerequisites/)

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

*** [ DIAGNOSING ]: FirewallD
[✓] Firewalld service not detected

*** [ DIAGNOSING ]: Processor
[✓] armv7l

*** [ DIAGNOSING ]: Disk usage
   Filesystem      Size  Used Avail Use% Mounted on
   overlay          30G  4.3G   24G  16% /
   tmpfs            64M     0   64M   0% /dev
   shm              64M  1.3M   63M   2% /dev/shm
   /dev/root        30G  4.3G   24G  16% /etc/pihole
   tmpfs           1.9G     0  1.9G   0% /proc/asound
   tmpfs           1.9G     0  1.9G   0% /sys/firmware

*** [ 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
   7: eth0@if2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default 
       link/ether 02:42:c0:a8:02:37 brd ff:ff:ff:ff:ff:ff link-netnsid 0
       inet 192.168.2.55/24 brd 192.168.2.255 scope global eth0
          valid_lft forever preferred_lft forever

*** [ DIAGNOSING ]: Network routing table
   default via 192.168.2.254 dev eth0 
   192.168.2.0/24 dev eth0 proto kernel scope link src 192.168.2.55 

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

[✗] No IPv6 address(es) found on the eth0 interface.

[i] Default IPv4 gateway: 192.168.2.254
   * Pinging 192.168.2.254...
[✗] Gateway did not respond. (https://discourse.pi-hole.net/t/why-is-a-default-gateway-important-for-pi-hole/3546)


*** [ DIAGNOSING ]: Ports in use
    udp:0.0.0.0:39814 is in use by <unknown>
    udp:127.0.0.11:41507 is in use by <unknown>
[✗] udp:0.0.0.0:53 is in use by  (https://docs.pi-hole.net/main/prerequisites/#ports)
[✗] udp:*:53 is in use by  (https://docs.pi-hole.net/main/prerequisites/#ports)
    tcp:127.0.0.11:34135 is in use by <unknown>
[✗] tcp:127.0.0.1:4711 is in use by  (https://docs.pi-hole.net/main/prerequisites/#ports)
[✗] tcp:0.0.0.0:80 is in use by  (https://docs.pi-hole.net/main/prerequisites/#ports)
[✗] tcp:0.0.0.0:53 is in use by  (https://docs.pi-hole.net/main/prerequisites/#ports)
[✗] tcp:[::]:80 is in use by  (https://docs.pi-hole.net/main/prerequisites/#ports)
[✗] tcp:[::]:53 is in use by  (https://docs.pi-hole.net/main/prerequisites/#ports)

*** [ DIAGNOSING ]: Name resolution (IPv4) using a random blocked domain and a known ad-serving domain
[✗] Failed to resolve  on lo (127.0.0.1)
[✗] Failed to resolve  on eth0 (192.168.2.55)
[✗] Failed to resolve doubleclick.com 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
[✓] No IPv6 address available on lo
[✓] No IPv6 address available on eth0
[✗] Failed to resolve doubleclick.com 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 548 bytes from eth0:192.168.2.254
     Offered IP address: 192.168.2.40
     Server IP address: N/A
     Relay-agent IP address: N/A
     BOOTP server: Experiabox-V10
     BOOTP file: (empty)
     DHCP options:
      Message type: DHCPOFFER (2)
      netmask: 255.255.255.0
      router: 192.168.2.254
      dns-server: 192.168.2.55
      dns-server: 192.168.2.254
      domain-name: "home"
      server-identifier: 192.168.2.254
      lease-time: 86400 ( 1d )
      broadcast: 192.168.2.255
         --- end of options ---
    
   DHCP packets received on interface lo: 0
   DHCP packets received on interface eth0: 1

*** [ DIAGNOSING ]: Pi-hole processes
[✗] lighttpd daemon is inactive
[✗] pihole-FTL daemon is inactive

*** [ DIAGNOSING ]: Pi-hole-FTL full status
[i] systemctl:  command not found

*** [ DIAGNOSING ]: Setup variables
    INSTALL_WEB_SERVER=true
    INSTALL_WEB_INTERFACE=true
    PIHOLE_INTERFACE=eth0
    QUERY_LOGGING=true
    DNSMASQ_LISTENING=single
    DNS_FQDN_REQUIRED=false
    DNS_BOGUS_PRIV=false
    DNSSEC=false
    REV_SERVER=false
    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: Tue, 09 Aug 2022 21:56:12 GMT
Cache-Control: max-age=0
Date: Tue, 09 Aug 2022 21:56:12 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 92K Aug  9 22:23 /etc/pihole/gravity.db

*** [ DIAGNOSING ]: Info table
   property              value                                   
   --------------------  ----------------------------------------
   version               15                                      
   Last gravity run finished at: 

   ----- First 10 Gravity Domains -----


*** [ DIAGNOSING ]: Groups
   id    enabled  name                                                date_added           date_modified        description                                       
   ----  -------  --------------------------------------------------  -------------------  -------------------  --------------------------------------------------
   0           1  Default                                             2022-08-09 22:23:30  2022-08-09 22:23:30                                                    

*** [ DIAGNOSING ]: Domainlist (0/1 = exact white-/blacklist, 2/3 = regex white-/blacklist)
   id     type  enabled  group_ids     domain                                                                                                date_added           date_modified        comment                                           
   -----  ----  -------  ------------  ----------------------------------------------------------------------------------------------------  -------------------  -------------------  --------------------------------------------------
   1       1          1  0             prod-eu.naturallanguageeditorservice.osi.office.net.akadns.net                                        2021-11-14 22:55:51  2022-08-09 22:23:28  Added from Query Log                              
   3       1          1  0             tile-service.weather.microsoft.com                                                                    2021-11-14 23:08:56  2022-08-09 22:23:28  Added from Query Log                              
   4       1          1  0             bigdata.ssp.samsung.com                                                                               2021-11-14 23:09:02  2022-08-09 22:23:28  Added from Query Log                              
   5       1          1  0             app.chat.xiaomi.net                                                                                   2021-11-14 23:09:06  2022-08-09 22:23:28  Added from Query Log                              
   6       1          1  0             appmetrica.yandex.com                                                                                 2021-11-14 23:09:12  2022-08-09 22:23:28  Added from Query Log                              
   7       1          1  0             browser.sentry-cdn.com                                                                                2021-11-14 23:09:19  2022-08-09 22:23:28  Added from Query Log                              
   8       1          1  0             graph.facebook.com                                                                                    2021-11-17 23:35:50  2022-08-09 22:23:28  Added from Query Log                              
   11      1          1  0             prod1.naturallanguageeditorservice.osi.office.net.akadns.net                                          2021-11-25 22:53:28  2022-08-09 22:23:28                                                    
   12      1          1  0             browser.events.data.trafficmanager.net                                                                2021-11-25 22:53:42  2022-08-09 22:23:28                                                    
   13      1          1  0             events.api.serifservices.com                                                                          2021-11-29 20:48:44  2022-08-09 22:23:28  Added from Query Log                              
   14      1          1  0             fcmconnection.googleapis.com                                                                          2021-11-29 20:48:52  2022-08-09 22:23:28  Added from Query Log                              

*** [ DIAGNOSING ]: Clients

*** [ DIAGNOSING ]: Adlists
   id     enabled  group_ids     address                                                                                               date_added           date_modified        comment                                           
   -----  -------  ------------  ----------------------------------------------------------------------------------------------------  -------------------  -------------------  --------------------------------------------------
   1            1  0             https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts                                      2021-11-14 20:40:18  2022-08-09 22:23:27  Migrated from /etc/pihole/adlists.list            
   
   2            1  0             https://github.com/deathbybandaid/wally3k-adlists.list/blob/135ee67e30dfd479d2d2f29d26ae121d78001646/adlists.list                       2021-11-28 12:26:12  2022-08-09 22:23:27                                                    
   
   3            1  0             https://dbl.oisd.nl                                                                                   2021-11-28 12:26:22  2022-08-09 22:23:27                                                    
   
   4            1  0             https://pastebin.com/raw/a1TPEPfP                                                                     2021-11-28 12:28:29  2022-08-09 22:23:27                                                    
   
   6            1  0             https://s3.amazonaws.com/lists.disconnect.me/simple_tracking.txt                                      2021-11-28 12:28:41  2022-08-09 22:23:27                                                    
   
   7            1  0             http://sysctl.org/cameleon/hosts                                                                      2021-11-28 12:28:47  2022-08-09 22:23:27                                                    
   
   8            1  0             https://github.com/Ewpratten/youtube_ad_blocklist/blob/ccdf0ecebebf99e3959da2be77268a0851e9167e/blocklist.txt                           2021-11-28 12:31:53  2022-08-09 22:23:27                                                    
   
   9            1  0             https://gist.githubusercontent.com/anudeepND/adac7982307fec6ee23605e281a57f1a/raw/5b8582b906a9497624  2021-11-28 12:32:01  2022-08-09 22:23:27                                                    
                                 c3f3187a49ebc23a9cf2fb/Test.txt                                                                                                                                                                   
   
   10           1  0             https://blocklistproject.github.io/Lists/ads.txt                                                      2021-11-28 12:32:08  2022-08-09 22:23:27                                                    
   
   11           1  0             https://raw.githubusercontent.com/PolishFiltersTeam/KADhosts/master/KADhosts.txt                      2021-11-28 12:35:50  2022-08-09 22:23:27                                                    

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

-rw-r--r-- 1 root root 0 Aug  9 22:05 /etc/pihole/custom.list

-rw-rw-r-- 1 pihole root 156 Aug  9 23:27 /etc/pihole/pihole-FTL.conf
   REPLY_ADDR4=192.168.2.55
   RATE_LIMIT=1000/30

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

-rw-r--r-- 1 root root 1.4K Aug  9 23:27 /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/pihole.log
   log-async
   server=1.1.1.1
   server=1.0.0.1
   interface=eth0

-rw-r--r-- 1 root root 2.2K Aug  9 23:27 /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 Jul 10 15:10 /etc/lighttpd/external.conf

-rw-r--r-- 1 root root 3.9K Aug  9 23:27 /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-pihole.log"
   server.pid-file             = "/run/lighttpd.pid"
   server.username             = "www-data"
   server.groupname            = "www-data"
   server.port                 = 80
   accesslog.filename          = "/var/log/lighttpd/access-pihole.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 Jul 10 15:10 /etc/cron.d/pihole
   24 3   * * 7   root    PATH="$PATH:/usr/sbin:/usr/local/bin/" pihole updateGravity >/var/log/pihole/pihole_updateGravity.log || cat /var/log/pihole/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
   1 18  * * *   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 618 Aug  9 23:27 /var/log/lighttpd/error-pihole.log
   -----head of error-pihole.log------
   2022-08-09 22:06:24: server.c.1513) server started (lighttpd/1.4.59)
   2022-08-09 22:37:20: server.c.1513) server started (lighttpd/1.4.59)
   2022-08-09 22:37:20: gw_backend.c.475) unlink /run/lighttpd/php.socket-0 after connect failed: Connection refused
   2022-08-09 22:42:09: server.c.1513) server started (lighttpd/1.4.59)
   2022-08-09 22:42:09: gw_backend.c.475) unlink /run/lighttpd/php.socket-0 after connect failed: Connection refused
   2022-08-09 23:27:48: server.c.1513) server started (lighttpd/1.4.59)
   2022-08-09 23:27:48: gw_backend.c.475) unlink /run/lighttpd/php.socket-0 after connect failed: Connection refused

   -----tail of error-pihole.log------
   2022-08-09 22:06:24: server.c.1513) server started (lighttpd/1.4.59)
   2022-08-09 22:37:20: server.c.1513) server started (lighttpd/1.4.59)
   2022-08-09 22:37:20: gw_backend.c.475) unlink /run/lighttpd/php.socket-0 after connect failed: Connection refused
   2022-08-09 22:42:09: server.c.1513) server started (lighttpd/1.4.59)
   2022-08-09 22:42:09: gw_backend.c.475) unlink /run/lighttpd/php.socket-0 after connect failed: Connection refused
   2022-08-09 23:27:48: server.c.1513) server started (lighttpd/1.4.59)
   2022-08-09 23:27:48: gw_backend.c.475) unlink /run/lighttpd/php.socket-0 after connect failed: Connection refused

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

-rw-r--r-- 1 pihole pihole 44K Aug  9 23:27 /var/log/pihole/FTL.log
   -----head of FTL.log------
   [2022-08-09 22:06:24.483 557M] Using log file /var/log/pihole/FTL.log
   [2022-08-09 22:06:24.483 557M] ########## FTL started on pihole! ##########
   [2022-08-09 22:06:24.483 557M] FTL branch: master
   [2022-08-09 22:06:24.483 557M] FTL version: v5.16.1
   [2022-08-09 22:06:24.483 557M] FTL commit: 5ff5bed
   [2022-08-09 22:06:24.483 557M] FTL date: 2022-07-08 08:44:12 +0100
   [2022-08-09 22:06:24.483 557M] FTL user: pihole
   [2022-08-09 22:06:24.484 557M] Compiled for armv7hf (compiled on CI) using arm-linux-gnueabihf-gcc (Debian 6.3.0-18) 6.3.0 20170516
   [2022-08-09 22:06:24.484 557M] Creating mutex
   [2022-08-09 22:06:24.484 557M] Creating mutex
   [2022-08-09 22:06:24.486 557M] Starting config file parsing (/etc/pihole/pihole-FTL.conf)
   [2022-08-09 22:06:24.486 557M]    SOCKET_LISTENING: only local
   [2022-08-09 22:06:24.486 557M]    AAAA_QUERY_ANALYSIS: Show AAAA queries
   [2022-08-09 22:06:24.486 557M]    MAXDBDAYS: max age for stored queries is 365 days
   [2022-08-09 22:06:24.486 557M]    RESOLVE_IPV6: Resolve IPv6 addresses
   [2022-08-09 22:06:24.486 557M]    RESOLVE_IPV4: Resolve IPv4 addresses
   [2022-08-09 22:06:24.486 557M]    DBINTERVAL: saving to DB file every minute
   [2022-08-09 22:06:24.486 557M]    DBFILE: Using /etc/pihole/pihole-FTL.db
   [2022-08-09 22:06:24.486 557M]    MAXLOGAGE: Importing up to 24.0 hours of log data
   [2022-08-09 22:06:24.487 557M]    PRIVACYLEVEL: Set to 0
   [2022-08-09 22:06:24.487 557M]    IGNORE_LOCALHOST: Show queries from localhost
   [2022-08-09 22:06:24.487 557M]    BLOCKINGMODE: Null IPs for blocked domains
   [2022-08-09 22:06:24.487 557M]    ANALYZE_ONLY_A_AND_AAAA: Disabled. Analyzing all queries
   [2022-08-09 22:06:24.487 557M]    DBIMPORT: Importing history from database
   [2022-08-09 22:06:24.487 557M]    PIDFILE: Using /run/pihole-FTL.pid
   [2022-08-09 22:06:24.487 557M]    PORTFILE: Using /run/pihole-FTL.port
   [2022-08-09 22:06:24.487 557M]    SOCKETFILE: Using /run/pihole/FTL.sock
   [2022-08-09 22:06:24.487 557M]    SETUPVARSFILE: Using /etc/pihole/setupVars.conf
   [2022-08-09 22:06:24.487 557M]    MACVENDORDB: Using /etc/pihole/macvendor.db
   [2022-08-09 22:06:24.488 557M]    GRAVITYDB: Using /etc/pihole/gravity.db
   [2022-08-09 22:06:24.488 557M]    PARSE_ARP_CACHE: Active
   [2022-08-09 22:06:24.488 557M]    CNAME_DEEP_INSPECT: Active
   [2022-08-09 22:06:24.488 557M]    DELAY_STARTUP: No delay requested.
   [2022-08-09 22:06:24.488 557M]    BLOCK_ESNI: Enabled, blocking _esni.{blocked domain}
   [2022-08-09 22:06:24.488 557M]    NICE: Cannot change niceness to -10 (permission denied)

   -----tail of FTL.log------
   [2022-08-09 23:27:48.733 512M]    REPLY_WHEN_BUSY: Drop queries when the database is busy
   [2022-08-09 23:27:48.733 512M]    BLOCK_TTL: 2 seconds
   [2022-08-09 23:27:48.734 512M]    BLOCK_ICLOUD_PR: Enabled
   [2022-08-09 23:27:48.734 512M]    CHECK_LOAD: Enabled
   [2022-08-09 23:27:48.734 512M]    CHECK_SHMEM: Warning if shared-memory usage exceeds 90%
   [2022-08-09 23:27:48.734 512M]    CHECK_DISK: Warning if certain disk usage exceeds 90%
   [2022-08-09 23:27:48.734 512M] Finished config file parsing
   [2022-08-09 23:27:48.742 512M] Database version is 12
   [2022-08-09 23:27:48.742 512M] Resizing "FTL-strings" from 40960 to (81920 * 1) == 81920 (/dev/shm: 1.2MB used, 67.1MB total, FTL uses 1.2MB)
   [2022-08-09 23:27:48.743 512M] Imported 0 alias-clients
   [2022-08-09 23:27:48.743 512M] Database successfully initialized
   [2022-08-09 23:27:48.789 512M] New upstream server: 8.8.4.4:53 (0/1024)
   [2022-08-09 23:27:48.792 512M] New upstream server: 1.0.0.1:53 (1/1024)
   [2022-08-09 23:27:48.797 512M] Imported 146 queries from the long-term database
   [2022-08-09 23:27:48.798 512M]  -> Total DNS queries: 146
   [2022-08-09 23:27:48.798 512M]  -> Cached DNS queries: 0
   [2022-08-09 23:27:48.798 512M]  -> Forwarded DNS queries: 146
   [2022-08-09 23:27:48.798 512M]  -> Blocked DNS queries: 0
   [2022-08-09 23:27:48.798 512M]  -> Unknown DNS queries: 0
   [2022-08-09 23:27:48.799 512M]  -> Unique domains: 35
   [2022-08-09 23:27:48.799 512M]  -> Unique clients: 4
   [2022-08-09 23:27:48.800 512M]  -> Known forward destinations: 2
   [2022-08-09 23:27:48.800 512M] Successfully accessed setupVars.conf
   [2022-08-09 23:27:48.801 512M] listening on 0.0.0.0 port 53
   [2022-08-09 23:27:48.801 512M] listening on :: port 53
   [2022-08-09 23:27:48.805 512M] PID of FTL process: 512
   [2022-08-09 23:27:48.805 512/T516] Listening on port 4711 for incoming IPv4 telnet connections
   [2022-08-09 23:27:48.806 512M] INFO: FTL is running as user pihole (UID 999)
   [2022-08-09 23:27:48.806 512/T518] Listening on Unix socket
   [2022-08-09 23:27:48.813 512M] Reloading DNS cache
   [2022-08-09 23:27:48.948 512/T519] gravityDB_count(SELECT value FROM info WHERE property = 'gravity_count';) - SQL error step no more rows available
   [2022-08-09 23:27:48.948 512/T519] Count of gravity domains not available. Please run pihole -g
   [2022-08-09 23:27:48.950 512/T519] Compiled 0 whitelist and 0 blacklist regex filters for 4 clients in 1.6 msec
   [2022-08-09 23:27:48.950 512/T519] Blocking status is enabled
   [2022-08-09 23:27:50.816 512M] New upstream server: 1.1.1.1:53 (2/1024)

*** [ DIAGNOSING ]: contents of /dev/shm
-rw------- 1 pihole pihole 324K Aug  9 23:27 /dev/shm/FTL-clients
-rw------- 1 pihole pihole 244 Aug  9 23:27 /dev/shm/FTL-counters
-rw------- 1 pihole pihole 4.0K Aug  9 23:27 /dev/shm/FTL-dns-cache
-rw------- 1 pihole pihole 20K Aug  9 23:27 /dev/shm/FTL-domains
-rw------- 1 pihole pihole 56 Aug  9 23:27 /dev/shm/FTL-lock
-rw------- 1 pihole pihole 12K Aug  9 23:27 /dev/shm/FTL-overTime
-rw------- 1 pihole pihole 4.0K Aug  9 23:27 /dev/shm/FTL-per-client-regex
-rw------- 1 pihole pihole 176K Aug  9 23:27 /dev/shm/FTL-queries
-rw------- 1 pihole pihole 12 Aug  9 23:27 /dev/shm/FTL-settings
-rw------- 1 pihole pihole 80K Aug  9 23:27 /dev/shm/FTL-strings
-rw------- 1 pihole pihole 604K Aug  9 23:27 /dev/shm/FTL-upstreams

*** [ DIAGNOSING ]: contents of /etc

-rw-r--r-- 1 root root 37 Aug  9 23:27 /etc/dnsmasq.conf
   conf-dir=/etc/dnsmasq.d
   user=pihole

-rw-rw-r-- 1 root 1000 38 Aug  9 23:27 /etc/resolv.conf
   nameserver 127.0.0.11
   options ndots:0

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

*** [ DIAGNOSING ]: Locale
    LANG=

*** [ DIAGNOSING ]: Pi-hole log
-rw-r--r-- 1 pihole pihole 71K Aug  9 23:56 /var/log/pihole/pihole.log
   -----head of pihole.log------
   Aug  9 22:06:25 dnsmasq[557]: started, version pi-hole-2.87test8 cachesize 10000
   Aug  9 22:06:25 dnsmasq[557]: 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
   Aug  9 22:06:25 dnsmasq[557]: using nameserver 8.8.8.8#53
   Aug  9 22:06:25 dnsmasq[557]: using nameserver 8.8.4.4#53
   Aug  9 22:06:25 dnsmasq[557]: using only locally-known addresses for onion
   Aug  9 22:06:25 dnsmasq[557]: using only locally-known addresses for bind
   Aug  9 22:06:25 dnsmasq[557]: using only locally-known addresses for invalid
   Aug  9 22:06:25 dnsmasq[557]: using only locally-known addresses for localhost
   Aug  9 22:06:25 dnsmasq[557]: using only locally-known addresses for test
   Aug  9 22:06:25 dnsmasq[557]: read /etc/hosts - 7 addresses
   Aug  9 22:06:25 dnsmasq[557]: read /etc/pihole/custom.list - 0 addresses
   Aug  9 22:06:25 dnsmasq[557]: failed to load names from /etc/pihole/local.list: No such file or directory
   Aug  9 22:06:29 dnsmasq[557]: query[A] login.tresorit.com from 192.168.2.33
   Aug  9 22:06:29 dnsmasq[557]: forwarded login.tresorit.com to 8.8.8.8
   Aug  9 22:06:29 dnsmasq[557]: forwarded login.tresorit.com to 8.8.4.4
   Aug  9 22:06:29 dnsmasq[557]: query[AAAA] login.tresorit.com from 192.168.2.33
   Aug  9 22:06:29 dnsmasq[557]: forwarded login.tresorit.com to 8.8.8.8
   Aug  9 22:06:29 dnsmasq[557]: forwarded login.tresorit.com to 8.8.4.4
   Aug  9 22:06:30 dnsmasq[557]: query[PTR] 33.2.168.192.in-addr.arpa from 127.0.0.1
   Aug  9 22:06:30 dnsmasq[557]: forwarded 33.2.168.192.in-addr.arpa to 8.8.8.8

   -----tail of pihole.log------
   Aug  9 23:51:26 dnsmasq[512]: query[A] pi.hole from 127.0.0.1
   Aug  9 23:51:26 dnsmasq[512]: Pi-hole hostname pi.hole is 192.168.2.55
   Aug  9 23:51:56 dnsmasq[512]: query[A] pi.hole from 127.0.0.1
   Aug  9 23:51:56 dnsmasq[512]: Pi-hole hostname pi.hole is 192.168.2.55
   Aug  9 23:52:27 dnsmasq[512]: query[A] pi.hole from 127.0.0.1
   Aug  9 23:52:27 dnsmasq[512]: Pi-hole hostname pi.hole is 192.168.2.55
   Aug  9 23:52:57 dnsmasq[512]: query[A] pi.hole from 127.0.0.1
   Aug  9 23:52:57 dnsmasq[512]: Pi-hole hostname pi.hole is 192.168.2.55
   Aug  9 23:53:27 dnsmasq[512]: query[A] pi.hole from 127.0.0.1
   Aug  9 23:53:27 dnsmasq[512]: Pi-hole hostname pi.hole is 192.168.2.55
   Aug  9 23:53:58 dnsmasq[512]: query[A] pi.hole from 127.0.0.1
   Aug  9 23:53:58 dnsmasq[512]: Pi-hole hostname pi.hole is 192.168.2.55
   Aug  9 23:54:29 dnsmasq[512]: query[A] pi.hole from 127.0.0.1
   Aug  9 23:54:29 dnsmasq[512]: Pi-hole hostname pi.hole is 192.168.2.55
   Aug  9 23:54:59 dnsmasq[512]: query[A] pi.hole from 127.0.0.1
   Aug  9 23:54:59 dnsmasq[512]: Pi-hole hostname pi.hole is 192.168.2.55
   Aug  9 23:55:29 dnsmasq[512]: query[A] pi.hole from 127.0.0.1
   Aug  9 23:55:29 dnsmasq[512]: Pi-hole hostname pi.hole is 192.168.2.55
   Aug  9 23:56:00 dnsmasq[512]: query[A] pi.hole from 127.0.0.1
   Aug  9 23:56:00 dnsmasq[512]: Pi-hole hostname pi.hole is 192.168.2.55


********************************************
********************************************
[✓] ** FINISHED DEBUGGING! **