NEWS
js-controller 3.3 jetzt im STABLE!
-
@apollon77 said in js-controller 3.3 jetzt im STABLE!:
du -Hs /opt/iobroker/iobroker-data/files
du -Hs /opt/iobroker/iobroker-data/files
und jetzt?
-
@sandro_gera Was ist die Ausgabe?
-
94828 /opt/iobroker/iobroker-data/files
-
@sandro_gera Ok, 94MB ... da wüsste ich nicht warum du ein memory issue bekommen solltest
Welche Node.js version?
-
Na wenn du das nicht verstehst. Versteh ich es erst recht nicht
-
12.22.7
-
@sandro_gera Mir fällt dann nur einmal auf Nodejs 14 zu gehen und schauen was passiert ...
-
-
Kannst du mir evtl. Sagen wie ich das mache? oder einen Link schicken?
-
hier ist nochmal die komplette Ausgabe nach dem anstoßen des backups.
pi@RaspBee-II-Phoscon:~ $ iob backup host.RaspBee-II-Phoscon 6917 states saved host.RaspBee-II-Phoscon 8384 objects saved <--- Last few GCs ---> [9996:0x25fb348] 19872 ms: Mark-sweep 230.5 (232.2) -> 230.5 (232.2) MB, 90.9 / 0.0 ms (average mu = 0.724, current mu = 0.001) last resort GC in old space requested [9996:0x25fb348] 20043 ms: Mark-sweep 230.5 (232.2) -> 230.4 (231.9) MB, 171. 0 / 0.0 ms (average mu = 0.487, current mu = 0.001) last resort GC in old space requested <--- JS stacktrace ---> ==== JS stack trace ========================================= Security context: 0x73d8d925 <JSObject> 0: builtin exit frame: parse(aka parse)(this=0x4b780279 <undefined>,0x183400 8d <Very long string[66411106]>,0x4b780279 <undefined>) 1: .json [0x57d93cb1] [internal/modules/cjs/loader.js:1041] [bytecode=0x39e7 3931 offset=82](this=0x4a2bfe61 <Object map = 0x245c224d>,0x282c7d31 <Module map = 0x245e4915>,0x39e733b5 <String[#72]: /opt/iobroker/node_modules/iobroker.js-c ontroller/tmp/backup/back... FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memo ry /usr/bin/iob: Zeile 8: 9995 Abgebrochen sudo -H -u iobroker node /o pt/iobroker/node_modules/iobroker.js-controller/iobroker.js "$@" pi@RaspBee-II-Phoscon:~ $
-
@apollon77 könnte hier evtl. nicht der compact mode helfen? würde mich interessieren...
-
in dem Video wird empfohlen vorher den js controller zu aktualisieren.
-
@jleg Hier geht es ja nicht um einen Adapter und RAM an sich ist auch genug frei.
-
@sandro_gera Ja klar ... ehrlich: Mach ne Sicherung von /opt/iobroker/iobroker-data und dann js controller aktualisieren. Das ist quasi so gut wie ein backup
Wobei ich ehrlich eher bei Node.js aktualisieren bin. Es gab einen anderen Fall der Auch ein memotry issue hatte was nach Nodejs 14 update weg war und nur mit Nodejs 12 auftrat. Grund: unbekannt.
-
Sorry wenn ich doof frage aber wie mache ich eine Sicherung von /opt/iobroker/iobroker-data ?
Einfach mit Filezilla den Ordner auf den PC kopieren? -
@sandro_gera Das sollte gehen. Da sind an sich keine Symbolischen Links drin.
-
ok dann kopier ich zuerst den Ordner, dann mach ich das update vom cs controller und anschließens date auf node Js 14 up. mal sehen ob ich danach eine richtige Sicherung machen kann.
Was mich nur wundert ist das der Fehler vorher nicht aufgetreten ist. Ich hab ja schon öfter Sicherungen gemacht und es ging immer. -
Hallo, irgendwie scheint es da ein Problem zu geben.
Ich bekomme folgende Fehlermeldung
pi@RaspBee-II-Phoscon:~ $ iob update Used repository: Stable (default) hash changed or no sources cached => force download of new sources Cannot download json from http://download.iobroker.net/sources-dist.json. Error: Error: ESOCKETTIMEDOUT failed to download new sources, use cached sources update done Adapter "deconz" : 1.3.19 , installed 1.3.19 Adapter "hue-extended" : 2.0.0 , installed 2.0.0 Controller "js-controller" : 3.3.21 , installed 3.3.18 [Updateable] Adapter "sonoff" : 2.4.5 , installed 2.4.5 pi@RaspBee-II-Phoscon:~ $ iob upgrade self Update js-controller from @3.3.18 to @3.3.21 NPM version: 6.14.15 npm install iobroker.js-controller@3.3.21 --loglevel error --unsafe-perm --prefi x "/opt/iobroker" (System call) pi@RaspBee-II-Phoscon:~ $
Jetzt schint es funktioniert zu haben
pi@RaspBee-II-Phoscon:~ $ iob update Used repository: Stable (default) hash changed or no sources cached => force download of new sources update done Adapter "deconz" : 1.3.19 , installed 1.3.19 Adapter "hue-extended" : 2.0.0 , installed 2.0.0 Controller "js-controller" : 3.3.21 , installed 3.3.21 Adapter "sonoff" : 2.4.5 , installed 2.4.5 pi@RaspBee-II-Phoscon:~ $ iob upgrade self Host "RaspBee-II-Phoscon" is up to date. pi@RaspBee-II-Phoscon:~ $ sudo reboot
-
Also die updates haben beide funktioniert. js controller und Node js sind jetzt aktuell.
Leider hat das nichts an der Fehlermeldung geändert.pi@RaspBee-II-Phoscon:~ $ iob stop pi@RaspBee-II-Phoscon:~ $ iob backup host.RaspBee-II-Phoscon 6917 states saved host.RaspBee-II-Phoscon 8384 objects saved <--- Last few GCs ---> [2241:0x4f8baf8] 19578 ms: Mark-sweep (reduce) 230.4 (235.4) -> 230.4 (235.4) MB, 126.4 / 0.0 ms (average mu = 0.594, current mu = 0.001) last resort GC in old space requested [2241:0x4f8baf8] 19676 ms: Mark-sweep (reduce) 230.4 (233.4) -> 230.4 (233.4) MB, 97.8 / 0.0 ms (average mu = 0.443, current mu = 0.001) last resort GC in o ld space requested <--- JS stacktrace ---> FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memo ry /usr/bin/iob: Zeile 8: 2240 Abgebrochen sudo -H -u iobroker node /o pt/iobroker/node_modules/iobroker.js-controller/iobroker.js "$@" pi@RaspBee-II-Phoscon:~ $ sudo reboot
-