homebridge / docker-homebridge

Homebridge Docker. HomeKit support for the impatient using Docker on x86_64, Raspberry Pi (armhf) and ARM64. Includes ffmpeg + libfdk-aac.
https://hub.docker.com/r/homebridge/homebridge/
GNU General Public License v3.0
2.57k stars 241 forks source link

"s6-svscan: warning: unable to iopause: Operation not permitted" running on Raspberry Pi armv71 #461

Closed codepoet80 closed 2 years ago

codepoet80 commented 2 years ago

Describe The Bug

When attempting to start the container (via command line or docker-compose) a number of warnings and errors prevent startup -- all referring to an inability to iopause: homebridge_1 | s6-svscan: warning: unable to iopause: Operation not permitted

Docker Config

version: '2'
services:
  homebridge:
    image: oznu/homebridge:latest
    restart: always
    network_mode: host
    volumes:
      - ./volumes/homebridge:/homebridge
    logging:
      driver: json-file
      options:
        max-size: "10mb"
        max-file: "1"

Logs

pi@toypi:~/homebridge $ sudo docker-compose up
Creating homebridge_homebridge_1
Attaching to homebridge_homebridge_1
homebridge_1  | s6-svscan: warning: unable to iopause: Operation not permitted
homebridge_1  | s6-svscan: warning: executing into .s6-svscan/crash
homebridge_1  | s6-svscan crashed. Killing everything and exiting.
homebridge_1  | s6-linux-init-shutdownd: fatal: unable to iopause: Operation not permitted
homebridge_1  | s6-supervise s6-linux-init-shutdownd: fatal: unable to iopause: Operation not permitted
homebridge_1  | s6-linux-init-hpr: fatal: unable to reboot(): Operation not permitted
homebridge_homebridge_1 exited with code 0
homebridge_1  | s6-svscan: warning: unable to iopause: Operation not permitted
homebridge_1  | s6-svscan: warning: executing into .s6-svscan/crash
homebridge_1  | s6-svscan crashed. Killing everything and exiting.
homebridge_1  | s6-linux-init-shutdownd: fatal: unable to iopause: Operation not permitted
homebridge_1  | s6-supervise s6-linux-init-shutdownd: fatal: unable to iopause: Operation not permitted
homebridge_1  | s6-linux-init-hpr: fatal: unable to reboot(): Operation not permitted
homebridge_1  | s6-svscan: warning: unable to iopause: Operation not permitted
homebridge_1  | s6-svscan: warning: executing into .s6-svscan/crash
homebridge_1  | s6-supervise s6-linux-init-shutdownd: fatal: unable to iopause: Operation not permitted
homebridge_1  | s6-linux-init-shutdownd: fatal: unable to iopause: Operation not permitted
homebridge_1  | s6-svscan crashed. Killing everything and exiting.
homebridge_1  | s6-linux-init-hpr: fatal: unable to reboot(): Operation not permitted
homebridge_1  | s6-svscan: warning: unable to iopause: Operation not permitted
homebridge_1  | s6-svscan: warning: executing into .s6-svscan/crash
homebridge_1  | s6-svscan crashed. Killing everything and exiting.
homebridge_1  | s6-linux-init-hpr: fatal: unable to reboot(): Operation not permitted
homebridge_homebridge_1 exited with code 111

Host Operating System

Raspberry Pi OS - Latest

Host Architecture

armv7l

codepoet80 commented 2 years ago

This problem was found in another project, and has the same solution: https://github.com/mbentley/docker-timemachine/issues/92

Specifically, there's an issue with the version of libseccomp2 on armv71. This comment with the solution for that project works for this one too: https://github.com/mbentley/docker-timemachine/commit/5c660713024c18c1c5420465ce85b9c01c347b64

I modified my docker-compose.yml adding the following section within the container:

    security_opt: 
      - seccomp:unconfined
everdrone commented 1 year ago

@codepoet80 saved me! thanks!