Zigbee2mqtt not working anymore after reboot. Also, no logs are created.
When I check the status: osmc@osmc:~$ systemctl status zigbee2mqtt.service
- zigbee2mqtt.service - zigbee2mqtt Loaded: loaded (/etc/systemd/system/zigbee2mqtt.service; enabled; vendor pres Active: active (running) since Fri 2018-12-07 23:13:28 CET; 4s ago Main PID: 1720 (npm) CGroup: /system.slice/zigbee2mqtt.service `-1720 npm
Dec 07 23:13:28 osmc systemd[1]: Started zigbee2mqtt.
No logs are created. It keeps creating empty folders. Also, the light on the USB sniffer turns off.
What can I do? Tried this: https://github.com/Koenkk/zigbee2mqtt/issues/28
Status update:
- zigbee2mqtt.service - zigbee2mqtt Loaded: loaded (/etc/systemd/system/zigbee2mqtt.service; enabled; vendor preset: enabled) Active: active (running) since Fri 2018-12-07 23:21:52 CET; 2s ago Main PID: 4872 (npm) CGroup: /system.slice/zigbee2mqtt.service |-4872 npm |-4883 sh -c node index.js `-4884 node index.js
Dec 07 23:21:52 osmc systemd[1]: Started zigbee2mqtt. Dec 07 23:21:53 osmc npm[4872]: > [email protected] start /opt/zigbee2mqtt Dec 07 23:21:53 osmc npm[4872]: > node index.js Dec 07 23:21:54 osmc npm[4872]: Zigbee2mqtt requires node version >=8.11 10, you are running v11.2.0!
I upgraded node.js a few days ago and it kept working after reboot
I get this info:
osmc@osmc:~$ node -v
v11.2.0
osmc@osmc:~$ nodejs -v
v8.14.0
osmc@osmc:~$
Downgraded with the help of this thread: https://stackoverflow.com/questions/7718313/how-to-change-to-an-older-version-of-node-js Now it works again