Pihole FTL not Running and set Capabilities error

I dont really know what I am doing...let me just say that...

Running PiHole on DietPi using a SparkySBC and went to update a couple of days ago and after "dietpi-update" and then "pihole-up" and then reboot, FTL would not start. Dont have a ton of config in there...so i loaded from scratch. Same thing. Tried an old UCKv1 that I had running more vanilla debian 10...same thing.

WebGUI shows DNS Service not running and fsockopen error connectiong to port 4711. Eventually found that all those just point to FTL not running. Found that issue was tied to and error on start:

Feb 03 12:18:20 UniFi-CloudKey systemd[22438]: pihole-FTL.service: Failed to apply ambient capabilities (before UID c
Feb 03 12:18:20 UniFi-CloudKey systemd[22438]: pihole-FTL.service: Failed at step CAPABILITIES spawning /usr/bin/piho
Feb 03 12:18:20 UniFi-CloudKey systemd[1]: pihole-FTL.service: Main process exited, code=exited, status=218/CAPABILIT
Feb 03 12:18:20 UniFi-CloudKey systemd[1]: pihole-FTL.service: Failed with result 'exit-code'.
Feb 03 12:18:25 UniFi-CloudKey systemd[1]: pihole-FTL.service: Service RestartSec=5s expired, scheduling restart.
Feb 03 12:18:25 UniFi-CloudKey systemd[1]: pihole-FTL.service: Scheduled restart job, restart counter is at 5.
Feb 03 12:18:25 UniFi-CloudKey systemd[1]: Stopped Pi-hole FTL.

Found that this was common in docker containers but couldnt get the "DNSMASQ_USER=root" variable to work. Finally I just tried to edit /etc/systemd/system/pihole-FTL.service and change user from pihole to root and commented out the "AmbientCapabilities" line. followed up by a systemctl daemon-reload and then systemctl restart pihole-FTL. This lets FTL start and stay started.

Now, this feels a little like killing ants with a bazooka...so, can anyone let me know how to fix this in a much more secure way? I dont think I want root running pihole-FTL..but, I dont know what I am doing...

1 Like

Please upload a debug log and post just the token URL that is generated after the log is uploaded by running the following command from the Pi-hole host terminal:

pihole -d

or do it through the Web interface:

Tools > Generate Debug Log

This is with the fix in place.

https://tricorder.pi-hole.net/Ef6avlSl/

Here is the /etc/systemd/system/pihole-FTL.service file that I am editing to make FTL start.

[Service]
User=root
PermissionsStartOnly=true
#AmbientCapabilities=CAP_NET_BIND_SERVICE CAP_NET_RAW CAP_NET_ADMIN CAP_SYS_NICE CAP_IPC_LOCK CAP_CHOWN

1 Like

Here it is broken...https://tricorder.pi-hole.net/yGjJMFiE/

Here is the section of /etc/systemd/system/pihole-FTL.service that I edit. This is stock after install.

[Service]
User=pihole
PermissionsStartOnly=true
AmbientCapabilities=CAP_NET_BIND_SERVICE CAP_NET_RAW CAP_NET_ADMIN CAP_SYS_NICE CAP_IPC_LOCK CAP_CHOWN

1 Like

Even with todays latest update (Current Pi-hole version is v5.15.5, Current AdminLTE version is v5.18.4, Current FTL version is v5.21) the problem still exists! :frowning:

Thank you!
Decided to update my primary pihole server running on a UCKv1 this morning, everything "seemed" to update but I found the same result when trying to figure out what was going on, DNS service not running.
Not sure if adding this can help, but if it does or I can offer additional information let me know.

Previous version: Pi-hole [v5.14.2] FTL [v5.20] Web Interface [v5.18]
Current versions: Pi-hole [v5.15.5] FTL [v5.21] Web Interface [v5.18.4]

Digging into it I found the same error with systemctl status pihole-FTL, code=exited, status=218/CAPABILITIES:

● pihole-FTL.service - Pi-hole FTL
Loaded: loaded (/etc/systemd/system/pihole-FTL.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Sat 2023-02-11 13:05:37 MST; 38s ago
Main PID: 10832 (code=exited, status=218/CAPABILITIES)

Feb 11 13:05:37 ck-pihole systemd[1]: pihole-FTL.service: Service RestartSec=5s expired, scheduling restart.
Feb 11 13:05:37 ck-pihole systemd[1]: pihole-FTL.service: Scheduled restart job, restart counter is at 5.
Feb 11 13:05:37 ck-pihole systemd[1]: Stopped Pi-hole FTL.
Feb 11 13:05:37 ck-pihole systemd[1]: pihole-FTL.service: Start request repeated too quickly.
Feb 11 13:05:37 ck-pihole systemd[1]: pihole-FTL.service: Failed with result 'exit-code'.
Feb 11 13:05:37 ck-pihole systemd[1]: Failed to start Pi-hole FTL.

editing /etc/systemd/system/pihole-FTL.service as indicated above from pihole to root and commenting out the "AmbientCapabilities" line also worked when followed by a systemctl daemon-reload and then systemctl restart pihole-FTL, until a restart, not sure if its how I ended up installing it, but I needed to follow that with "systemctl enable pihole-FTL" for it to restart properly.

debug token with it broken: https://tricorder.pi-hole.net/akBE4aGN/
and after modifying the service file: https://tricorder.pi-hole.net/Ar8rxvKG/

One thing I didn't see in the debug but noticed in FTL.log between "pihole" and "root" starting it was what looks like permission issues? affecting it, pasted relevent startup/termination sections for user pihole and root below:

[2023-02-11 12:47:25.853 7439M] Using log file /var/log/pihole/FTL.log
[2023-02-11 12:47:25.854 7439M] ########## FTL started on ck-pihole! ##########
[2023-02-11 12:47:25.854 7439M] FTL branch: master
[2023-02-11 12:47:25.854 7439M] FTL version: v5.21
[2023-02-11 12:47:25.855 7439M] FTL commit: f380afda
[2023-02-11 12:47:25.855 7439M] FTL date: 2023-02-10 18:55:28 +0000
[2023-02-11 12:47:25.855 7439M] FTL user: pihole
[2023-02-11 12:47:25.855 7439M] Compiled for armv7hf (compiled on CI) using arm-linux-gnueabihf-gcc (Debian 8.3.0-2) 8.3.0
[2023-02-11 12:47:25.856 7439M] Starting config file parsing (/etc/pihole/pihole-FTL.conf)
[2023-02-11 12:47:25.856 7439M]    SOCKET_LISTENING: only local
[2023-02-11 12:47:25.857 7439M]    AAAA_QUERY_ANALYSIS: Show AAAA queries
[2023-02-11 12:47:25.857 7439M]    MAXDBDAYS: max age for stored queries is 365 days
[2023-02-11 12:47:25.857 7439M]    RESOLVE_IPV6: Resolve IPv6 addresses
[2023-02-11 12:47:25.858 7439M]    RESOLVE_IPV4: Resolve IPv4 addresses
[2023-02-11 12:47:25.858 7439M]    DBINTERVAL: saving to DB file every minute
[2023-02-11 12:47:25.858 7439M]    DBFILE: Using /etc/pihole/pihole-FTL.db
[2023-02-11 12:47:25.859 7439M]    MAXLOGAGE: Importing up to 24.0 hours of log data
[2023-02-11 12:47:25.859 7439M]    PRIVACYLEVEL: Set to 0
[2023-02-11 12:47:25.859 7439M]    IGNORE_LOCALHOST: Show queries from localhost
[2023-02-11 12:47:25.860 7439M]    BLOCKINGMODE: Null IPs for blocked domains
[2023-02-11 12:47:25.860 7439M]    ANALYZE_ONLY_A_AND_AAAA: Disabled. Analyzing all queries
[2023-02-11 12:47:25.861 7439M]    DBIMPORT: Importing history from database
[2023-02-11 12:47:25.861 7439M]    PIDFILE: Using /run/pihole-FTL.pid
[2023-02-11 12:47:25.861 7439M]    SOCKETFILE: Using /run/pihole/FTL.sock
[2023-02-11 12:47:25.862 7439M]    SETUPVARSFILE: Using /etc/pihole/setupVars.conf
[2023-02-11 12:47:25.862 7439M]    MACVENDORDB: Using /etc/pihole/macvendor.db
[2023-02-11 12:47:25.862 7439M]    GRAVITYDB: Using /etc/pihole/gravity.db
[2023-02-11 12:47:25.862 7439M]    PARSE_ARP_CACHE: Active
[2023-02-11 12:47:25.863 7439M]    CNAME_DEEP_INSPECT: Active
[2023-02-11 12:47:25.863 7439M]    DELAY_STARTUP: No delay requested.
[2023-02-11 12:47:25.863 7439M]    BLOCK_ESNI: Enabled, blocking _esni.{blocked domain}
[2023-02-11 12:47:25.864 7439M]    NICE: Cannot change niceness to -10 (permission denied)
[2023-02-11 12:47:25.864 7439M]    MAXNETAGE: Removing IP addresses and host names from network table after 365 days
[2023-02-11 12:47:25.864 7439M]    NAMES_FROM_NETDB: Enabled, trying to get names from network database
[2023-02-11 12:47:25.865 7439M]    EDNS0_ECS: Overwrite client from ECS information
[2023-02-11 12:47:25.865 7439M]    REFRESH_HOSTNAMES: Periodically refreshing IPv4 names
[2023-02-11 12:47:25.865 7439M]    RATE_LIMIT: Rate-limiting client making more than 2000 queries in 60 seconds
[2023-02-11 12:47:25.866 7439M]    LOCAL_IPV4: Automatic interface-dependent detection of address
[2023-02-11 12:47:25.866 7439M]    LOCAL_IPV6: Automatic interface-dependent detection of address
[2023-02-11 12:47:25.866 7439M]    BLOCK_IPV4: Automatic interface-dependent detection of address
[2023-02-11 12:47:25.866 7439M]    BLOCK_IPV6: Automatic interface-dependent detection of address
[2023-02-11 12:47:25.867 7439M]    SHOW_DNSSEC: Enabled, showing automatically generated DNSSEC queries
[2023-02-11 12:47:25.867 7439M]    MOZILLA_CANARY: Enabled
[2023-02-11 12:47:25.867 7439M]    PIHOLE_PTR: internal PTR generation enabled (pi.hole)
[2023-02-11 12:47:25.868 7439M]    ADDR2LINE: Enabled
[2023-02-11 12:47:25.868 7439M]    REPLY_WHEN_BUSY: Drop queries when the database is busy
[2023-02-11 12:47:25.868 7439M]    BLOCK_TTL: 2 seconds
[2023-02-11 12:47:25.869 7439M]    BLOCK_ICLOUD_PR: Enabled
[2023-02-11 12:47:25.869 7439M]    CHECK_LOAD: Enabled
[2023-02-11 12:47:25.869 7439M]    CHECK_SHMEM: Warning if shared-memory usage exceeds 90%
[2023-02-11 12:47:25.870 7439M]    CHECK_DISK: Warning if certain disk usage exceeds 90%
[2023-02-11 12:47:25.870 7439M] Finished config file parsing
[2023-02-11 12:47:25.871 7439M] Creating mutex
[2023-02-11 12:47:25.872 7439M] Creating mutex
[2023-02-11 12:47:25.877 7439M] PID of FTL process: 7439
[2023-02-11 12:47:25.883 7439M] Database version is 12
[2023-02-11 12:47:25.884 7439M] Resizing "FTL-strings" from 40960 to (81920 * 1) == 81920 (/dev/shm: 1.2MB used, 1.1GB total, FTL uses 1.2MB)
[2023-02-11 12:47:25.886 7439M] Imported 0 alias-clients
[2023-02-11 12:47:25.886 7439M] Database successfully initialized
[2023-02-11 12:47:25.922 7439M] New upstream server: 1.1.1.1:53 (0/1024)
[2023-02-11 12:47:25.943 7439M] New upstream server: 192.168.69.10:53 (1/1024)
[2023-02-11 12:47:25.983 7439M] New upstream server: 8.8.8.8:53 (2/1024)
[2023-02-11 12:47:26.139 7439M] New upstream server: 1.0.0.1:53 (3/1024)
[2023-02-11 12:47:26.275 7439M] Resizing "FTL-queries" from 180224 to (8192 * 44) == 360448 (/dev/shm: 1.3MB used, 1.1GB total, FTL uses 1.3MB)
[2023-02-11 12:47:26.459 7439M] New upstream server: 8.8.4.4:53 (4/1024)
[2023-02-11 12:47:26.552 7439M] Resizing "FTL-queries" from 360448 to (12288 * 44) == 540672 (/dev/shm: 1.4MB used, 1.1GB total, FTL uses 1.4MB)
[2023-02-11 12:47:26.624 7439M] Resizing "FTL-domains" from 20480 to (2048 * 20) == 40960 (/dev/shm: 1.6MB used, 1.1GB total, FTL uses 1.6MB)
[2023-02-11 12:47:26.891 7439M] Resizing "FTL-queries" from 540672 to (16384 * 44) == 720896 (/dev/shm: 1.6MB used, 1.1GB total, FTL uses 1.6MB)
[2023-02-11 12:47:27.310 7439M] Resizing "FTL-queries" from 720896 to (20480 * 44) == 901120 (/dev/shm: 1.8MB used, 1.1GB total, FTL uses 1.8MB)
[2023-02-11 12:47:27.705 7439M] Resizing "FTL-queries" from 901120 to (24576 * 44) == 1081344 (/dev/shm: 2.0MB used, 1.1GB total, FTL uses 2.0MB)
[2023-02-11 12:47:27.832 7439M] Resizing "FTL-strings" from 81920 to (122880 * 1) == 122880 (/dev/shm: 2.2MB used, 1.1GB total, FTL uses 2.2MB)
[2023-02-11 12:47:28.076 7439M] Resizing "FTL-queries" from 1081344 to (28672 * 44) == 1261568 (/dev/shm: 2.2MB used, 1.1GB total, FTL uses 2.2MB)
[2023-02-11 12:47:28.426 7439M] Resizing "FTL-queries" from 1261568 to (32768 * 44) == 1441792 (/dev/shm: 2.4MB used, 1.1GB total, FTL uses 2.4MB)
[2023-02-11 12:47:28.791 7439M] Resizing "FTL-queries" from 1441792 to (36864 * 44) == 1622016 (/dev/shm: 2.6MB used, 1.1GB total, FTL uses 2.6MB)
[2023-02-11 12:47:29.398 7439M] Resizing "FTL-queries" from 1622016 to (40960 * 44) == 1802240 (/dev/shm: 2.8MB used, 1.1GB total, FTL uses 2.8MB)
[2023-02-11 12:47:30.268 7439M] Resizing "FTL-queries" from 1802240 to (45056 * 44) == 1982464 (/dev/shm: 2.9MB used, 1.1GB total, FTL uses 2.9MB)
[2023-02-11 12:47:30.980 7439M] Resizing "FTL-queries" from 1982464 to (49152 * 44) == 2162688 (/dev/shm: 3.1MB used, 1.1GB total, FTL uses 3.1MB)
[2023-02-11 12:47:31.005 7439M] Resizing "FTL-domains" from 40960 to (3072 * 20) == 61440 (/dev/shm: 3.3MB used, 1.1GB total, FTL uses 3.3MB)
[2023-02-11 12:47:31.418 7439M] Resizing "FTL-queries" from 2162688 to (53248 * 44) == 2342912 (/dev/shm: 3.3MB used, 1.1GB total, FTL uses 3.3MB)
[2023-02-11 12:47:31.877 7439M] Resizing "FTL-queries" from 2342912 to (57344 * 44) == 2523136 (/dev/shm: 3.5MB used, 1.1GB total, FTL uses 3.5MB)
[2023-02-11 12:47:32.457 7439M] Resizing "FTL-queries" from 2523136 to (61440 * 44) == 2703360 (/dev/shm: 3.7MB used, 1.1GB total, FTL uses 3.7MB)
[2023-02-11 12:47:33.102 7439M] Resizing "FTL-queries" from 2703360 to (65536 * 44) == 2883584 (/dev/shm: 3.9MB used, 1.1GB total, FTL uses 3.9MB)
[2023-02-11 12:47:33.583 7439M] Resizing "FTL-queries" from 2883584 to (69632 * 44) == 3063808 (/dev/shm: 4.1MB used, 1.1GB total, FTL uses 4.0MB)
[2023-02-11 12:47:34.017 7439M] Resizing "FTL-queries" from 3063808 to (73728 * 44) == 3244032 (/dev/shm: 4.2MB used, 1.1GB total, FTL uses 4.2MB)
[2023-02-11 12:47:34.431 7439M] Resizing "FTL-queries" from 3244032 to (77824 * 44) == 3424256 (/dev/shm: 4.4MB used, 1.1GB total, FTL uses 4.4MB)
[2023-02-11 12:47:34.843 7439M] Resizing "FTL-queries" from 3424256 to (81920 * 44) == 3604480 (/dev/shm: 4.6MB used, 1.1GB total, FTL uses 4.6MB)
[2023-02-11 12:47:35.148 7439M] Resizing "FTL-queries" from 3604480 to (86016 * 44) == 3784704 (/dev/shm: 4.8MB used, 1.1GB total, FTL uses 4.8MB)
[2023-02-11 12:47:35.595 7439M] Resizing "FTL-queries" from 3784704 to (90112 * 44) == 3964928 (/dev/shm: 5.0MB used, 1.1GB total, FTL uses 4.9MB)
[2023-02-11 12:47:36.095 7439M] Resizing "FTL-queries" from 3964928 to (94208 * 44) == 4145152 (/dev/shm: 5.1MB used, 1.1GB total, FTL uses 5.1MB)
[2023-02-11 12:47:36.509 7439M] Resizing "FTL-queries" from 4145152 to (98304 * 44) == 4325376 (/dev/shm: 5.3MB used, 1.1GB total, FTL uses 5.3MB)
[2023-02-11 12:47:37.031 7439M] Resizing "FTL-queries" from 4325376 to (102400 * 44) == 4505600 (/dev/shm: 5.5MB used, 1.1GB total, FTL uses 5.5MB)
[2023-02-11 12:47:37.537 7439M] Resizing "FTL-queries" from 4505600 to (106496 * 44) == 4685824 (/dev/shm: 5.7MB used, 1.1GB total, FTL uses 5.7MB)
[2023-02-11 12:47:38.063 7439M] Resizing "FTL-queries" from 4685824 to (110592 * 44) == 4866048 (/dev/shm: 5.9MB used, 1.1GB total, FTL uses 5.8MB)
[2023-02-11 12:47:38.584 7439M] Resizing "FTL-queries" from 4866048 to (114688 * 44) == 5046272 (/dev/shm: 6.0MB used, 1.1GB total, FTL uses 6.0MB)
[2023-02-11 12:47:39.062 7439M] Resizing "FTL-queries" from 5046272 to (118784 * 44) == 5226496 (/dev/shm: 6.2MB used, 1.1GB total, FTL uses 6.2MB)
[2023-02-11 12:47:39.601 7439M] Resizing "FTL-queries" from 5226496 to (122880 * 44) == 5406720 (/dev/shm: 6.4MB used, 1.1GB total, FTL uses 6.4MB)
[2023-02-11 12:47:40.101 7439M] Resizing "FTL-dns-cache" from 4096 to (512 * 16) == 8192 (/dev/shm: 6.6MB used, 1.1GB total, FTL uses 6.6MB)
[2023-02-11 12:47:40.131 7439M] Resizing "FTL-queries" from 5406720 to (126976 * 44) == 5586944 (/dev/shm: 6.6MB used, 1.1GB total, FTL uses 6.6MB)
[2023-02-11 12:47:40.687 7439M] Resizing "FTL-queries" from 5586944 to (131072 * 44) == 5767168 (/dev/shm: 6.8MB used, 1.1GB total, FTL uses 6.7MB)
[2023-02-11 12:47:41.181 7439M] Imported 130566 queries from the long-term database
[2023-02-11 12:47:41.188 7439M]  -> Total DNS queries: 130566
[2023-02-11 12:47:41.189 7439M]  -> Cached DNS queries: 67215
[2023-02-11 12:47:41.189 7439M]  -> Forwarded DNS queries: 49592
[2023-02-11 12:47:41.190 7439M]  -> Blocked DNS queries: 11320
[2023-02-11 12:47:41.190 7439M]  -> Unknown DNS queries: 0
[2023-02-11 12:47:41.190 7439M]  -> Unique domains: 2965
[2023-02-11 12:47:41.191 7439M]  -> Unique clients: 37
[2023-02-11 12:47:41.191 7439M]  -> Known forward destinations: 5
[2023-02-11 12:47:41.191 7439M] Successfully accessed setupVars.conf
[2023-02-11 12:47:41.198 7439M] FATAL ERROR in dnsmasq core: failed to create listening socket for port 53: Permission denied
[2023-02-11 12:47:41.231 7439M] ########## FTL terminated after 15s  (code 1)! ##########
[2023-02-11 12:47:49.570 7564M] Using log file /var/log/pihole/FTL.log
[2023-02-11 12:47:49.571 7564M] ########## FTL started on ck-pihole! ##########
[2023-02-11 12:47:49.571 7564M] FTL branch: master
[2023-02-11 12:47:49.571 7564M] FTL version: v5.21
[2023-02-11 12:47:49.572 7564M] FTL commit: f380afda
[2023-02-11 12:47:49.572 7564M] FTL date: 2023-02-10 18:55:28 +0000
[2023-02-11 12:47:49.572 7564M] FTL user: root
[2023-02-11 12:47:49.572 7564M] Compiled for armv7hf (compiled on CI) using arm-linux-gnueabihf-gcc (Debian 8.3.0-2) 8.3.0
[2023-02-11 12:47:49.573 7564M] Starting config file parsing (/etc/pihole/pihole-FTL.conf)
[2023-02-11 12:47:49.573 7564M]    SOCKET_LISTENING: only local
[2023-02-11 12:47:49.574 7564M]    AAAA_QUERY_ANALYSIS: Show AAAA queries
[2023-02-11 12:47:49.574 7564M]    MAXDBDAYS: max age for stored queries is 365 days
[2023-02-11 12:47:49.574 7564M]    RESOLVE_IPV6: Resolve IPv6 addresses
[2023-02-11 12:47:49.575 7564M]    RESOLVE_IPV4: Resolve IPv4 addresses
[2023-02-11 12:47:49.575 7564M]    DBINTERVAL: saving to DB file every minute
[2023-02-11 12:47:49.575 7564M]    DBFILE: Using /etc/pihole/pihole-FTL.db
[2023-02-11 12:47:49.576 7564M]    MAXLOGAGE: Importing up to 24.0 hours of log data
[2023-02-11 12:47:49.576 7564M]    PRIVACYLEVEL: Set to 0
[2023-02-11 12:47:49.576 7564M]    IGNORE_LOCALHOST: Show queries from localhost
[2023-02-11 12:47:49.577 7564M]    BLOCKINGMODE: Null IPs for blocked domains
[2023-02-11 12:47:49.577 7564M]    ANALYZE_ONLY_A_AND_AAAA: Disabled. Analyzing all queries
[2023-02-11 12:47:49.577 7564M]    DBIMPORT: Importing history from database
[2023-02-11 12:47:49.578 7564M]    PIDFILE: Using /run/pihole-FTL.pid
[2023-02-11 12:47:49.578 7564M]    SOCKETFILE: Using /run/pihole/FTL.sock
[2023-02-11 12:47:49.578 7564M]    SETUPVARSFILE: Using /etc/pihole/setupVars.conf
[2023-02-11 12:47:49.578 7564M]    MACVENDORDB: Using /etc/pihole/macvendor.db
[2023-02-11 12:47:49.579 7564M]    GRAVITYDB: Using /etc/pihole/gravity.db
[2023-02-11 12:47:49.579 7564M]    PARSE_ARP_CACHE: Active
[2023-02-11 12:47:49.579 7564M]    CNAME_DEEP_INSPECT: Active
[2023-02-11 12:47:49.580 7564M]    DELAY_STARTUP: No delay requested.
[2023-02-11 12:47:49.580 7564M]    BLOCK_ESNI: Enabled, blocking _esni.{blocked domain}
[2023-02-11 12:47:49.581 7564M]    NICE: Set process niceness to -10 (default)
[2023-02-11 12:47:49.581 7564M]    MAXNETAGE: Removing IP addresses and host names from network table after 365 days
[2023-02-11 12:47:49.581 7564M]    NAMES_FROM_NETDB: Enabled, trying to get names from network database
[2023-02-11 12:47:49.582 7564M]    EDNS0_ECS: Overwrite client from ECS information
[2023-02-11 12:47:49.582 7564M]    REFRESH_HOSTNAMES: Periodically refreshing IPv4 names
[2023-02-11 12:47:49.582 7564M]    RATE_LIMIT: Rate-limiting client making more than 2000 queries in 60 seconds
[2023-02-11 12:47:49.583 7564M]    LOCAL_IPV4: Automatic interface-dependent detection of address
[2023-02-11 12:47:49.583 7564M]    LOCAL_IPV6: Automatic interface-dependent detection of address
[2023-02-11 12:47:49.583 7564M]    BLOCK_IPV4: Automatic interface-dependent detection of address
[2023-02-11 12:47:49.583 7564M]    BLOCK_IPV6: Automatic interface-dependent detection of address
[2023-02-11 12:47:49.584 7564M]    SHOW_DNSSEC: Enabled, showing automatically generated DNSSEC queries
[2023-02-11 12:47:49.584 7564M]    MOZILLA_CANARY: Enabled
[2023-02-11 12:47:49.584 7564M]    PIHOLE_PTR: internal PTR generation enabled (pi.hole)
[2023-02-11 12:47:49.585 7564M]    ADDR2LINE: Enabled
[2023-02-11 12:47:49.585 7564M]    REPLY_WHEN_BUSY: Drop queries when the database is busy
[2023-02-11 12:47:49.585 7564M]    BLOCK_TTL: 2 seconds
[2023-02-11 12:47:49.586 7564M]    BLOCK_ICLOUD_PR: Enabled
[2023-02-11 12:47:49.586 7564M]    CHECK_LOAD: Enabled
[2023-02-11 12:47:49.586 7564M]    CHECK_SHMEM: Warning if shared-memory usage exceeds 90%
[2023-02-11 12:47:49.587 7564M]    CHECK_DISK: Warning if certain disk usage exceeds 90%
[2023-02-11 12:47:49.587 7564M] Finished config file parsing
[2023-02-11 12:47:49.588 7564M] Creating mutex
[2023-02-11 12:47:49.589 7564M] Creating mutex
[2023-02-11 12:47:49.594 7564M] WARNING: Starting pihole-FTL as user root is not recommended
[2023-02-11 12:47:49.594 7564M] PID of FTL process: 7564
[2023-02-11 12:47:49.600 7564M] Database version is 12
[2023-02-11 12:47:49.601 7564M] Resizing "FTL-strings" from 40960 to (81920 * 1) == 81920 (/dev/shm: 1.2MB used, 1.1GB total, FTL uses 1.2MB)
[2023-02-11 12:47:49.602 7564M] Imported 0 alias-clients
[2023-02-11 12:47:49.603 7564M] Database successfully initialized
[2023-02-11 12:47:49.650 7564M] New upstream server: 1.1.1.1:53 (0/1024)
[2023-02-11 12:47:49.672 7564M] New upstream server: 192.168.69.10:53 (1/1024)
[2023-02-11 12:47:49.701 7564M] New upstream server: 8.8.8.8:53 (2/1024)
[2023-02-11 12:47:49.857 7564M] New upstream server: 1.0.0.1:53 (3/1024)
[2023-02-11 12:47:49.994 7564M] Resizing "FTL-queries" from 180224 to (8192 * 44) == 360448 (/dev/shm: 1.3MB used, 1.1GB total, FTL uses 1.3MB)
[2023-02-11 12:47:50.177 7564M] New upstream server: 8.8.4.4:53 (4/1024)
[2023-02-11 12:47:50.270 7564M] Resizing "FTL-queries" from 360448 to (12288 * 44) == 540672 (/dev/shm: 1.4MB used, 1.1GB total, FTL uses 1.4MB)
[2023-02-11 12:47:50.354 7564M] Resizing "FTL-domains" from 20480 to (2048 * 20) == 40960 (/dev/shm: 1.6MB used, 1.1GB total, FTL uses 1.6MB)
[2023-02-11 12:47:50.609 7564M] Resizing "FTL-queries" from 540672 to (16384 * 44) == 720896 (/dev/shm: 1.6MB used, 1.1GB total, FTL uses 1.6MB)
[2023-02-11 12:47:51.031 7564M] Resizing "FTL-queries" from 720896 to (20480 * 44) == 901120 (/dev/shm: 1.8MB used, 1.1GB total, FTL uses 1.8MB)
[2023-02-11 12:47:51.428 7564M] Resizing "FTL-queries" from 901120 to (24576 * 44) == 1081344 (/dev/shm: 2.0MB used, 1.1GB total, FTL uses 2.0MB)
[2023-02-11 12:47:51.555 7564M] Resizing "FTL-strings" from 81920 to (122880 * 1) == 122880 (/dev/shm: 2.2MB used, 1.1GB total, FTL uses 2.2MB)
[2023-02-11 12:47:51.799 7564M] Resizing "FTL-queries" from 1081344 to (28672 * 44) == 1261568 (/dev/shm: 2.2MB used, 1.1GB total, FTL uses 2.2MB)
[2023-02-11 12:47:52.151 7564M] Resizing "FTL-queries" from 1261568 to (32768 * 44) == 1441792 (/dev/shm: 2.4MB used, 1.1GB total, FTL uses 2.4MB)
[2023-02-11 12:47:52.516 7564M] Resizing "FTL-queries" from 1441792 to (36864 * 44) == 1622016 (/dev/shm: 2.6MB used, 1.1GB total, FTL uses 2.6MB)
[2023-02-11 12:47:53.138 7564M] Resizing "FTL-queries" from 1622016 to (40960 * 44) == 1802240 (/dev/shm: 2.8MB used, 1.1GB total, FTL uses 2.8MB)
[2023-02-11 12:47:54.067 7564M] Resizing "FTL-queries" from 1802240 to (45056 * 44) == 1982464 (/dev/shm: 2.9MB used, 1.1GB total, FTL uses 2.9MB)
[2023-02-11 12:47:54.775 7564M] Resizing "FTL-queries" from 1982464 to (49152 * 44) == 2162688 (/dev/shm: 3.1MB used, 1.1GB total, FTL uses 3.1MB)
[2023-02-11 12:47:54.796 7564M] Resizing "FTL-domains" from 40960 to (3072 * 20) == 61440 (/dev/shm: 3.3MB used, 1.1GB total, FTL uses 3.3MB)
[2023-02-11 12:47:55.212 7564M] Resizing "FTL-queries" from 2162688 to (53248 * 44) == 2342912 (/dev/shm: 3.3MB used, 1.1GB total, FTL uses 3.3MB)
[2023-02-11 12:47:55.638 7564M] Resizing "FTL-queries" from 2342912 to (57344 * 44) == 2523136 (/dev/shm: 3.5MB used, 1.1GB total, FTL uses 3.5MB)
[2023-02-11 12:47:56.169 7564M] Resizing "FTL-queries" from 2523136 to (61440 * 44) == 2703360 (/dev/shm: 3.7MB used, 1.1GB total, FTL uses 3.7MB)
[2023-02-11 12:47:56.823 7564M] Resizing "FTL-queries" from 2703360 to (65536 * 44) == 2883584 (/dev/shm: 3.9MB used, 1.1GB total, FTL uses 3.9MB)
[2023-02-11 12:47:57.314 7564M] Resizing "FTL-queries" from 2883584 to (69632 * 44) == 3063808 (/dev/shm: 4.1MB used, 1.1GB total, FTL uses 4.0MB)
[2023-02-11 12:47:57.748 7564M] Resizing "FTL-queries" from 3063808 to (73728 * 44) == 3244032 (/dev/shm: 4.2MB used, 1.1GB total, FTL uses 4.2MB)
[2023-02-11 12:47:58.159 7564M] Resizing "FTL-queries" from 3244032 to (77824 * 44) == 3424256 (/dev/shm: 4.4MB used, 1.1GB total, FTL uses 4.4MB)
[2023-02-11 12:47:58.571 7564M] Resizing "FTL-queries" from 3424256 to (81920 * 44) == 3604480 (/dev/shm: 4.6MB used, 1.1GB total, FTL uses 4.6MB)
[2023-02-11 12:47:58.876 7564M] Resizing "FTL-queries" from 3604480 to (86016 * 44) == 3784704 (/dev/shm: 4.8MB used, 1.1GB total, FTL uses 4.8MB)
[2023-02-11 12:47:59.322 7564M] Resizing "FTL-queries" from 3784704 to (90112 * 44) == 3964928 (/dev/shm: 5.0MB used, 1.1GB total, FTL uses 4.9MB)
[2023-02-11 12:47:59.823 7564M] Resizing "FTL-queries" from 3964928 to (94208 * 44) == 4145152 (/dev/shm: 5.1MB used, 1.1GB total, FTL uses 5.1MB)
[2023-02-11 12:48:00.236 7564M] Resizing "FTL-queries" from 4145152 to (98304 * 44) == 4325376 (/dev/shm: 5.3MB used, 1.1GB total, FTL uses 5.3MB)
[2023-02-11 12:48:00.706 7564M] Resizing "FTL-queries" from 4325376 to (102400 * 44) == 4505600 (/dev/shm: 5.5MB used, 1.1GB total, FTL uses 5.5MB)
[2023-02-11 12:48:01.179 7564M] Resizing "FTL-queries" from 4505600 to (106496 * 44) == 4685824 (/dev/shm: 5.7MB used, 1.1GB total, FTL uses 5.7MB)
[2023-02-11 12:48:01.710 7564M] Resizing "FTL-queries" from 4685824 to (110592 * 44) == 4866048 (/dev/shm: 5.9MB used, 1.1GB total, FTL uses 5.8MB)
[2023-02-11 12:48:02.227 7564M] Resizing "FTL-queries" from 4866048 to (114688 * 44) == 5046272 (/dev/shm: 6.0MB used, 1.1GB total, FTL uses 6.0MB)
[2023-02-11 12:48:02.707 7564M] Resizing "FTL-queries" from 5046272 to (118784 * 44) == 5226496 (/dev/shm: 6.2MB used, 1.1GB total, FTL uses 6.2MB)
[2023-02-11 12:48:03.243 7564M] Resizing "FTL-queries" from 5226496 to (122880 * 44) == 5406720 (/dev/shm: 6.4MB used, 1.1GB total, FTL uses 6.4MB)
[2023-02-11 12:48:03.732 7564M] Resizing "FTL-dns-cache" from 4096 to (512 * 16) == 8192 (/dev/shm: 6.6MB used, 1.1GB total, FTL uses 6.6MB)
[2023-02-11 12:48:03.764 7564M] Resizing "FTL-queries" from 5406720 to (126976 * 44) == 5586944 (/dev/shm: 6.6MB used, 1.1GB total, FTL uses 6.6MB)
[2023-02-11 12:48:04.323 7564M] Resizing "FTL-queries" from 5586944 to (131072 * 44) == 5767168 (/dev/shm: 6.8MB used, 1.1GB total, FTL uses 6.7MB)
[2023-02-11 12:48:04.809 7564M] Imported 130536 queries from the long-term database
[2023-02-11 12:48:04.817 7564M]  -> Total DNS queries: 130536
[2023-02-11 12:48:04.818 7564M]  -> Cached DNS queries: 67199
[2023-02-11 12:48:04.818 7564M]  -> Forwarded DNS queries: 49583
[2023-02-11 12:48:04.819 7564M]  -> Blocked DNS queries: 11315
[2023-02-11 12:48:04.819 7564M]  -> Unknown DNS queries: 0
[2023-02-11 12:48:04.819 7564M]  -> Unique domains: 2964
[2023-02-11 12:48:04.819 7564M]  -> Unique clients: 37
[2023-02-11 12:48:04.820 7564M]  -> Known forward destinations: 5
[2023-02-11 12:48:04.820 7564M] Successfully accessed setupVars.conf
[2023-02-11 12:48:04.826 7564M] listening on 0.0.0.0 port 53
[2023-02-11 12:48:04.827 7564M] listening on :: port 53
[2023-02-11 12:48:04.840 7564M] PID of FTL process: 7564
[2023-02-11 12:48:04.841 7564M] Listening on port 4711 for incoming IPv4 telnet connections
[2023-02-11 12:48:04.843 7564M] Listening on port 4711 for incoming IPv6 telnet connections
[2023-02-11 12:48:04.844 7564M] Listening on port 4711 for incoming socket telnet connections
[2023-02-11 12:48:04.846 7564M] INFO: FTL is running as root
[2023-02-11 12:48:04.854 7564M] Reloading DNS cache
[2023-02-11 12:48:04.958 7564/T7615] Compiled 0 whitelist and 0 blacklist regex filters for 37 clients in 2.7 msec
[2023-02-11 12:48:04.959 7564/T7615] Blocking status is enabled
[2023-02-11 12:52:25.125 7564M] Resizing "FTL-dns-cache" from 8192 to (768 * 16) == 12288 (/dev/shm: 6.9MB used, 1.1GB total, FTL uses 6.9MB)
[2023-02-11 12:55:55.044 7564M] Shutting down...
[2023-02-11 12:55:55.394 7564M] Finished final database update (stored 116 queries)
[2023-02-11 12:55:55.395 7564M] Waiting for threads to join
[2023-02-11 12:55:55.395 7564M] Thread database (0) is idle, terminating it.
[2023-02-11 12:55:55.397 7564M] Thread housekeeper (1) is idle, terminating it.
[2023-02-11 12:55:55.398 7564M] Thread DNS client (2) is idle, terminating it.
[2023-02-11 12:55:55.399 7564M] All threads joined
[2023-02-11 12:55:55.400 7564M] Joining API worker thread 0
[2023-02-11 12:55:55.403 7564M] Joining API worker thread 1
[2023-02-11 12:55:55.404 7564M] Joining API worker thread 2
[2023-02-11 12:55:55.405 7564M] Joining API worker thread 3
[2023-02-11 12:55:55.406 7564M] Joining API worker thread 4
[2023-02-11 12:55:55.419 7564M] ########## FTL terminated after 8m 5s  (code 0)! ##########

The differences I see are in the parsing of the config file:

NICE: Cannot change niceness to -10 (permission denied)
vs
NICE: Set process niceness to -10 (default)

and

FATAL ERROR in dnsmasq core: failed to create listening socket for port 53: Permission denied
vs
listening on 0.0.0.0 port 53

Not sure where to look next as I'm a little out of my comfort zone at the moment, but will be watching to see if there's updates. All I can see is that the pihole user on my UCKv1 and raspberry pi are identical, and I can't see any file permissions different between the two installs either, only difference I see is on the PI pihole-FTL loads from /etc/init.d/pihole-FTL and on the UCK its /etc/systemd/system/pihole-FTL.service
Not sure if relevent, but previous updates with pihole -up on the UCKv1 have been successful for at least the last year without issue, this is the first time anything has gone awry during a update.

Playing around with ProxMox and loaded a dietpi VM and pihole installed fine and no issues with the permissions. Don’t know enough about this to speak definitively, but I’ve had the issue on a Sparky SBC using dietpi and a UCK using regular debian(or whatever the flavor of debian the uck runs) but not on 4690k bare metal dietpi or a proxmox VM dietpi.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.