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

s6-applyuidgid: fatal: unable to exec hb-service: Exec format error #315

Closed
bmingles opened this issue Jun 27, 2020 · 4 comments
Closed

Comments

@bmingles
Copy link

Describe Your Problem:

I am running docker-compose on a Rasberry PI 3, but am seeing continuous errors in my docker logs

s6-applyuidgid: fatal: unable to exec hb-service: Exec format error

I installed via the manual install instructions found here:
https://github.com/oznu/docker-homebridge/wiki/Homebridge-on-Raspberry-Pi#manual-install

Logs:

This just repeats over and over:

...
homebridge       | s6-applyuidgid: fatal: unable to exec hb-service: Exec format error
homebridge       |
homebridge       |
homebridge       |     Thank you for using the oznu/homebridge docker image!
homebridge       |
homebridge       |   If you find this project useful please STAR it on GitHub:
homebridge       |
homebridge       |          https://github.com/oznu/docker-homebridge
...

Docker Start Command:

docker-compose up -d
version: "3"
services:
    homebridge:
      image: oznu/homebridge:raspberry-pi
      container_name: homebridge
      restart: always
      network_mode: host
      environment:
        - TZ=America/Chicago
        - PGID=1001                 # found using id cmd for my user
        - PUID=1001                 # found using id cmd for my user
        - HOMEBRIDGE_CONFIG_UI=1
        - HOMEBRIDGE_CONFIG_UI_PORT=8080
      volumes:
        - ./homebridge:/homebridge

Homebridge Config:

{
    "bridge": {
        "name": "Homebridge XXXX",
        "username": "XX:XX:XX:XX:XX:XX",
        "port": #####,
        "pin": "###-##-###"
    },
    "accessories": [],
    "platforms": []
}

Screenshots:

Environment:

  • Host Operating System:
    Raspbian Buster
  • Docker Version:
    Docker version 19.03.12, build 48a6621
  • Image Tag / Type:
    raspberry-pi
@oznu
Copy link
Member

oznu commented Jun 30, 2020

I am unable to replicate the issue using your exact docker-compose.yml file, while running the same version of Docker on Raspbian Buster.

Try pulling the image down again:

docker-compose pull
docker-compose up -d

@bmingles
Copy link
Author

bmingles commented Jul 1, 2020

Pulling down the image seems to have fixed my first issue. I can now login but the status says it’s not running. It says there’s an invalid json character.

@bmingles
Copy link
Author

@oznu I'm still seeing the invalid json character error over and over when I start the container

Screen Shot 2020-07-24 at 6 10 09 PM

Any suggestions on how to debug this?

@stale
Copy link

stale bot commented Aug 23, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

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

No branches or pull requests

2 participants