Closed mobilutz closed 4 years ago
Temporary fix I did was using a screen
session.
I would really like to run the api through systemctl
.
Can you point me in a direction so I can look for the problem?
You may have installed multiple node versions.
Check with: dpkg -l | grep node
You may have installed multiple node versions. Check with:
dpkg -l | grep node
Thanks for the hint. That was the case! And of course the problem was between the chair and screen 😉
In console, it used /usr/local/bin/node
but through systemd it used /usr/bin/node
.
/usr/bin/node --version
v8.16.2
One really always have to be careful when using nodejs. And even more when using npm 😉
PS: Vielen Dank fuer die Implementierung hier, ich arbeite gerade an einem ioBroker Adapter damit man free@home direkt dort einbinden kann.
👍 Glad you could solve it.
PS: Sieht gut aus. Habe bei mir aber alles mit Homebridge + ein Grafana Panel mit Node-RED Anbindung gelöst, da dort viele unterschiedliche Daten zusammenkommen. Never change a running system, d.h. bleibt das jetzt erstmal alles so wie es ist ;) Eventuell schaue ich mir irgendwann mal ioBroker an wenn ich Zeit habe.
When running through systemctl, I unfortunately get the following error:
It is very strange, because running it directly through console, there is no problem at all :(
It is different than #1 because I am already running
When running the api through the console, this is the next output I see: