NEWS
Ein paar kleine Probleme...
-
@michl75 sagte in Ein paar kleine Probleme...:
so besser ?
ja!
jetzt konnte @apollon77 auch etwas relevantes herauskopieren -
@michl75 sagte in Ein paar kleine Probleme...:
a) Das Teils stürzt ab, wenn ich per Firefox mein IoB-Vis anzeigen lasse. Das ganz passiert unregelmäßig aber dann wie Tod und keine Reaktion mehr.
Und hier fangen wir doch mal an:
"free -m" und "top" bitte mal zeigen vom normalen Betrieb.
In Deiner Vis ... sind da vllt Flot Charts drin ? Wieviele?
-
@apollon77 said in Ein paar kleine Probleme...:
Und hier fangen wir doch mal an:
"free -m" und "top" bitte mal zeigen vom normalen Betrieb.
In Deiner Vis ... sind da vllt Flot Charts drin ? Wieviele?Raspi - free -m:
pi@rapflu1:~ $ free -m total used free shared buff/cache available Mem: 923 105 542 11 275 750 Swap: 99 61 38 pi@rapflu1:~ $
Raspi - free -top:
pi@rapflu1:~ $ free -top free: Ungültige Option -- o Usage: free [options] Options: -b, --bytes show output in bytes --kilo show output in kilobytes --mega show output in megabytes --giga show output in gigabytes --tera show output in terabytes --peta show output in petabytes -k, --kibi show output in kibibytes -m, --mebi show output in mebibytes -g, --gibi show output in gibibytes --tebi show output in tebibytes --pebi show output in pebibytes -h, --human show human-readable output --si use powers of 1000 not 1024 -l, --lohi show detailed low and high memory statistics -t, --total show total for RAM + swap -s N, --seconds N repeat printing every N seconds -c N, --count N repeat printing N times, then exit -w, --wide wide output --help display this help and exit -V, --version output version information and exit For more details see free(1). pi@rapflu1:~ $
bezgl. Flot Chat... Nein, die habe ich verbannt eben so Grafiken von Grafana. Also im VIS für den Raspi.
Schaut so aus :
aber kein Flot
-
-
@apollon77 said in Ein paar kleine Probleme...:
Dann ist in irgendeinem deiner Skripte ein Schedule falsch konfiguriert. Musst mal alle Scripte stoppen am besten und nacheinander starten und schauen nach welchem Start diese Meldung kommt. Dann dieses Skript mal genauer ansehen
Ich habe mal bei den Scripten nach "NaN" gesucht und da werden mir dann Scripte angezeigt.
Aber... Wenn ich mir die Scripte anschaue und gugge wo diese "Felder" sein sollen, dann passiert folgendes:
Ein vorhandenes Feld wird gelb eingerahmt, klicke ich da drauf dann ... wird als Wert von diesem Feld erst mal NULL angezeigt und dauert teils bis zu zwei Sekunden bis ein Wert angezeigt wird:
dann dauert es kurz ... und dann:
Kann es sein, dass es zu lange dauert bis der Wert zur Verfügung steht und er deshalb dann NaN als Fehler ausgibt?
-
@thomas-braun said in Ein paar kleine Probleme...:
ist ein eigenes Kommando.
ok, kannte ich nicht ... hab abgeleitet... nun aber hier:
Tasks: 142 total, 1 running, 141 sleeping, 0 stopped, 0 zombie %Cpu(s): 5,9 us, 0,9 sy, 0,0 ni, 93,1 id, 0,0 wa, 0,0 hi, 0,2 si, 0,0 st MiB Mem : 923,2 total, 537,7 free, 109,7 used, 275,9 buff/cache MiB Swap: 100,0 total, 39,0 free, 61,0 used. 747,2 avail Mem PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 484 root 20 0 52544 24100 13020 S 9,9 2,5 3:33.06 vncserver-x11-c 2846 pi 20 0 87252 29428 22696 S 7,9 3,1 0:01.26 lxterminal 537 root 20 0 276248 48884 33780 S 5,9 5,2 1:41.87 Xorg 554 root 20 0 16648 8400 8140 S 1,3 0,9 0:44.13 vncagent 2857 pi 20 0 10504 3004 2624 R 0,7 0,3 0:00.15 top 685 pi 20 0 56840 10416 10164 S 0,3 1,1 0:00.94 lxsession 749 pi 20 0 431704 21216 18608 S 0,3 2,2 0:06.67 lxpanel 1 root 20 0 32712 6756 5320 S 0,0 0,7 0:06.11 systemd 2 root 20 0 0 0 0 S 0,0 0,0 0:00.02 kthreadd 3 root 0 -20 0 0 0 I 0,0 0,0 0:00.00 rcu_gp 4 root 0 -20 0 0 0 I 0,0 0,0 0:00.00 rcu_par_gp 8 root 0 -20 0 0 0 I 0,0 0,0 0:00.00 mm_percpu_wq 9 root 20 0 0 0 0 S 0,0 0,0 0:00.00 rcu_tasks_rude_ 10 root 20 0 0 0 0 S 0,0 0,0 0:00.00 rcu_tasks_trace 11 root 20 0 0 0 0 S 0,0 0,0 0:04.38 ksoftirqd/0 12 root 20 0 0 0 0 I 0,0 0,0 0:02.29 rcu_sched 13 root rt 0 0 0 0 S 0,0 0,0 0:00.01 migration/0 14 root 20 0 0 0 0 S 0,0 0,0 0:00.00 cpuhp/0 15 root 20 0 0 0 0 S 0,0 0,0 0:00.00 cpuhp/1 16 root rt 0 0 0 0 S 0,0 0,0 0:00.01 migration/1 17 root 20 0 0 0 0 S 0,0 0,0 0:00.23 ksoftirqd/1 20 root 20 0 0 0 0 S 0,0 0,0 0:00.00 cpuhp/2 21 root rt 0 0 0 0 S 0,0 0,0 0:00.01 migration/2 22 root 20 0 0 0 0 S 0,0 0,0 0:00.18 ksoftirqd/2 25 root 20 0 0 0 0 S 0,0 0,0 0:00.00 cpuhp/3 26 root rt 0 0 0 0 S 0,0 0,0 0:00.00 migration/3 27 root 20 0 0 0 0 S 0,0 0,0 0:00.47 ksoftirqd/3 30 root 20 0 0 0 0 S 0,0 0,0 0:00.00 kdevtmpfs 31 root 0 -20 0 0 0 I 0,0 0,0 0:00.00 netns 34 root 20 0 0 0 0 S 0,0 0,0 0:00.00 kauditd 36 root 20 0 0 0 0 S 0,0 0,0 0:00.01 khungtaskd 37 root 20 0 0 0 0 S 0,0 0,0 0:00.00 oom_reaper 38 root 0 -20 0 0 0 I 0,0 0,0 0:00.00 writeback 39 root 20 0 0 0 0 S 0,0 0,0 0:01.59 kcompactd0 57 root 0 -20 0 0 0 I 0,0 0,0 0:00.00 kblockd 58 root 0 -20 0 0 0 I 0,0 0,0 0:00.00 blkcg_punt_bio 59 root -51 0 0 0 0 S 0,0 0,0 0:00.00 watchdogd 62 root 0 -20 0 0 0 I 0,0 0,0 0:00.00 rpciod 63 root 0 -20 0 0 0 I 0,0 0,0 0:00.00 kworker/u9:0-hci0 64 root 0 -20 0 0 0 I 0,0 0,0 0:00.00 xprtiod 65 root 20 0 0 0 0 S 0,0 0,0 0:01.75 kswapd0 66 root 0 -20 0 0 0 I 0,0 0,0 0:00.00 nfsiod 69 root 0 -20 0 0 0 I 0,0 0,0 0:00.00 iscsi_eh 70 root 0 -20 0 0 0 I 0,0 0,0 0:00.00 iscsi_destroy 71 root 0 -20 0 0 0 I 0,0 0,0 0:00.00 dwc_otg 74 root 0 -20 0 0 0 I 0,0 0,0 0:00.00 DWC Notificatio 75 root 1 -19 0 0 0 S 0,0 0,0 0:00.03 vchiq-slot/0 76 root 1 -19 0 0 0 S 0,0 0,0 0:00.01 vchiq-recy/0 77 root 0 -20 0 0 0 S 0,0 0,0 0:00.00 vchiq-sync/0 78 root 0 -20 0 0 0 I 0,0 0,0 0:00.00 zswap-shrink
-
@michl75 sagte in Ein paar kleine Probleme...:
Ich habe mal bei den Scripten nach "NaN" gesucht
NaN heisst Not a Number und beziht sich auf das Ergebnis.
ich glaube nicht dass du es so findest.irgendein Script wirft anstelle einer Zahl etwas anderes aus.
-
ah ok, dann muss ich das nochmal genau hinguggen.
komisch ist, dass dies erst seit dem letzten Update das ich Sonntag gemacht habe der fall ist. Ok, also da suche ich mal nach dem "Ergebnis" das das sein könnte...
Danke! -
@michl75 sagte in Ein paar kleine Probleme...:
Xorg
Da rennt ein Desktop mit allem Zipp und Zapp, schalt den aus.
Auf dem kleinen System hast du keine Ressourcen an eine GUI zu verschenken. -
@thomas-braun said in Ein paar kleine Probleme...:
Da rennt ein Desktop mit allem Zipp und Zapp, schalt den aus.
Ist der xOrg für VNC notwendig?
Wenn keine GUI ... wie dann die Anzeige? ... dann ist doch nur Befehlszeile oder?
-
@michl75
Natürlich.
Aber es läuft kein XOrg und damit schon gar kein VNC auf einem Server. -
ah ok, ja über VNC hab ich meinen Zugang gemacht, dass ich da auch mal Updates machen kann usw.
Habe an dem Raspi nur Monitor dran und der hängt halt im unteren Gang. Raspi selbst hinterm Schrank...Also war CNV keine gute idee...
-
@michl75 sagte in Ein paar kleine Probleme...:
dass ich da auch mal Updates machen kann
Und dafür braucht man nicht mehr als ein Terminal und Zugang via ssh.
Ich würde es trennen und nicht auf dem gleichen System wie den ioBroker auch noch eine vis laufen lassen. Jedenfalls nicht auf einem 1GB RAM-System. Das wird nicht gut funktionieren. Siehe deinen Punkt 1.
Ohne Xorg / Desktop würden deine sechs CPU-und RAM-lastigsten Prozesse schon mal wegfallen:
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 484 root 20 0 52544 24100 13020 S 9,9 2,5 3:33.06 vncserver-x11-c 2846 pi 20 0 87252 29428 22696 S 7,9 3,1 0:01.26 lxterminal 537 root 20 0 276248 48884 33780 S 5,9 5,2 1:41.87 Xorg 554 root 20 0 16648 8400 8140 S 1,3 0,9 0:44.13 vncagent 685 pi 20 0 56840 10416 10164 S 0,3 1,1 0:00.94 lxsession 749 pi 20 0 431704 21216 18608 S 0,3 2,2 0:06.67 lxpanel
-
ok, hab jetzt noch schnell update gemacht und nach Neustart VNC deaktiviert.
wie kann ich den XOrg deaktivieren?
Da bin ich recht raus, bin sonst nur noch auf Windows und Windows Server unterwegs...
-
@michl75 SOllte nicht in einem Skript Teils ein sondern irgendwo in einem schedule. Und im Code steht ggf nicht NaN sondern irgendwas was er nicht parsen kann
-
Unter anderem in
sudo raspi-config
Da kann man einstellen, bis zu welchem Stage gebootet werden soll.
Da auf 'CLI with login required' oder so ähnlich umstellen.
Aber die Vis bleibt dann dunkel.