pi-hole / docker-pi-hole

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

Docker image dies on Synology #310

Closed gochito closed 6 years ago

gochito commented 6 years ago

This is a Synology DS-216+II, running the dijinc/pi-hole 3.3 version just fine.

Description

I downloaded the version 4 image (Latest Tag) and stopped the v 3.3 image. The new container won't stay up... it just dies within 30 seconds from startup.

Expected Behavior

Startup

Actual Behavior

Dies before starting.

Possible Fix

Steps to Reproduce and debugging done

e.g. your docker run command, pages to visit, CLI commands you ran 1.

Debug steps I have tried

Context and extra information

Your Environment

aptalca commented 6 years ago

You should post a docker log, which will most likely show what the specific error is

diginc commented 6 years ago

Could you try updating to a 2018 version of docker?

Also please add docker log output with the error that is occurring during startup.

Alternatively you can run it in the foreground with something like: sudo docker run -it --rm --name pihole-test -e ServerIP=0.0.0.0 pihole/pihole and report back where it dies.

gochito commented 6 years ago

Hello fellows... 17.05 is the latest docker package available for the Synology.

Here is the log:

[s6-init] making user provided files available at /var/run/s6/etc...exited 0. [s6-init] ensuring user provided files have correct perms...exited 0. [fix-attrs.d] applying ownership & permissions fixes... [fix-attrs.d] 01-resolver-resolv: applying... [fix-attrs.d] 01-resolver-resolv: exited 0. [fix-attrs.d] done. [cont-init.d] executing container initialization scripts... [cont-init.d] 20-start.sh: executing... ::: Starting docker specific setup for docker pihole/pihole ERROR: To function correctly you must pass an environment variables of 'ServerIP' into the docker container with the IP of your docker host from which you are passing web (80) and dns (53) ports from [cont-init.d] 20-start.sh: exited 1. [cont-finish.d] executing container finish scripts... [cont-finish.d] done. [s6-finish] syncing disks. [s6-finish] sending all processes the TERM signal. [s6-finish] sending all processes the KILL signal and exiting. [s6-init] making user provided files available at /var/run/s6/etc...exited 0. [s6-init] ensuring user provided files have correct perms...exited 0. [fix-attrs.d] applying ownership & permissions fixes... [fix-attrs.d] 01-resolver-resolv: applying... [fix-attrs.d] 01-resolver-resolv: exited 0. [fix-attrs.d] done. [cont-init.d] executing container initialization scripts... [cont-init.d] 20-start.sh: executing... ::: Starting docker specific setup for docker pihole/pihole ERROR: To function correctly you must pass an environment variables of 'ServerIP' into the docker container with the IP of your docker host from which you are passing web (80) and dns (53) ports from [cont-init.d] 20-start.sh: exited 1. [cont-finish.d] executing container finish scripts... [cont-finish.d] done. [s6-finish] syncing disks. [s6-finish] sending all processes the TERM signal. [s6-finish] sending all processes the KILL signal and exiting.

diginc commented 6 years ago

ERROR: To function correctly you must pass an environment variables of 'ServerIP' into the docker container with the IP of your docker host from which you are passing web (80) and dns (53) ports from

please add -e ServerIP=0.0.0.0 to your docker run - alternatively your Synology IP address instead of 0.0.0.0.

gochito commented 6 years ago

There you go. Started fine.

[s6-init] making user provided files available at /var/run/s6/etc...exited 0. [s6-init] ensuring user provided files have correct perms...exited 0. [fix-attrs.d] applying ownership & permissions fixes... [fix-attrs.d] 01-resolver-resolv: applying... [fix-attrs.d] 01-resolver-resolv: exited 0. [fix-attrs.d] done. [cont-init.d] executing container initialization scripts... [cont-init.d] 20-start.sh: executing... ::: Starting docker specific setup for docker pihole/pihole ERROR: To function correctly you must pass an environment variables of 'ServerIP' into the docker container with the IP of your docker host from which you are passing web (80) and dns (53) ports from [cont-init.d] 20-start.sh: exited 1. [cont-finish.d] executing container finish scripts... [cont-finish.d] done. [s6-finish] syncing disks. [s6-finish] sending all processes the TERM signal. [s6-finish] sending all processes the KILL signal and exiting. [s6-init] making user provided files available at /var/run/s6/etc...exited 0. [s6-init] ensuring user provided files have correct perms...exited 0. [fix-attrs.d] applying ownership & permissions fixes... [fix-attrs.d] 01-resolver-resolv: applying... [fix-attrs.d] 01-resolver-resolv: exited 0. [fix-attrs.d] done. [cont-init.d] executing container initialization scripts... [cont-init.d] 20-start.sh: executing... ::: Starting docker specific setup for docker pihole/pihole ERROR: To function correctly you must pass an environment variables of 'ServerIP' into the docker container with the IP of your docker host from which you are passing web (80) and dns (53) ports from [cont-init.d] 20-start.sh: exited 1. [cont-finish.d] executing container finish scripts... [cont-finish.d] done. [s6-finish] syncing disks. [s6-finish] sending all processes the TERM signal. [s6-finish] sending all processes the KILL signal and exiting. [s6-init] making user provided files available at /var/run/s6/etc...exited 0. [s6-init] ensuring user provided files have correct perms...exited 0. [fix-attrs.d] applying ownership & permissions fixes... [fix-attrs.d] 01-resolver-resolv: applying... [fix-attrs.d] 01-resolver-resolv: exited 0. [fix-attrs.d] done. [cont-init.d] executing container initialization scripts... [cont-init.d] 20-start.sh: executing... ::: Starting docker specific setup for docker pihole/pihole [i] Existing PHP installation detected : PHP version 7.0.30-0+deb9u1

[i] Installing configs from /etc/.pihole... [i] Existing dnsmasq.conf found... it is not a Pi-hole file, leaving alone! [✓] Copying 01-pihole.conf to /etc/dnsmasq.d/01-pihole.conf chown: cannot access '/etc/pihole/dhcp.leases': No such file or directory

:: ::: ::: ::: ::: ::: ::: ::: ::: ::: :: Image moved / deprecation notice :: OLD IMAGE : diginc/pi-hole :: NEW IMAGE : pihole/pihole :: In order to get the latest updates :: please update your image references :: ::: ::: ::: ::: ::: ::: ::: ::: :::

[i] Neutrino emissions detected... [✓] Pulling blocklist source list into range

[i] Target: raw.githubusercontent.com (hosts) [✓] Status: Retrieval successful

[i] Target: mirror1.malwaredomains.com (justdomains) [✓] Status: Retrieval successful

[i] Target: sysctl.org (hosts) [✓] Status: Retrieval successful

[i] Target: zeustracker.abuse.ch (blocklist.php?download=domainblocklist) [✓] Status: Retrieval successful

[i] Target: s3.amazonaws.com (simple_tracking.txt) [✓] Status: Retrieval successful

[i] Target: s3.amazonaws.com (simple_ad.txt) [✓] Status: Retrieval successful

[i] Target: hosts-file.net (ad_servers.txt) [✓] Status: Retrieval successful

[✓] Consolidating blocklists [✓] Extracting domains from blocklists [i] Number of domains being pulled in by gravity: 157595 [✓] Removing duplicate domains [i] Number of unique domains trapped in the Event Horizon: 134366 [i] Nothing to whitelist! [i] Number of regex filters: 0 [✓] Parsing domains into hosts format [✓] Cleaning up stray matter

[✓] Force-reloading DNS service [✓] DNS service is running [✓] Pi-hole blocking is Enabled [cont-init.d] 20-start.sh: exited 0. [cont-init.d] done. [services.d] starting services Starting crond Starting pihole-FTL (no-daemon) Starting lighttpd [services.d] done.