question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Homebridge not starting after update from 1.1.2 to 1.1.3, works again after rollback to 1.1.2

See original GitHub issue

Describe The Bug: I Updated homebridge to 1.1.3, after that it did not start Here a script of what I did:

pi@raspberrypi:~ $ npm install homebridge@latest npm WARN pi@1.0.0 No description npm WARN pi@1.0.0 No repository field.

  • homebridge@1.1.3 removed 1 package, updated 1 package and audited 932 packages in 245.773s

15 packages are looking for funding run npm fund for details

found 1 low severity vulnerability run npm audit fix to fix them, or npm audit for details

Now I did a restart by using the web interface …

pi@raspberrypi:~ $ sudo journalctl -fau homebridge Sep 07 17:02:31 raspberrypi homebridge[1487]: [9/7/2020, 5:02:31 PM] [Config] Homebridge restart request received Sep 07 17:02:32 raspberrypi homebridge[1487]: [9/7/2020, 5:02:32 PM] [Config] Executing restart command: sudo -n systemctl restart homebridge Sep 07 17:02:32 raspberrypi sudo[28304]: pi : TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/bin/systemctl restart homebridge Sep 07 17:02:32 raspberrypi sudo[28304]: pam_unix(sudo:session): session opened for user root by (uid=0) Sep 07 17:02:32 raspberrypi homebridge[1487]: [9/7/2020, 5:02:32 PM] Got SIGTERM, shutting down Homebridge… Sep 07 17:02:32 raspberrypi systemd[1]: Stopping Node.js HomeKit Server… Sep 07 17:02:37 raspberrypi systemd[1]: homebridge.service: Main process exited, code=exited, status=143/n/a Sep 07 17:02:37 raspberrypi systemd[1]: homebridge.service: Killing process 1509 (homebridge-conf) with signal SIGKILL. Sep 07 17:02:37 raspberrypi systemd[1]: homebridge.service: Killing process 28303 (sh) with signal SIGKILL. Sep 07 17:02:37 raspberrypi systemd[1]: homebridge.service: Killing process 28304 (sudo) with signal SIGKILL. Sep 07 17:02:37 raspberrypi systemd[1]: homebridge.service: Killing process 28309 (systemctl) with signal SIGKILL. Sep 07 17:02:38 raspberrypi systemd[1]: homebridge.service: Failed with result ‘exit-code’. Sep 07 17:02:38 raspberrypi systemd[1]: Stopped Node.js HomeKit Server. Sep 07 17:02:38 raspberrypi systemd[1]: Started Node.js HomeKit Server. Sep 07 17:02:46 raspberrypi homebridge[28310]: [9/7/2020, 5:02:46 PM] Loaded config.json with 0 accessories and 2 platforms. Sep 07 17:02:46 raspberrypi homebridge[28310]: [9/7/2020, 5:02:46 PM] — Sep 07 17:02:54 raspberrypi homebridge[28310]: [9/7/2020, 5:02:54 PM] Loaded plugin: homebridge-config-ui-x@4.27.0 Sep 07 17:02:54 raspberrypi homebridge[28310]: [9/7/2020, 5:02:54 PM] Registering platform ‘homebridge-config-ui-x.config’ Sep 07 17:02:54 raspberrypi homebridge[28310]: [9/7/2020, 5:02:54 PM] — Sep 07 17:02:54 raspberrypi homebridge[28310]: [9/7/2020, 5:02:54 PM] Loaded plugin: homebridge-fhem@0.5.17 Sep 07 17:02:54 raspberrypi homebridge[28310]: homebridge API version: 2.6 Sep 07 17:02:54 raspberrypi homebridge[28310]: this is homebridge-fhem 0.5.17 Sep 07 17:03:12 raspberrypi homebridge[28310]: [9/7/2020, 5:03:12 PM] Registering platform ‘homebridge-fhem.FHEM’ Sep 07 17:03:12 raspberrypi homebridge[28310]: [9/7/2020, 5:03:12 PM] — Sep 07 17:03:12 raspberrypi homebridge[28310]: [9/7/2020, 5:03:12 PM] Loading 2 platforms… Sep 07 17:03:12 raspberrypi homebridge[28310]: [9/7/2020, 5:03:12 PM] [Config] Initializing config platform… Sep 07 17:03:12 raspberrypi homebridge[28310]: Server listening on: http://<ip>:8282 Sep 07 17:03:13 raspberrypi homebridge[28310]: [9/7/2020, 5:03:13 PM] Error: option ‘insecure’ clashes with existing property ‘insecure’ on Command Sep 07 17:03:13 raspberrypi homebridge[28310]: - call storeOptionsAsProperties(false) to store option values safely, Sep 07 17:03:13 raspberrypi homebridge[28310]: - or call storeOptionsAsProperties(true) to suppress this check, Sep 07 17:03:13 raspberrypi homebridge[28310]: - or change option name Sep 07 17:03:13 raspberrypi homebridge[28310]: Read more on https://git.io/JJc0W Sep 07 17:03:13 raspberrypi homebridge[28310]: at Command._checkForOptionNameClash (/home/pi/node_modules/commander/index.js:472:13) Sep 07 17:03:13 raspberrypi homebridge[28310]: at Command._optionEx (/home/pi/node_modules/commander/index.js:499:10) Sep 07 17:03:13 raspberrypi homebridge[28310]: at Command.option (/home/pi/node_modules/commander/index.js:622:17) Sep 07 17:03:13 raspberrypi homebridge[28310]: at new HomebridgeConfigUi (/home/pi/node_modules/homebridge-config-ui-x/src/index.ts:30:8) Sep 07 17:03:13 raspberrypi homebridge[28310]: at config.platforms.forEach (/home/pi/node_modules/homebridge/src/server.ts:397:40) Sep 07 17:03:13 raspberrypi homebridge[28310]: at Array.forEach (<anonymous>) Sep 07 17:03:13 raspberrypi homebridge[28310]: at Server.loadPlatforms (/home/pi/node_modules/homebridge/src/server.ts:374:27) Sep 07 17:03:13 raspberrypi homebridge[28310]: at Server.start (/home/pi/node_modules/homebridge/src/server.ts:153:29) Sep 07 17:03:13 raspberrypi homebridge[28310]: at cli (/home/pi/node_modules/homebridge/src/cli.ts:80:10) Sep 07 17:03:13 raspberrypi homebridge[28310]: at Object.<anonymous> (/home/pi/node_modules/homebridge/bin/homebridge:17:22) Sep 07 17:03:14 raspberrypi homebridge[28310]: [9/7/2020, 5:03:13 PM] Got SIGTERM, shutting down Homebridge…

After I roll back to 1.1.2 it works again: pi@raspberrypi:~ $ npm install homebridge@1.1.2 npm WARN pi@1.0.0 No description npm WARN pi@1.0.0 No repository field.

  • homebridge@1.1.2 added 1 package from 1 contributor, updated 1 package and audited 933 packages in 423.316s

15 packages are looking for funding run npm fund for details

found 1 low severity vulnerability run npm audit fix to fix them, or npm audit for details

pi@raspberrypi:~ $ sudo journalctl -fau homebridge Sep 7 17:16:26 raspberrypi systemd[1]: Started Node.js HomeKit Server. Sep 7 17:16:42 raspberrypi homebridge[28855]: [9/7/2020, 5:16:42 PM] Loaded config.json with 0 accessories and 2 platforms. Sep 7 17:16:42 raspberrypi homebridge[28855]: [9/7/2020, 5:16:42 PM] — Sep 7 17:16:57 raspberrypi homebridge[28855]: [9/7/2020, 5:16:57 PM] Loaded plugin: homebridge-config-ui-x@4.27.0 Sep 7 17:16:57 raspberrypi homebridge[28855]: [9/7/2020, 5:16:57 PM] Registering platform ‘homebridge-config-ui-x.config’ Sep 7 17:16:57 raspberrypi homebridge[28855]: [9/7/2020, 5:16:57 PM] — Sep 7 17:16:57 raspberrypi homebridge[28855]: [9/7/2020, 5:16:57 PM] Loaded plugin: homebridge-fhem@0.5.17 Sep 7 17:16:57 raspberrypi homebridge[28855]: homebridge API version: 2.6 Sep 7 17:16:57 raspberrypi homebridge[28855]: this is homebridge-fhem 0.5.17 Sep 7 17:17:01 raspberrypi CRON[28879]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly) Sep 7 17:17:14 raspberrypi homebridge[28855]: [9/7/2020, 5:17:14 PM] Registering platform ‘homebridge-fhem.FHEM’ Sep 7 17:17:14 raspberrypi homebridge[28855]: [9/7/2020, 5:17:14 PM] — Sep 7 17:17:14 raspberrypi homebridge[28855]: [9/7/2020, 5:17:14 PM] Loading 2 platforms… Sep 7 17:17:14 raspberrypi homebridge[28855]: [9/7/2020, 5:17:14 PM] [Config] Initializing config platform… Sep 7 17:17:14 raspberrypi homebridge[28855]: [9/7/2020, 5:17:14 PM] [Config] Spawning homebridge-config-ui-x with PID 28889 Sep 7 17:17:14 raspberrypi homebridge[28855]: [9/7/2020, 5:17:14 PM] [FHEM] Initializing FHEM platform… Sep 7 17:17:24 raspberrypi homebridge[28855]: starting longpoll: http://127.0.0.1:8083/fhem?XHR=1&inform=type=status;addglobal=1;filter=.*;since=null;fmt=JSON&timestamp=1599491844604 Sep 7 17:17:24 raspberrypi homebridge[28855]: [9/7/2020, 5:17:24 PM] [FHEM] Fetching FHEM devices… Sep 7 17:17:24 raspberrypi homebridge[28855]: Server listening on: http://<ip>:8282 Sep 7 17:17:25 raspberrypi homebridge[28855]: [9/7/2020, 5:17:25 PM] [FHEM] Fetching FHEM devices… Sep 7 17:17:25 raspberrypi homebridge[28855]: [9/7/2020, 5:17:25 PM] [FHEM] Checking devices and attributes… …

To Reproduce: Update homebridge to 1.1.3 on my system.

Expected behavior: Restarting without a problem like the version before.

Homebridge Config:

{
    "bridge": {
        "name": "Homebridge",
        "username": "CC:22:3D:E3:CE:30",
        "manufacturer": "homebridge.io",
        "model": "homebridge",
        "port": 51826,
        "pin": "031-45-154"
    },
    "description": "Home Smart Home",
    "platforms": [
        {
            "name": "Config",
            "port": 8080,
            "auth": "form",
            "theme": "indigo",
            "restart": "sudo -n systemctl restart homebridge",
            "temp": "/sys/class/thermal/thermal_zone0/temp",
            "tempUnits": "c",
            "lang": "auto",
            "sudo": false,
            "log": {
                "method": "custom",
                "command": "journalctl -o cat -n 500 -f -u homebridge"
            },
            "platform": "config"
        },
        {
            "platform": "FHEM",
            "name": "FHEM",
            "server": "127.0.0.1",
            "port": "8083",
            "filter": "room=Homekit"
        }
    ],
    "accessories": []
}

Environment: Environment: Node.js Version: v10.20.1 NPM Version: v6.14.8 Operating System: raspbian Homebridge Version: v1.1.3

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:25 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
Superegcommented, Sep 7, 2020

sorry, completely messed up, 1.1.5 is out

0reactions
gillesguillemincommented, Nov 24, 2020

Actually, do mind me, issue still happening on 1.2.3 too as soon as I uncommented Commander’s line 499

Read more comments on GitHub >

github_iconTop Results From Across the Web

Current Homebridge versions. I tried 1.1.7 but reverted to 1.1.6 ...
I am now on 1.3 beta and two-way audio is working fine for me with 6 Ring cameras (two doorbells and four floodlight...
Read more >
homebridge-config-ui-x - npm
A web based management, configuration and control platform for Homebridge. Latest version: 4.50.2, last published: a month ago. Start using ...
Read more >
homebridge-smartthings-ik - NPM Package Overview - Socket
Start using Socket to analyze homebridge-smartthings-ik and its 1 dependencies ... Delay in updating state right after a command was sent.
Read more >
Homebridge Plugin Public Release (Version 1.1.6)
Fortunately we have a simple/temporary solution documented here. Bugs and Issues: If you're having issues with the plugin and things are not working...
Read more >
How do I resolve `The following packages have unmet ...
Then check for the dependencies problem again using sudo dpkg --configure -a ... When it completes, you can test if it worked by...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found