Update and upgrade problems Raspberry - Linux - node.js - Nmp
Posted: Monday 07 December 2020 14:09
Hi there,
I have a problem with my Raspberry system. Since, I guess, January 2019, I have a Raspberry Pi, for my Domoticz. For the connection with my iPhones, I use Homebridge. I never used a Raspberry before, so I was, and still am, a bit of a nitwit in the world of Linux.
So I downloaded a version of Linux, with a pre-installed Homebridge. I could install Domoticz with a little help, and it worked for quite a long time. I did the updates of Homebridge, as well as for the plug-ins and Domoticz. I also made backups of Domoticz and made images of the system.
But since March this year I couldn't update Domoticz anymore. As soon as Domotics started, it crashed immediately. So I installed an old image and didn’t do the updates anymore. Later I fount out that I had to upgrade my Linux Debian from version Stretch to Buster.
I also had to update Homebridge. But there started the problem. I also had to upgrade node.js (and npm?). But I couldn’t. I did upgrade according to the tutorial on GitHub (https://github.com/oznu/docker-homebridge) , but it didn't work out. Well, after the upgrade, when I did a check, the version was upgraded, but according to the System Information of Homebridge itself, it still gives the old version number for node.js as well as npm.
According to Homebridge, this is the system information:
OS: Alpine Linux (3.8.1)
Node.js Version: v10.13.0
Npm Version: v6.4.1
Storage Path: /homebridge
Config Path: /homebridge/config.json
Plugin Path: /homebridge/node_modules
Docker: Yes
Then I studied the information of the Homebridge on GitHub better and figured out this:
I also tried to start with a newly installed system, but when I do so, I don't get a stable system when I import my Domoticz backup file. I guess, because of the Homebridge plugins I installed and Domoticz uses?
So I think I need the 'old' Alpine version, upgraded to Buster, Homebridge updated, and now figure out how node.js is installed.
Can someone please give me some info how I can update node.js and npm? Is there a possibility to find out how these were installed and how I can do a proper node.js and npm update?
Or, may be better, how can I get my system back working again, with a stable Domoticz with the backup of the current configuration, Homebridge, Apple Home and the used plugins.
Thanks!
I have a problem with my Raspberry system. Since, I guess, January 2019, I have a Raspberry Pi, for my Domoticz. For the connection with my iPhones, I use Homebridge. I never used a Raspberry before, so I was, and still am, a bit of a nitwit in the world of Linux.
So I downloaded a version of Linux, with a pre-installed Homebridge. I could install Domoticz with a little help, and it worked for quite a long time. I did the updates of Homebridge, as well as for the plug-ins and Domoticz. I also made backups of Domoticz and made images of the system.
But since March this year I couldn't update Domoticz anymore. As soon as Domotics started, it crashed immediately. So I installed an old image and didn’t do the updates anymore. Later I fount out that I had to upgrade my Linux Debian from version Stretch to Buster.
I also had to update Homebridge. But there started the problem. I also had to upgrade node.js (and npm?). But I couldn’t. I did upgrade according to the tutorial on GitHub (https://github.com/oznu/docker-homebridge) , but it didn't work out. Well, after the upgrade, when I did a check, the version was upgraded, but according to the System Information of Homebridge itself, it still gives the old version number for node.js as well as npm.
According to Homebridge, this is the system information:
OS: Alpine Linux (3.8.1)
Node.js Version: v10.13.0
Npm Version: v6.4.1
Storage Path: /homebridge
Config Path: /homebridge/config.json
Plugin Path: /homebridge/node_modules
Docker: Yes
Then I studied the information of the Homebridge on GitHub better and figured out this:
So, as far as I can see, I have Alpine Linux, and I don't know how Homebridge was ever installed, because it was already installed on the image from where I started.• While not recommended, if you are using the "Ubuntu" or "Debian" variant of the image, you can also update inside the container using hb-service update-node and then restarting manually. Users running the "Alpine Linux" variant cannot use hb-service update-node.
• It is important to update Node.js using the same method you originally used to install it, or using hb-service update-node.
Do not update Node.js using instructions you found on some random site on the internet.
Avoid nvm or n - these are great tools for developers, but require additional configuration when running Homebridge as a service user.
Failing to adhere to these guidelines will likely result in you having multiple copies of Node.js installed which will cause many strange problems (if you have done this, see how to fix it on Linux and macOS).
I also tried to start with a newly installed system, but when I do so, I don't get a stable system when I import my Domoticz backup file. I guess, because of the Homebridge plugins I installed and Domoticz uses?
So I think I need the 'old' Alpine version, upgraded to Buster, Homebridge updated, and now figure out how node.js is installed.
Can someone please give me some info how I can update node.js and npm? Is there a possibility to find out how these were installed and how I can do a proper node.js and npm update?
Or, may be better, how can I get my system back working again, with a stable Domoticz with the backup of the current configuration, Homebridge, Apple Home and the used plugins.
Thanks!