NEWS
Instance javascript.0 stürzt immer ab
-
Hallo
Nach dem ich Heute die 3 Updates eingespielt habe, stürzt nun mein javascript V7.0.5 Adapter ab.
Anzeige der Info:
Plattform: linux
Betriebssystem: linux
Architektur: x64
CPUs: 4
Geschwindigkeit: 1583 MHz
Modell: Intel(R) Core(TM) i7-4650U CPU @ 1.70GHz
RAM: 7.6 GB
System-Betriebszeit: 63 T. 01:42:57
Node.js: v18.15.0
time: 1686136130559
timeOffset: -120
Adapter-Anzahl: 563
NPM: 9.5.0
Datenträgergröße: 232.2 GB
Freier Festplattenspeicher: 209.9 GB
Betriebszeit: 1 T. 04:01:17
Aktive Instanzen: 34
Pfad: /opt/iobroker/
aktiv:Folgende Meldung bekomme ich im Protokoll:
host.Strommix-Smart 2023-06-07 13:30:49.444 error instance system.adapter.javascript.0 terminated with code 6 (UNCAUGHT_EXCEPTION) host.Strommix-Smart 2023-06-07 13:30:49.444 error Caught by controller[1]: at processImmediate (node:internal/timers:478:21) host.Strommix-Smart 2023-06-07 13:30:49.444 error Caught by controller[1]: at Immediate.<anonymous> (/opt/iobroker/node_modules/iobroker.javascript/main.js:1123:67) host.Strommix-Smart 2023-06-07 13:30:49.444 error Caught by controller[1]: at transformScriptBeforeCompilation (/opt/iobroker/node_modules/iobroker.javascript/lib/typescriptTools.js:447:23) host.Strommix-Smart 2023-06-07 13:30:49.444 error Caught by controller[1]: at Object.transform (/opt/iobroker/node_modules/typescript/lib/typescript.js:141644:20) host.Strommix-Smart 2023-06-07 13:30:49.444 error Caught by controller[1]: at transformNodes (/opt/iobroker/node_modules/typescript/lib/typescript.js:109621:72) host.Strommix-Smart 2023-06-07 13:30:49.444 error Caught by controller[1]: at transformation (/opt/iobroker/node_modules/typescript/lib/typescript.js:109613:16) host.Strommix-Smart 2023-06-07 13:30:49.444 error Caught by controller[1]: at /opt/iobroker/node_modules/iobroker.javascript/lib/typescriptTools.js:359:16 host.Strommix-Smart 2023-06-07 13:30:49.444 error Caught by controller[1]: at Object.visitNode (/opt/iobroker/node_modules/typescript/lib/typescript.js:85924:21) host.Strommix-Smart 2023-06-07 13:30:49.444 error Caught by controller[1]: at /opt/iobroker/node_modules/iobroker.javascript/lib/typescriptTools.js:368:138 host.Strommix-Smart 2023-06-07 13:30:49.444 error Caught by controller[1]: TypeError: ts.createNodeArray is not a function host.Strommix-Smart 2023-06-07 13:30:49.444 error Caught by controller[0]: This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason: javascript.0 1829 2023-06-07 13:30:48.858 error ts.createNodeArray is not a function javascript.0 1829 2023-06-07 13:30:48.858 error TypeError: ts.createNodeArray is not a function at /opt/iobroker/node_modules/iobroker.javascript/lib/typescriptTools.js:368:138 at Object.visitNode (/opt/iobroker/node_modules/typescript/lib/typescript.js:85924:21) at /opt/iobroker/node_modules/iobroker.javascript/lib/typescriptTools.js:359:16 at transformation (/opt/iobroker/node_modules/typescript/lib/typescript.js:109613:16) at transformNodes (/opt/iobroker/node_modules/typescript/lib/typescript.js:109621:72) at Object.transform (/opt/iobroker/node_modules/typescript/lib/typescript.js:141644:20) at transformScriptBeforeCompilation (/opt/iobroker/node_modules/iobroker.javascript/lib/typescriptTools.js:447:23) at Immediate.<anonymous> (/opt/iobroker/node_modules/iobroker.javascript/main.js:1123:67) at processImmediate (node:internal/timers:478:21) javascript.0 1829 2023-06-07 13:30:48.857 error unhandled promise rejection: ts.createNodeArray is not a function javascript.0 1829 2023-06-07 13:30:48.857 error Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). host.Strommix-Smart 2023-06-07 13:30:13.655 error instance system.adapter.javascript.0 terminated with code 6 (UNCAUGHT_EXCEPTION) host.Strommix-Smart 2023-06-07 13:30:13.655 error Caught by controller[1]: at processImmediate (node:internal/timers:478:21) host.Strommix-Smart 2023-06-07 13:30:13.655 error Caught by controller[1]: at Immediate.<anonymous> (/opt/iobroker/node_modules/iobroker.javascript/main.js:1123:67) host.Strommix-Smart 2023-06-07 13:30:13.655 error Caught by controller[1]: at transformScriptBeforeCompilation (/opt/iobroker/node_modules/iobroker.javascript/lib/typescriptTools.js:447:23) host.Strommix-Smart 2023-06-07 13:30:13.655 error Caught by controller[1]: at Object.transform (/opt/iobroker/node_modules/typescript/lib/typescript.js:141644:20) host.Strommix-Smart 2023-06-07 13:30:13.654 error Caught by controller[1]: at transformNodes (/opt/iobroker/node_modules/typescript/lib/typescript.js:109621:72) host.Strommix-Smart 2023-06-07 13:30:13.654 error Caught by controller[1]: at transformation (/opt/iobroker/node_modules/typescript/lib/typescript.js:109613:16) host.Strommix-Smart 2023-06-07 13:30:13.654 error Caught by controller[1]: at /opt/iobroker/node_modules/iobroker.javascript/lib/typescriptTools.js:359:16 host.Strommix-Smart 2023-06-07 13:30:13.654 error Caught by controller[1]: at Object.visitNode (/opt/iobroker/node_modules/typescript/lib/typescript.js:85924:21) host.Strommix-Smart 2023-06-07 13:30:13.654 error Caught by controller[1]: at /opt/iobroker/node_modules/iobroker.javascript/lib/typescriptTools.js:368:138 host.Strommix-Smart 2023-06-07 13:30:13.654 error Caught by controller[1]: TypeError: ts.createNodeArray is not a function host.Strommix-Smart 2023-06-07 13:30:13.654 error Caught by controller[0]: This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason: javascript.0 1800 2023-06-07 13:30:13.079 error ts.createNodeArray is not a function javascript.0 1800 2023-06-07 13:30:13.079 error TypeError: ts.createNodeArray is not a function at /opt/iobroker/node_modules/iobroker.javascript/lib/typescriptTools.js:368:138 at Object.visitNode (/opt/iobroker/node_modules/typescript/lib/typescript.js:85924:21) at /opt/iobroker/node_modules/iobroker.javascript/lib/typescriptTools.js:359:16 at transformation (/opt/iobroker/node_modules/typescript/lib/typescript.js:109613:16) at transformNodes (/opt/iobroker/node_modules/typescript/lib/typescript.js:109621:72) at Object.transform (/opt/iobroker/node_modules/typescript/lib/typescript.js:141644:20) at transformScriptBeforeCompilation (/opt/iobroker/node_modules/iobroker.javascript/lib/typescriptTools.js:447:23) at Immediate.<anonymous> (/opt/iobroker/node_modules/iobroker.javascript/main.js:1123:67) at processImmediate (node:internal/timers:478:21) javascript.0 1800 2023-06-07 13:30:13.079 error unhandled promise rejection: ts.createNodeArray is not a function javascript.0 1800 2023-06-07 13:30:13.079 error Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch().
Wie bekomme ich den wieder zum laufen ?
Der Versuch eines Neustart vom ioBroker brachte keinen Erfolg. -
-
@thomas-braun said in Instance javascript.0 stürzt immer ab:
iob diag
======== Start marking the full check here =========
Skript v.2023-04-16 *** BASE SYSTEM *** Architecture : x86_64 Docker : false Virtualization : none Distributor ID: Debian Description: Debian GNU/Linux 11 (bullseye) Release: 11 Codename: bullseye PRETTY_NAME="Debian GNU/Linux 11 (bullseye)" NAME="Debian GNU/Linux" VERSION_ID="11" VERSION="11 (bullseye)" VERSION_CODENAME=bullseye ID=debian HOME_URL="https://www.debian.org/" SUPPORT_URL="https://www.debian.org/support" BUG_REPORT_URL="https://bugs.debian.org/" Systemuptime and Load: 13:55:57 up 32 min, 1 user, load average: 0.42, 0.57, 0.48 CPU threads: 4 *** Time and Time Zones *** Local time: Wed 2023-06-07 13:55:57 CEST Universal time: Wed 2023-06-07 11:55:57 UTC RTC time: Wed 2023-06-07 11:55:57 Time zone: Europe/Berlin (CEST, +0200) System clock synchronized: yes NTP service: active RTC in local TZ: no *** User and Groups *** berges01 /home/berges01 berges01 cdrom floppy sudo audio dip video plugdev netdev iobroker *** X-Server-Setup *** X-Server: false Desktop: Terminal: tty Boot Target: graphical.target *** MEMORY *** total used free shared buff/cache available Mem: 7.9G 2.4G 5.1G 0.0K 411M 5.2G Swap: 976M 0B 976M Total: 8.8G 2.4G 6.0G 7865 M total memory 2393 M used memory 186 M active memory 2368 M inactive memory 5060 M free memory 62 M buffer memory 349 M swap cache 976 M total swap 0 M used swap 976 M free swap *** FILESYSTEM *** Filesystem Type Size Used Avail Use% Mounted on udev devtmpfs 3.9G 0 3.9G 0% /dev tmpfs tmpfs 787M 796K 786M 1% /run /dev/sda2 ext4 233G 11G 210G 5% / tmpfs tmpfs 3.9G 0 3.9G 0% /dev/shm tmpfs tmpfs 5.0M 0 5.0M 0% /run/lock /dev/sda1 vfat 511M 5.8M 506M 2% /boot/efi tmpfs tmpfs 787M 0 787M 0% /run/user/1000 Messages concerning ext4 filesystem in dmesg:
-
Das ist nicht vollständig.
-
======================= SUMMARY ======================= v.2023-04-16 Operatingsystem: Debian GNU/Linux 11 (bullseye) Kernel: 5.10.0-21-amd64 Installation: Native Timezone: Europe/Berlin (CEST, +0200) User-ID: 1000 X-Server: false Boot Target: graphical.target Pending OS-Updates: 47 Pending iob updates: 0 Nodejs-Installation: /usr/bin/nodejs v18.15.0 /usr/bin/node v18.15.0 /usr/bin/npm 9.5.0 /usr/bin/npx 9.5.0 Recommended versions are nodejs 18.x.y and npm 9.x.y Your nodejs installation is correct MEMORY: total used free shared buff/cache available Mem: 7.9G 2.4G 4.7G 0.0K 709M 5.2G Swap: 976M 0B 976M Total: 8.8G 2.4G 5.7G Active iob-Instances: 34 Active repo(s): Stable (default), Beta (latest) ioBroker Core: js-controller 4.0.24 admin 6.5.7 ioBroker Status: iobroker is running on this host. Objects type: jsonl States type: jsonl Status admin and web instance: + system.adapter.admin.0 : admin : Strommix-Smart - enabled, port: 8081, bind: 0.0.0.0, run as: admin + system.adapter.web.0 : web : Strommix-Smart - enabled, port: 8082, bind: 0.0.0.0, run as: admin Objects: 17160 States: 14542 Size of iob-Database: 34M /opt/iobroker/iobroker-data/objects.jsonl 14M /opt/iobroker/iobroker-data/objects.json.migrated 14M /opt/iobroker/iobroker-data/objects.json.bak.migrated 4.0K /opt/iobroker/iobroker-data/objects.json.old 0 /opt/iobroker/iobroker-data/objects.json.broken 20M /opt/iobroker/iobroker-data/states.jsonl 1.9M /opt/iobroker/iobroker-data/states.json.migrated 1.9M /opt/iobroker/iobroker-data/states.json.bak.migrated 1.5M /opt/iobroker/iobroker-data/states.json.old 0 /opt/iobroker/iobroker-data/states.json.broken =================== END OF SUMMARY ====================
-
@berges01 War bei mir genau das selbe.
Bin dann 2 Versionen zurück (auf 7.03) zurück uns alles ist wieder gut.
Werde noch etwas warten. -
@berges01 sagte in Instance javascript.0 stürzt immer ab:
Pending OS-Updates: 47
Ran da...
System danach rebootenUnd schieb die Langfassung noch hinterher.
-
Muss mit dem heutigen ScripEngine Adapter Update (auf 7.0.5) zusammen hängen. Hatte ich auch, bin zurück auf die 7.0.3 da funkt wieder alles. Bei mir sind's zwei ts Scripte die Auslöser für den Restartloop sind.
-
@docgame sagte in Instance javascript.0 stürzt immer ab:
Bin dann 2 Versionen zurück (auf 7.03) zurück uns alles ist wieder gut.
Werde noch etwas warten.Issue auf GitHub verewigt? javascript>7 ist ja nur zum Beta-testen gedacht.
-
Wenn du dich errinnerst, ich bin der Linux Depp, was soll ich machen ohne alles zu schrotten ?
-
@berges01 sagte in Instance javascript.0 stürzt immer ab:
Wenn du dich errinnerst, ich bin der Linux Depp, was soll ich machen ohne alles zu schrotten ?
Grundlagen:
iob stop sudo apt update sudo apt full-upgrade sudo reboot
-
@thomas-braun said in Instance javascript.0 stürzt immer ab:
sudo reboot
Wie gehabt, kein Erfolg, der Adapter bleibt rot.
Copy text starting here:
======================= SUMMARY ======================= v.2023-04-16 Operatingsystem: Debian GNU/Linux 11 (bullseye) Kernel: 5.10.0-23-amd64 Installation: Native Timezone: Europe/Berlin (CEST, +0200) User-ID: 1000 X-Server: false Boot Target: graphical.target Pending OS-Updates: 0 Pending iob updates: 0 Nodejs-Installation: /usr/bin/nodejs v18.16.0 /usr/bin/node v18.16.0 /usr/bin/npm 9.5.1 /usr/bin/npx 9.5.1 Recommended versions are nodejs 18.x.y and npm 9.x.y Your nodejs installation is correct MEMORY: total used free shared buff/cache available Mem: 7.9G 2.2G 5.0G 0.0K 630M 5.4G Swap: 976M 0B 976M Total: 8.8G 2.2G 6.0G Active iob-Instances: 34 Active repo(s): Stable (default), Beta (latest) ioBroker Core: js-controller 4.0.24 admin 6.5.7 ioBroker Status: iobroker is running on this host. Objects type: jsonl States type: jsonl Status admin and web instance: + system.adapter.admin.0 : admin : Strommix-Smart - enabled, port: 8081, bind: 0.0.0.0, run as: admin + system.adapter.web.0 : web : Strommix-Smart - enabled, port: 8082, bind: 0.0.0.0, run as: admin Objects: 17160 States: 14542 Size of iob-Database: 22M /opt/iobroker/iobroker-data/objects.jsonl 14M /opt/iobroker/iobroker-data/objects.json.migrated 14M /opt/iobroker/iobroker-data/objects.json.bak.migrated 4.0K /opt/iobroker/iobroker-data/objects.json.old 0 /opt/iobroker/iobroker-data/objects.json.broken 25M /opt/iobroker/iobroker-data/states.jsonl 1.9M /opt/iobroker/iobroker-data/states.json.migrated 1.9M /opt/iobroker/iobroker-data/states.json.bak.migrated 1.5M /opt/iobroker/iobroker-data/states.json.old 0 /opt/iobroker/iobroker-data/states.json.broken =================== END OF SUMMARY ====================
berges01@Strommix-Smart:~$
-
@berges01 sagte in Instance javascript.0 stürzt immer ab:
Wie gehabt, kein Erfolg, der Adapter bleibt rot.
Dann kannst du ja jetzt wie auch @DocGame und @JohGre das Ergebnis deines Beta-Testings in ein Issue gießen:
https://github.com/ioBroker/ioBroker.javascript/issues
Oder deinen ioBroker auf eine stabile Basis setzen, wenn du auf beta-testen eigentlich gar keine Lust hast.
-
Eigentlich wollte ich kein Betatester sein !
Wo warum usw. ich Betta bin keine Ahnung.
Wie komme ich denn da von auf Release?
Wie das mit github geht weis ich auch nicht, somit ist Betta eigentlich Obsolet.
Mein System soll stabil laufen und nicht rumzicken. -
@berges01 sagte in Instance javascript.0 stürzt immer ab:
Eigentlich wollte ich kein Betatester sein !
Wo warum usw. ich Betta bin keine Ahnung.Weil du das Beta-Repository aktiviert hast:
Active repo(s): Stable (default), Beta (latest)
-
Oh ha Sch...... !
Wo ist der Schalter und wie rudere ich zurück?Ah glaube ich habe den Schalter
-
@berges01
Deaktivier das Repo im Admin.
Oder per Kommandzeileiob repo unset 'Beta (latest)'
-
@thomas-braun said in Instance javascript.0 stürzt immer ab:
iob repo unset 'Beta (latest)'
``
berges01@Strommix-Smart:~$ ^C
berges01@Strommix-Smart:~$ iob repo unset 'Beta (latest)'
Repository "Beta (latest)" deactivated.
Stable (default): http://download.iobroker.net/sources-dist.json
Beta (latest) : http://download.iobroker.net/sources-dist-latest.jsonActive repo(s): Stable (default)
Erledigt, und nun wie auf die Release
-
iob update iob upgrade javascript@6.1.4
-
@thomas-braun said in Instance javascript.0 stürzt immer ab:
iob upgrade javascript@6.1.4
Ui Super es läuft wieder !
======================= SUMMARY ======================= v.2023-04-16 Operatingsystem: Debian GNU/Linux 11 (bullseye) Kernel: 5.10.0-23-amd64 Installation: Native Timezone: Europe/Berlin (CEST, +0200) User-ID: 1000 X-Server: false Boot Target: graphical.target Pending OS-Updates: 0 Pending iob updates: 0 Nodejs-Installation: /usr/bin/nodejs v18.16.0 /usr/bin/node v18.16.0 /usr/bin/npm 9.5.1 /usr/bin/npx 9.5.1 Recommended versions are nodejs 18.x.y and npm 9.x.y Your nodejs installation is correct MEMORY: total used free shared buff/cache available Mem: 7.9G 3.2G 3.8G 0.0K 883M 4.4G Swap: 976M 0B 976M Total: 8.8G 3.2G 4.8G Active iob-Instances: 35 Active repo(s): Stable (default) ioBroker Core: js-controller 4.0.24 admin 6.5.7 ioBroker Status: iobroker is running on this host. Objects type: jsonl States type: jsonl Status admin and web instance: + system.adapter.admin.0 : admin : Strommix-Smart - enabled, port: 8081, bind: 0.0.0.0, run as: admin + system.adapter.web.0 : web : Strommix-Smart - enabled, port: 8082, bind: 0.0.0.0, run as: admin Objects: 17160 States: 14588 Size of iob-Database: 31M /opt/iobroker/iobroker-data/objects.jsonl 14M /opt/iobroker/iobroker-data/objects.json.migrated 14M /opt/iobroker/iobroker-data/objects.json.bak.migrated 4.0K /opt/iobroker/iobroker-data/objects.json.old 0 /opt/iobroker/iobroker-data/objects.json.broken 11M /opt/iobroker/iobroker-data/states.jsonl 1.9M /opt/iobroker/iobroker-data/states.json.migrated 1.9M /opt/iobroker/iobroker-data/states.json.bak.migrated 1.5M /opt/iobroker/iobroker-data/states.json.old 0 /opt/iobroker/iobroker-data/states.json.broken =================== END OF SUMMARY ====================
BESTEN DANK mal wieder !