Comments (4)
I just figured this out. Before proceeding you can always export to a backup.
Steps:
- Launch/login to your Homebridge WebUI, go to Settings, and select Backup/Restore.
- Once the backup is complete, select the three dots in the top right corner of the WebUI, and select Terminal.
- It will show the current Node.js version. To update, enter: hb-service update-node
- Restart HomeBridge as prompted.
Those are the steps that worked for me for Docker. I'm now showing as being on Node.js v20.11.0. I didn't lose any configuration or data when doing the update.
from docker-homebridge.
Thx Chuckaknuckie.
I finally did it but in a different way. I asked in Chatgpt how to upgrade hombridge node.js bla bla and executed what came in. All work and did not loose anything.
I basically pause the old container and created a new one with the new image directing it to the same folder etc. It picked everything from the same folder and started with the same config. (the only difference in my new version of Qnap is that I had to define a new IP address and not the NAS one)
this is what came from Chat GPT :
Upgrading Homebridge running in a Docker container on your QNAP NAS involves a few steps. Here's a step-by-step guide:
-
Access your QNAP NAS:
- Open a web browser and navigate to the QNAP web interface using the NAS IP address.
-
Stop the Homebridge Docker Container:
- In the QNAP web interface, go to "Container Station."
- Locate your Homebridge container in the list of containers.
- Stop the Homebridge container.
-
Update the Docker Image:
- Open Container Station.
- In the "Container" tab, find your Homebridge container.
- Select the Homebridge container and click on "Duplicate/Edit" or "Create" (depending on your QNAP version).
- In the new container settings, find the "Image" section.
- Update the Docker image tag to the latest version. You can find the latest version on the Homebridge Docker Hub page.
- Click "Apply" to save the changes.
-
Start the Updated Container:
- Go back to the "Container" tab in Container Station.
- Start the newly created container (which has the updated image).
-
Check Logs for Errors:
- Monitor the logs for any errors or issues during the startup of the updated Homebridge container. You can find logs in the Container Station interface.
-
Verify Homebridge Functionality:
- Once the container has started without errors, verify that Homebridge is functioning correctly by checking its logs for any issues.
-
Update Homebridge Plugins:
- If you have Homebridge plugins installed, it's a good idea to check for updates and update them if necessary.
docker exec -it <your_homebridge_container_name> npm outdated -g docker exec -it <your_homebridge_container_name> npm update -g
- Replace
<your_homebridge_container_name>
with the actual name of your Homebridge container.
- If you have Homebridge plugins installed, it's a good idea to check for updates and update them if necessary.
-
Backup Configuration:
- Before making significant changes, it's always a good practice to back up your Homebridge configuration. You can usually find the configuration file in the host machine's file system or within the Docker volume you have mapped.
-
Reconfigure (if necessary):
- Check the release notes of the Homebridge version you're upgrading to. If there are any breaking changes or new configuration options, adjust your Homebridge configuration file accordingly.
-
Test Your Devices:
- After the upgrade, test your smart home devices to ensure they are still working with Homebridge.
Remember to consult the Homebridge and Docker documentation for any version-specific instructions or updates. Also, take note of any specific configurations you've made in your current setup, as you may need to replicate them in the updated version.
from docker-homebridge.
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.
from docker-homebridge.
This issue has been closed as no further activity has occurred.
from docker-homebridge.
Related Issues (20)
- Homebridge failed to install using the Homebridge on Portainer guide HOT 7
- Exposing port 8000 HOT 3
- docker publish should has a version tag not just ubuntu HOT 7
- QNAP Installation with Container Station 3 - Wiki Updates HOT 6
- Homebridge keep restarting after update HOT 3
- IPv6 issue on first run. Need to disable IPv6 in container HOT 3
- Node errors in logs when starting container with Portainer HOT 2
- Lost configuration after container restart / host reboot HOT 2
- mDNS in a Docker container HOT 4
- `UIX_CUSTOM_PLUGIN_PATH` env var has no effect HOT 3
- Command exexcute .sh file HOT 1
- Cannot connect to ui HOT 4
- Is Docker-Hombridge a limited version of Homebridge, with which you cannot control a second Raspberry with a .sh command? HOT 4
- dbus and other pids are deleted off the host HOT 2
- HB based Docker container doesn't appear to be correctly interfacing with system AVHI-daemon per documentation HOT 6
- How to install latest android-tools/adb inside Homebridge Docker container? HOT 5
- .
- Mounting `/var/run/dbus` for Avahi mDNS causes dbus issues when running in Docker HOT 2
- Installation on LibreELEC (aarch64) fails HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-homebridge.