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

Container doesn't start #441

Closed
frkd-dev opened this issue May 19, 2022 · 3 comments
Closed

Container doesn't start #441

frkd-dev opened this issue May 19, 2022 · 3 comments
Labels

Comments

@frkd-dev
Copy link

Describe The Bug

Today I've pulled latest image and started getting crashes in the node.js with immediate container stop.

Docker Config

version: "3.3"
services:
  homebridge:
    image: oznu/homebridge:ubuntu
    container_name: homebridge
    restart: always
    network_mode: host
    environment:
      - TZ=Europe/Berlin
      - PGID=1000
      - PUID=1000
    volumes:
      - ${HOME}/.docker-volumes/homebridge:/homebridge

Logs

homebridge    | Starting Avahi daemon
homebridge    | Found user 'avahi' (UID 105) and group 'avahi' (GID 108).
homebridge    | Successfully dropped root privileges.
homebridge    | avahi-daemon 0.7 starting up.
homebridge    | No service file found in /etc/avahi/services.
homebridge    | *** WARNING: Detected another IPv4 mDNS stack running on this host. This makes mDNS unreliable and is thus not recommended. ***
homebridge    | Joining mDNS multicast group on interface docker0.IPv4 with address 172.17.0.1.
homebridge    | New relevant interface docker0.IPv4 for mDNS.
homebridge    | Joining mDNS multicast group on interface eth0.IPv4 with address 10.0.0.59.
homebridge    | New relevant interface eth0.IPv4 for mDNS.
homebridge    | Joining mDNS multicast group on interface lo.IPv4 with address 127.0.0.1.
homebridge    | New relevant interface lo.IPv4 for mDNS.
homebridge    | Network interface enumeration completed.
homebridge    | Registering new address record for 172.17.0.1 on docker0.IPv4.
homebridge    | Registering new address record for fdde:8f13:8403:0:dea6:32ff:fecb:c600 on eth0.*.
homebridge    | Registering new address record for fdde:8f13:8403::9e2 on eth0.*.
homebridge    | Registering new address record for 10.0.0.59 on eth0.IPv4.
homebridge    | Registering new address record for ::1 on lo.*.
homebridge    | Registering new address record for 127.0.0.1 on lo.IPv4.
homebridge    | touch: setting times of '/homebridge/homebridge.log': Operation not permitted
homebridge    | sleep: cannot read realtime clock: Operation not permitted
homebridge    | Node.js[445]: ../src/util.cc:188:double node::GetCurrentTimeInMicroseconds(): Assertion `(0) == (uv_gettimeofday(&tv))' failed.
homebridge    | Aborted (core dumped)

Host Operating System

Raspberry Pi OS / Raspbian

Host Architecture

armv7l

@frkd-dev frkd-dev added the bug label May 19, 2022
@frkd-dev
Copy link
Author

Quick googling showed this is a common nodejs bug on rpi. Some links:
docker-library/ghost#283
coderaiser/cloudcmd#357
HaveAGitGat/Tdarr#510
https://gitlab.com/Bockiii/deemix-docker/-/issues/85
and others.

@frkd-dev
Copy link
Author

It turns out this is an issue with libseccomp2 package in raspbian. I got fixed it by installing backported version of this lib:

sudo apt install -t buster-backports libseccomp2

Perhaps it's worth adding to Readme.

@oznu
Copy link
Member

oznu commented May 21, 2022

Updated readme and referenced this issue. Thanks.

@oznu oznu closed this as completed May 21, 2022
@oznu oznu mentioned this issue May 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants