pi-hole / docker-pi-hole

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

Pihole container keeps restarting on pizero (armv6l) #507

Closed lewixlabs closed 2 years ago

lewixlabs commented 5 years ago

This is a...

Description

My machine:

$ docker logs pihole [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... [cont-init.d] 20-start.sh: exited 267. [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... [cont-init.d] 20-start.sh: exited 267. [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... [cont-init.d] 20-start.sh: exited 267. [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... [cont-init.d] 20-start.sh: exited 267. [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... [cont-init.d] 20-start.sh: exited 267. [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... [cont-init.d] 20-start.sh: exited 267. [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... [cont-init.d] 20-start.sh: exited 267. [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... [cont-init.d] 20-start.sh: exited 267. [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.

Expected Behavior

Container must run without issues

Actual Behavior

Container keeps restarting

Possible Fix

Steps to Reproduce and debugging done

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

  1. Create docker-compose.yml file

    version: "3"

    services: pihole: container_name: pihole image: pihole/pihole:latest restart: unless-stopped ports:

    • "53:53"
    • "67:67"
    • "80:80"
    • "443:443" environment: TZ: "Europe/London" WEBPASSWORD: "my_secret_password" dns:
    • 127.0.0.1
    • 1.1.1.1 volumes:
    • ./pihole/etc/:/etc/pihole/
    • ./pihole/dnsmasq.d/:/etc/dnsmasq.d/
    • ./pihole/pihole.log:/var/log/pihole.log cap_add:
    • NET_ADMIN
  2. Execute command

docker-compose up -d

Thanks to anyone which can help me

Lewix

diginc commented 5 years ago

PiZero isn't compatible with the armHF image tag which is leading to the binaries dying after the container spins up.

Coincidentally a PR was opened to support an ARMEL build for Zero + RBP1 here : https://github.com/pi-hole/docker-pi-hole/pull/506

Once that is done and deployed we'll have something for you to try

lewixlabs commented 5 years ago

Thank you @diginc , meanwhile I will continue to use native pihole release (no docker) which works without issues.

Let me know if I can help testing your next docker preview pihole release.

Lewix

lewixlabs commented 5 years ago

Hi @diginc , I cloned build-ftl branch of @DHandspikerWade pihole repo and I put new armel image on balena cloud project (edited on my local git repo) https://github.com/klutchell/balena-pihole.git

Pihole seems working (service starts and blocks ads) 👍 image

chrisdeely commented 4 years ago

@lewixlabs I've run into the same issue working with the balena cloud setup (https://github.com/klutchell/balena-pihole.git) are you able to share what changes are needed to get the build-ftl version to deploy?

I'm new to Docker but it seems that I would need to change where pihole is sourced from by changing this line in the Dockerfile: FROM pihole/pihole:4.3.2-1_armhf

hombit commented 4 years ago

Confirm problem for pihole/pihole:5.0-armhf image

dsarlo commented 4 years ago

Trying to get this working on my rpizero. Any updates???

stevleibelt commented 3 years ago

Trying to get it started on my raspberry pi 1. Still not working.

Any updates? Building for the aur package is not working anymore :-.

dschaper commented 3 years ago

https://aur.archlinux.org/packages/pi-hole-server/?O=10&PP=10#pinned-633053

stevleibelt commented 3 years ago

@dschaper

Did I made a mistake? After reading all the comments here, I thought it is general "not running on raspberry pi 1" issue which is not related to archlinux arm.

github-actions[bot] commented 2 years 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.

hombit commented 2 years ago

Can anyone confirm it work now?

PromoFaux commented 2 years ago

It should work now yes.. I'll see if I can dig out the comment that confirmed it

PromoFaux commented 2 years ago

Here we go

https://github.com/pi-hole/docker-pi-hole/issues/245#issuecomment-1001454523