Closed jonnyborbs closed 7 months ago
Same here after update to new ui version all files disappear Have no longer /usr/local/lib/node_modules/homebridgeรconfig-ui-x/dist/bin/hb-service.js Nothing run
Same here. This symlink seems to broken?
pi@homebridge:~ $ ls -l /opt/homebridge/lib/node_modules/homebridge-config-ui-x
lrwxrwxrwx 1 pi pi 8 Dec 7 11:37 /opt/homebridge/lib/node_modules/homebridge-config-ui-x -> ../.54.0
Same here
It's more than a broken symlink I fear. I still have the /usr/local/sbin/hb-config
file but it's now a 1 byte empty file. I can't even run the config utility.
I had a slightl different experience... started with the 500 error.
I was unable to execute the hb-service commands as I was told I needed to run as root or with sudo... I tried root, sudo, and root with sudo... same error. I remove and install homebridge from apt (I'm on Ubuntu 22.04) and reinstall my plugins. Everything returns to prior. Still prompts for the upgrade. I tried it a second time with the exact same results.
+1
hb-service command not found
Using the official HB image I don't even know where to begin attempting to reinstall the packages, and certainly don't want to rebuild - would appreciate maintainer guidance on how we can recover here.
I get a 500 internal server error after an upgrade, no HB-Service to restart
Same here โ๏ธ
Same here...
Same for me.
Same here - how to go back?
Whoopsie
Same problem.
Same here, running in Docker , did a "Re deploy" in Portainer and everything came back as it was before (Only needed to update Node)
Same here
Same here, running in Docker , did a "Re deploy" in Portainer and everything came back as it was before (Only needed to update Node)
Same for me, I just destroyed/recreated the container and it is back with previous homebridge-ui version. FYI, running HB in Docker on Synology NAS
Same here, running in Docker , did a "Re deploy" in Portainer and everything came back as it was before (Only needed to update Node)
I can confirm this worked for me too. Well, not with portainer but with docker compose (down/up).
Same here.... Yesterday everything was completely reinstalled and everything was up to date. Made the update today. 500 internal server error
Sadly sudo npm install -g --unsafe-perm homebridge-config-ui-x@4.53.0
doesn't resolve the issue. :(
I used the recommended reinstall steps for the UI plugin
# cleanup
sudo npm uninstall -g homebridge-config-ui-x
# reinstall
sudo npm install -g --unsafe-perm homebridge-config-ui-x
This got me to the point where the config UI reloaded, but it gave me a warning that the UI was out of sync with the core server version and prompted a restart. Nothing to lose at this point so I allowed it to try.
These are the logs from that attempt:
Dec 7 12:17:46 homebridge systemd[1]: Starting Homebridge...
Dec 7 12:17:46 homebridge run-parts[7432]: Ensuring /var/lib/homebridge is owned by pi
Dec 7 12:17:46 homebridge run-parts[7434]: Setting port 8581 in /etc/nginx/sites-available/homebridge.local
Dec 7 12:17:46 homebridge run-parts[7434]: Reloading nginx...
Dec 7 12:17:46 homebridge systemd[7466]: homebridge.service: Executable /usr/local/lib/node_modules/homebridge-config-ui-x/dist/bin/hb-service.js missing, skipping: Permission denied
Dec 7 12:17:46 homebridge systemd[1]: Started Homebridge.
Dec 7 12:17:46 homebridge systemd[7468]: homebridge.service: Failed to locate executable /usr/local/lib/node_modules/homebridge-config-ui-x/dist/bin/hb-service.js: Permission denied
Dec 7 12:17:46 homebridge systemd[7468]: homebridge.service: Failed at step EXEC spawning /usr/local/lib/node_modules/homebridge-config-ui-x/dist/bin/hb-service.js: Permission denied
Dec 7 12:17:46 homebridge systemd[1]: homebridge.service: Main process exited, code=exited, status=203/EXEC
Dec 7 12:17:46 homebridge systemd[1]: homebridge.service: Failed with result 'exit-code'.
Dec 7 12:17:49 homebridge systemd[1]: homebridge.service: Scheduled restart job, restart counter is at 22.
Dec 7 12:17:49 homebridge systemd[1]: Stopped Homebridge.
Yes, I see the permission denied message. But I still do not have any core homebridge binaries on this system anymore.
Possible solution
Can you show the commands used (for beginner) ?
Can you show the commands used (for beginner) ?
If you are using the official docker image with docker compose, these commands will get you back up:
docker compose down
docker compose up -d
sudo apt reinstall homebridge
works on Raspberry Pi ๐
Sadly
sudo npm install -g --unsafe-perm homebridge-config-ui-x@4.53.0
doesn't resolve the issue. :(
The update was installed via /opt/homebridge/lib/node_modules/homebridge-config-ui-x/upgrade-install.sh 4.54.0 /opt/homebridge
, can this be used to downgrade to 4.53.0?
killed mine too had to recreate image from docker and restore backup
The purge has begun
Sadly
sudo npm install -g --unsafe-perm homebridge-config-ui-x@4.53.0
doesn't resolve the issue. :(
It worked for me by just trying to reinstall 4.54.0
killed mine too had to recreate image from docker and restore backup
You may want to adjust your docker-compose.yml to mount /homebridge externally. That way your config and plugins aren't wiped out if you down/up. Like this for example:
version: '3.8'
services:
homebridge:
container_name: homebridge
image: homebridge/homebridge:latest
restart: always
network_mode: host
environment:
- TZ=America/New_York
volumes:
- ./homebridge-data:/homebridge
sudo apt reinstall homebridge ๐
this worked for me, still had all my old configs, etc ๐
edit: I did notice it downgraded Node back to 18.*
, I ran sudo hb-service update-node
to get it back to 20.10.0
.
sudo apt reinstall homebridge ๐
this worked for me, still had all my old configs, etc ๐
I get Unable to locate package homebridge
sudo apt reinstall homebridge
works on Raspberry Pi ๐
this somehow takes forever in my case. stuck at 60%.
sudo apt reinstall homebridge
does not work on my official RPi image, but I do see that the homebridge
package is not installed.
FWIW, a regular install
does not work either.
pi@homebridge:/usr/local/sbin $ sudo apt reinstall homebridge
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package homebridge
pi@homebridge:/usr/local/sbin $ sudo apt install homebridge
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package homebridge
pi@homebridge:/usr/local/sbin $
Sadly
sudo npm install -g --unsafe-perm homebridge-config-ui-x@4.53.0
doesn't resolve the issue. :(It worked for me by just trying to reinstall 4.54.0
What exactly did you do? Like this:
sudo npm install -g --unsafe-perm homebridge-config-ui-x@4.54.0
Those not running homebridge in docker should seriously consider it. So much less hassle.
It doesn't help that the entire homebridge
repo wiki is broken. Is homebridge dead?
Every link here 404s https://github.com/homebridge/homebridge/wiki
For synology package : Just uninstall + reinstall > No config lost :)
sudo apt reinstall homebridge
does not work on my official RPi image, but I do see that thehomebridge
package is not installed.FWIW, a regular
install
does not work either.pi@homebridge:/usr/local/sbin $ sudo apt reinstall homebridge Reading package lists... Done Building dependency tree... Done Reading state information... Done E: Unable to locate package homebridge pi@homebridge:/usr/local/sbin $ sudo apt install homebridge Reading package lists... Done Building dependency tree... Done Reading state information... Done E: Unable to locate package homebridge pi@homebridge:/usr/local/sbin $
Same here.
sudo apt reinstall homebridge
brought everything back, including config files on my official RPi image
Crosslinking to this issue: https://github.com/homebridge/homebridge/issues/3505
hard to believe that they didnt test to see if it was working before releasing it?
sudo apt reinstall homebridge
works on Raspberry Pi ๐this somehow takes forever in my case. stuck at 60%.
it worked. seemed just not update my terminal. I rebooted the pi and then I was back on the old version.
Glad to hear I'm not the only one. Going back was easy in docker with docker compose down && docker compose up -d
This one needs a fix asap.
So there isn't even a homebridge
package in the apt repositories anymore.
pi@homebridge:/usr/local/sbin $ sudo apt update
Get:1 http://archive.raspberrypi.org/debian buster InRelease [32.6 kB]
Get:2 http://raspbian.raspberrypi.org/raspbian bullseye InRelease [15.0 kB]
Get:3 http://archive.raspberrypi.org/debian buster/main armhf Packages [400 kB]
Fetched 447 kB in 2s (192 kB/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
pi@homebridge:/usr/local/sbin $ sudo apt list | grep home
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
debian-edu-artwork-homeworld/oldstable 2.11.6-1 all
golang-github-mitchellh-go-homedir-dev/oldstable 1.1.0-1 all
hdhomerun-config/oldstable 20210210-1 armhf
homebank-data/oldstable 5.5.2-1 all
homebank/oldstable 5.5.2-1 armhf
homer-api-mysql/oldstable 5.0.6+dfsg2-3.2 armhf
homer-api-postgresql/oldstable 5.0.6+dfsg2-3.2 armhf
homer-api/oldstable 5.0.6+dfsg2-3.2 armhf
homesick/oldstable 1.1.6-3 all
kodi-pvr-hdhomerun-dbg/oldoldstable 3.5.0-1~buster armhf
kodi-pvr-hdhomerun/oldoldstable 3.5.0-1~buster armhf
libfile-homedir-perl/oldstable 1.006-1 all
libfile-save-home-perl/oldstable 0.11-1 all
libhdhomerun-dev/oldstable 20210210-1 armhf
libhdhomerun4/oldstable 20210210-1 armhf
librust-home-dev/oldstable 0.5.1-1 armhf
minetest-mod-homedecor/oldstable 20200604.1-1 all
oddjob-mkhomedir/oldstable 0.34.6-1 armhf
prometheus-homeplug-exporter/oldstable 0.3.0-2 armhf
python3-ofxhome/oldstable 0.3.3-3 all
r-cran-psychometric/oldstable 2.2-2 armhf
sweethome3d-furniture-editor/oldstable 1.25-1 all
sweethome3d-furniture-nonfree/oldstable 1.6.2-2 all
sweethome3d-furniture/oldstable 1.8-1 all
sweethome3d-textures-editor/oldstable 1.6-3 all
sweethome3d/oldstable 6.4.2+dfsg-2 all
unburden-home-dir-doc/oldstable 0.4.1.2 all
unburden-home-dir/oldstable 0.4.1.2 all
pi@homebridge:/usr/local/sbin $ sudo apt install homebridge
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package homebridge
pi@homebridge:/usr/local/sbin $
sudo npm install -g --unsafe-perm homebridge-config-ui-x@4.53.0
worked for me, back to old version and everything is fine
Sadly
sudo npm install -g --unsafe-perm homebridge-config-ui-x@4.53.0
doesn't resolve the issue. :(It worked for me by just trying to reinstall 4.54.0
What exactly did you do? Like this:
sudo npm install -g --unsafe-perm homebridge-config-ui-x@4.54.0
yes but without the '@4.54.0' at the end since it auto installs latest version without that.
So there isn't even a
homebridge
package in the apt repositories anymore.pi@homebridge:/usr/local/sbin $ sudo apt update Get:1 http://archive.raspberrypi.org/debian buster InRelease [32.6 kB] Get:2 http://raspbian.raspberrypi.org/raspbian bullseye InRelease [15.0 kB] Get:3 http://archive.raspberrypi.org/debian buster/main armhf Packages [400 kB] Fetched 447 kB in 2s (192 kB/s) Reading package lists... Done Building dependency tree... Done Reading state information... Done All packages are up to date. pi@homebridge:/usr/local/sbin $ sudo apt list | grep home WARNING: apt does not have a stable CLI interface. Use with caution in scripts. debian-edu-artwork-homeworld/oldstable 2.11.6-1 all golang-github-mitchellh-go-homedir-dev/oldstable 1.1.0-1 all hdhomerun-config/oldstable 20210210-1 armhf homebank-data/oldstable 5.5.2-1 all homebank/oldstable 5.5.2-1 armhf homer-api-mysql/oldstable 5.0.6+dfsg2-3.2 armhf homer-api-postgresql/oldstable 5.0.6+dfsg2-3.2 armhf homer-api/oldstable 5.0.6+dfsg2-3.2 armhf homesick/oldstable 1.1.6-3 all kodi-pvr-hdhomerun-dbg/oldoldstable 3.5.0-1~buster armhf kodi-pvr-hdhomerun/oldoldstable 3.5.0-1~buster armhf libfile-homedir-perl/oldstable 1.006-1 all libfile-save-home-perl/oldstable 0.11-1 all libhdhomerun-dev/oldstable 20210210-1 armhf libhdhomerun4/oldstable 20210210-1 armhf librust-home-dev/oldstable 0.5.1-1 armhf minetest-mod-homedecor/oldstable 20200604.1-1 all oddjob-mkhomedir/oldstable 0.34.6-1 armhf prometheus-homeplug-exporter/oldstable 0.3.0-2 armhf python3-ofxhome/oldstable 0.3.3-3 all r-cran-psychometric/oldstable 2.2-2 armhf sweethome3d-furniture-editor/oldstable 1.25-1 all sweethome3d-furniture-nonfree/oldstable 1.6.2-2 all sweethome3d-furniture/oldstable 1.8-1 all sweethome3d-textures-editor/oldstable 1.6-3 all sweethome3d/oldstable 6.4.2+dfsg-2 all unburden-home-dir-doc/oldstable 0.4.1.2 all unburden-home-dir/oldstable 0.4.1.2 all pi@homebridge:/usr/local/sbin $ sudo apt install homebridge Reading package lists... Done Building dependency tree... Done Reading state information... Done E: Unable to locate package homebridge pi@homebridge:/usr/local/sbin $
interesting.. are they being bought out so big corpos can start charging? lol
Worked for me sudo hb-config
via pi user.
Choose update. if new version available it will solve problem. If not - reset, but you lose all data.
There are two parallel problems here and I think I see the common thread emerging.
My hypothesis: Folks who had recently updated their apt package lists may no longer have had a reference for the homebridge package.
The UI plugin update seems to have attempted an update/upgrade in place and removed the package, then was unable to find a new one to install and replace it.
Folks who had out of date apt package lists still had pointers to the now missing binaries and had a different set of problems.
Worked for me
sudo hb-config
via pi user.![]()
Choose update. if new version available it will solve problem. If not - reset, but you lose all data.
sudo apt reinstall homebridge
should also do the trick. worked in my case.
its ask root access for me, I haven't password. but yes solution around it.
Describe The Bug
Installed 4.54.0 from the plugin update prompt, and immediately my browser redirected to a canned 500 internal server error. Went to the actual server shell to restart homebridge, and discovered it's just completely gone. There's no longer an
hb-config
command to run, orhb-service
, the commands are just gone. I still have ahomebridge
daemon running but I don't think it will last long in memory only. Something is very wrong here.Logs
No response
Config
No response
Homebridge UI Version
4.54.0
Homebridge Version
Not sure now, it was current but now I do not know how to check
Node.js Version
20.10.0
Operating System
Official Homebridge Raspberry Pi Image
Environment Info
Raspberry Pi Model
Raspberry Pi 4 B