Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot access to the homebridge ui after updating 4.0.0 #169

Closed
adhrinae opened this issue Feb 9, 2025 · 48 comments
Closed

Cannot access to the homebridge ui after updating 4.0.0 #169

adhrinae opened this issue Feb 9, 2025 · 48 comments
Labels

Comments

@adhrinae
Copy link

adhrinae commented Feb 9, 2025

Describe The Bug

hello.
I just updated to 4.0.0 because there was a new update in the DSM package update, but I think it was a pre-release version.

However, since updating to this version, my homebridge ui url has become unreachable (localhost:8581)

I checked the logs, and I suspect that there was an error in the nest.js server startup.

Model: DS920+
DSM: DSM 7.2.2-72806 Update 3

Logs

�[37m[2/9/2025, 11:28:16 AM]�[0m �[36m[HB Supervisor]�[0m OS: Linux 4.4.302+ x64.
�[37m[2/9/2025, 11:28:16 AM]�[0m �[36m[HB Supervisor]�[0m Node.js v20.9.0 /volume1/@appstore/Node.js_v20/usr/local/bin/node.
�[37m[2/9/2025, 11:28:16 AM]�[0m �[36m[HB Supervisor]�[0m Homebridge path: /volume1/homebridge/node_modules/homebridge/bin/homebridge.
�[37m[2/9/2025, 11:28:16 AM]�[0m �[36m[HB Supervisor]�[0m UI path: /var/packages/homebridge/target/app/lib/node_modules/homebridge-config-ui-x/dist/bin/standalone.js.
�[37m[2/9/2025, 11:28:16 AM]�[0m �[36m[HB Supervisor]�[0m The user interface threw an unhandled error.
Error: Cannot find module 'reflect-metadata'
Require stack:
- /volume1/@appstore/homebridge/app/lib/node_modules/homebridge-config-ui-x/node_modules/@nestjs/common/index.js
- /volume1/@appstore/homebridge/app/lib/node_modules/homebridge-config-ui-x/dist/main.js
- /volume1/@appstore/homebridge/app/lib/node_modules/homebridge-config-ui-x/dist/bin/hb-service.js
    at Module._resolveFilename (node:internal/modules/cjs/loader:1048:15)
    at Module._load (node:internal/modules/cjs/loader:901:27)
    at Module.require (node:internal/modules/cjs/loader:1115:19)
    at require (node:internal/modules/helpers:130:18)
    at Object.<anonymous> (/volume1/@appstore/homebridge/app/lib/node_modules/homebridge-config-ui-x/node_modules/@nestjs/common/index.js:11:1)
    at Module._compile (node:internal/modules/cjs/loader:1241:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1295:10)
    at Module.load (node:internal/modules/cjs/loader:1091:32)
    at Module._load (node:internal/modules/cjs/loader:938:12)
    at Module.require (node:internal/modules/cjs/loader:1115:19) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/volume1/@appstore/homebridge/app/lib/node_modules/homebridge-config-ui-x/node_modules/@nestjs/common/index.js',
    '/volume1/@appstore/homebridge/app/lib/node_modules/homebridge-config-ui-x/dist/main.js',
    '/volume1/@appstore/homebridge/app/lib/node_modules/homebridge-config-ui-x/dist/bin/hb-service.js'
  ]
}
�[37m[2/9/2025, 11:28:16 AM]�[0m �[36m[HB Supervisor]�[0m Starting Homebridge with extra flags: -I -P /volume1/homebridge/node_modules --strict-plugin-resolution.
�[37m[2/9/2025, 11:28:16 AM]�[0m �[36m[HB Supervisor]�[0m Started Homebridge v1.8.5 with PID: 12244.
�[37m[2/9/2025, 11:28:16 AM] �[39mLoaded config.json with 1 accessories and 4 platforms.
�[37m[2/9/2025, 11:28:16 AM] �[39mLoaded 0 cached accessories from cachedAccessories.
�[37m[2/9/2025, 11:28:16 AM] �[39m---
�[37m[2/9/2025, 11:28:16 AM] �[39mLoaded plugin: [email protected]
�[37m[2/9/2025, 11:28:16 AM] �[39mRegistering accessory 'homebridge-dummy.DummySwitch'
�[37m[2/9/2025, 11:28:16 AM] �[39m---
�[37m[2/9/2025, 11:28:16 AM] �[39m�[33mThe plugin "homebridge-miot" requires Node.js version of ^18.20.4 || ^20.15.1 || ^22 which does not satisfy the current Node.js version of v20.9.0. You may need to upgrade your installation of Node.js - see https://homebridge.io/w/JTKEF�[39m
�[37m[2/9/2025, 11:28:16 AM] �[39mLoaded plugin: [email protected]
�[37m[2/9/2025, 11:28:16 AM] �[39mRegistering platform 'homebridge-miot.miot'
�[37m[2/9/2025, 11:28:16 AM] �[39m---
�[37m[2/9/2025, 11:28:17 AM] �[39mLoaded plugin: [email protected]
�[37m[2/9/2025, 11:28:17 AM] �[39mRegistering platform 'homebridge-smartthings-ik.HomeBridgeSmartThings'
�[37m[2/9/2025, 11:28:17 AM] �[39m---
�[37m[2/9/2025, 11:28:17 AM] �[39mLoaded plugin: @o-lukas/[email protected]
�[37m[2/9/2025, 11:28:17 AM] �[39mRegistering platform '@o-lukas/homebridge-smartthings-tv.smartthings-tv'
�[37m[2/9/2025, 11:28:17 AM] �[39m---
�[37m[2/9/2025, 11:28:17 AM] �[39mLoading 4 platforms...
�[37m[2/9/2025, 11:28:17 AM] �[39m�[36m[miot]�[39m Initializing miot platform...
�[37m[2/9/2025, 11:28:17 AM] �[39m�[36m[miot]�[39m Initializing child bridge 0E:91:C3:F6:6E:D6
�[37m[2/9/2025, 11:28:17 AM] �[39m�[36m[Smartthings]�[39m Initializing HomeBridgeSmartThings platform...
�[37m[2/9/2025, 11:28:17 AM] �[39m�[36m[Smartthings]�[39m Initializing child bridge 0E:7E:E9:D2:B2:DC
�[37m[2/9/2025, 11:28:17 AM] �[39m�[36m[smartthings-tv]�[39m Initializing smartthings-tv platform...
�[37m[2/9/2025, 11:28:17 AM] �[39m�[36m[smartthings-tv]�[39m Initializing child bridge 0E:03:C6:24:82:D0
�[37m[2/9/2025, 11:28:17 AM] �[39mLoading 1 accessories...
�[37m[2/9/2025, 11:28:17 AM] �[39m�[36m[Sleep Timer (30mins)]�[39m Initializing DummySwitch accessory...
Setup Payload:
X-HM://00253DXCZL6XS
Enter this code with your HomeKit app on your iOS device to pair with Homebridge:
�[30m�[47m                       �[49m�[39m
�[30m�[47m    ┌────────────┐     �[49m�[39m
�[30m�[47m    │ 981-81-411 │     �[49m�[39m
�[30m�[47m    └────────────┘     �[49m�[39m
�[30m�[47m                       �[49m�[39m
�[37m[2/9/2025, 11:28:17 AM] �[39m�[31mError: listen EADDRINUSE: address already in use :::51323�[39m
�[31m    at Server.setupListenHandle [as _listen2] (node:net:1872:16)�[39m
�[31m    at listenInCluster (node:net:1920:12)�[39m
�[31m    at Server.listen (node:net:2008:7)�[39m
�[31m    at EventedHTTPServer.listen (/volume1/homebridge/node_modules/homebridge/node_modules/hap-nodejs/src/lib/util/eventedhttp.ts:166:20)�[39m
�[31m    at HAPServer.listen (/volume1/homebridge/node_modules/homebridge/node_modules/hap-nodejs/src/lib/HAPServer.ts:380:21)�[39m
�[31m    at Bridge.<anonymous> (/volume1/homebridge/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Accessory.ts:1378:18)�[39m
�[31m    at step (/volume1/homebridge/node_modules/homebridge/node_modules/tslib/tslib.js:196:27)�[39m
�[31m    at Object.next (/volume1/homebridge/node_modules/homebridge/node_modules/tslib/tslib.js:177:57)�[39m
�[31m    at /volume1/homebridge/node_modules/homebridge/node_modules/tslib/tslib.js:170:75�[39m
�[31m    at new Promise (<anonymous>)�[39m
�[37m[2/9/2025, 11:28:17 AM] �[39mGot SIGTERM, shutting down Homebridge...
@adhrinae adhrinae added the bug label Feb 9, 2025
@swittmann
Copy link

Same issue, hopefully there is a fix soon :(

@snowleopardw
Copy link

Same here.

@TheCableGuy99
Copy link

same here, even tried completely uninstalling, deleting the shared folder and re-installing from fresh. DS1821+ on DSM 7.2.2-72806 Update 3

@s2kdrifter
Copy link

Same here.

@cdolle
Copy link

cdolle commented Feb 9, 2025

You can temporarily downgrade to 3.1.3 (or whatever version you want) until they get a fix out:

Uninstall Homebridge from the Package Center
Download the 3.1.3 package: https://github.com/homebridge/homebridge-syno-spk/releases/download/3.1.3/homebridge-braswell-3.1.3.spk
Manually install it through the Package Center

@NorthernMan54
Copy link
Contributor

Tks for the feedback, I was trying to update the package this am. And it looks like it has issues

@braunsch
Copy link

braunsch commented Feb 9, 2025

Same errors on 7.2.2-72806... Thank you everyone for looking into it!

@AKWillows
Copy link

Same issue here

@dbrewood
Copy link

dbrewood commented Feb 9, 2025

Looks like I've joined the club too. A great pity there were no notes warning of the issue.

@TheCableGuy99
Copy link

Looks like I've joined the club too. A great pity there were no notes warning of the issue.

These are the notes as it's just being discovered lol

@dbrewood
Copy link

dbrewood commented Feb 9, 2025

Guys if I uninstall 4.0.0 prior to downgrading do I lose all the configuration files, etc? If that is the case I'll hold off on the uninstall and wait on a fix.

@filibuster007
Copy link

filibuster007 commented Feb 9, 2025

I downgraded as suggested. Homebridge runs again however the top widget showing the status of available updates is empty. Any suggestions for that?

edit: fixed the widget issue: reinstalled the previous version (homebridge-braswell-3.1.1.spk) and instead of restoring I did a new setup. Confirmed all was fine and did the update of the UI that was available. After that I restored my previous config and all was good again.

@spiccinocchi
Copy link

Same issue here

@dficken
Copy link

dficken commented Feb 9, 2025

Same here

@Biffothebear666
Copy link

Biffothebear666 commented Feb 9, 2025

Same here - Uninstalled, then manual install homebridge-braswell-3.1.3

@NorthernMan54
Copy link
Contributor

One challenge we have is that we do not have access to a synology device to test releases prior to mass release. And do not have a synology sme available. #143

@ivokik
Copy link

ivokik commented Feb 9, 2025

I downgraded as suggested. Homebridge runs again however the top widget showing the status of available updates is empty. Any suggestions for that?

edit: fixed reinstalled the previous version (homebridge-braswell-3.1.1.spk) and instead of restoring I did a new setup. Confirmed all was fine and did the update of the UI that was available. After that I restored my previous config and all was good again.

so are you saying you are running on 4.0 now?

@filibuster007
Copy link

I downgraded as suggested. Homebridge runs again however the top widget showing the status of available updates is empty. Any suggestions for that?
edit: fixed reinstalled the previous version (homebridge-braswell-3.1.1.spk) and instead of restoring I did a new setup. Confirmed all was fine and did the update of the UI that was available. After that I restored my previous config and all was good again.

so are you saying you are running on 4.0 now?

Sorry nope - this fixed the "update information" widget to work again

@aday95
Copy link

aday95 commented Feb 9, 2025

I have the same issue after upgrading to 4.0.

@flareman
Copy link

flareman commented Feb 9, 2025

Same here, 4.0.0 stuck in reset loop with the same error message as others have demonstrated.

Initially I logged in via SSH, then did the following:

cd /volume1/@appstore/homebridge/app/lib/node_modules/homebridge-config-ui-x
sudo npm install reflect-metadata
sudo npm uninstall -g homebridge-config-ui-x
sudo npm install -g homebridge-config-ui-x

The last command faulted out reporting npm ERR! File exists: /usr/local/bin/hb-service, but did work after stopping the service from within DSM.

I finally set proper permissions:

sudo chown -R homebridge:homebridge /volume1/@appstore/homebridge
sudo chmod -R 755 /volume1/@appstore/homebridge

All of this has the result of allowing homebridge to start up normally and allow me to log in the web UI, but the instance reported not being paired to HK (which obviously was not the case), while attempting to add it anew resulted in a message that the accessory was already added - and indeed, it was. The accessories in HK were all reported as not responding as well.

Eventually, I had to uninstall v4.0.0 and manually reinstall 3.1.3 as others have suggested. The not responding errors did not resolve until after restoring from a backup, but the Update Information widget was coming up empty. Unlocking the web UI home screen and resetting it did the trick, and the setup is working again.

TL;DR: Can jimmy 4.0.0 into working, but the pairing with HK doesn't. Had to manually downgrade, waiting for a fix.

@ctan13
Copy link

ctan13 commented Feb 9, 2025

Same here

@filibuster007
Copy link

Same here, 4.0.0 stuck in reset loop with the same error message as others have demonstrated.

Initially I logged in via SSH, then did the following:

cd /volume1/@appstore/homebridge/app/lib/node_modules/homebridge-config-ui-x
sudo npm install reflect-metadata
sudo npm uninstall -g homebridge-config-ui-x
sudo npm install -g homebridge-config-ui-x

The last command faulted out reporting npm ERR! File exists: /usr/local/bin/hb-service, but did work after stopping the service from within DSM.

I finally set proper permissions:

sudo chown -R homebridge:homebridge /volume1/@appstore/homebridge
sudo chmod -R 755 /volume1/@appstore/homebridge

All of this has the result of allowing homebridge to start up normally and allow me to log in the web UI, but the instance reported not being paired to HK (which obviously was not the case), while attempting to add it anew resulted in a message that the accessory was already added - and indeed, it was. The accessories in HK were all reported as not responding as well.

Eventually, I had to uninstall v4.0.0 and manually reinstall 3.1.3 as others have suggested. The not responding errors did not resolve until after restoring from a backup, but the Update Information widget was coming up empty. Unlocking the web UI home screen and resetting it did the trick, and the setup is working again.

TL;DR: Can jimmy 4.0.0 into working, but the pairing with HK doesn't. Had to manually downgrade, waiting for a fix.

How did you unlock the webui home screen, to make the update information widget load again?

@flareman
Copy link

flareman commented Feb 9, 2025

How did you unlock the webui home screen, to make the update information widget load again?

Using the two lock/unlock buttons on the top right of the UI. Clicking the eye icon opens up a menu with several possible widgets and a reset button.

@sverspecht
Copy link

Same for me.

I was in DSM 7.1 with an old nodejs 18 and wanted to make a full update today... No luck.
I'll try now to downgrade as proposed by @cdolle to keep my WAF ;)

@mattleiphamellis
Copy link

mattleiphamellis commented Feb 9, 2025

I reverted to 3.1.3 and will wait for a re-release of the updated package, but several affected users had success installing "reflect-metadata" in the /homebridge/app/lib/node_modules/homebridge-config-ui-x directory. See the related reddit discussion:

https://www.reddit.com/r/homebridge/comments/1il3tdj/hb_400_on_synology_nas_broken/

@gizbug
Copy link

gizbug commented Feb 9, 2025

Shame this wasnt tested before being released

@TheCableGuy99
Copy link

Shame this wasnt tested before being released

shame people cannot read the comments and understand why!

@TheCableGuy99
Copy link

I reverted to 3.1.3 and will wait for a re-release of the updated package, but several affected users had success installing "reflect-metadata" in the /homebridge/app/lib/node_modules/homebridge-config-ui-x directory. See the related reddit discussion:

https://www.reddit.com/r/homebridge/comments/1il3tdj/hb_400_on_synology_nas_broken/

This worked for me.... had to fix permissions. Thanks for the link!

@NorthernMan54
Copy link
Contributor

Rolled back the current release 4.0.0 to 3.1.3

@s2kdrifter
Copy link

s2kdrifter commented Feb 10, 2025

I reverted to 3.1.3 and will wait for a re-release of the updated package, but several affected users had success installing "reflect-metadata" in the /homebridge/app/lib/node_modules/homebridge-config-ui-x directory. See the related reddit discussion:
https://www.reddit.com/r/homebridge/comments/1il3tdj/hb_400_on_synology_nas_broken/

This worked for me.... had to fix permissions. Thanks for the link!

This worked for me as well. Needed step 1 and step 4. Back up and running. Thanks!

@bwp91
Copy link
Contributor

bwp91 commented Feb 10, 2025

^ I’m interested in whether both steps 1 and 4 are really needed, or whether for example only step 4 is needed but people are doing step 1 anyway.

Could anyone confirm this?

I’m referring to the steps in the above comment reddit link

@TheCableGuy99
Copy link

^ I’m interested in whether both steps 1 and 4 are really needed, or whether for example only step 4 is needed but people are doing step 1 anyway.

Could anyone confirm this?

I’m referring to the steps in the above comment reddit link

yes, both are needed.

@bwp91
Copy link
Contributor

bwp91 commented Feb 10, 2025

^ I’m interested in whether both steps 1 and 4 are really needed, or whether for example only step 4 is needed but people are doing step 1 anyway.
Could anyone confirm this?
I’m referring to the steps in the above comment reddit link

yes, both are needed.

thanks for confirming!

@dbrewood
Copy link

I eventually used the Reddit link and steps to get me up and running again (phew).....

However on logging into Homebridge I'm informed that:

  • Node update needs updating: v20.9.0 → v20.18.2
  • Homebridge UL needs updating to 4.7.0
  • Numerous plugins need updating

So is it safe to do these updates?

@pierre-henri-guillot
Copy link

Hello

Node is updated by Synology. You can do it with terminal but not needed. It always warn for new version
UI you can do it safely
Plugins : yes you can

@TheCableGuy99
Copy link

Just to confirm I've done a complete fresh install (removed the package and homebridge directory), reinstalled the 4.0.1 pre-release. Everything came online first time with no tinkering, restored from backup and everything working as should. Thank you!

@TechDadUK
Copy link

Hi all,

I wanted to share my feedback, like all my HB tanked on Sunday when going to V4.0.0.

I had not completed any manual steps to uninstall or rollback to V3. I just stopped the service until I had time to look at it.

I manually downloaded V4.0.1 beta then triggered a manual update, restarted the service and HB is back fully working.

So from my prospective V4.0.1 beta is a winner and HB runs on V4.

@Biffothebear666
Copy link

Likewise, a manual install of 4.01 and all is working fine

Homebridge v2.0.0-beta.27
Homebridge UI v4.71.0
Node.js v20.9.0
DSM 7.2.2-72806 Update 3

@NorthernMan54
Copy link
Contributor

Tks for the feedback on 4.0.1, just published as latest

@TheCableGuy99
Copy link

Tks for the feedback on 4.0.1, just published as latest

Thanks for your hard work :)

@AKWillows
Copy link

Thank you! 4.0.1 installed through the normal route and full functionality resumed

@sashko-do
Copy link

+1, updated successfully to 4.0.1. thank you!

@dbrewood
Copy link

+1, updated successfully to 4.0.1. thank you guys.

Question though on entering the Homebridge system I'm shownig updates.....

Image

Are these safe to do?

@mitchoklemen
Copy link

mitchoklemen commented Feb 12, 2025

Image

No problems with beta...

@dbrewood
Copy link

Thanks I'll update in that case.

@TheCableGuy99
Copy link

+1, updated successfully to 4.0.1. thank you guys.

Question though on entering the Homebridge system I'm shownig updates.....

Image

Are these safe to do?

You can update Homebridge but Node.js won't update, that's a Synology package they have to release which they haven't as yet. I've moved to the Docker version now as it adds support for everything needed. This doesn't pose a problem but could avoid potential issues in the future. You can hide the node.js update notification from the gear icon on the widget.

@dbrewood
Copy link

Thanks I'll wait on the Node.js update from Synology coming through.

@TechDadUK
Copy link

Tks for the feedback on 4.0.1, just published as latest

Thank you for your work on this, really appreciate you getting an updated version out so quickly, thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests