Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pi-hole-multiarch:v3.2.1_debian_armhf not starting on Pi B #218

Closed
muddlethrough opened this issue Jan 15, 2018 · 16 comments
Closed

pi-hole-multiarch:v3.2.1_debian_armhf not starting on Pi B #218

muddlethrough opened this issue Jan 15, 2018 · 16 comments

Comments

@muddlethrough
Copy link

Using the diginc/pi-hole-multiarch:v3.2.1_debian_armhf build, my container is restarting approximately every 20 seconds.

The mapped volumes are created but are empty.

Any ideas?

Docker log:

[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.

@diginc
Copy link
Collaborator

diginc commented Jan 19, 2018

Try adding the environment variable PH_VERBOSE=1 to your container start. It should turn on debugging for some of the startup scripts.

@diginc
Copy link
Collaborator

diginc commented Jan 25, 2018

Does this look anything like #217 ?

@diginc
Copy link
Collaborator

diginc commented Jan 27, 2018

New *_dev tags are out for multiarch with #211 changes

https://hub.docker.com/r/diginc/pi-hole-multiarch/tags/

@muddlethrough
Copy link
Author

Hi @diginc,

Apologies for the delay in getting back to you. I am not able to test at the moment due to being on the road. Will give it a test report back once I get back.

@rspierz
Copy link

rspierz commented Feb 3, 2018

I'm having the same issue with an RPiB on the newest dev image.

# 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.

@diginc
Copy link
Collaborator

diginc commented Feb 5, 2018

set a docker run environment variable to PH_VERBOSE=1 and it should show you why 20-start.sh is existing with a weird return code....

@rspierz
Copy link

rspierz commented Feb 5, 2018

Here is my docker run:
docker run --net=host -e PH_VERBOSE=1 -e WEBPASSWORD="****" -e ServerIP="***" --restart=always --name pihole -d diginc/pi-hole-multiarch:debian_armhf_dev.

This is what I get in 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.

@DXPetti
Copy link

DXPetti commented Feb 6, 2018

Getting the same error on my rpi0 from a fresh pull of both diginc/pi-hole-multiarch:debian_armhf and debian_armhf_dev

[cont-init.d] executing container initialization scripts...
[cont-init.d] 20-start.sh: executing... 
[cont-init.d] 20-start.sh: exited 267.

Adding the environment variable doesn't seem to give any extra detail when querying the container log.

This issue isn't present with the same docker run commands when using the old diginc/pi-hole:arm_v3.1 tag

Docker version below:

docker version
Client:
 Version:      17.04.0-ce
 API version:  1.28
 Go version:   go1.7.5
 Git commit:   4845c56
 Built:        Mon Apr  3 18:22:23 2017
 OS/Arch:      linux/arm

Server:
 Version:      17.04.0-ce
 API version:  1.28 (minimum version 1.12)
 Go version:   go1.7.5
 Git commit:   4845c56
 Built:        Mon Apr  3 18:22:23 2017
 OS/Arch:      linux/arm
 Experimental: false

Run commands:

docker run -d \
    --name pihole \
    -p 53:53/tcp -p 53:53/udp -p 80:80 \
    -v "${DOCKER_CONFIGS}/pihole/:/etc/pihole/" \
    -v "${DOCKER_CONFIGS}/dnsmasq.d/:/etc/dnsmasq.d/" \
    -e ServerIP="${IP:-$(ip route get 8.8.8.8 | awk '{ print $NF; exit }')}" \
    -e ServerIPv6="${IPv6:-$(ip -6 route get 2001:4860:4860::8888 | awk '{ print $10; exit }')}" \
    -e PH_VERBOSE=1 \
    --restart=always \
    diginc/pi-hole-multiarch:debian_armhf_dev

docker logs pihole 2> /dev/null | grep 'password:'

@glitchcrab
Copy link

Just to add to this, I ran with PH_VERBOSE=1 and got the following:

[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.

Hardware is a Raspberry Pi Model B Rev 2 and I'm trying v3.2.1_debian_armhf

@Kevin-De-Koninck
Copy link

Kevin-De-Koninck commented Mar 11, 2018

I got the exact same problem. Is there any progress on this?
I'm running it on Linux raspberrypi 4.9.59+ #1047 Sun Oct 29 11:47:10 GMT 2017 armv6l GNU/Linux

@xac1d
Copy link

xac1d commented Mar 18, 2018

same here. any one find a fix?

@diginc
Copy link
Collaborator

diginc commented Mar 19, 2018

It didn't click with me until I saw Armv6 in Kevin's comment. The images I'm able to build virtually in the cloud are limited to ARMv7+ / ARMHF unfortunately.

The ReadMe is a little misleading since the install docker step for raspberry Pi says

Install docker for your x86-64 system or ARMv6l/ARMv7 system using those links.

but the ARMHF image is not Armv6 compatible. Although docker installs on armv6 my image won't work on it because ARMHF != ARMV6.

I had previously brought up that there maybe some hope for the older armv6 architectures by using armel. That issue also has some more details about why I'm not shipping anything but armhf images, rather than repeat it all here I ask you look #116 over.

Another relevant pre RBI2B support comment

@diginc
Copy link
Collaborator

diginc commented Mar 19, 2018

#244 will make the current support clearer in the readme, sorry for the confusion.
#245 is a reminder to myself or anyone else curious about getting an armv6 image building

@bd12
Copy link

bd12 commented Jul 5, 2018

hey all,
I can reproduce the above problems with my raspberry pi 1 b.
@diginc: will this enhancement be (re-) considered?

fyi, that's my setup:

kernel and os :

$ uname -a
Linux raspi 4.14.34+ #1110 Mon Apr 16 14:51:42 BST 2018 armv6l GNU/Linux

$ cat /etc/os-release
PRETTY_NAME="Raspbian GNU/Linux 9 (stretch)"
NAME="Raspbian GNU/Linux"
VERSION_ID="9"
VERSION="9 (stretch)"

docker:

$ docker version
Client:
 Version:      18.05.0-ce
 API version:  1.37
 Go version:   go1.9.5
 Git commit:   f150324
 Built:        Wed May  9 22:24:36 2018
 OS/Arch:      linux/arm
 Experimental: false
 Orchestrator: swarm

Server:
 Engine:
  Version:      18.05.0-ce
  API version:  1.37 (minimum version 1.12)
  Go version:   go1.9.5
  Git commit:   f150324
  Built:        Wed May  9 22:20:37 2018
  OS/Arch:      linux/arm
  Experimental: false

docker logs after startup with '-e PH_VERBOSE=1'

$ docker logs -f 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.

@diginc
Copy link
Collaborator

diginc commented Jul 5, 2018

Please +1 / 👍 on this issue #245 - it's a successor / fix for this issue.

I've been working on making sure things are ready for the next big pi-hole release but that's nearly complete so I may have some time to work on the ARMEL/v6 version.

JM1 added a commit to JM1/shelp that referenced this issue Jul 2, 2021
@PromoFaux
Copy link
Member

Closing due to being related about a very old tag. Copy pasting the below from elsewhere:

I've not yet been able to test this, but we added linux/arm/v6 support in the latest tag (2021.10 when we switched to using buildx for building mulitarch.. it's considered experimental, but hopefully it "just works"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants