Hi friends
I need a help on zigbee2mqtt.
I installed everything as it is in the gitub, I can get the system running, but when I go to get the service running, it gives the error that appears in the image.
I’ve researched many related topics, but none helped to overcome the problem.
Does anyone know the reason for not being able to get the service running?
Thank you
You need to look at the application log in order to see what is wrong.
Look under /opt/zigbee2mqtt/data/log
You can also use journalctl.
sudo journalctl -u zigbee2mqtt.service -f
return this…
You need to look directly at the logs then. That does not tell you what is wrong. Try opening the log with command “less”. The logs are located in the location I mentioned above.
The date looks wrong as well 2016.
Regards s
The date is fine. The 16 refers to the day, not the year.
I already solve. The problem was in service authentication. When we edited the “zigbee2mqtt.service” in the field user I did not change because I thought to be the same for all configurations, that is, a generic user.
But as my broker has authentication, I had to mention the specific user and the pass.
[Unit]
Description=zigbee2mqtt
After=network.target
[Service]
ExecStart=/usr/bin/npm start
WorkingDirectory=/opt/zigbee2mqtt
StandardOutput=inherit
StandardError=inherit
Restart=always
User=pi
[Install]
WantedBy=multi-user.target
Thanks
zigbee2mqtt is a separate project to openHAB with their own support channels. You may get more help over there.
Check this page as a start:
ok thanks