homebridge-config-ui-x
homebridge-config-ui-x copied to clipboard
hb-service does not start homebridge
Describe The Bug
% sudo hb-service restart
ℹ Restarting Homebridge Service
ℹ Stopping Homebridge Service...
✔ Homebridge Stopped
ℹ Starting Homebridge Service...
✔ Homebridge Started
% hb-service status
ℹ Testing hb-service is running on port 8581...
✖ Homebridge UI Not Running
Running homebridge manually from Terminal works (although logs don't work in the webui)
Logs
`hb-service logs` does not show anything from the past 12 hours even if I restart hb-service.
Config
No response
Homebridge UI Version
4.50.1
Homebridge Version
1.5.0
Node.js Version
v18.8.0
Operating System
macOS
Environment Info
- [ ] Using Docker?
- [ ] Using Hyper-V?
- [X] Using hb-service?
Raspberry Pi Model
No response
It seems like setting chmod +x on hb-service works, since the symlink is executable but the js file is not:
+ sudo rm -rf /usr/local/lib/node_modules/homebridge-config-ui-x
+ sudo npm install -g --unsafe-perm homebridge-config-ui-x
added 334 packages, and audited 335 packages in 9s
33 packages are looking for funding
run `npm fund` for details
found 0 vulnerabilities
+ ls -l /usr/local/bin/hb-service
lrwxr-xr-x 1 root admin 65 Sep 5 18:35 /usr/local/bin/hb-service -> ../lib/node_modules/homebridge-config-ui-x/dist/bin/hb-service.js
++ realpath /usr/local/bin/hb-service
+ ls -l /usr/local/lib/node_modules/homebridge-config-ui-x/dist/bin/hb-service.js
-rw-r--r-- 1 ghazel staff 40298 Sep 12 20:11 /usr/local/lib/node_modules/homebridge-config-ui-x/dist/bin/hb-service.js
+ sudo hb-service uninstall
sudo: hb-service: command not found
+ chmod +x /usr/local/bin/hb-service
+ ls -l /usr/local/bin/hb-service
lrwxr-xr-x 1 root admin 65 Sep 5 18:35 /usr/local/bin/hb-service -> ../lib/node_modules/homebridge-config-ui-x/dist/bin/hb-service.js
++ realpath /usr/local/bin/hb-service
+ ls -l /usr/local/lib/node_modules/homebridge-config-ui-x/dist/bin/hb-service.js
-rwxr-xr-x 1 ghazel staff 40298 Sep 12 20:11 /usr/local/lib/node_modules/homebridge-config-ui-x/dist/bin/hb-service.js
+ sudo hb-service uninstall
ℹ Removing Homebridge Service
ℹ Stopping Homebridge Service...
✔ Homebridge Stopped
✔ Removed Homebridge Service
+ sudo hb-service install
ℹ Installing Homebridge Service
ℹ Starting Homebridge Service...
✔ Homebridge Started
Manage Homebridge by going to one of the following in your browser:
* http://localhost:8581
* http://192.168.1.2:8581
* http://[fe80::1c6b:df52:1d1d:c72c]:8581
✔ Homebridge Setup Complete
+ sleep 10
+ hb-service status
ℹ Testing hb-service is running on port 8581...
✖ Homebridge UI Not Running
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.