Error Loading Plugin
See original GitHub issueBackstory
New Install of HomeBridge on Ubuntu Server 16.04
Issue
Plugin not loading, causing error on accessory load. Removal of accessory
Environment
- os & os version: Ubuntu Server 16.04
- node version: v4.2.6
- homebridge version: 0.4.42
- homebridge-wol version: latest
Configuration
My configuration looks like this:
{
"bridge": {
"name": "Homebridge",
"username": "REDACTED",
"port": REDACTED,
"pin": "REDACTED"
},
"platforms": [
{
"platform": "Server",
"name": "Homebridge Server",
"port": REDACTED,
"log": "systemd",
"restart": "systemctl restart homebridge"
},
{
"platform": "Wink2",
"name": "WinkHub",
"username": "REDACTED",
"password": "REDACTED",
"client_id": "REDACTED",
"client_secret": "REDACTED",
"direct_access": "true",
"hide_groups": [],
"hide_ids": [],
"fan_ids": [
"REDACTED"
]
}
],
"accessories": [
{
"accessory": "NetworkDevice",
"name": "Server",
"mac": "REDACTED",
"ip": "REDACTED",
"pingInterval": 60,
"wakeGraceTime": 120,
"shutdownGraceTime": 15,
"shutdownCommand": "net rpc shutdown -I REDACTED -U REDACTED -f -t 120"
}
]
}
Log
user@Homebridge:~$ homebridge -U /var/homebridge
[5/11/2018, 6:18:49 PM] Loaded plugin: homebridge-server
[5/11/2018, 6:18:49 PM] Registering platform 'homebridge-server.Server'
[5/11/2018, 6:18:49 PM] ---
[5/11/2018, 6:18:50 PM] Loaded plugin: homebridge-wink2
[5/11/2018, 6:18:50 PM] Registering platform 'homebridge-wink2.Wink2'
[5/11/2018, 6:18:50 PM] ---
[5/11/2018, 6:18:50 PM] ====================
[5/11/2018, 6:18:50 PM] ERROR LOADING PLUGIN homebridge-wol:
[5/11/2018, 6:18:50 PM] SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode
at exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:374:25)
at Object.Module._extensions..js (module.js:417:10)
at Module.load (module.js:344:32)
at Function.Module._load (module.js:301:12)
at Module.require (module.js:354:17)
at require (internal/module.js:12:17)
at Object.<anonymous> (/usr/local/lib/node_modules/homebridge-wol/index.js:1:88)
at Module._compile (module.js:410:26)
at Object.Module._extensions..js (module.js:417:10)
[5/11/2018, 6:18:50 PM] ====================
[5/11/2018, 6:18:50 PM] Loaded config.json with 1 accessories and 2 platforms.
[5/11/2018, 6:18:50 PM] ---
[5/11/2018, 6:18:50 PM] Loading 2 platforms...
[5/11/2018, 6:18:50 PM] [Homebridge Server] Initializing Server platform...
[5/11/2018, 6:18:50 PM] [WinkHub] Initializing Wink2 platform...
[5/11/2018, 6:18:50 PM] [WinkHub] Wink2 Init - Version 2.0.8
[5/11/2018, 6:18:50 PM] Loading 1 accessories...
/usr/local/lib/node_modules/homebridge/lib/api.js:64
throw new Error("The requested accessory '" + name + "' was not registered by any plugin.");
^
Error: The requested accessory 'NetworkDevice' was not registered by any plugin.
at API.accessory (/usr/local/lib/node_modules/homebridge/lib/api.js:64:13)
at Server.str.replace.Server._loadAccessories (/usr/local/lib/node_modules/homebridge/lib/server.js:264:42)
at Server.str.replace.Server.run (/usr/local/lib/node_modules/homebridge/lib/server.js:86:38)
at module.exports (/usr/local/lib/node_modules/homebridge/lib/cli.js:40:10)
at Object.<anonymous> (/usr/local/lib/node_modules/homebridge/bin/homebridge:17:22)
at Module._compile (module.js:410:26)
at Object.Module._extensions..js (module.js:417:10)
at Module.load (module.js:344:32)
at Function.Module._load (module.js:301:12)
at Function.Module.runMain (module.js:442:10)
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Fix missing plugin issues - Adobe Support
Update external plugins to their latest version and relaunch Illustrator. If the problem persists, use the next solution.
Read more >How to Solve "Couldn't Load Plugin" Error on Google Chrome
Fix 1: Make Sure Your Chrome Is Updated · Fix 2: Set Ask First for Your Flash Settings · Fix 3: Delete PepperFlash...
Read more >Error Loading Plugins! - Google Groups
When I run Adobe Illustrator, I get an error message saying "Error Loading Plugins!" and it lists 2 .aip files. I checked for...
Read more >Fastlane 2.183 breaks loading: Error loading plugin · Issue #204
Issue Description Starting in Fastlane 2.183, the plugin fails to load with the following error: Error loading plugin ...
Read more >Troubleshooting plug-ins - IBM
You attempt to install a plug-in, and you receive this message: Error loading plugin: undefined . This error message is displayed when the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Sorry about the delay with this response. As it turns out, there was a rogue version of Node causing me grief. I used the
which
command to help me track it down.No worries, @mpearon. Good luck with getting homebridge installed again. Hopefully it won’t be too much of a hassle.