pi-hole / docker-pi-hole

Pi-hole in a docker container
https://pi-hole.net
Other
8.58k stars 1.13k forks source link

Gravity Update Connection refused #1314

Closed Taks808 closed 1 year ago

Taks808 commented 1 year ago

This is a: Possible bug or configuration issue

Details

Went to check on PiHole via the web interface for updates. Noticed there was an issue in the diagnostic tab. All of my block lists were not accessible for update. I copied the weblink and pasted into multiple web browsers and I am able to get to the lists.

Related Issues

How to reproduce the issue

  1. Environment data

    • Operating System: [i] Pi-hole Docker Container: 2023.01.10 [✓] Distro: Debian [✓] Version: 11 [✓] dig return code: 0
    • Hardware: Synology DSM 6.2
    • Kernel Architecture:
    • Docker Install Info and version:
    • Software source: Downloaded latest from Docker Registry
    • Supplimentary Software: NONE
    • Hardware architecture: x86_64
  2. docker-compose.yml contents, docker run shell command, or paste a screenshot of any UI based configuration of containers here { "cap_add" : null, "cap_drop" : null, "cmd" : "", "cpu_priority" : 50, "devices" : null, "enable_publish_all_ports" : false, "enable_restart_policy" : true, "enabled" : true, "entrypoint_default" : "/s6-init", "env_variables" : [ { "key" : "PATH", "value" : "/opt/pihole:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" }, { "key" : "phpver", "value" : "php" }, { "key" : "PHP_ERROR_LOG", "value" : "/var/log/lighttpd/error-pihole.log" }, { "key" : "IPv6", "value" : "False" }, { "key" : "S6_KEEP_ENV", "value" : "1" }, { "key" : "S6_BEHAVIOUR_IF_STAGE2_FAILS", "value" : "2" }, { "key" : "S6_CMD_WAIT_FOR_SERVICES_MAXTIME", "value" : "0" }, { "key" : "FTLCONF_LOCAL_IPV4", "value" : "192.168.5.100" }, { "key" : "FTL_CMD", "value" : "no-daemon" }, { "key" : "DNSMASQ_USER", "value" : "root" }, { "key" : "DNSMASQ_LISTENING", "value" : "local" }, { "key" : "WEBPORT", "value" : "8080" }, { "key" : "WEBPASSWORD", "value" : "sanitized" }, { "key" : "TZ", "value" : "Pacific/Honolulu" } ], "exporting" : false, "id" : "e8e0f6a060f2709626183ca969da64dd1280dfdfe7e7cfef757a0d9f111ac282", "image" : "pihole/pihole:latest", "is_ddsm" : false, "is_package" : false, "links" : [], "memory_limit" : 0, "name" : "pihole", "network" : [ { "driver" : "bridge", "name" : "bridge" } ], "network_mode" : "bridge", "port_bindings" : [ { "container_port" : 53, "host_port" : 53, "type" : "tcp" }, { "container_port" : 53, "host_port" : 53, "type" : "udp" }, { "container_port" : 80, "host_port" : 8080, "type" : "tcp" } ], "privileged" : true, "shortcut" : { "enable_shortcut" : false }, "use_host_network" : false, "volume_bindings" : [ { "host_volume_file" : "/docker/pihole2/pihole", "mount_point" : "/etc/pihole", "type" : "rw" }, { "host_volume_file" : "/docker/pihole2/dnsmasq.d", "mount_point" : "/etc/dnsmasq.d", "type" : "rw" } ] }

  3. any additional info to help reproduce Sorry no....

These common fixes didn't work for my issue

If the above debugging / fixes revealed any new information note it here. Add any other debugging steps you've taken or theories on root cause that may help.

I tried to use the web interface to create eh debug log and send the key in this help/bug request but i get an error Error message: curl: (28) Failed to connect to tricorder.pi-hole.net port 443: Connection timed out

[✗] There was an error uploading your debug log.

sergi0g commented 1 year ago

I also experience the same issue with updating the database on a Raspberry Pi 4.

For a workaround:

If you want to update the database, you have to do this again.

github-actions[bot] commented 1 year ago

This issue is stale because it has been open 30 days with no activity. Please comment or update this issue or it will be closed in 5 days.

darrenmurphy7 commented 7 months ago

This issue is intermittent and reoccurring. I have tried various suggestions including sudo systemctl restart unbound, clearing the ftl cache, restarting the system and others. Sometimes the issue is cleared without any reason as to why and then it randomly reappears. Is there any update to fix this please?

sergi0g commented 7 months ago

@darrenmurphy7 I think the cause of the issue might be DNS not working in the container. I think docker has an option to specify a DNS server for the container. Try using your router's default DNS for that.

PromoFaux commented 7 months ago

Yeah, I think that is the solution.

In compose set a dns: 8.8.8.8 or whatever your preferred resolver is.

Long ago we used to recommend the container having 127.0.0.1 as it's resolver but that can cause issues if FTL is not running, so it's not advisable to use that!

darrenmurphy7 commented 7 months ago

@darrenmurphy7 I think the cause of the issue might be DNS not working in the container. I think docker has an option to specify a DNS server for the container. Try using your router's default DNS for that.

Thank you for replying.. FYI I did not install via docker, my router dns points to unbound on pihole and unbound uses 127.0.0.1. I tried adding cloudflare dns to pihole without success but when I added cloudflare dns as additional to router, pihole has successfully updated, thank you. I dont want to use any other dns except unbound. Will there be a permanent fix for pihole gravity update in the future?