Dnsmasq.service could not be found

Please follow the below template, it will help us to help you!

Expected Behaviour:

I have an android box S905X (T95X)
I installed ARMBIAN from https://yadi.sk/d/5_32km_EsCV2A/ARMBIAN/5.64/20181019
I used this dtb file : https://github.com/150balbes/Amlogic_s905/tree/535b3e013acfeb189da206d22d29a99905e3dc9d/dtb_file/S905/T95X_1g8g
pi-hole install seems to be ok and go at the end but...

Actual Behaviour:

dns service is not running
when i check dsmasq.service :
root@aml:~# sudo service dnsmasq status
Unit dnsmasq.service could not be found.
I checked log file but i don't have more information about the problem

Debug Token:

tqp73ca2eh

Thanks a lot !

In V4 of Pi-Hole, dnsmasq code is included in pihole-FTL and dnsmasq no longer runs as a separate process. The debug log will show dnsmasq as "inactive" or "failed", this is normal.

*** [ DIAGNOSING ]: Pi-hole processes
[✗] dnsmasq daemon is inactive

However, your debug log shows that pihole-FTL is also not running - it should be running on ports 53 and 4711.

*** [ DIAGNOSING ]: Ports in use
*:22 sshd (IPv4)
*:22 sshd (IPv6)
*:80 lighttpd (IPv4)
*:80 lighttpd (IPv6)

This causes the DNS resolution errors shown in your debug log:

*** [ DIAGNOSING ]: Name resolution (IPv4) using a random blocked domain and a known ad-serving domain
[✗] Failed to resolve adserverec.adtechus.com via localhost (127.0.0.1)
[✗] Failed to resolve adserverec.adtechus.com via Pi-hole (192.168.1.35)
[✓] doubleclick.com is 172.217.18.206 via a remote, public DNS server (8.8.8.8)

What are the outputs of the following commands run from the terminal on the Pi-Hole host:

sudo service pihole-FTL status

cat /var/log/pihole-FTL.log

sudo netstat -nltup | grep 'Proto\|:53 \|:67 \|:80 \|:471'

1 Like

Thanks for your help.

sudo service pihole-FTL status

_root@aml:~# sudo service pihole-FTL status_
_● pihole-FTL.service - LSB: pihole-FTL daemon_
_   Loaded: loaded (/etc/init.d/pihole-FTL; generated; vendor preset: enabled)_
_   Active: active (exited) since Tue 2018-10-23 21:16:15 UTC; 1min 50s ago_
_     Docs: man:systemd-sysv-generator(8)_
_  Process: 1729 ExecStart=/etc/init.d/pihole-FTL start (code=exited, status=0/SUCCESS)_
_    Tasks: 0 (limit: 4915)_
_   CGroup: /system.slice/pihole-FTL.service_

_Oct 23 21:16:13 aml pihole-FTL[1729]: Not running_
_Oct 23 21:16:13 aml pihole-FTL[1729]: chown: cannot access '/etc/pihole/dhcp.leases': No such file or directory_
_Oct 23 21:16:13 aml pihole-FTL[1729]: Failed to set capabilities on file `/usr/bin/pihole-FTL' (Operation not supported)_
_Oct 23 21:16:13 aml pihole-FTL[1729]: The value of the capability argument is not permitted for a file. Or the file is not a regular (non-symlink) file_
_Oct 23 21:16:13 aml pihole-FTL[1729]: /etc/resolvconf/update.d/libc: Warning: /etc/resolv.conf is not a symbolic link to /etc/resolvconf/run/resolv.conf_
_Oct 23 21:16:13 aml su[1827]: Successful su for pihole by root_
_Oct 23 21:16:13 aml su[1827]: + ??? root:pihole_
_Oct 23 21:16:13 aml su[1827]: pam_unix(su:session): session opened for user pihole by (uid=0)_
_Oct 23 21:16:15 aml pihole-FTL[1729]: dnsmasq: failed to create listening socket for port 53: Permission denied_
_Oct 23 21:16:15 aml systemd[1]: Started LSB: pihole-FTL daemon._

cat /var/log/pihole-FTL.log

_root@aml:~# cat /var/log/pihole-FTL.log_
_[2018-10-23 15:44:24.140] ########## FTL started! ##########_
_[2018-10-23 15:44:24.140] FTL branch:_
_[2018-10-23 15:44:24.140] FTL version: v4.0_
_[2018-10-23 15:44:24.140] FTL commit: 8493df4_
_[2018-10-23 15:44:24.140] FTL date: 2018-08-05 13:40:30 -0700_
_[2018-10-23 15:44:24.140] FTL user: pihole_
_[2018-10-23 15:44:24.140] Starting config file parsing (/etc/pihole/pihole-FTL.conf)_
_[2018-10-23 15:44:24.140]    SOCKET_LISTENING: only local_
_[2018-10-23 15:44:24.140]    AAAA_QUERY_ANALYSIS: Show AAAA queries_
_[2018-10-23 15:44:24.140]    MAXDBDAYS: max age for stored queries is 365 days_
_[2018-10-23 15:44:24.140]    RESOLVE_IPV6: Resolve IPv6 addresses_
_[2018-10-23 15:44:24.140]    RESOLVE_IPV4: Resolve IPv4 addresses_
_[2018-10-23 15:44:24.140]    DBINTERVAL: saving to DB file every minute_
_[2018-10-23 15:44:24.140]    DBFILE: Using /etc/pihole/pihole-FTL.db_
_[2018-10-23 15:44:24.140]    MAXLOGAGE: Importing up to 24.0 hours of log data_
_[2018-10-23 15:44:24.140]    PRIVACYLEVEL: Set to 0_
_[2018-10-23 15:44:24.140]    IGNORE_LOCALHOST: Show queries from localhost_
_[2018-10-23 15:44:24.140]    BLOCKINGMODE: Null IPs for blocked domains_
_[2018-10-23 15:44:24.140]    REGEX_DEBUGMODE: Inactive_
_[2018-10-23 15:44:24.140] Finished config file parsing_
_[2018-10-23 15:44:24.141] INFO: No whitelist file found_
_[2018-10-23 15:44:24.141] Compiled 0 Regex filters and -1 whitelisted domains in 0.1 msec (0 errors)_
_[2018-10-23 15:44:24.141] db_init() - Cannot open database (14): unable to open database file_
_[2018-10-23 15:44:24.141] Creating new (empty) database_
_[2018-10-23 15:44:24.353] Database successfully initialized_
_[2018-10-23 15:44:24.353] Imported 0 queries from the long-term database_
_[2018-10-23 15:44:24.354]  -> Total DNS queries: 0_
_[2018-10-23 15:44:24.354]  -> Cached DNS queries: 0_
_[2018-10-23 15:44:24.354]  -> Forwarded DNS queries: 0_
_[2018-10-23 15:44:24.354]  -> Exactly blocked DNS queries: 0_
_[2018-10-23 15:44:24.354]  -> Unknown DNS queries: 0_
_[2018-10-23 15:44:24.354]  -> Unique domains: 0_
_[2018-10-23 15:44:24.354]  -> Unique clients: 0_
_[2018-10-23 15:44:24.354]  -> Known forward destinations: 0_
_[2018-10-23 15:44:24.354] Successfully accessed setupVars.conf_
_[2018-10-23 15:49:38.368] ########## FTL started! ##########_
_[2018-10-23 15:49:38.368] FTL branch:_
_[2018-10-23 15:49:38.368] FTL version: v4.0_
_[2018-10-23 15:49:38.368] FTL commit: 8493df4_
_[2018-10-23 15:49:38.369] FTL date: 2018-08-05 13:40:30 -0700_
_[2018-10-23 15:49:38.369] FTL user: pihole_
_[2018-10-23 15:49:38.369] Starting config file parsing (/etc/pihole/pihole-FTL.conf)_
_[2018-10-23 15:49:38.369]    SOCKET_LISTENING: only local_
_[2018-10-23 15:49:38.369]    AAAA_QUERY_ANALYSIS: Show AAAA queries_
_[2018-10-23 15:49:38.369]    MAXDBDAYS: max age for stored queries is 365 days_
_[2018-10-23 15:49:38.369]    RESOLVE_IPV6: Resolve IPv6 addresses_
_[2018-10-23 15:49:38.369]    RESOLVE_IPV4: Resolve IPv4 addresses_
_[2018-10-23 15:49:38.369]    DBINTERVAL: saving to DB file every minute_
_[2018-10-23 15:49:38.369]    DBFILE: Using /etc/pihole/pihole-FTL.db_
_[2018-10-23 15:49:38.369]    MAXLOGAGE: Importing up to 24.0 hours of log data_
_[2018-10-23 15:49:38.369]    PRIVACYLEVEL: Set to 0_
_[2018-10-23 15:49:38.369]    IGNORE_LOCALHOST: Show queries from localhost_
_[2018-10-23 15:49:38.369]    BLOCKINGMODE: Null IPs for blocked domains_
_[2018-10-23 15:49:38.369]    REGEX_DEBUGMODE: Inactive_
_[2018-10-23 15:49:38.369] Finished config file parsing_
_[2018-10-23 15:49:38.369] INFO: No whitelist file found_
_[2018-10-23 15:49:38.369] Compiled 0 Regex filters and -1 whitelisted domains in 0.1 msec (0 errors)_
_[2018-10-23 15:49:38.371] Database successfully initialized_
_[2018-10-23 15:49:38.372] Imported 0 queries from the long-term database_
_[2018-10-23 15:49:38.372]  -> Total DNS queries: 0_
_[2018-10-23 15:49:38.372]  -> Cached DNS queries: 0_
_[2018-10-23 15:49:38.372]  -> Forwarded DNS queries: 0_
_[2018-10-23 15:49:38.372]  -> Exactly blocked DNS queries: 0_
_[2018-10-23 15:49:38.372]  -> Unknown DNS queries: 0_
_[2018-10-23 15:49:38.372]  -> Unique domains: 0_
_[2018-10-23 15:49:38.372]  -> Unique clients: 0_
_[2018-10-23 15:49:38.372]  -> Known forward destinations: 0_
_[2018-10-23 15:49:38.372] Successfully accessed setupVars.conf_
_[2018-10-23 15:56:38.345] ########## FTL started! ##########_
_[2018-10-23 15:56:38.345] FTL branch:_
_[2018-10-23 15:56:38.345] FTL version: v4.0_
_[2018-10-23 15:56:38.345] FTL commit: 8493df4_
_[2018-10-23 15:56:38.345] FTL date: 2018-08-05 13:40:30 -0700_
_[2018-10-23 15:56:38.345] FTL user: pihole_
_[2018-10-23 15:56:38.349] Starting config file parsing (/etc/pihole/pihole-FTL.conf)_
_[2018-10-23 15:56:38.350]    SOCKET_LISTENING: only local_
_[2018-10-23 15:56:38.350]    AAAA_QUERY_ANALYSIS: Show AAAA queries_
_[2018-10-23 15:56:38.350]    MAXDBDAYS: max age for stored queries is 365 days_
_[2018-10-23 15:56:38.350]    RESOLVE_IPV6: Resolve IPv6 addresses_
_[2018-10-23 15:56:38.350]    RESOLVE_IPV4: Resolve IPv4 addresses_
_[2018-10-23 15:56:38.350]    DBINTERVAL: saving to DB file every minute_
_[2018-10-23 15:56:38.350]    DBFILE: Using /etc/pihole/pihole-FTL.db_
_[2018-10-23 15:56:38.350]    MAXLOGAGE: Importing up to 24.0 hours of log data_
_[2018-10-23 15:56:38.350]    PRIVACYLEVEL: Set to 0_
_[2018-10-23 15:56:38.350]    IGNORE_LOCALHOST: Show queries from localhost_
_[2018-10-23 15:56:38.350]    BLOCKINGMODE: Null IPs for blocked domains_
_[2018-10-23 15:56:38.350]    REGEX_DEBUGMODE: Inactive_
_[2018-10-23 15:56:38.350] Finished config file parsing_
_[2018-10-23 15:56:38.351] INFO: No whitelist file found_
_[2018-10-23 15:56:38.351] Compiled 0 Regex filters and -1 whitelisted domains in 0.3 msec (0 errors)_
_[2018-10-23 15:56:38.412] Database successfully initialized_
_[2018-10-23 15:56:38.414] Imported 0 queries from the long-term database_
_[2018-10-23 15:56:38.414]  -> Total DNS queries: 0_
_[2018-10-23 15:56:38.414]  -> Cached DNS queries: 0_
_[2018-10-23 15:56:38.414]  -> Forwarded DNS queries: 0_
_[2018-10-23 15:56:38.414]  -> Exactly blocked DNS queries: 0_
_[2018-10-23 15:56:38.414]  -> Unknown DNS queries: 0_
_[2018-10-23 15:56:38.414]  -> Unique domains: 0_
_[2018-10-23 15:56:38.414]  -> Unique clients: 0_
_[2018-10-23 15:56:38.414]  -> Known forward destinations: 0_
_[2018-10-23 15:56:38.414] Successfully accessed setupVars.conf_
_[2018-10-23 21:16:15.390] ########## FTL started! ##########_
_[2018-10-23 21:16:15.390] FTL branch:_
_[2018-10-23 21:16:15.390] FTL version: v4.0_
_[2018-10-23 21:16:15.390] FTL commit: 8493df4_
_[2018-10-23 21:16:15.390] FTL date: 2018-08-05 13:40:30 -0700_
_[2018-10-23 21:16:15.391] FTL user: pihole_
_[2018-10-23 21:16:15.395] Starting config file parsing (/etc/pihole/pihole-FTL.conf)_
_[2018-10-23 21:16:15.395]    SOCKET_LISTENING: only local_
_[2018-10-23 21:16:15.396]    AAAA_QUERY_ANALYSIS: Show AAAA queries_
_[2018-10-23 21:16:15.396]    MAXDBDAYS: max age for stored queries is 365 days_
_[2018-10-23 21:16:15.396]    RESOLVE_IPV6: Resolve IPv6 addresses_
_[2018-10-23 21:16:15.396]    RESOLVE_IPV4: Resolve IPv4 addresses_
_[2018-10-23 21:16:15.396]    DBINTERVAL: saving to DB file every minute_
_[2018-10-23 21:16:15.396]    DBFILE: Using /etc/pihole/pihole-FTL.db_
_[2018-10-23 21:16:15.396]    MAXLOGAGE: Importing up to 24.0 hours of log data_
_[2018-10-23 21:16:15.396]    PRIVACYLEVEL: Set to 0_
_[2018-10-23 21:16:15.396]    IGNORE_LOCALHOST: Show queries from localhost_
_[2018-10-23 21:16:15.396]    BLOCKINGMODE: Null IPs for blocked domains_
_[2018-10-23 21:16:15.396]    REGEX_DEBUGMODE: Inactive_
_[2018-10-23 21:16:15.396] Finished config file parsing_
_[2018-10-23 21:16:15.397] INFO: No whitelist file found_
_[2018-10-23 21:16:15.397] Compiled 0 Regex filters and -1 whitelisted domains in 0.4 msec (0 errors)_
_[2018-10-23 21:16:15.449] Database successfully initialized_
_[2018-10-23 21:16:15.450] Imported 0 queries from the long-term database_
_[2018-10-23 21:16:15.451]  -> Total DNS queries: 0_
_[2018-10-23 21:16:15.451]  -> Cached DNS queries: 0_
_[2018-10-23 21:16:15.451]  -> Forwarded DNS queries: 0_
_[2018-10-23 21:16:15.451]  -> Exactly blocked DNS queries: 0_
_[2018-10-23 21:16:15.451]  -> Unknown DNS queries: 0_
_[2018-10-23 21:16:15.451]  -> Unique domains: 0_
_[2018-10-23 21:16:15.451]  -> Unique clients: 0_
_[2018-10-23 21:16:15.451]  -> Known forward destinations: 0_
_[2018-10-23 21:16:15.451] Successfully accessed setupVars.conf_

sudo netstat -nltup | grep 'Proto\|:53 \|:67 \|:80 \|:471'

root@aml:~# sudo netstat -nltup | grep 'Proto\|:53 \|:67 \|:80 \|:471'
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 0.0.0.0:80          0.0.0.0:*        LISTEN      2137/lighttpd
tcp6      0      0 :::80                   :::*                 LISTEN      2137/lighttpd

You are running Debian Stretch on AArch64.

What distribution are you running and what type of filesystem are you using? (EXT2/3/4 or something else?)

My distribution is Armbian_5.64_Aml-s9xxx_Debian_stretch_default_4.19.0-rc7_20181019.img found here : https://yadi.sk/d/5_32km_EsCV2A/ARMBIAN/5.64/20181019
I followed this post to install it : ARMBIAN for Amlogic S905 and S905X (ver 5.44 =<) - General Chat - Armbian forum and i used this dtb file (in theory) customized for my box https://github.com/150balbes/Amlogic_s905/tree/535b3e013acfeb189da206d22d29a99905e3dc9d/dtb_file/S905/T95X_1g8g

Filesystem type is EXT4.

Have a read here about “Linux capabilities”:

https://docs.pi-hole.net/ftldns/in-depth/#linux-capabilities

Solution supplied here:

2 Likes

It works !

Thk you very much :slight_smile:

bye.

1 Like

Looks like the guys are working on it:

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