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

Problem restarting Homebridge #29

Open
sweetlime05 opened this issue Mar 26, 2020 · 2 comments
Open

Problem restarting Homebridge #29

sweetlime05 opened this issue Mar 26, 2020 · 2 comments
Assignees

Comments

@sweetlime05
Copy link

If you restart the homebridge after installing the plug-in, the same content is repeated in the log and will not run.

[3/26/2020, 8:32:20 PM] [HB Supervisor] Homebridge Process Ended. Code: 1, Signal: null
[3/26/2020, 8:32:25 PM] [HB Supervisor] Restarting Homebridge...
[3/26/2020, 8:32:25 PM] [HB Supervisor] Starting Homebridge with extra flags: -I
[3/26/2020, 8:32:25 PM] [HB Supervisor] Started Homebridge with PID: 2335
[3/26/2020, 8:32:29 PM] Loaded config.json with 0 accessories and 1 platforms.
[3/26/2020, 8:32:29 PM] ---
[3/26/2020, 8:32:29 PM] Loaded plugin: homebridge-bluetooth
Homebridge API version: 2.4
internal/modules/cjs/loader.js:985
throw err;
^

Error: Cannot find module 'bluetooth-hci-socket'
Require stack:

  • /usr/lib/node_modules/homebridge-bluetooth/node_modules/noble/lib/hci-socket/hci.js
  • /usr/lib/node_modules/homebridge-bluetooth/node_modules/noble/lib/hci-socket/bindings.js
  • /usr/lib/node_modules/homebridge-bluetooth/node_modules/noble/lib/resolve-bindings.js
  • /usr/lib/node_modules/homebridge-bluetooth/node_modules/noble/index.js
  • /usr/lib/node_modules/homebridge-bluetooth/index.js
  • /usr/lib/node_modules/homebridge/lib/plugin.js
  • /usr/lib/node_modules/homebridge/lib/server.js
  • /usr/lib/node_modules/homebridge/lib/cli.js
  • /usr/lib/node_modules/homebridge/bin/homebridge
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:982:15)
    at Function.Module._load (internal/modules/cjs/loader.js:864:27)
    at Module.require (internal/modules/cjs/loader.js:1044:19)
    at require (internal/modules/cjs/helpers.js:77:18)
    at Object. (/usr/lib/node_modules/homebridge-bluetooth/node_modules/noble/lib/hci-socket/hci.js:6:26)
    at Module._compile (internal/modules/cjs/loader.js:1158:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1178:10)
    at Module.load (internal/modules/cjs/loader.js:1002:32)
    at Function.Module._load (internal/modules/cjs/loader.js:901:14)
    at Module.require (internal/modules/cjs/loader.js:1044:19) {
    code: 'MODULE_NOT_FOUND',
    requireStack: [
    '/usr/lib/node_modules/homebridge-bluetooth/node_modules/noble/lib/hci-socket/hci.js',
    '/usr/lib/node_modules/homebridge-bluetooth/node_modules/noble/lib/hci-socket/bindings.js',
    '/usr/lib/node_modules/homebridge-bluetooth/node_modules/noble/lib/resolve-bindings.js',
    '/usr/lib/node_modules/homebridge-bluetooth/node_modules/noble/index.js',
    '/usr/lib/node_modules/homebridge-bluetooth/index.js',
    '/usr/lib/node_modules/homebridge/lib/plugin.js',
    '/usr/lib/node_modules/homebridge/lib/server.js',
    '/usr/lib/node_modules/homebridge/lib/cli.js',
    '/usr/lib/node_modules/homebridge/bin/homebridge'
    ]
    }
@vojtamolda
Copy link
Owner

Hello @sweetlime05,

I'd love to investigate this but unfortunately I don't have time. The source code is available so hopefully a combination of reading and googling will get you on the right track ;)

Sorry for my late response and for not being too helpful. Good luck!

Vojta

@Stetocasa
Copy link

same issue. Copy and paste

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

No branches or pull requests

3 participants