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

ERROR LOADING PLUGIN homebridge-amazondash #19

Open
komainu85 opened this issue May 31, 2017 · 10 comments
Open

ERROR LOADING PLUGIN homebridge-amazondash #19

komainu85 opened this issue May 31, 2017 · 10 comments

Comments

@komainu85
Copy link

Installed home bridge, dash button and homebridge-amazondash per the instructions on my raspberry pi zero.

calling sudo homebridge as root is throwing the below exception. Any ideas?

root@raspberrypi:/usr/local/lib/node_modules/homebridge/devPlugins/homebridge-suncalc# sudo homebridge
*** WARNING *** The program 'node' uses the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see http://0pointer.de/avahi-compat?s=libdns_sd&e=node
*** WARNING *** The program 'node' called 'DNSServiceRegister()' which is not supported (or only supported partially) in the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see http://0pointer.de/avahi-compat?s=libdns_sd&e=node&f=DNSServiceRegister
[5/31/2017, 4:46:21 PM] ====================
[5/31/2017, 4:46:21 PM] ERROR LOADING PLUGIN homebridge-amazondash:
[5/31/2017, 4:46:21 PM] Error: Cannot find module './build/Release/pcap_binding'
at Function.Module._resolveFilename (module.js:469:15)
at Function.Module._load (module.js:417:25)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object. (/usr/local/lib/node_modules/homebridge-amazondash/node_modules/pcap/pcap.js:3:21)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
[5/31/2017, 4:46:21 PM] ====================
[5/31/2017, 4:46:21 PM] No plugins found. See the README for information on installing plugins.
[5/31/2017, 4:46:21 PM] Loaded config.json with 0 accessories and 1 platforms.
[5/31/2017, 4:46:21 PM] ---
[5/31/2017, 4:46:21 PM] Loading 1 platforms...
/usr/local/lib/node_modules/homebridge/lib/api.js:122
throw new Error("The requested platform '" + name + "' was not registered by any plugin.");
^

Error: The requested platform 'AmazonDash' was not registered by any plugin.
at API.platform (/usr/local/lib/node_modules/homebridge/lib/api.js:122:13)
at Server._loadPlatforms (/usr/local/lib/node_modules/homebridge/lib/server.js:284:45)
at Server.run (/usr/local/lib/node_modules/homebridge/lib/server.js:80:36)
at module.exports (/usr/local/lib/node_modules/homebridge/lib/cli.js:40:10)
at Object. (/usr/local/lib/node_modules/homebridge/bin/homebridge:17:22)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)

@komainu85
Copy link
Author

copied in the build folder from homebridge and that works. not a great fix though.

@noisyjack
Copy link

Hi Komainu85, could you explain exactly what you did?

I don't really understand how to do that.

@honkmaster
Copy link

Have the same error? A detailed description would be perfect.

@honkmaster
Copy link

@KhaosT Any help? Is this plugin dead?

@KhaosT
Copy link
Owner

KhaosT commented Mar 17, 2018

Error: Cannot find module './build/Release/pcap_binding'
Please follow the readme and install libpcap-dev ¯_(ツ)_/¯

@honkmaster
Copy link

$ apt-get install libpcap-dev
libpcap-dev is already the newest version.

I have it installed, nonetheless, I have this issue.

@KhaosT
Copy link
Owner

KhaosT commented Mar 17, 2018

In that case can you post the full error log when you run homebridge?

@Sammy990
Copy link

Hi, having the same issue. Hope someone can help libcap-dev installed in the newest version.

Error Log:
2018-5-18 23:24:55] ERROR LOADING PLUGIN homebridge-amazondash:
[2018-5-18 23:24:55] Error: Cannot find module './build/Release/pcap_binding'
at Function.Module._resolveFilename (module.js:538:15)
at Function.Module._load (module.js:468:25)
at Module.require (module.js:587:17)
at require (internal/module.js:11:18)
at Object. (/usr/local/lib/node_modules/homebridge/node_modules/homebridge-amazondash/node_modules/pcap/pcap.js:3:21)
at Module._compile (module.js:643:30)
at Object.Module._extensions..js (module.js:654:10)
at Module.load (module.js:556:32)
at tryModuleLoad (module.js:499:12)
at Function.Module._load (module.js:491:3)
[2018-5-18 23:24:55] ====================

@Sammy990
Copy link

@KhaosT do you have any Hit how to solve it? Or @komainu85 maybe you can explain what you exactly did?
Thanks

@TubadoG
Copy link

TubadoG commented Nov 16, 2018

Sammy, were you ever able to get this running? I have a suspicion that I've got either a permission problem or an install location problem, but I don't have enough experience to know how to debug this on my own. I'm running this as a systemd service and libpcap-dev seems to be installed correctly etc...
Any support would be baller!
thanks,

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

No branches or pull requests

6 participants