Ich betreibe seit fast 2 Jahren ein Smart Home mit einem PI4 und einer 32GB SD Karte.
Habe ca 15 Dashboards mit Grafischer Kurvenanzeigen mit Daten alle 5 Minuten,
welche verschiedene Analogwerte der letzten 24Std anzeigen.
Ich steuere auch über MQTT mehrere WLAN Steckdosen an.
Wird also schon sehr viele Daten sein die auflaufen und gespeichert werden müssen!
Nun bekomme ich immer mehr Probleme mit den Grafischer Anzeigen, es fehlen alte Daten und es treten auch immer wieder Verbindungs Probleme zu den WLAN Dosen auf.
Kann es sein das ich NodeRed überlastet habe und wie kann ich die Speicherauslastung von NodeRed prüfen oder liegt es einfach an einem überlasteten PI ?
Es läuft kein Desktop auf dem Pi
I've been running a smart home with a Pi4 and a 32GB SD card for almost two years.
I have about 15 dashboards with graphical curve displays with data every five minutes,
which display various analog values from the last 24 hours.
I also control several Wi-Fi outlets via MQTT.
So, there's bound to be a lot of data accumulating and needing to be saved!
Now I'm having more and more problems with the graphical displays; old data is missing, and I'm also constantly having connection problems with the Wi-Fi outlets.
Could it be that I've overloaded NodeRed? How can I check NodeRed's memory usage, or is it simply due to an overloaded Pi?
The desktop isn't running on the Pi.
I am sure someone will be able to let you know how to check memory usage etc. but I would probably check the SD card as a first step
Ich bin sicher, dass jemand Ihnen sagen kann, wie Sie die Speichernutzung usw. überprüfen können, aber ich würde wahrscheinlich als ersten Schritt die SD-Karte überprüfen
pi@raspberrypi:~ $ node-red start
21 Oct 19:50:19 - [info]
Welcome to Node-RED
21 Oct 19:50:19 - [info] Node-RED version: v4.0.8
21 Oct 19:50:19 - [info] Node.js version: v20.18.1
21 Oct 19:50:19 - [info] Linux 6.6.62+rpt-rpi-v8 arm64 LE
21 Oct 19:50:20 - [info] Loading palette nodes
21 Oct 19:50:23 - [info] Dashboard version 3.6.5 started at /ui
21 Oct 19:50:24 - [info] Settings file : /home/pi/.node-red/settings.js
21 Oct 19:50:24 - [info] Context store : 'default' [module=memory]
21 Oct 19:50:24 - [info] User directory : /home/pi/.node-red
21 Oct 19:50:24 - [warn] Projects disabled : editorTheme.projects.enabled=false
21 Oct 19:50:24 - [info] Flows file : /home/pi/.node-red/start
21 Oct 19:50:24 - [info] Creating new flow file
21 Oct 19:50:24 - [warn] Using unencrypted credentials
21 Oct 19:50:24 - [error] Unable to listen on http://127.0.0.1:1880/
21 Oct 19:50:24 - [error] Error: port in use
Translation:
Yes, it is reachable on the internet via port forwarding on the FRITZ!Box
In that case, unless it is protected by a strong user/pwd and uses https you have probably been hacked. Disconnect it from the internet immediately. Reprogram your SD card and start again and do not open it to the internet unless you understand the implications.
Starting as a systemd service.
21 Oct 20:42:19 - [info]
Welcome to Node-RED
21 Oct 20:42:19 - [info] Node-RED version: v4.0.8
21 Oct 20:42:19 - [info] Node.js version: v20.18.1
21 Oct 20:42:19 - [info] Linux 6.6.62+rpt-rpi-v8 arm64 LE
21 Oct 20:42:20 - [info] Loading palette nodes
21 Oct 20:42:21 - [info] Dashboard version 3.6.5 started at /ui
21 Oct 20:42:22 - [info] Settings file : /home/pi/.node-red/settings.js
21 Oct 20:42:22 - [info] Context store : 'default' [module=memory]
21 Oct 20:42:22 - [info] User directory : /home/pi/.node-red
21 Oct 20:42:22 - [warn] Projects disabled : editorTheme.projects.enabled=false
21 Oct 20:42:22 - [info] Flows file : /home/pi/.node-red/flows.json
21 Oct 20:42:22 - [info] Server now running at http://127.0.0.1:1880/
21 Oct 20:42:22 - [warn] Using unencrypted credentials
21 Oct 20:42:22 - [info] Starting flows
21 Oct 20:42:22 - [info] Started flows
21 Oct 20:42:22 - [info] [mqtt-broker:e73cf92749e0bfe3] Connected to broker: mqt t://localhost:1883
I would be grateful if you could translate before posting. That would save most of us the effort of translating each one.
Do you mean that you have not rebooted or restarted node red since it started behaving strangely?
Whether this was a hack or not, I hope that you have a strong password protecting node-red, and are using https. Otherwise you will likely get hacked at some points. There are bots looking for poorly protected node-red systems, which they hack with, for example, bitcoin mining code.