kazcangi / homebridge-pioneer-avr

Pioneer AVR TV plugin for Homebridge
MIT License
9 stars 14 forks source link

Issues with "permission denied, mkdir '/root/.pioneerAvr'" and crashing homebridge #20

Open kellery82 opened 3 years ago

kellery82 commented 3 years ago

Hi all,

I've managed to install successfully and when adding my receiver to the config and restarting homebridge, i'm getting the following error;

(node:357) UnhandledPromiseRejectionWarning: Error: EACCES: permission denied, mkdir '/root/.pioneerAvr'
at Function.module.exports.loopWhile (/usr/local/lib/node_modules/homebridge-pioneer-avr/node_modules/deasync/index.j s:71:23)
at Function.sleep (/usr/local/lib/node_modules/homebridge-pioneer-avr/node_modules/deasync/index.js:41:18)
at Socket. (/usr/local/lib/node_modules/homebridge-pioneer-avr/telnet-avr.js:25:25)
at Object.onceWrapper (events.js:420:28)
at Socket.emit (events.js:326:22)
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1131:10)
at Function.module.exports.loopWhile (/usr/local/lib/node_modules/homebridge-pioneer-avr/node_modules/deasync/index.j s:71:23)
at Function.sleep (/usr/local/lib/node_modules/homebridge-pioneer-avr/node_modules/deasync/index.js:41:18)
at pioneerAvrAccessory.getServices (/usr/local/lib/node_modules/homebridge-pioneer-avr/index.js:317:28)
at Server.createHAPAccessory (/usr/local/lib/node_modules/homebridge/lib/server.js:320:45)
at /usr/local/lib/node_modules/homebridge/lib/server.js:248:36
at Array.forEach (:null:null)
at Server._loadAccessories (/usr/local/lib/node_modules/homebridge/lib/server.js:222:33)
at Server.start (/usr/local/lib/node_modules/homebridge/lib/server.js:76:18)
at cli (/usr/local/lib/node_modules/homebridge/lib/cli.js:88:12)
at Object. (/usr/local/lib/node_modules/homebridge/bin/homebridge:17:22)
at Module._compile (internal/modules/cjs/loader.js:1015:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1035:10)
at Module.load (internal/modules/cjs/loader.js:879:32)
at Function.Module._load (internal/modules/cjs/loader.js:724:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:60:12)
at internal/main/run_main_module.js:17:47

I've tried reinstalling using admin permissions, but no luck. This is on a Synology and I'm quite green when it comes to homebridge, so any help would be appreciated. I've also tried to mkdir, the error will dissapear, but the buttons won't function in homeki. When trying them in homebridge, it crashes and restarts.