FTL can't be started

The issue I am facing:
FTL failed to start due to failed to create listening socket for 192.168.0.101: Address already in use

Details about my system:
Ubuntu Server 16.04

What I have changed since installing Pi-hole:
This is a dedicated server running different services, It's not dedicated for Pi-hole only.
Lighttpd port changed from 80 to 82 so web page can be seen through the said port (apache2 running in port 80).
Added line FTLPORT=57 in /etc/pihole/pihole-FTL.conf (didn't seem to affect anything)

Debug: https://tricorder.pi-hole.net/yivdip6odj

root@carinae-studios:/etc/pihole# sudo netstat -nltup | grep 'Proto|:53 |:5053 |:5353 |:5335 |:8953 |:67 |:471 |:82 |:57 |:4373'
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:82 0.0.0.0:* LISTEN 2213/lighttpd
tcp 0 0 169.254.240.72:53 0.0.0.0:* LISTEN 1642/named
tcp 0 0 169.254.169.2:53 0.0.0.0:* LISTEN 1642/named
tcp 0 0 172.18.0.1:53 0.0.0.0:* LISTEN 1642/named
tcp 0 0 172.17.0.1:53 0.0.0.0:* LISTEN 1642/named
tcp 0 0 192.168.0.101:53 0.0.0.0:* LISTEN 1642/named
tcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN 1642/named
tcp6 0 0 :::82 :::* LISTEN 2213/lighttpd
tcp6 0 0 :::53 :::* LISTEN 1642/named
udp 0 0 169.254.240.72:53 0.0.0.0:* 1642/named
udp 0 0 169.254.169.2:53 0.0.0.0:* 1642/named
udp 0 0 172.18.0.1:53 0.0.0.0:* 1642/named
udp 0 0 172.17.0.1:53 0.0.0.0:* 1642/named
udp 0 0 192.168.0.101:53 0.0.0.0:* 1642/named
udp 0 0 127.0.0.1:53 0.0.0.0:* 1642/named
udp6 0 0 :::53 :::* 1642/named
udp6 0 0 :::5053 :::* 4241/java

root@carinae-studios:/etc/pihole# service pihole-FTL status
● pihole-FTL.service - LSB: pihole-FTL daemon
Loaded: loaded (/etc/init.d/pihole-FTL; generated)
Active: active (exited) since Mon 2021-06-21 20:06:30 CDT; 9min ago
Docs: man:systemd-sysv-generator(8)
Process: 4528 ExecStop=/etc/init.d/pihole-FTL stop (code=exited, status=0/SUCCESS)
Process: 4541 ExecStart=/etc/init.d/pihole-FTL start (code=exited, status=0/SUCCESS)

Jun 21 20:06:30 carinae-studios.cf systemd[1]: Starting LSB: pihole-FTL daemon...
Jun 21 20:06:30 carinae-studios.cf pihole-FTL[4541]: Not running
Jun 21 20:06:30 carinae-studios.cf su[4578]: Successful su for pihole by root
Jun 21 20:06:30 carinae-studios.cf su[4578]: + ??? root:pihole
Jun 21 20:06:30 carinae-studios.cf su[4578]: pam_unix(su:session): session opened for user pihole by (uid=0)
Jun 21 20:06:30 carinae-studios.cf pihole-FTL[4541]: dnsmasq: failed to create listening socket for 192.168.0.101: Addre
Jun 21 20:06:30 carinae-studios.cf su[4578]: pam_unix(su:session): session closed for user pihole
Jun 21 20:06:30 carinae-studios.cf systemd[1]: Started LSB: pihole-FTL daemon.

This does not work. 1) This option is not implemented. 2) You can't change the DNS port. DNS communication takes place on port 53, all devices will send and receive on that port.

That's the problem. named already bound to port 53.

named is part of BIND which you need to disable.

FTL is now starting, but, now how do I fix this?, says it can't connect to API.
Diagnostics: https://tricorder.pi-hole.net/5c35wlbbkv

This might be only a display issue due to the fact that your running apache instead of the supported lighttpd

[80] is in use by apache2 (https://docs.pi-hole.net/main/prerequisites/#ports)

Tried stopping apache2 and changing lighttpd port back to 80, still no luck.

Please run from a client and post the output

nslookup pi.hole 192.168.0.101

nslookup flurry.com 192.168.0.101

Are there any errors in /var/log/lighttpd/error.log?

C:\Users\Mr.lRoberth.->nslookup pi.hole 192.168.0.101
Servidor: carinae-studios.cf
Address: 192.168.0.101

Nombre: pi.hole
Addresses: fdba:17c8:6c94::1011
192.168.0.101

C:\Users\Mr.lRoberth.->nslookup flurry.com 192.168.0.101
Servidor: carinae-studios.cf
Address: 192.168.0.101

Nombre: flurry.com
Addresses: ::
0.0.0.0

The output shows, Pi-hole-FTL is working as expected.


Are there any errors in /var/log/pihole-FTL.log?

Do you see this behavior in different browsers? Do you have any browser plugins installed, that might interfere with Pi-hole's web interface?

There are no errors in lighttpd error logs:


2021-06-21 19:47:18: (log.c.217) server started
2021-06-21 19:51:17: (server.c.1828) server stopped by UID = 0 PID = 1
2021-06-21 19:53:49: (log.c.217) server started
2021-06-22 02:15:22: (server.c.1828) server stopped by UID = 0 PID = 1
2021-06-22 02:15:22: (log.c.217) server started
2021-06-22 02:18:03: (server.c.1828) server stopped by UID = 0 PID = 1
2021-06-22 02:18:03: (log.c.217) server started
2021-06-22 02:20:04: (mod_fastcgi.c.2543) FastCGI-stderr: PHP Notice:  Only variables should be passed by reference in $2021-06-22 02:23:05: (server.c.1828) server stopped by UID = 0 PID = 1
2021-06-22 02:23:06: (log.c.217) server started
2021-06-22 02:31:09: (server.c.1828) server stopped by UID = 0 PID = 1
2021-06-22 02:31:09: (log.c.217) server started
2021-06-22 03:19:52: (server.c.1828) server stopped by UID = 0 PID = 1
2021-06-22 03:20:01: (log.c.217) server started
2021-06-22 20:19:14: Session expired! Please re-login on the Pi-hole dashboard.

Yes, this happens on every browser (tried Firefox, Google Chrome, Windows Edge and Internet Explorer), even on my phone. I don't have any plugin or similar that might interfere.


I see you accessed port 82 - which webserver is running currently on that port?

Could you please generate a fresh debug token also?

Webserver is running in port 82.
Debug: https://tricorder.pi-hole.net/3yc5gh6mi4

Unrelated to this problem, but these regex are not what you intended. The connection type https is not part of the domain name:

   22       3        1  0             ^https?://([A-Za-z0-9.-]*\.)?clicks\.beap\.bc\.yahoo\.com/                                            2021-06-22 01:50:02  2021-06-22 01:50:02                                                    
   23       3        1  0             ^https?://([A-Za-z0-9.-]*\.)?secure\.footprint\.net/                                                  2021-06-22 01:50:07  2021-06-22 01:50:07                                                    
   24       3        1  0             ^https?://([A-Za-z0-9.-]*\.)?match\.com/                                                              2021-06-22 01:50:10  2021-06-22 01:50:10                                                    
   25       3        1  0             ^https?://([A-Za-z0-9.-]*\.)?clicks\.beap\.bc\.yahoo(\.\w{2}\.\w{2}|\.\w{2,4})/                       2021-06-22 01:50:14  2021-06-22 01:50:14                                                    
   26       3        1  0             ^https?://([A-Za-z0-9.-]*\.)?sitescout(\.\w{2}\.\w{2}|\.\w{2,4})/                                     2021-06-22 01:50:18  2021-06-22 01:50:18                                                    
   27       3        1  0             ^https?://([A-Za-z0-9.-]*\.)?appnexus(\.\w{2}\.\w{2}|\.\w{2,4})/                                      2021-06-22 01:50:22  2021-06-22 01:50:22                                                    
   28       3        1  0             ^https?://([A-Za-z0-9.-]*\.)?evidon(\.\w{2}\.\w{2}|\.\w{2,4})/                                        2021-06-22 01:50:26  2021-06-22 01:50:26                                                    
   29       3        1  0             ^https?://([A-Za-z0-9.-]*\.)?mediamath(\.\w{2}\.\w{2}|\.\w{2,4})/                                     2021-06-22 01:50:30  2021-06-22 01:50:30                                                    
   30       3        1  0             ^https?://([A-Za-z0-9.-]*\.)?scorecardresearch(\.\w{2}\.\w{2}|\.\w{2,4})/                             2021-06-22 01:50:34  2021-06-22 01:50:34                                                    
   31       3        1  0             ^https?://([A-Za-z0-9.-]*\.)?doubleclick(\.\w{2}\.\w{2}|\.\w{2,4})/                                   2021-06-22 01:50:38  2021-06-22 01:50:38                                                    
   32       3        1  0             ^https?://([A-Za-z0-9.-]*\.)?flashtalking(\.\w{2}\.\w{2}|\.\w{2,4})/                                  2021-06-22 01:50:42  2021-06-22 01:50:42                                                    
   33       3        1  0             ^https?://([A-Za-z0-9.-]*\.)?turn(\.\w{2}\.\w{2}|\.\w{2,4})/                                          2021-06-22 01:50:46  2021-06-22 01:50:46                                                    
   34       3        1  0             ^https?://([A-Za-z0-9.-]*\.)?mathtag(\.\w{2}\.\w{2}|\.\w{2,4})/                                       2021-06-22 01:50:52  2021-06-22 01:50:52                                                    
   35       3        1  0             ^https?://([A-Za-z0-9.-]*\.)?googlesyndication(\.\w{2}\.\w{2}|\.\w{2,4})/                             2021-06-22 01:50:56  2021-06-22 01:50:56                                                    
   36       3        1  0             ^https?://([A-Za-z0-9.-]*\.)?s\.yimg\.com/cv/ae/us/audience/                                          2021-06-22 01:51:01  2021-06-22 01:51:01                                                    
   37       3        1  0             ^https?://([A-Za-z0-9.-]*\.)?clicks\.beap/                                                            2021-06-22 01:51:06  2021-06-22 01:51:06                                                    
   38       3        1  0             ^https?://([A-Za-z0-9.-]*\.)?.doubleclick(\.\w{2}\.\w{2}|\.\w{2,4})/                                  2021-06-22 01:51:10  2021-06-22 01:51:10                                                    
   39       3        1  0             ^https?://([A-Za-z0-9.-]*\.)?yieldmanager(\.\w{2}\.\w{2}|\.\w{2,4})/                                  2021-06-22 01:51:14  2021-06-22 01:51:14                                                    
   40       3        1  0             ^https?://([A-Za-z0-9.-]*\.)?w55c(\.\w{2}\.\w{2}|\.\w{2,4})/                                          2021-06-22 01:51:19  2021-06-22 01:51:19                                                    
   41       3        1  0             ^https?://([A-Za-z0-9.-]*\.)?adnxs(\.\w{2}\.\w{2}|\.\w{2,4})/                                         2021-06-22 01:51:23  2021-06-22 01:51:23                                                    
   42       3        1  0             ^https?://([A-Za-z0-9.-]*\.)?advertising\.com/                                                        2021-06-22 01:51:28  2021-06-22 01:51:28                                                    
   43       3        1  0             ^https?://([A-Za-z0-9.-]*\.)?evidon\.com/                                                             2021-06-22 01:51:32  2021-06-22 01:51:32                                                    
   44       3        1  0             ^https?://([A-Za-z0-9.-]*\.)?scorecardresearch\.com/                                                  2021-06-22 01:51:37  2021-06-22 01:51:37                                                    
   45       3        1  0             ^https?://([A-Za-z0-9.-]*\.)?flashtalking\.com/                                                       2021-06-22 01:51:40  2021-06-22 01:51:40                                                    
   46       3        1  0             ^https?://([A-Za-z0-9.-]*\.)?turn\.com/                                                               2021-06-22 01:51:46  2021-06-22 01:51:46                                                    
   47       3        1  0             ^https?://([A-Za-z0-9.-]*\.)?mathtag\.com/                                                            2021-06-22 01:51:52  2021-06-22 01:51:52                                                    
   48       3        1  0             ^https?://([A-Za-z0-9.-]*\.)?surveylink/                                                              2021-06-22 01:51:55  2021-06-22 01:51:55                                                    
   49       3        1  0             ^https?://([A-Za-z0-9.-]*\.)?info\.yahoo\.com/                                                        2021-06-22 01:51:59  2021-06-22 01:51:59                                                    
   50       3        1  0             ^https?://([A-Za-z0-9.-]*\.)?ads\.yahoo\.com/                                                         2021-06-22 01:52:04  2021-06-22 01:52:04                                                    
   51       3        1  0             ^https?://([A-Za-z0-9.-]*\.)?global\.ard\.yahoo\.com/                                                 2021-06-22 01:52:08  2021-06-22 01:52:08

I did that still no changes.
New debug token: https://tricorder.pi-hole.net/cqilyyo0tb

I'm just gonna end this topic because the main problem was already fixed. I'm gonna create another post for the second problem regarding the dashboard. Thanks.

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