marcoraddatz / homebridge-docker

Dockerized Homebridge. No plugins pre-defined, hassle-free setup. Read instructions!
Apache License 2.0
127 stars 47 forks source link

QNAP: Won't start when using config.json file #59

Closed Maximus48p closed 5 years ago

Maximus48p commented 5 years ago

When i install according the gui Qnap installation it goes all well till i add the config.json file. When i start Homebridge without a config.json file i get:

Failed to start message bus: Failed to bind socket "/var/run/dbus/system_bus_socket": Address already in use                                                                                  
[11/21/2018, 2:07:33 PM] config.json (/root/.homebridge/config.json) not found.                                                                                                               
[11/21/2018, 2:07:33 PM] No plugins found. See the README for information on installing plugins.                                                                                              
Setup Payload:                                                                                                                                                                                
X-HM://0023ISYWYAK0N                                                                                                                                                                          
Scan this code with your HomeKit app on your iOS device to pair with Homebridge: 

Followed by the QR code and i am able to connect with my iPhone.

But when i try to use a (fake) config.json file i get:

/root/.homebridge/package.json not found.                                                                                                                                                     
Installing plugins from /root/.homebridge/install.sh.                                                                                                                                         
Wed Nov 21 14:04:56 CET 2018                                                                                                                                                                  
Updated timezone to 'Europe/Amsterdam'..                                                                                                                                                      
Failed to start message bus: Failed to bind socket "/var/run/dbus/system_bus_socket": Address already in use                                                                                  

/usr/local/lib/node_modules/homebridge/lib/server.js:222                                                                                                                                      
      throw new Error('Not a valid username: ' + username + '. Must be 6 pairs of colon-' +                                                                                                   
      ^                                                                                                                                                                                       

Error: Not a valid username: undefined. Must be 6 pairs of colon-separated hexadecimal chars (A-F 0-9), like a MAC address.                                                                   
    at Server._loadConfig (/usr/local/lib/node_modules/homebridge/lib/server.js:222:13)                                                                                                       
    at new Server (/usr/local/lib/node_modules/homebridge/lib/server.js:56:38)                                                                                                                
    at module.exports (/usr/local/lib/node_modules/homebridge/lib/cli.js:30:16)                                                                                                               
    at Object.<anonymous> (/usr/local/lib/node_modules/homebridge/bin/homebridge:17:22)                                                                                                       
    at Module._compile (internal/modules/cjs/loader.js:689:30)                                                                                                                                
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)                                                                                                                  
    at Module.load (internal/modules/cjs/loader.js:599:32)                                                                                                                                    
    at tryModuleLoad (internal/modules/cjs/loader.js:538:12)                                                                                                                                  
    at Function.Module._load (internal/modules/cjs/loader.js:530:3)                                                                                                                           
    at Function.Module.runMain (internal/modules/cjs/loader.js:742:12) 

The following code is pretty empty which i used for my config.json file;

{
    "bridge": {
        "name": "Homebridge",
        "usename": "CC:22:3D:E3:CE:30",
        "port": 51826,
        "pin": "031-45-154"
    },
    "description": "Fake Homebridge plugins, WeMo and PhilipsHue.",
    "accessories": [
        {
            "accessory": "WeMo",
            "name": "Coffee Maker"
        }
    ],
    "platforms": [
        {
            "platform" : "PhilipsHue",
            "name" : "Hue"
        }
    ]
}

Any help is very appreciated. Kinds regards, Marnix

marcoraddatz commented 5 years ago

Seems to be a second instance running on another server. Or it's the typo: "usename"