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

QNAP Installation with Container Station 3 - Wiki Updates #543

Closed shackrock closed 6 months ago

shackrock commented 6 months ago

Current Situation

The current wiki shows how to install on an old image (I understand ONZO is replaced w/ homebridge/homebridge on the docker repos as I saw in some older forum threads here), and it tells how to set it up with an old container station - and the options are much different now in QNAP's "container station 3." I'm having a hard time getting anything to function successfully on QNAP.

Would appreciate anyone's help to update the wiki for QNAP!

https://github.com/homebridge/docker-homebridge/wiki/Homebridge-on-QNAP

Docker Config

Following here: https://github.com/homebridge/docker-homebridge/wiki/Homebridge-on-QNAP

Logs

This is a fresh install using homebridge/homebridge docker container from container station 3, and I changed settings as best as possible to match the wiki but some of it is named differently so maybe I screwed that up...

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

[12/29/2023, 3:28:31 PM] [HB Supervisor] Creating default config.json: /var/lib/homebridge/config.json
[12/29/2023, 3:28:31 PM] [HB Supervisor] OS: Linux 5.10.60-qnap x64
[12/29/2023, 3:28:31 PM] [HB Supervisor] Node.js v18.13.0 /opt/homebridge/bin/node
[12/29/2023, 3:28:31 PM] [HB Supervisor] Homebridge Path: null
[12/29/2023, 3:28:31 PM] [HB Supervisor] UI Path: /opt/homebridge/lib/node_modules/homebridge-config-ui-x/dist/bin/standalone.js
[12/29/2023, 3:29:12 PM] [Homebridge UI] Homebridge Config UI X v4.50.2 is listening on :: port 8581
[12/29/2023, 3:29:14 PM] [HB Supervisor] Could not find Homebridge. Make sure you have installed homebridge using the -g flag then restart.
[12/29/2023, 3:29:14 PM] [HB Supervisor] npm install -g --unsafe-perm homebridge
[12/29/2023, 4:34:58 PM] [Homebridge UI] Added new user: USERNAME
[12/29/2023, 4:34:59 PM] [Homebridge UI] Unable To Find Homebridge Installation - see https://homebridge.io/w/JJSgZ for help.
[12/29/2023, 4:34:59 PM] [Homebridge UI] Failed to check for Node.js version updates - check your internet connection.
[12/29/2023, 4:34:59 PM] [Homebridge UI] [homebridge-config-ui-x] Failed to check registry.npmjs.org for updates: "getaddrinfo EAI_AGAIN registry.npmjs.org" - see https://homebridge.io/w/JJSz6 for help.
[12/29/2023, 4:36:00 PM] [Homebridge UI] [homebridge-config-ui-x] Failed to check registry.npmjs.org for updates: "getaddrinfo EAI_AGAIN registry.npmjs.org" - see https://homebridge.io/w/JJSz6 for help.
[12/29/2023, 4:37:39 PM] [Homebridge UI] Unable To Find Homebridge Installation - see https://homebridge.io/w/JJSgZ for help.
[12/29/2023, 4:37:39 PM] [Homebridge UI] [homebridge-config-ui-x] Failed to check registry.npmjs.org for updates: "getaddrinfo EAI_AGAIN registry.npmjs.org" - see https://homebridge.io/w/JJSz6 for help.
[12/29/2023, 4:38:57 PM] [Homebridge UI] Unable To Find Homebridge Installation - see https://homebridge.io/w/JJSgZ for help.
[12/29/2023, 4:38:57 PM] [Homebridge UI] [homebridge-config-ui-x] Failed to check registry.npmjs.org for updates: "getaddrinfo EAI_AGAIN registry.npmjs.org" - see https://homebridge.io/w/JJSz6 for help.
[12/29/2023, 4:39:00 PM] [Homebridge UI] Unable To Find Homebridge Installation - see https://homebridge.io/w/JJSgZ for help.
[12/29/2023, 4:39:00 PM] [Homebridge UI] [homebridge-config-ui-x] Failed to check registry.npmjs.org for updates: "getaddrinfo EAI_AGAIN registry.npmjs.org" - see https://homebridge.io/w/JJSz6 for help.
[12/29/2023, 4:39:57 PM] [Homebridge UI] Starting terminal session
[12/29/2023, 4:41:13 PM] [Homebridge UI] Unable To Find Homebridge Installation - see https://homebridge.io/w/JJSgZ for help.
[12/29/2023, 4:41:13 PM] [Homebridge UI] [homebridge-config-ui-x] Failed to check registry.npmjs.org for updates: "getaddrinfo EAI_AGAIN registry.npmjs.org" - see https://homebridge.io/w/JJSz6 for help.
[12/29/2023, 4:41:27 PM] [Homebridge UI] Terminal session ended.
[12/29/2023, 4:41:28 PM] [Homebridge UI] Homebridge restart request received
[12/29/2023, 4:41:28 PM] [Homebridge UI] Sending SIGTERM to process...
[12/29/2023, 4:41:28 PM] [HB Supervisor] Stopping services...
[12/29/2023, 4:42:48 PM] [HB Supervisor] OS: Linux 5.10.60-qnap x64
[12/29/2023, 4:42:48 PM] [HB Supervisor] Node.js v18.13.0 /opt/homebridge/bin/node
[12/29/2023, 4:42:48 PM] [HB Supervisor] Homebridge Path: null
[12/29/2023, 4:42:48 PM] [HB Supervisor] UI Path: /opt/homebridge/lib/node_modules/homebridge-config-ui-x/dist/bin/standalone.js
[12/29/2023, 4:42:59 PM] [Homebridge UI] Homebridge Config UI X v4.50.2 is listening on :: port 8581
[12/29/2023, 4:42:59 PM] [HB Supervisor] Could not find Homebridge. Make sure you have installed homebridge using the -g flag then restart.
[12/29/2023, 4:42:59 PM] [HB Supervisor] npm install -g --unsafe-perm homebridge
[12/29/2023, 4:44:12 PM] [Homebridge UI] Unable To Find Homebridge Installation - see https://homebridge.io/w/JJSgZ for help.
[12/29/2023, 4:44:12 PM] [Homebridge UI] Failed to check for Node.js version updates - check your internet connection.
[12/29/2023, 4:44:12 PM] [Homebridge UI] [homebridge-config-ui-x] Failed to check registry.npmjs.org for updates: "getaddrinfo EAI_AGAIN registry.npmjs.org" - see https://homebridge.io/w/JJSz6 for help.
[12/29/2023, 4:44:17 PM] [Homebridge UI] Homebridge restart request received
[12/29/2023, 4:44:18 PM] [Homebridge UI] Sending SIGTERM to process...
[12/29/2023, 4:44:18 PM] [HB Supervisor] Stopping services...
[12/29/2023, 5:02:31 PM] [HB Supervisor] OS: Linux 5.10.60-qnap x64
[12/29/2023, 5:02:31 PM] [HB Supervisor] Node.js v18.18.2 /opt/homebridge/bin/node
[12/29/2023, 5:02:31 PM] [HB Supervisor] Homebridge Path: null
[12/29/2023, 5:02:31 PM] [HB Supervisor] UI Path: /opt/homebridge/lib/node_modules/homebridge-config-ui-x/dist/bin/standalone.js
[12/29/2023, 5:02:40 PM] [Homebridge UI] Homebridge UI v4.53.0 is listening on :: port 8581
[12/29/2023, 5:02:40 PM] [HB Supervisor] Could not find Homebridge. Make sure you have installed homebridge using the -g flag then restart.
[12/29/2023, 5:02:40 PM] [HB Supervisor] npm install -g --unsafe-perm homebridge
[12/29/2023, 5:20:15 PM] [Homebridge UI] Unable To Find Homebridge Installation - see https://homebridge.io/w/JJSgZ for help.
[12/29/2023, 5:20:15 PM] [Homebridge UI] Failed to check for Node.js version updates - check your internet connection.
[12/29/2023, 5:20:15 PM] [Homebridge UI] [homebridge-config-ui-x] Failed to check registry.npmjs.org for updates: "getaddrinfo EAI_AGAIN registry.npmjs.org" - see https://homebridge.io/w/JJSz6 for help.
[12/29/2023, 5:20:15 PM] [Homebridge UI] [homebridge-config-ui-x] Failed to check registry.npmjs.org for updates: "getaddrinfo EAI_AGAIN registry.npmjs.org" - see https://homebridge.io/w/JJSz6 for help.

Host Operating System

QNAP

Host Architecture

x86_64 / amd64

shackrock commented 6 months ago

Updated w/ Logs from the main screen on first start.

Status says "not running - view logs" and there is no QR code shown.

NorthernMan54 commented 6 months ago

Thanks for identifying that the images are incorrect and still reference the older Oznu docker image, and not the current homebridge instance. For updating the wiki, I believe anyone can update the pages, so if you could update the images it would much appreciated ( I don't have a QNAP or else I would ).

Looking at the logs, it appears that the container is having issues connecting to the internet to perform updates and installation, are you missing a setting giving the container access to the internet ?

shackrock commented 6 months ago

I see... I don't believe so. I am setting to HOST mode as noted in there - and there isn't really any other setting to pick from other than the default NAT mode. I will play around a bit and see if NAT mode is better, thanks for that tip. If I figure anything out, I will give the wiki updates a shot too.

NorthernMan54 commented 6 months ago

Host mode is needed for mDNS to work correctly, but you haven't got that far yet.

shackrock commented 6 months ago

Ok, I completely uninstalled container station and reinstalled it (losing a few older dockers I didn't care about in the process) - but it works now, so likely there were some old issues w/ the container station and setup that was causing this issue entirely. I'll try to update the wiki sometime soon w/ some extra details.

NorthernMan54 commented 6 months ago

Tks for sharing