homebridge / homebridge-config-ui-x

The Homebridge UI. Monitor, configure and backup Homebridge from a browser.
https://homebridge.io
MIT License
2.61k stars 370 forks source link

Getting `Load failed: 5: Input/output error` when running `sudo hb-service start` #1923

Closed wheelerlaw closed 7 months ago

wheelerlaw commented 8 months ago

Current Situation

When I execute the following command:

sudo hb-service start

I receive the following output:

ℹ Starting Homebridge Service...
Load failed: 5: Input/output error
Try running `launchctl bootstrap` as root for richer errors.
✔ Homebridge Started

It doesn't look like here is a verbose option with hb-service that I can use to print out more logging information.

Is there a way I can get a more detailed logging output so I can try to track this down?

Logs

ℹ Starting Homebridge Service... Load failed: 5: Input/output error Try running launchctl bootstrap as root for richer errors. ✔ Homebridge Started

Config

n/a as this problem applies to a blank config

Homebridge UI Version

4.54.1

Homebridge Version

1.7.0

Node.js Version

20.10.0

Operating System

macOS

Environment Info

Raspberry Pi Model

None

wheelerlaw commented 8 months ago

I have tried nuking the homebridge install by deleting the node_modules directory in /opt/homebrew/lib. And also tried removing node altogether as well. But doing neither of those helped.

NorthernMan54 commented 8 months ago

On Mac OS the start command runs this - https://github.com/homebridge/homebridge-config-ui-x/blob/f63405f68a55416be3f9bb3ee4d47227b78d691c/src/bin/platforms/darwin.ts#L74

Which is just a one liner

launchctl load -w /Library/LaunchDaemons/com.homebridge.server.plist

Try hb-service uninstall and hb-service install to recreate com.homebridge.server.plist

github-actions[bot] commented 7 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] commented 7 months ago

This issue has been closed as no further activity has occurred.