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.
I understand you seem happy now, but having something connected directly to the internet would make me nervous.
When you put all that to chatGPT you get:
does anything of this look like the system is compromised, hacked, or running other malishious code? hier mal ein ps -aux ausgabe:...
Short answer: yes — there are a few very suspicious processes here.
Most entries are normal kernel/system threads, but these three jump out:
pi 124592 … /usr/sbin/hwm
pi 124593 373 … /usr/lib/syst(truncated — likely trying to look like “systemd”)
pi 124594 … /usr/sbin/sys
Why they look bad:
They’re not standard Raspberry Pi OS/Debian binaries (/usr/sbin/sys and /usr/sbin/hwm don’t exist on a clean install).
They’re owned by user pi but live in system directories (/usr/sbin, /usr/lib) — unusual and a common malware trick.
One is burning huge CPU (%CPU 373 and TIME in the tens of thousands of minutes), which fits crypto-miner/bot behavior.
The names (sys, syst) look like masquerades for real services.
Your other entries like node-red, mosquitto, NetworkManager, wpa_supplicant, ModemManager, sshd, and kernel kworker threads all look normal for a Pi with IoT software.
Schlussfolgerung (auf Deutsch)
Ja — es sieht sehr stark danach aus, dass dein System kompromittiert wurde.
Fast alle Prozesse in deiner ps -aux-Liste sind absolut normal für ein Raspberry-Pi-Linux-System – außer drei Prozessen, die sehr verdächtig sind:
/usr/sbin/hwm
/usr/lib/syst… (vermutlich absichtlich abgeschnitten, um wie „systemd“ auszusehen)
/usr/sbin/sys
Diese drei Programme:
liegen in Systemverzeichnissen, gehören aber dem Benutzer „pi“ → das ist ungewöhnlich und deutet auf manipulierte Dateien hin,
verwenden täuschende Namen, die wie echte Systemdienste aussehen sollen,
einer davon (/usr/lib/syst...) verbraucht extrem viel CPU – ein typisches Verhalten für Krypto-Miner oder Botnet-Software.
Alles andere (Node-RED, mosquitto, NetworkManager, sshd, systemd usw.) ist völlig normal.
Do not use http over the internet for any reason. You WILL be hacked.
There are several useful threads on the forum telling you how to more safely connect node-red to the internet, check the "security" tag and the faq category.
If you don't know how to do internet security, you should make use of a cloud solution such as Cloudfflare Zero Trust.