grover / homebridge-ranger

A HomeKit range extender for Bluetooth Low Energy (BLE) accessories.
MIT License
73 stars 15 forks source link

Job for homebridge.service failed because of unavailable resources or another system error. #11

Closed hansvangent closed 5 years ago

hansvangent commented 5 years ago

When doing a "journalctl -xe'

It gives me this:

-- Subject: Unit homebridge.service has failed
-- Defined-By: systemd
-- Support: https://www.debian.org/support
-- 
-- Unit homebridge.service has failed.
-- 
-- The result is failed.
Dec 28 18:57:42 unifipi systemd[1]: homebridge.service: Unit entered failed state.
Dec 28 18:57:42 unifipi systemd[1]: homebridge.service: Failed with result 'resources'.
Dec 28 18:57:46 unifipi systemd[1]: Stopped Node.js HomeKit Server.
-- Subject: Unit homebridge.service has finished shutting down
-- Defined-By: systemd
-- Support: https://www.debian.org/support
-- 
-- Unit homebridge.service has finished shutting down.
Dec 28 18:58:16 unifipi sudo[11538]:     root : TTY=pts/0 ; PWD=/etc/systemd/system ; USER=root ; COMMAND=/usr/bin/apt-get install libcap2-bin
Dec 28 18:58:16 unifipi sudo[11538]: pam_unix(sudo:session): session opened for user root by pi(uid=0)
Dec 28 18:58:17 unifipi sudo[11538]: pam_unix(sudo:session): session closed for user root
Dec 28 18:58:21 unifipi sudo[11551]:     root : TTY=pts/0 ; PWD=/etc/systemd/system ; USER=root ; COMMAND=/sbin/setcap cap_net_raw+eip /opt/node/bin/node
Dec 28 18:58:21 unifipi sudo[11551]: pam_unix(sudo:session): session opened for user root by pi(uid=0)
Dec 28 18:58:21 unifipi sudo[11551]: pam_unix(sudo:session): session closed for user root
Dec 28 18:59:30 unifipi systemd[1]: homebridge.service: Failed to load environment files: No such file or directory
Dec 28 18:59:30 unifipi systemd[1]: homebridge.service: Failed to run 'start' task: No such file or directory
Dec 28 18:59:30 unifipi systemd[1]: Failed to start Node.js HomeKit Server.
-- Subject: Unit homebridge.service has failed
-- Defined-By: systemd
-- Support: https://www.debian.org/support
-- 
-- Unit homebridge.service has failed.
-- 
-- The result is failed.
Dec 28 18:59:30 unifipi systemd[1]: homebridge.service: Unit entered failed state.
Dec 28 18:59:30 unifipi systemd[1]: homebridge.service: Failed with result 'resources'.
Dec 28 18:59:40 unifipi systemd[1]: homebridge.service: Service hold-off time over, scheduling restart.
Dec 28 18:59:40 unifipi systemd[1]: Stopped Node.js HomeKit Server.
-- Subject: Unit homebridge.service has finished shutting down
-- Defined-By: systemd
-- Support: https://www.debian.org/support
-- 
-- Unit homebridge.service has finished shutting down.
Dec 28 18:59:40 unifipi systemd[1]: homebridge.service: Failed to load environment files: No such file or directory
Dec 28 18:59:40 unifipi systemd[1]: homebridge.service: Failed to run 'start' task: No such file or directory
Dec 28 18:59:40 unifipi systemd[1]: Failed to start Node.js HomeKit Server.
-- Subject: Unit homebridge.service has failed
-- Defined-By: systemd
-- Support: https://www.debian.org/support
-- 
-- Unit homebridge.service has failed.
-- 
-- The result is failed.
Dec 28 18:59:40 unifipi systemd[1]: homebridge.service: Unit entered failed state.
Dec 28 18:59:40 unifipi systemd[1]: homebridge.service: Failed with result 'resources'.

Any idea what this could be? Had some troubles at first installing, but downgraded to NPM 4.6.1 and then the install worked fine, no other issues.

Seems like a very awesome project and would love to have this working on my Raspberry Pi at home :-)

hansvangent commented 5 years ago

Found the issue, made a type in the naming of my /etc/default/homebridge :-/