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

No Connection to Bridge possible: "device could not be found" #476

Closed Goldsucher closed 1 year ago

Goldsucher commented 1 year ago

Describe The Bug

My whole docker instance was destroyed (thx Synology) so I have to establish homebridge from scratch. So completely fresh docker container:

Problem: I can't add the bridge to Homekit.

After scanning the qr-code it loads about 1 minute and says "device could not be found"

Off course I removed the "old" bridge from Homekit.

Tried latest docker and 2022-10-11.

I also noticed that if I try to add it manually by entering the code, the code is too short. Maybe that changed with latest iOS Updates.

Docker Config

I'm using Synology Docker, so I configure/start it from the Synology UI.

I use default config. Only added TZ = Europe/Berlin variable, mapped /homebridge and configured port.

Logs

basic fresh install log:

Loading logs using native method...
File: /var/lib/homebridge/homebridge.log

[11/16/2022, 2:05:30 PM] [HB Supervisor] Creating default config.json: /var/lib/homebridge/config.json
[11/16/2022, 2:05:30 PM] [HB Supervisor] OS: Linux 3.10.108 x64
[11/16/2022, 2:05:30 PM] [HB Supervisor] Node.js v18.12.1 /opt/homebridge/bin/node
[11/16/2022, 2:05:30 PM] [HB Supervisor] Homebridge Path: /var/lib/homebridge/node_modules/homebridge/bin/homebridge
[11/16/2022, 2:05:30 PM] [HB Supervisor] UI Path: /opt/homebridge/lib/node_modules/homebridge-config-ui-x/dist/bin/standalone.js
[11/16/2022, 2:05:42 PM] [Homebridge UI] Homebridge Config UI X v4.50.2 is listening on 0.0.0.0 port 8581
[11/16/2022, 2:05:44 PM] [HB Supervisor] Starting Homebridge with extra flags: -I -P /var/lib/homebridge/node_modules --strict-plugin-resolution
[11/16/2022, 2:05:44 PM] [HB Supervisor] Started Homebridge v1.5.1 with PID: 147
[11/16/2022, 2:05:45 PM] Loaded config.json with 0 accessories and 1 platforms.
[11/16/2022, 2:05:45 PM] ---
[11/16/2022, 2:05:45 PM] No plugins found.
[11/16/2022, 2:05:45 PM] Loading 1 platforms...
Setup Payload:
X-HM://0024H9TFCNSXM
Enter this code with your HomeKit app on your iOS device to pair with Homebridge:

    ┌────────────┐     
    │ 610-38-136 │     
    └────────────┘     

[11/16/2022, 2:05:45 PM] Homebridge v1.5.1 (HAP v0.10.4) (Homebridge 975E) is running on port 51432.
[11/16/2022, 2:07:50 PM] [Homebridge UI] Added new user: admin
[11/16/2022, 2:08:52 PM] [Homebridge UI] Homebridge restart request received
[11/16/2022, 2:08:53 PM] [Homebridge UI] Sending SIGTERM to process...
[11/16/2022, 2:08:53 PM] [HB Supervisor] Stopping services...
[11/16/2022, 2:08:53 PM] Got SIGTERM, shutting down Homebridge...
[11/16/2022, 2:08:58 PM] [HB Supervisor] Homebridge Process Ended. Code: 143, Signal: null
[11/16/2022, 2:09:01 PM] [HB Supervisor] OS: Linux 3.10.108 x64
[11/16/2022, 2:09:01 PM] [HB Supervisor] Node.js v18.12.1 /opt/homebridge/bin/node
[11/16/2022, 2:09:01 PM] [HB Supervisor] Homebridge Path: /var/lib/homebridge/node_modules/homebridge/bin/homebridge
[11/16/2022, 2:09:01 PM] [HB Supervisor] UI Path: /opt/homebridge/lib/node_modules/homebridge-config-ui-x/dist/bin/standalone.js
[11/16/2022, 2:09:06 PM] [Homebridge UI] Homebridge Config UI X v4.50.2 is listening on 0.0.0.0 port 8581
[11/16/2022, 2:09:07 PM] [HB Supervisor] Starting Homebridge with extra flags: -P /var/lib/homebridge/node_modules --strict-plugin-resolution
[11/16/2022, 2:09:07 PM] [HB Supervisor] Started Homebridge v1.5.1 with PID: 348
[11/16/2022, 2:09:08 PM] Loaded config.json with 0 accessories and 1 platforms.
[11/16/2022, 2:09:08 PM] Loaded 0 cached accessories from cachedAccessories.
[11/16/2022, 2:09:08 PM] ---
[11/16/2022, 2:09:08 PM] No plugins found.
[11/16/2022, 2:09:08 PM] Loading 1 platforms...
Setup Payload:
X-HM://0024H9TFCNSXM
Enter this code with your HomeKit app on your iOS device to pair with Homebridge:

    ┌────────────┐     
    │ 610-38-136 │     
    └────────────┘     

[11/16/2022, 2:09:08 PM] Homebridge v1.5.1 (HAP v0.10.4) (Homebridge 975E) is running on port 51432.

Host Operating System

Synology DSM 7

Host Architecture

x86_64 / amd64

samcro1967 commented 1 year ago

I had a similiar issue yesterday as well. HomeKit just stopped working with HB. I removed HB from HK and am no longer able to add it back.

More details about my setup can be found here: https://www.reddit.com/r/homebridge/comments/ywtonf/homebridge_stopped_working_with_homekit/

Goldsucher commented 1 year ago

Okay sorry, I was stupid: It's very important to "use same network as docker host".