cbrandlehner / homebridge-daikin-local

Supports Daikin Air Conditioners on HomeBridge
MIT License
100 stars 18 forks source link

HomeBridge service start problems after upgrading #60

Closed mrgingles closed 4 years ago

mrgingles commented 4 years ago

Hi, after upgrading to latest version (2020.10.1), I'm no longer able to start homebridge service with this error:

[Homebridge] [3/10/2020, 19:54:25] Error: The requested accessory 'Daikin-Local' was not registered by any plugin.
    at API.accessory (/home/hoobs/.hoobs/node_modules/@hoobs/homebridge/lib/api.js:45:19)
    at Server._loadAccessories (/home/hoobs/.hoobs/node_modules/@hoobs/homebridge/lib/server.js:258:48)
    at Server.run (/home/hoobs/.hoobs/node_modules/@hoobs/homebridge/lib/server.js:78:14)
    at module.exports (/home/hoobs/.hoobs/node_modules/@hoobs/homebridge/lib/cli.js:90:12)
    at Object.<anonymous> (/home/hoobs/.hoobs/node_modules/@hoobs/homebridge/bin/homebridge:10:63)
    at Module._compile (internal/modules/cjs/loader.js:959:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:995:10)
    at Module.load (internal/modules/cjs/loader.js:815:32)
    at Function.Module._load (internal/modules/cjs/loader.js:727:14)
    at Function.Module.runMain (internal/modules/cjs/loader.js:1047:10)
[Homebridge] [3/10/2020, 19:54:25] Got SIGTERM, shutting down service...

My first try was to uninstall the plugin in order to install it again, but I got this error when uninstalling

npm
 ERR! code EEXIST
npm
 ERR! path /home/hoobs/.hoobs/node_modules/superagent/node_modules/.bin/semver
npm
 ERR! Refusing to delete /home/hoobs/.hoobs/node_modules/superagent/node_modules/.bin/semver: is outside /home/hoobs/.hoobs/node_modules/superagent/node_modules/semver and not a link
npm ERR! File exists: /home/hoobs/.hoobs/node_modules/superagent/node_modules/.bin/semver
npm ERR! Move it away, and try again.
npm ERR! A complete log of this run can be found in:
npm ERR!
     /home/hoobs/.npm/_logs/2020-03-10T18_57_03_099Z-debug.log

Here you have my config.json

"accessories": [
        {
            "name": "Condizionatore Ufficio",
            "apiroute": "http://192.168.1.174",
            "system": "Default",
            "swingMode": "2",
            "defaultMode": "0",
            "accessory": "Daikin-Local",
            "fanMode": "FAN",
            "fanName": "Condizionatore Ufficio FAN"
        },
        {
            "name": "Condizionatore Sala da Pranzo",
            "apiroute": "http://192.168.1.170",
            "system": "Default",
            "swingMode": "2",
            "defaultMode": "0",
            "accessory": "Daikin-Local",
            "fanMode": "FAN",
            "fanName": "Condizionatore Sala da Pranzo FAN"
        },
        {
            "name": "Condizionatore Salotto",
            "apiroute": "http://192.168.1.171",
            "system": "Default",
            "swingMode": "2",
            "defaultMode": "0",
            "accessory": "Daikin-Local",
            "fanMode": "FAN",
            "fanName": "Condizionatore Salotto FAN"
        },
        {
            "name": "Condizionatore Stanzetta",
            "apiroute": "http://192.168.1.172",
            "system": "Default",
            "swingMode": "2",
            "defaultMode": "0",
            "accessory": "Daikin-Local",
            "fanMode": "FAN",
            "fanName": "Condizionatore Stanzetta FAN"
        },
        {
            "name": "Condizionatore Camera da letto",
            "apiroute": "http://192.168.1.173",
            "system": "Default",
            "swingMode": "2",
            "defaultMode": "0",
            "accessory": "Daikin-Local",
            "fanMode": "FAN",
            "fanName": "Condizionatore Camera da letto FAN"
        },

Before updating everything was working as expected

Thank you!

cbrandlehner commented 4 years ago

@mrgingles Unfortunately this problem is not related to this plugins source code. It looks like a permission problem in the file system. I assume manual (read: ssh login, delete files manually, ...) interaction is needed to fix this. You might also want to check the homebridge troubleshooting documentation.

mrgingles commented 4 years ago

Thank you!

federicodigiacomo commented 4 years ago

how fix?

federicodigiacomo commented 4 years ago

Thank you!

How fix?

mrgingles commented 4 years ago

@federicodigiacomo (ciao! dal nome credo tu sia italiano come me)

Really don't know. Hoobs never worked 100% well with my configuration and I switched to Home Assistant which is way more complete (IMHO).