homebridge / homebridge-config-ui-x

The Homebridge UI. Monitor, configure and backup Homebridge from a browser.
https://homebridge.io
MIT License
2.61k stars 370 forks source link

How to Update Docker Image from ozno/homebridge to homebridge/homebridge #1916

Closed thetatae closed 8 months ago

thetatae commented 8 months ago

Current Situation

I have a working homebridge running on the Synology DSM6 using the Docker. It seems like that I need to update Node.js to version 18.15 or newer to keep my homebridge working sooner or later. But the current Docker Image is ozno/homebridge. To update the Node.js, I believe that I need to change the image to homebridge/homebridge as per my understanding. Please kindly help to provide step-by-step procedures to accomplish this. I have a beginner level of programming or coding so I'm just afraid that I might break my working homebridge if I try to do this myself. Any insights or instructions are highly appreciated! =D

Screenshot 2023-12-08 at 3 04 07 PM Screenshot 2023-12-08 at 3 23 13 PM

Logs

No response

Config

No response

Homebridge UI Version

v4.53.0

Homebridge Version

v1.6.1

Node.js Version

v18.13.0

Operating System

Synology DSM

Environment Info

Raspberry Pi Model

None

grunchy99 commented 8 months ago

Hi thetatae,

You need to delete your current homebridge docker and relaunch your docker (compose up or docker run) with replacing oznu/homebridge by homebridge/hombridge. Before delete, be sure your home bridge data are external to the docker itself, if not, you will loose your homebridge config and the HomeKit devices !!

thetatae commented 8 months ago

Hi thetatae,

You need to delete your current homebridge docker and relaunch your docker (compose up or docker run) with replacing oznu/homebridge by homebridge/hombridge. Before delete, be sure your home bridge data are external to the docker itself, if not, you will loose your homebridge config and the HomeKit devices !!

Hi Grunchy99,

Thanks for your help. It would be highly appreciated if you can help me with a few more questions about this. Can you elaborate on the steps to delete the current homebridge docker? Do you mean deleting the whole docker or deleting homebridge container or oznu/homebridge image?

Screenshot 2023-12-09 at 8 54 51 AM Screenshot 2023-12-09 at 8 54 58 AM

And after that how to add the docker image homebridge/hombridge back without loosing the running homebridge?

Currently I have all homebridge configuration files under the directory /docker/homebridge/

I just don't understand how to replace the existing oznu/homebridge with homebridge/hombridge.

Thanks for your support =D

dwyeraidan commented 8 months ago

You don't need to upgrade your docker image to Homebridge:Homebridge, in order to upgrade your node.js. I have successfully upgraded my node.js and am also running the oznu image.

From the Homebridge web interface, launch terminal and run command:

hb-service update-node

I have the same setup as you.

image

thetatae commented 8 months ago

@dwyeraidan It works!!! And it's so easy and straightforward. Thanks a lot!