NEWS
Komme nicht mehr an meine Skripte ran [gelöst]
-
cd /opt/iobroker npm ls | grep -E 'github|ERR' sudo ln -s /usr/bin/node /usr/bin/nodejs uname -m && type -P nodejs node npm && nodejs -v && node -v && npm -v && whoami && pwd && sudo apt update &> /dev/null && sudo apt update && apt policy nodejs
-
pi@iobroker:/opt/iobroker $ npm ls | grep -E 'github|ERR' ├── github-from-package@0.0.0 extraneous npm ERR! code ELSPROBLEMS npm ERR! extraneous: @types/caseless@0.12.2 /opt/iobroker/node_modules/@types/caseless npm ERR! extraneous: @types/request@2.48.8 /opt/iobroker/node_modules/@types/request npm ERR! extraneous: @types/tough-cookie@4.0.2 /opt/iobroker/node_modules/@types/tough-cookie npm ERR! extraneous: are-we-there-yet@1.1.7 /opt/iobroker/node_modules/are-we-there-yet npm ERR! extraneous: code-point-at@1.1.0 /opt/iobroker/node_modules/code-point-at npm ERR! extraneous: coffeescript@1.12.7 /opt/iobroker/node_modules/coffeescript npm ERR! extraneous: deep-extend@0.6.0 /opt/iobroker/node_modules/deep-extend npm ERR! extraneous: detect-libc@1.0.3 /opt/iobroker/node_modules/detect-libc npm ERR! extraneous: expand-template@2.0.3 /opt/iobroker/node_modules/expand-template npm ERR! extraneous: gauge@2.7.4 /opt/iobroker/node_modules/gauge npm ERR! extraneous: github-from-package@0.0.0 /opt/iobroker/node_modules/github-from-package npm ERR! extraneous: ini@1.3.8 /opt/iobroker/node_modules/ini npm ERR! invalid: iobroker.javascript@6.0.0 /opt/iobroker/node_modules/iobroker.javascript npm ERR! extraneous: jsonata@1.8.6 /opt/iobroker/node_modules/jsonata npm ERR! extraneous: napi-build-utils@1.0.2 /opt/iobroker/node_modules/napi-build-utils npm ERR! extraneous: node-abi@2.30.1 /opt/iobroker/node_modules/node-abi npm ERR! extraneous: node-inspect@2.0.0 /opt/iobroker/node_modules/node-inspect npm ERR! extraneous: npmlog@4.1.2 /opt/iobroker/node_modules/npmlog npm ERR! extraneous: number-is-nan@1.0.1 /opt/iobroker/node_modules/number-is-nan npm ERR! extraneous: picocolors@1.0.0 /opt/iobroker/node_modules/picocolors npm ERR! extraneous: prebuild-install@6.1.4 /opt/iobroker/node_modules/prebuild-install npm ERR! extraneous: rc@1.2.8 /opt/iobroker/node_modules/rc npm ERR! extraneous: suncalc2@1.8.1 /opt/iobroker/node_modules/suncalc2 npm ERR! extraneous: typescript@4.7.4 /opt/iobroker/node_modules/typescript npm ERR! extraneous: virtual-tsc@0.6.2 /opt/iobroker/node_modules/virtual-tsc npm ERR! A complete log of this run can be found in: npm ERR! /home/iobroker/.npm/_logs/2022-07-31T12_40_54_711Z-debug-0.log
pi@iobroker:/opt/iobroker $ sudo ln -s /usr/bin/node /usr/bin/nodejs ln: failed to create symbolic link '/usr/bin/nodejs': File exists
pi@iobroker:/opt/iobroker $ uname -m && type -P nodejs node npm && nodejs -v && node -v && npm -v && whoami && pwd && sudo apt update &> /dev/null && sudo apt update && apt policy nodejs aarch64 /usr/bin/nodejs /usr/bin/node /usr/bin/npm v16.16.0 v16.16.0 8.11.0 pi /opt/iobroker Hit:1 http://security.debian.org/debian-security bullseye-security InRelease Hit:2 http://deb.debian.org/debian bullseye InRelease Hit:3 http://archive.raspberrypi.org/debian bullseye InRelease Hit:4 http://deb.debian.org/debian bullseye-updates InRelease Hit:5 https://repos.influxdata.com/debian bullseye InRelease Hit:6 https://deb.nodesource.com/node_16.x bullseye InRelease Reading package lists... Done Building dependency tree... Done Reading state information... Done All packages are up to date. nodejs: Installed: 16.16.0-deb-1nodesource1 Candidate: 16.16.0-deb-1nodesource1 Version table: *** 16.16.0-deb-1nodesource1 500 500 https://deb.nodesource.com/node_16.x bullseye/main arm64 Packages 100 /var/lib/dpkg/status 12.22.12~dfsg-1~deb11u1 500 500 http://security.debian.org/debian-security bullseye-security/main arm64 Packages 12.22.5~dfsg-2~11u1 500 500 http://deb.debian.org/debian bullseye/main arm64 Packages
Die npm Meldungen sehen nicht so gut aus
-
iob repo list
-
pi@iobroker:/opt/iobroker $ iob repo list stable : http://download.iobroker.net/sources-dist.json beta : http://download.iobroker.net/sources-dist-latest.json Active repo(s): stable
-
iob update iob upgrade javascript@5.7.0
-
pi@iobroker:/opt/iobroker $ iob update Used repository: stable Adapter "admin" : 5.3.8 , installed 5.3.8 Adapter "backitup" : 2.4.9 , installed 2.4.9 Adapter "discovery" : 3.0.5 , installed 3.0.5 Adapter "ecovacs-deebot": 1.4.4 , installed 1.4.4 Adapter "email" : 1.1.3 , installed 1.1.3 Adapter "fb-checkpresence": 1.1.19, installed 1.1.19 Adapter "harmony" : 1.2.2 , installed 1.2.2 Adapter "influxdb" : 3.1.7 , installed 3.1.7 Adapter "javascript" : 5.7.0 , installed 6.0.0 Controller "js-controller": 4.0.23 , installed 4.0.23 Adapter "lgtv" : 1.1.10 , installed 1.1.10 Adapter "linux-control": 1.1.3 , installed 1.1.3 Adapter "net-tools" : 0.2.0 , installed 0.2.0 Adapter "pi-hole" : 1.3.4 , installed 1.3.4 Adapter "ping" : 1.5.3 , installed 1.5.3 Adapter "plex" : 0.9.1 , installed 0.9.1 Adapter "rpi2" : 1.3.2 , installed 1.3.2 Adapter "smartthings" : 0.0.3 , installed 0.0.3 Adapter "sonoff" : 2.5.1 , installed 2.5.1 Adapter "tr-064" : 4.2.16 , installed 4.2.16 Adapter "tradfri" : 3.1.3 , installed 3.1.3 Adapter "whatsapp-cmb" : 0.2.2 , installed 0.2.2
pi@iobroker:/opt/iobroker $ iob upgrade javascript@5.7.0 BE CAREFUL: THIS IS A MAJOR DOWNGRADE, WHICH WILL MOST LIKELY INTRODUCE BREAKING CHANGES! Would you like to downgrade javascript from @6.0.0 to @5.7.0 now? [(y)es, (n)o]: y Update javascript from @6.0.0 to @5.7.0 NPM version: 8.11.0 Installing iobroker.javascript@5.7.0... (System call) host.iobroker Cannot install iobroker.javascript@5.7.0: 217
-
@einfachprima sagte in Komme nicht mehr an meine Skripte ran (tab.html not found):
iob upgrade javascript@5.7.0 --debug
-
pi@iobroker:/opt/iobroker $ iob upgrade javascript@5.7.0 --debug BE CAREFUL: THIS IS A MAJOR DOWNGRADE, WHICH WILL MOST LIKELY INTRODUCE BREAKING CHANGES! Would you like to downgrade javascript from @6.0.0 to @5.7.0 now? [(y)es, (n)o]: y Update javascript from @6.0.0 to @5.7.0 NPM version: 8.11.0 Installing iobroker.javascript@5.7.0... (System call) npm WARN old lockfile npm WARN old lockfile The package-lock.json file was created with an old version of npm, npm WARN old lockfile so supplemental metadata must be fetched from the registry. npm WARN old lockfile npm WARN old lockfile This is a one-time fix-up, please be patient... npm WARN old lockfile npm ERR! code ENOTEMPTY npm ERR! syscall rename npm ERR! path /opt/iobroker/node_modules/iobroker.javascript npm ERR! dest /opt/iobroker/node_modules/.iobroker.javascript-5NZ432mn npm ERR! errno -39 npm ERR! ENOTEMPTY: directory not empty, rename '/opt/iobroker/node_modules/iobroker.javascript' -> '/opt/iobroker/node_modules/.iobroker.javascript-5NZ432mn' npm ERR! A complete log of this run can be found in: npm ERR! /home/iobroker/.npm/_logs/2022-07-31T12_56_13_958Z-debug-0.log host.iobroker Cannot install iobroker.javascript@5.7.0: 217
-
cd /opt/iobroker/node_modules for i in $(ls -d .[^.]*-*/); do rm -rf ${i%%/}; done
EXAKTENSTESNT GENAUSO eingeben, am besten kopieren.
-
Ich hab jetzt das Löschen durchgeführt, und den Downgrade auf javascript 5.7.0 nochmal angestoßen.
Der Raspi reagiert gerade extrem langsam, ich warte jetzt einfach mal ab ... -
Fürchte, mein Raspi 3 hat ein thermisches Problem (werde mal ein besseres Gehäuse suchen), jetzt etwas gekühlt und die Installation lief weiter:
pi@iobroker:/opt/iobroker/node_modules $ iob upgrade javascript@5.7.0 BE CAREFUL: THIS IS A MAJOR DOWNGRADE, WHICH WILL MOST LIKELY INTRODUCE BREAKING CHANGES! Would you like to downgrade javascript from @6.0.0 to @5.7.0 now? [(y)es, (n)o]: y Update javascript from @6.0.0 to @5.7.0 NPM version: 8.11.0 Installing iobroker.javascript@5.7.0... (System call) Objects database error: connect ECONNREFUSED 127.0.0.1:9001 States database error: connect ECONNREFUSED 127.0.0.1:9000 Objects database error: connect ECONNREFUSED 127.0.0.1:9001 States database error: connect ECONNREFUSED 127.0.0.1:9000 Objects database error: connect ECONNREFUSED 127.0.0.1:9001 States database error: connect ECONNREFUSED 127.0.0.1:9000 Objects database error: connect ECONNREFUSED 127.0.0.1:9001 States database error: connect ECONNREFUSED 127.0.0.1:9000 Objects database error: connect ECONNREFUSED 127.0.0.1:9001 States database error: connect ECONNREFUSED 127.0.0.1:9000 Objects database error: connect ECONNREFUSED 127.0.0.1:9001 States database error: connect ECONNREFUSED 127.0.0.1:9000 Objects database error: connect ECONNREFUSED 127.0.0.1:9001 States database error: connect ECONNREFUSED 127.0.0.1:9000 Objects database error: connect ECONNREFUSED 127.0.0.1:9001 States database error: connect ECONNREFUSED 127.0.0.1:9000 Objects database error: connect ECONNREFUSED 127.0.0.1:9001 States database error: connect ECONNREFUSED 127.0.0.1:9000 Objects database error: connect ECONNREFUSED 127.0.0.1:9001 States database error: connect ECONNREFUSED 127.0.0.1:9000 Objects database error: connect ECONNREFUSED 127.0.0.1:9001 States database error: connect ECONNREFUSED 127.0.0.1:9000 Objects database error: connect ECONNREFUSED 127.0.0.1:9001 States database error: connect ECONNREFUSED 127.0.0.1:9000 Objects database error: connect ECONNREFUSED 127.0.0.1:9001 States database error: connect ECONNREFUSED 127.0.0.1:9000 Objects database error: connect ECONNREFUSED 127.0.0.1:9001 States database error: connect ECONNREFUSED 127.0.0.1:9000 Objects database error: connect ECONNREFUSED 127.0.0.1:9001 States database error: connect ECONNREFUSED 127.0.0.1:9000 Objects database error: connect ECONNREFUSED 127.0.0.1:9001 States database error: connect ECONNREFUSED 127.0.0.1:9000 Objects database error: connect ECONNREFUSED 127.0.0.1:9001 States database error: connect ECONNREFUSED 127.0.0.1:9000 Objects database error: connect ECONNREFUSED 127.0.0.1:9001 States database error: connect ECONNREFUSED 127.0.0.1:9000 added 6 packages, removed 651 packages, and changed 5 packages in 2h 45 packages are looking for funding run `npm fund` for details Cannot set system.adapter.javascript: DB closed Cannot find view "system" for search "instance" : Connection is closed. Cannot upgrade: Cannot find view "system"
Trotz Meldungen scheint der Downgrade auf 5.7.0 aber geklappt zu haben, juhu!
pi@iobroker:/opt/iobroker/node_modules $ iob update Used repository: stable Adapter "javascript" : 5.7.0 , installed 5.7.0
In der Admin-GUI wird aber unter Skripte noch immer nichts angezeigt:
-
@einfachprima sagte: nichts angezeigt:
Prüfe mal, ob die Datei tab.html wirklich nicht vorhanden ist:
ls -l /opt/iobroker/node_modules/iobroker.javascript/admin
-
@einfachprima
Wenn die Datei tatsächlich fehlt, würde ich versuchen, den admin-Adapter zu löschen und neu zu installieren?iobroker del admin iobroker add admin
-
pi@iobroker:/opt/iobroker/node_modules $ ls -l /opt/iobroker/node_modules/iobroker.javascript/admin total 192 -rw-rw-r--+ 1 iobroker iobroker 34618 Jul 31 15:02 adminWords.js -rw-rw-r--+ 1 iobroker iobroker 1151 Jul 31 15:02 asset-manifest.json -rw-rw-r--+ 1 iobroker iobroker 90022 Jul 31 15:02 favicon.ico drwxrwxr-x+ 5 iobroker iobroker 4096 Jul 31 15:02 google-blockly -rw-rw-r--+ 1 iobroker iobroker 24554 Jul 31 15:02 index_m.html -rw-rw-r--+ 1 iobroker iobroker 4026 Jul 31 15:02 javascript.png -rw-rw-r--+ 1 iobroker iobroker 306 Jul 31 15:02 manifest.json -rw-rw-r--+ 1 iobroker iobroker 1486 Jul 31 15:02 pin.png drwxrwxr-x+ 2 iobroker iobroker 4096 Jul 31 15:02 plugins drwxrwxr-x+ 5 iobroker iobroker 4096 Jul 31 15:02 static -rw-rw-r--+ 1 iobroker iobroker 10361 Jul 31 15:02 tab.html drwxrwxr-x+ 6 iobroker iobroker 4096 Jul 31 15:02 vs
tab.html wird mir angezeigt. Aber:
pi@iobroker:/opt/iobroker/node_modules $ more tab.html more: cannot open tab.html: No such file or directory
Da ist wohl der Wurm drin, lesbar sollte sie ja für jeden sein ...
-
@einfachprima
Du musst schon den richtigen Pfad angeben.more iobroker.javascript/admin/tab.html
wenn der aktuelle Pfad /opt/iobroker/node_modules ist.
-
Oh je, schön doof von mir ...
tab.html ist vorhanden, lässt sich öffnen, der Inhalt sieht auch ok und vollständig aus.
-
@einfachprima sagte: tab.html ist vorhanden, lässt sich öffnen, der Inhalt sieht auch ok und vollständig aus.
Dann muss die Ursache eine andere sein. Funktionieren die anderen Tabs vom Admin?
-
Alle anderen Tabs (Übersicht, Adapter, Instanzen, Objekte, Aufzählungen, Protokolle, Benutzer, Hosts, Dateien, Backup) funktionieren einwandfrei.
Ich kann jetzt nicht mehr genau sagen, seit wann sich die Skripte nicht mehr öffnen. Es lief jetzt alles 2-3 Monate störungsfrei, gestern wollte ich die Skripte erweitern, hab davor gesehen, dass neue Adapterversionen existieren und hab die aktualisiert. Vielleicht ein Fehler.
-
Ansonsten läuft noch influxdb und Grafana.
Aktive Adapter-Instanzen sind:
- admin.0
- backitup.0
- influxdb.0
- javascript.0
- sonoff.0
- whatsapp-cmb.0
-
@einfachprima mal Browser Cache geleert?