KraigM / homebridge-harmonyhub

HomeBridge Plugin for Logitech Harmony Hub
181 stars 52 forks source link

Error as a service #144

Closed mactwin closed 5 years ago

mactwin commented 5 years ago

Hi running plugin on raspberry (pi3+) this is the error

pi@raspberrypi:~ $ sudo systemctl start homebridge pi@raspberrypi:~ $ sudo systemctl status homebridge ● homebridge.service - Node.js HomeKit Server Loaded: loaded (/etc/systemd/system/homebridge.service; enabled; vendor preset: enabled) Active: active (running) since Sat 2018-11-24 22:55:07 CET; 4s ago Main PID: 5404 (homebridge) CGroup: /system.slice/homebridge.service └─5404 homebridge

nov 24 22:55:07 raspberrypi systemd[1]: Started Node.js HomeKit Server. nov 24 22:55:09 raspberrypi homebridge[5404]: [2018-11-24 22:55:09] Loaded config.json with 10 accessories and 3 platforms. nov 24 22:55:09 raspberrypi homebridge[5404]: [2018-11-24 22:55:09] --- nov 24 22:55:10 raspberrypi homebridge[5404]: [2018-11-24 22:55:10] Loaded plugin: homebridge-camera-ffmpeg nov 24 22:55:10 raspberrypi homebridge[5404]: [2018-11-24 22:55:10] Registering platform 'homebridge-camera-ffmpeg.Camera-ff nov 24 22:55:10 raspberrypi homebridge[5404]: [2018-11-24 22:55:10] --- nov 24 22:55:12 raspberrypi homebridge[5404]: [2018-11-24 22:55:12] Loaded plugin: homebridge-foscamcamera nov 24 22:55:12 raspberrypi homebridge[5404]: [2018-11-24 22:55:12] Registering platform 'homebridge-foscamcamera.FoscamCame nov 24 22:55:12 raspberrypi homebridge[5404]: [2018-11-24 22:55:12] ---

pi@raspberrypi:~ $ sudo systemctl status homebridge ● homebridge.service - Node.js HomeKit Server Loaded: loaded (/etc/systemd/system/homebridge.service; enabled; vendor preset: enabled) Active: activating (auto-restart) (Result: exit-code) since Sat 2018-11-24 22:55:14 CET; 1s ago Process: 5404 ExecStart=/usr/bin/homebridge $HOMEBRIDGE_OPTS (code=exited, status=1/FAILURE) Main PID: 5404 (code=exited, status=1/FAILURE)

nov 24 22:55:14 raspberrypi systemd[1]: homebridge.service: Unit entered failed state. nov 24 22:55:14 raspberrypi systemd[1]: homebridge.service: Failed with result 'exit-code'. pi@raspberrypi:~ $ ^C

mactwin commented 5 years ago

it works fine running with manual launch homebrigde but it doesn't as a service. Cleaning config.json from harmony configuration everything works as a service.

I will use nohup