hjdhjd / homebridge-unifi-protect

:video_camera: Complete HomeKit integration for all UniFi Protect device types with full support for most features including HomeKit Secure Video, and more. https://homebridge.io
Other
1.43k stars 88 forks source link

Upgrade to 3.6.0 Unsuccessful #64

Closed fpuigb closed 4 years ago

fpuigb commented 4 years ago

After upgraded to 3.6.0 in a Ubuntu 16.0.4 LTS VM I'm getting these errors.

[9/4/2020, 7:23:04 AM] [Config] Initializing config platform... [9/4/2020, 7:23:04 AM] [Config] Running in Service Mode [9/4/2020, 7:23:04 AM] Error loading platform requested in your config.json at position 2 [9/4/2020, 7:23:04 AM] Error: The requested platform 'UniFi Protect' was not registered by any plugin. at PluginManager.getPluginForPlatform (/usr/lib/node_modules/homebridge/src/pluginManager.ts:224:15) at /usr/lib/node_modules/homebridge/src/server.ts:387:37 at Array.forEach () at Server.loadPlatforms (/usr/lib/node_modules/homebridge/src/server.ts:374:27) at Server.start (/usr/lib/node_modules/homebridge/src/server.ts:153:29) at cli (/usr/lib/node_modules/homebridge/src/cli.ts:80:10) at Object. (/usr/lib/node_modules/homebridge/bin/homebridge:17:22) at Module._compile (internal/modules/cjs/loader.js:1137:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1157:10) at Module.load (internal/modules/cjs/loader.js:985:32) [9/4/2020, 7:23:04 AM] Got SIGTERM, shutting down Homebridge... [9/4/2020, 7:23:09 AM] [HB Supervisor] Homebridge Process Ended. Code: 143, Signal: null

shard87 commented 4 years ago
miwagner1 commented 4 years ago

Same issue here as well

raneses-sg commented 4 years ago

Same on my end, running the plugin in the latest version of Hoobs. Startup log:

9/4/2020, 5:54:11 AM Error loading plugin "homebridge-unifi-protect2".
9/4/2020, 5:54:11 AM /hoobs/node_modules/homebridge-unifi-protect2/dist/protect-platform.js:27
            ffmpegOptions: config.ffmpegOptions ?? settings_1.PROTECT_FFMPEG_OPTIONS,
                                                 ^
SyntaxError: Unexpected token '?'
    at wrapSafe (internal/modules/cjs/loader.js:1070:16)
    at Module._compile (internal/modules/cjs/loader.js:1120:27)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1176:10)
    at Module.load (internal/modules/cjs/loader.js:1000:32)
    at Function.Module._load (internal/modules/cjs/loader.js:899:14)
    at Module.require (internal/modules/cjs/loader.js:1042:19)
    at require (internal/modules/cjs/helpers.js:77:18)
    at Object.<anonymous> (/hoobs/node_modules/homebridge-unifi-protect2/dist/index.js:3:28)
    at Module._compile (internal/modules/cjs/loader.js:1156:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1176:10)
hjdhjd commented 4 years ago

@raneses-sg HOOBS may not be on the latest version of Homebridge. It’s not officially supported. As stated in the Changelog, this version requires Homebridge 1.1.3 or greater.

hjdhjd commented 4 years ago

@fpuigb Can you uninstall the plugin completely and reinstall cleanly and see if that works? Thanks.

miwagner1 commented 4 years ago

Same issue with Homebridge installed on Raspberry Pi OS. Fresh reinstall and reconfigure. same errors.

edit: I am on 1.1.3

Landshark77 commented 4 years ago

Same issue. I'm on 1.1.3 as well.

hjdhjd commented 4 years ago

Would you mind trying completely uninstall both homebridge and the plugins, and reinstalling?

Landshark77 commented 4 years ago

Uninstalled and unchecked the "Remove Plugin Config" -- Same problem Uninstalled and checked the "Remove Plugin Config" -- Same problem

hjdhjd commented 4 years ago

Alright...let me ask this: what version of node are you guys on?

3.6.0 leverages a lot of modern features in node 14 and beyond.

miwagner1 commented 4 years ago

v12.18.3... ahhhhh

hjdhjd commented 4 years ago

Well...upgrade and give it a whirl. :smile:

miwagner1 commented 4 years ago

will do, the guide on https://github.com/homebridge/homebridge/wiki/Install-Homebridge-on-Raspbian uses v12

erictaylor commented 4 years ago

Can confirm issues. Node LTS is still v12.18.3. Just FYI v14 doesn't go LTS until end of October.

miwagner1 commented 4 years ago

upgrading to v14 fixed the issue.

hjdhjd commented 4 years ago

Alright all - I've tracked this down I think. I'll push an update shortly to increase compatibility with node 12. That should fix things...give me a bit to move some things around and push an update.

hjdhjd commented 4 years ago

Please try v3.6.1. Thanks!

phutur1st commented 4 years ago

Back in action here w/ v3.6.1. Thanks for the quick fix!

erictaylor commented 4 years ago

For clarification @hjdhjd, is it still expected that if you have a Doorbell to still disable two way audio? Or should that be working now?

hjdhjd commented 4 years ago

Great. Closing.

hjdhjd commented 4 years ago

@erictaylor Please open a new issue if you have one.

raneses-sg commented 4 years ago

@hjdhjd Appreciate the timely fix, deployed Homebridge proper and verified as working. No go with the latest version of Hoobs without a Node upgrade.

hjdhjd commented 4 years ago

HOOBS will also need to run homebridge 1.1.3 or better as well. Good luck.

github-actions[bot] commented 1 year ago

This issue is locked to prevent necroposting on closed issues. Please create a new issue for related support requests, bug reports, or feature suggestions.