Open trifu22 opened 3 weeks ago
It looks to me like something else is already bound to 0.0.0.0:53
before you attempt to run the playbook.
Run this to get the PID:
sudo ss -tulpen | grep -w '0.0.0.0:53'
where you should get back something like pid=75382
if you get a match. You may well get 2 lines back for that port, where one is for TCP, the other for UDP.
Then from there (for each matching PID):
ps -ef | grep -w '75382' | grep -v grep
where in this example the PID is 75382
. Let's see what that process is (/those processes are).
Hi, well like i said, it's Pihole DHCP server
udp UNCONN 0 0 0.0.0.0:53 0.0.0.0:* users:(("pihole-FTL",pid=1092,fd=6),("pihole-FTL",pid=1083,fd=6),("pihole-FTL",pid=1079,fd=6),("pihole-FTL",pid=1020,fd=6))
tcp LISTEN 0 32 0.0.0.0:53 0.0.0.0:* users:(("pihole-FTL",pid=1092,fd=7),("pihole-FTL",pid=1083,fd=7),("pihole-FTL",pid=1079,fd=7),("pihole-FTL",pid=1020,fd=7)) uid:999 ino:9369 sk:d cgroup:/system.slice/pihole-FTL.service <->
pihole 1092 1020 0 01:54 ? 00:00:00 /usr/bin/pihole-FTL -f
I think more context is needed. It almost sounds like you're trying to run 2 different listeners on the same host.
What does your docker-compose.yml
file look like?
And please when responding, follow this style guide and use code fences around pasted config files, logs, etc: https://docs.github.com/en/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax#quoting-code
Hi, thanks for the quick reply.
And please when responding, follow this style guide and use code fences around pasted config files, logs, etc: https://docs.github.com/en/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax#quoting-code
Will comply
What does your
docker-compose.yml
file look like?
Well, meanwhile i have done a few thnings:
I've stopped Pihole DNS that uses port 53, tried again.
After doing that i've got a conflict on port 80 which is being used by nginx,
Stopped nginx service
The task was completed successfuly
BUT:
my DHCP reservations from pihole were gone
and now docker-pr was using port 80 and couldn't use nginx to serve my website so i needed to uninstall.
All i have now is a Rpi 3B+ with Bookworm distro.
will try to remake the install to show the contents of docker-compose.yml
What does your
docker-compose.yml
file look like?
# Ansible managed
---
# More info at https://github.com/pi-hole/docker-pi-hole/ and https://docs.pi-hole.net/
services:
pihole:
container_name: pihole
image: pihole/pihole:latest
restart: unless-stopped
hostname: 'pihole'
ports:
- "53:53/tcp"
- "53:53/udp"
- "67:67/udp"
- "80:80/tcp"
- "443:443/tcp"
environment:
TZ: 'America/Chicago'
WEBPASSWORD: '******'
ServerIP: '192.168.0.2'
dns:
- 127.0.0.1
- 8.8.8.8
volumes:
- /etc/localtime:/etc/localtime:ro
- './etc-pihole/:/etc/pihole/'
- './etc-dnsmasq.d/:/etc/dnsmasq.d/'
cap_add:
- NET_ADMIN
pihole-exporter:
container_name: pihole-exporter
image: ekofr/pihole-exporter:latest
restart: unless-stopped
hostname: 'pihole-exporter'
ports:
- "9617:9617"
environment:
PIHOLE_HOSTNAME: 'pihole'
PIHOLE_PASSWORD: '******'
INTERVAL: '30s'
PORT: 9617
I see. So you're trying to run an instance of pihole using this stack, in addition to your preexisting pihole instance?
Thank you for getting back to me so quick! Well yes, i have been running Pihole for about two years, plus Nginx to serve my website htat's why port 80 and 443 are open. Pihole manages the DHCP leases on the network so this xplains why port 53 is in use. i thought that the preexisting installment of pihole would work. need to find a workaround.
Hi, While trying to install Internet PI, (i am allready running Pihole for some time). Ran into permissions issues with Docker but they got fixed when i added my user to the group dokcer. Pihole is up and running ass it should. On running
$ ansible-playbook main.yml
i get the following error:My PiHole is handling DHCP on the network, so it makes sense to be bound on port 53. Any thought on how to proceed with the installation?