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

4.54.0 seems to have removed homebridge entirely? #1912

Closed jonnyborbs closed 7 months ago

jonnyborbs commented 8 months ago

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, or hb-service, the commands are just gone. I still have a homebridge 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

testpaul999 commented 8 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

schemers commented 8 months ago

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
Krillle commented 8 months ago

Same here

jonnyborbs commented 8 months ago

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.

devenbj commented 8 months ago

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.

town3r commented 8 months ago

+1

hb-service command not found

jonnyborbs commented 8 months ago

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.

ItsHaysus commented 8 months ago

I get a 500 internal server error after an upgrade, no HB-Service to restart

aure-olivier commented 8 months ago

Same here โ˜๏ธ

Madcat-76310 commented 8 months ago

Same here...

benrabicoff commented 8 months ago

Same for me.

drheck commented 8 months ago

Same here - how to go back?

noelhibbard commented 8 months ago

Whoopsie

Same problem.

Wrangler-93 commented 8 months ago

Same here, running in Docker , did a "Re deploy" in Portainer and everything came back as it was before (Only needed to update Node)

michaelyork commented 8 months ago

Same here

aure-olivier commented 8 months ago

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

noelhibbard commented 8 months ago

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).

Marco-Erlangen commented 8 months ago

Same here.... Yesterday everything was completely reinstalled and everything was up to date. Made the update today. 500 internal server error

town3r commented 8 months ago

Sadly sudo npm install -g --unsafe-perm homebridge-config-ui-x@4.53.0 doesn't resolve the issue. :(

jonnyborbs commented 8 months ago

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.

testpaul999 commented 8 months ago

Possible solution

Madcat-76310 commented 8 months ago

Can you show the commands used (for beginner) ?

noelhibbard commented 8 months ago

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
hibjoe commented 8 months ago

sudo apt reinstall homebridge works on Raspberry Pi ๐Ÿ‘

Krillle commented 8 months ago

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?

nexusis7 commented 8 months ago

killed mine too had to recreate image from docker and restore backup

nexusis7 commented 8 months ago

The purge has begun

magnus319 commented 8 months ago

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

noelhibbard commented 8 months ago

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
schemers commented 8 months ago

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.

town3r commented 8 months ago

sudo apt reinstall homebridge ๐Ÿ‘

this worked for me, still had all my old configs, etc ๐Ÿ™‡

I get Unable to locate package homebridge

kolorfilm commented 8 months ago

sudo apt reinstall homebridge works on Raspberry Pi ๐Ÿ‘

this somehow takes forever in my case. stuck at 60%.

jonnyborbs commented 8 months ago

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 $ 
Krillle commented 8 months ago

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

noelhibbard commented 8 months ago

Those not running homebridge in docker should seriously consider it. So much less hassle.

jonnyborbs commented 8 months ago

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

AntoineCardon commented 8 months ago

For synology package : Just uninstall + reinstall > No config lost :)

Gobias64 commented 8 months ago

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 $ 

Same here.

benrabicoff commented 8 months ago

sudo apt reinstall homebridge brought everything back, including config files on my official RPi image

jonnyborbs commented 8 months ago

Crosslinking to this issue: https://github.com/homebridge/homebridge/issues/3505

nexusis7 commented 8 months ago

hard to believe that they didnt test to see if it was working before releasing it?

kolorfilm commented 8 months ago

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.

Staubgeborener commented 8 months ago

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.

jonnyborbs commented 8 months ago

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 $ 
ItsHaysus commented 8 months ago

sudo npm install -g --unsafe-perm homebridge-config-ui-x@4.53.0

worked for me, back to old version and everything is fine

magnus319 commented 8 months ago

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.

nexusis7 commented 8 months ago

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

ivanvorobei commented 8 months ago

Worked for me sudo hb-config via pi user.

Screenshot 2023-12-07 at 23 31 46

Choose update. if new version available it will solve problem. If not - reset, but you lose all data.

jonnyborbs commented 8 months ago

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.

ivanvorobei commented 8 months ago

Worked for me sudo hb-config via pi user.

Screenshot 2023-12-07 at 23 31 46

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.