chriscrowe / docker-pihole-unbound

Run Pi-Hole + Unbound on Docker
1.05k stars 274 forks source link

one-container: s6-svscan crashed #187

Closed arminzaugg closed 1 year ago

arminzaugg commented 1 year ago

I am unable to spin up the one container solution on my raspberry pi gen4. Running sudo docker-compose up results in the following output with errors:

pihole is up-to-date
Attaching to pihole
pihole    | s6-svscan: warning: unable to iopause: Operation not permitted
pihole    | s6-svscan: warning: executing into .s6-svscan/crash
pihole    | s6-svscan crashed. Killing everything and exiting.
pihole    | s6-linux-init-hpr: fatal: unable to reboot(): Operation not permitted
pihole    | s6-svscan: warning: unable to iopause: Operation not permitted
pihole    | s6-svscan: warning: executing into .s6-svscan/crash
pihole    | s6-svscan crashed. Killing everything and exiting.
pihole    | s6-linux-init-hpr: fatal: unable to reboot(): Operation not permitted
pihole    | s6-svscan: warning: unable to iopause: Operation not permitted
pihole    | s6-svscan: warning: executing into .s6-svscan/crash
pihole    | s6-svscan crashed. Killing everything and exiting.
pihole    | s6-linux-init-hpr: fatal: unable to reboot(): Operation not permitted
pihole    | s6-svscan: warning: unable to iopause: Operation not permitted
pihole    | s6-svscan: warning: executing into .s6-svscan/crash
pihole    | s6-svscan crashed. Killing everything and exiting.
pihole    | s6-linux-init-hpr: fatal: unable to reboot(): Operation not permitted
pihole    | s6-svscan: warning: unable to iopause: Operation not permitted
pihole    | s6-svscan: warning: executing into .s6-svscan/crash
pihole    | s6-svscan crashed. Killing everything and exiting.

Can somebody help me with that?

pluim003 commented 1 year ago

Does it work with not starting with sudo, but just on your raspberry pi4: docker-compose up -d ? As I have never used sudo when doing a docker-compose up.

arminzaugg commented 1 year ago

Good point. No, running docker-compose up was the first command I tried, also using the exact compose and .env file from the example in this repo.

I later tried the same command with sudo and started messing around with the compose file, but without any luck. I always get the following error as mentioned above.

pihole    | s6-svscan: warning: unable to iopause: Operation not permitted
pihole    | s6-svscan: warning: executing into .s6-svscan/crash
pihole    | s6-svscan crashed. Killing everything and exiting.
pihole    | s6-linux-init-hpr: fatal: unable to reboot(): Operation not permitted
pihole exited with code 111

Is this maybe a duplicate to https://github.com/chriscrowe/docker-pihole-unbound/issues/160? Am I supposed to change anything when running the one-container on a raspberry?

arminzaugg commented 1 year ago

happy x-mas to you all btw :)

pluim003 commented 1 year ago

Could you post your docker-compose.yml file?

arminzaugg commented 1 year ago

Sure. My compose file should match with the example, I only adjusted the .env file with other values.

version: '3.0'

services:
  pihole:
    container_name: pihole
    image: cbcrowe/pihole-unbound
    hostname: ${HOSTNAME}
    domainname: ${DOMAIN_NAME}
    ports:
      - 443:443/tcp
      - 53:53/tcp
      - 53:53/udp
      - ${PIHOLE_WEBPORT:-80}:80/tcp #Allows use of different port to access pihole web interface when other docker containers use port 80
      # - 5335:5335/tcp # Uncomment to enable unbound access on local server
      # - 22/tcp # Uncomment to enable SSH
    environment:
      - FTLCONF_LOCAL_IPV4=${FTLCONF_LOCAL_IPV4}
      - TZ=${TZ:-UTC}
      - WEBPASSWORD=${WEBPASSWORD}
      - WEBTHEME=${WEBTHEME:-default-light}
      - REV_SERVER=${REV_SERVER:-false}
      - REV_SERVER_TARGET=${REV_SERVER_TARGET}
      - REV_SERVER_DOMAIN=${REV_SERVER_DOMAIN}
      - REV_SERVER_CIDR=${REV_SERVER_CIDR}
      - PIHOLE_DNS_=127.0.0.1#5335
      - DNSSEC="true"
      - DNSMASQ_LISTENING=single
    volumes:
      - /home/pi/dockervolumes/unboundedpihole/etc_pihole-unbound:/etc/pihole:rw
      - /home/pi/dockervolumes/unboundedpihole/etc_pihole_dnsmasq-unbound:/etc/dnsmasq.d:rw
    restart: unless-stopped
arminzaugg commented 1 year ago

My issue is related to Debian Buster on Raspberry as described here - https://github.com/pi-hole/docker-pi-hole/issues/1194. I can confirm that the issue is resolved using a a bullseye base image.