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

Missing "passport" package from package.json - 3.0.21 #141

Closed
NorthernMan54 opened this issue Dec 31, 2023 · 12 comments
Closed

Missing "passport" package from package.json - 3.0.21 #141

NorthernMan54 opened this issue Dec 31, 2023 · 12 comments
Labels

Comments

@NorthernMan54
Copy link
Contributor

Raspberry Pi Model

Other (specify in description)

Describe The Bug

7m[12/31/2023, 4:31:57 PM]�[0m �[36m[HB Supervisor]�[0m OS: Linux 4.4.302+ x64
�[37m[12/31/2023, 4:31:57 PM]�[0m �[36m[HB Supervisor]�[0m Node.js v18.15.0 /volume1/@appstore/Node.js_v18/usr/local/bin/node
�[37m[12/31/2023, 4:31:57 PM]�[0m �[36m[HB Supervisor]�[0m Homebridge Path: /volume1/homebridge/node_modules/homebridge/bin/homebridge
�[37m[12/31/2023, 4:31:57 PM]�[0m �[36m[HB Supervisor]�[0m UI Path: /var/packages/homebridge/target/app/lib/node_modules/homebridge-config-ui-x/dist/bin/standalone.js
�[37m[12/31/2023, 4:31:58 PM]�[0m �[36m[HB Supervisor]�[0m ERROR: The user interface threw an unhandled error
Error: Cannot find module 'passport'
Require stack:

  • /volume1/@appstore/homebridge/app/lib/node_modules/homebridge-config-ui-x/node_modules/@nestjs/passport/dist/auth.guard.js
  • /volume1/@appstore/homebridge/app/lib/node_modules/homebridge-config-ui-x/node_modules/@nestjs/passport/dist/index.js
  • /volume1/@appstore/homebridge/app/lib/node_modules/homebridge-config-ui-x/node_modules/@nestjs/passport/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:1075:15)
    at Module._load (node:internal/modules/cjs/loader:920:27)
    at Module.require (node:internal/modules/cjs/loader:1141:19)
    at require (node:internal/modules/cjs/helpers:110:18)
    at Object. (/volume1/@appstore/homebridge/app/lib/node_modules/homebridge-config-ui-x/node_modules/@nestjs/passport/dist/auth.guard.js:17:18)
    at Module._compile (node:internal/modules/cjs/loader:1254:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1308:10)
    at Module.load (node:internal/modules/cjs/loader:1117:32)
    at Module._load (node:internal/modules/cjs/loader:958:12)
    at Module.require (node:internal/modules/cjs/loader:1141:19) {

Logs

7m[12/31/2023, 4:31:57 PM]�[0m �[36m[HB Supervisor]�[0m OS: Linux 4.4.302+ x64
�[37m[12/31/2023, 4:31:57 PM]�[0m �[36m[HB Supervisor]�[0m Node.js v18.15.0 /volume1/@appstore/Node.js_v18/usr/local/bin/node
�[37m[12/31/2023, 4:31:57 PM]�[0m �[36m[HB Supervisor]�[0m Homebridge Path: /volume1/homebridge/node_modules/homebridge/bin/homebridge
�[37m[12/31/2023, 4:31:57 PM]�[0m �[36m[HB Supervisor]�[0m UI Path: /var/packages/homebridge/target/app/lib/node_modules/homebridge-config-ui-x/dist/bin/standalone.js
�[37m[12/31/2023, 4:31:58 PM]�[0m �[36m[HB Supervisor]�[0m ERROR: The user interface threw an unhandled error
Error: Cannot find module 'passport'
Require stack:
- /volume1/@appstore/homebridge/app/lib/node_modules/homebridge-config-ui-x/node_modules/@nestjs/passport/dist/auth.guard.js
- /volume1/@appstore/homebridge/app/lib/node_modules/homebridge-config-ui-x/node_modules/@nestjs/passport/dist/index.js
- /volume1/@appstore/homebridge/app/lib/node_modules/homebridge-config-ui-x/node_modules/@nestjs/passport/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:1075:15)
    at Module._load (node:internal/modules/cjs/loader:920:27)
    at Module.require (node:internal/modules/cjs/loader:1141:19)
    at require (node:internal/modules/cjs/helpers:110:18)
    at Object.<anonymous> (/volume1/@appstore/homebridge/app/lib/node_modules/homebridge-config-ui-x/node_modules/@nestjs/passport/dist/auth.guard.js:17:18)
    at Module._compile (node:internal/modules/cjs/loader:1254:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1308:10)
    at Module.load (node:internal/modules/cjs/loader:1117:32)
    at Module._load (node:internal/modules/cjs/loader:958:12)
    at Module.require (node:internal/modules/cjs/loader:1141:19) {
@NorthernMan54 NorthernMan54 changed the title Missing "passport" package from package.json Missing "passport" package from package.json - 3.0.21 Dec 31, 2023
@NorthernMan54
Copy link
Contributor Author

Added passport back to config-ui-x - homebridge/homebridge-config-ui-x#1964

@NorthernMan54
Copy link
Contributor Author

Also being discussed here - https://discord.com/channels/432663330281226270/973824041238528060

@NorthernMan54
Copy link
Contributor Author

The release 3.0.21 has been unpublished - http://repo.homebridge.io/synology-spk-repo.json

@DaGreenX
Copy link

The release 3.0.21 has been unpublished - http://repo.homebridge.io/synology-spk-repo.json

Hi @NorthernMan54, what should do with this link on my synology ?

@NorthernMan54
Copy link
Contributor Author

NorthernMan54 commented Dec 31, 2023

That link is just the manifest file that is being read by the synology package centre - no need to do anything. I was using that to reference and ensure I was successful in rolling back the release.

@DaGreenX
Copy link

Ok thanks :)
I still see version 3.0.21 in DSM at the moment.

@dficken
Copy link

dficken commented Dec 31, 2023

NorthernMan,

Seeing 3.0.20 as latest version in the Synology package center. Any advice on how to rollback? Trying to avoid a complete uninstall / reinstall

Thanks!

@NorthernMan54
Copy link
Contributor Author

3.0.20 is the rollback, 3.0.21 is the 'broken package'

@dficken
Copy link

dficken commented Dec 31, 2023

How do I perform the rollback? Uninstall / Reinstall or other?

@DaGreenX
Copy link

DaGreenX commented Dec 31, 2023

Yes. works for me :
follow this : https://github.com/homebridge/homebridge-syno-spk/releases
No data lost, configuration is still there.

@NorthernMan54
Copy link
Contributor Author

Release 3.1.0 has been published with NodeJS 20 support and the fix for this issue

@DaGreenX
Copy link

DaGreenX commented Jan 4, 2024 via email

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

3 participants