KraigM / HomeBridgeController

Provides a simplified UI for controlling your HomeBridge
87 stars 7 forks source link

After update and subsequent rollback I can't launch hombridge with controller installed. #64

Open drgonz0 opened 7 years ago

drgonz0 commented 7 years ago

I get this when HomeBridgeControllerLink is enabled. This had worked previously.

path.js:8 throw new TypeError('Path must be a string. Received ' + ^

TypeError: Path must be a string. Received undefined at assertPath (path.js:8:11) at Object.posix.resolve (path.js:426:5) at Conf.loadPrefix (/usr/local/lib/node_modules/homebridge-controllerlink/nodemodules/npm/lib/config/load-prefix.js:43:14) at load (/usr/local/lib/node_modules/homebridge-controllerlink/node_modules/npm/lib/config/core.js:109:8) at Conf. (/usr/local/lib/node_modules/homebridge-controllerlink/node_modules/npm/lib/config/core.js:96:5) at emitOne (events.js:77:13) at Conf.emit (events.js:169:7) at ConfigChain._resolve (/usr/local/lib/node_modules/homebridge-controllerlink/node_modules/npm/node_modules/config-chain/index.js:281:34) at ConfigChain.add (/usr/local/lib/node_modules/homebridge-controllerlink/node_modules/npm/node_modules/config-chain/index.js:259:10) at Conf.add (/usr/local/lib/node_modules/homebridge-controllerlink/node_modules/npm/lib/config/core.js:341:27) at Conf. (/usr/local/lib/node_modules/homebridge-controllerlink/node_modules/npm/lib/config/core.js:320:25) at ReadFileContext.callback (/usr/local/lib/node_modules/homebridge-controllerlink/node_modules/npm/node_modules/graceful-fs/graceful-fs.js:78:16) at FSReqWrap.readFileAfterOpen as oncomplete

JangoBritt commented 7 years ago

FYI, I'm getting this too

frodeaux commented 7 years ago

same here

drgonz0 commented 7 years ago

Ohh sweet. At least I"m not alone. It was working prior.

ovq commented 7 years ago

same here.

JangoBritt commented 7 years ago

Oh Dear. @KraigM, sounds like there may be a recurring issue. Happy to help Debug.

drgonz0 commented 7 years ago

Happy to provide logs/whatever you need.

Dazzzz commented 7 years ago

Same here. I had Homebridge working great, but I wanted to install HomeBridgeController as well to fix Celcius/ Fahrenheit issues, but I can't get HomeBridge to load now.

Chioti commented 7 years ago

Same issue for me.

a2sheppy commented 7 years ago

Similar here. I had it running when I was using my Mac as a homebridge station, but when I switched to Pi, it broke and I get this error. FWIW, I get this error on several plugins, not just the homebridge-controllerlink one.

a2sheppy commented 7 years ago

Looking through things, I wonder: could it be using the wrong node to run homebridge? There are at least two copies installed: one at /usr/bin/node and the one installed under the pi user that's intended to be used.

jaredmichaelwilliams commented 7 years ago

I was able to fix this by doing the following:

on line 43 of /usr/local/lib/node_modules/homebridge-controllerlink/node_modules/npm/lib/config/load-prefix.js

i changed:

p = path.resolve(cli.prefix)

to

p = path.resolve(String(cli.prefix))

and on line 21 of /usr/local/lib/node_modules/homebridge-controllerlink/node_modules/npm/lib/config/set-user.js

i changed

var prefix = path.resolve(this.get('prefix'))

to

var prefix = path.resolve(String(this.get('prefix')))

RickNunn commented 7 years ago

@jaredmichaelwilliams this fixed my issue too!

Chioti commented 7 years ago

And for me as well. Thanks!

drgonz0 commented 7 years ago

@jaredmichaelwilliams This worked here as well. Thank you.

livefeed commented 7 years ago

@jaredmichaelwilliams Thank you!!!!! the fix worked for me.

rhapsfx commented 7 years ago

Thanks for the fix. Can it be published to the source ?

IMNotMax commented 7 years ago

Thnx for the fix !