question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error Loading Plugin

See original GitHub issue

Backstory

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:closed
  • Created 5 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
mpearoncommented, Jul 9, 2018

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.

0reactions
AlexGustafssoncommented, May 15, 2018

No worries, @mpearon. Good luck with getting homebridge installed again. Hopefully it won’t be too much of a hassle.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found