NEWS
ioBroker auf neuer Maschine aufgesetzt und Adapter Probleme
-
@gismoh jetzt werden die Adapter aus dem backup neu gebaut.
Füße stillhalten!
-
@homoran sagte in ioBroker auf neuer Maschine aufgesetzt und Adapter Probleme:
Füße stillhalten!
Moin,
braucht er nicht, im Log stand schon, das er
BLE
nicht bauen konnte2023-11-11 17:16:42.448 - info: host.ioBrokerVM iobroker install ble@0.13.4 using installedFrom 2023-11-11 17:16:44.138 - info: host.ioBrokerVM iobroker npm-install: NPM version: 9.8.1 2023-11-11 17:16:44.139 - info: host.ioBrokerVM iobroker npm-install: Installing iobroker.ble@0.13.4... (System call) 2023-11-11 17:16:48.497 - error: host.ioBrokerVM iobroker npm-install: npm ERR! code 1npm ERR! path /opt/iobroker/node_modules/@abandonware/noblenpm ERR! command failednpm ERR! command sh -c node-gyp-buildnpm ERR! (node:5476) [DEP0150] DeprecationWarning: Setting process.config is deprecated. In the future the property will be read-only.npm ERR! (Use `node --trace-deprecation ...` to show where the warning was created)npm ERR! Traceback (most recent call last):npm ERR! File "/opt/iobroker/node_modules/node-gyp/gyp/gyp_main.py", line 51, in <module>npm ERR! sys.exit(gyp.script_main())npm ERR! ^^^^^^^^^^^^^^^^^npm ERR! File "/opt/iobroker/node_modules/node-gyp/gyp/pylib/gyp/__init__.py", line 670, in script_mainnpm ERR! return main(sys.argv[1:])npm ERR! ^^^^^^^^^^^^^^^^^^npm ERR! File "/opt/iobroker/node_modules/node-gyp/gyp/pylib/gyp/__init__.py", line 662, in mainnpm ERR! return gyp_main(args)npm ERR! ^^^^^^^^^^^^^^npm ERR! File "/opt/iobroker/node_modules/node-gyp/gyp/pylib/gyp/__init__.py", line 629, in gyp_mainnpm ERR! [generator, flat_list, targets, data] = Load(npm ERR! ^^^^^npm ERR! File "/opt/iobroker/node_modules/node-gyp/gyp/pylib/gyp/__init__.py", line 150, in Loadnpm ERR! result = gyp.input.Load(npm ERR! ^^^^^^^^^^^^^^^npm ERR! File "/opt/iobroker/node_modules/node-gyp/gyp/pylib/gyp/input.py", line 3021, in Loadnpm ERR! LoadTargetBuildFile(npm ERR! File "/opt/iobroker/node_modules/node-gyp/gyp/pylib/gyp/input.py", line 411, in LoadTargetBuildFilenpm ERR! build_file_data = LoadOneBuildFile(npm ERR! ^^^^^^^^^^^^^^^^^npm ERR! File "/opt/iobroker/node_modules/node-gyp/gyp/pylib/gyp/input.py", line 239, in LoadOneBuildFilenpm ERR! build_file_contents = open(build_file_path, "rU").read()npm ERR! ^^^^^^^^^^^^^^^^^^^^^^^^^^^npm ERR! ValueError: invalid mode: 'rU' while trying to load binding.gypnpm ERR! gyp ERR! configure error npm ERR! gyp ERR! stack Error: `gyp` failed with exit code: 1npm ERR! gyp ERR! stack at ChildProcess.onCpExit (/opt/iobroker/node_modules/node-gyp/lib/configure.js:351:16)npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:517:28)npm ERR! gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:292:12)npm ERR! gyp ERR! System Linux 6.1.0-13-amd64npm ERR! gyp ERR! command "/usr/bin/node" "/opt/iobroker/node_modules/node-gyp/bin/node-gyp.js" "rebuild"npm ERR! gyp ERR! cwd /opt/iobroker/node_modules/@abandonware/noblenpm ERR! gyp ERR! node -v v18.18.2npm ERR! gyp ERR! node-gyp -v v7.1.2npm ERR! gyp ERR! not oknpm ERR! A complete log of this run can be found in: /home/iobroker/.npm/_logs/2023-11-11T16_16_44_448Z-debug-0.log 2023-11-11 17:16:48.498 - error: host.ioBrokerVM iobroker npm-install: host.ioBrokerVM Cannot install iobroker.ble@0.13.4: 1 2023-11-11 17:16:49.517 - info: host.ioBrokerVM iobroker npm-install: exit 25
VG
Bernd -
@dp20eic sagte in ioBroker auf neuer Maschine aufgesetzt und Adapter Probleme:
braucht er nicht
kommt drauf an
wenn er noch alles andere bauen will, sollte das erst fertig werden, bevor er sich mit ble auseinander setzt.
Möglicherweise muss erst alles auf die aktuellen Versionen, passend zum OS und node, gehoben werden.
Ichvweiss auch nicht ob noble & co. installiert sind. -
@gismoh sagte in ioBroker auf neuer Maschine aufgesetzt und Adapter Probleme:
in der
/opt/iobroker/node_modules/node-gyp/gyp/pylib/gyp/input.pyHabe ich das "U" ein mal entfernen können.
und danach ein backup, das du dann auf eine neue VM gespielt hast?
und nun hast du wieder den selben Fehler!?gibt es denn nun diese Datei im neuen System?
@homoran sagte in ioBroker auf neuer Maschine aufgesetzt und Adapter Probleme:
Ichvweiss auch nicht ob noble & co. installiert sind.
sollte er installieren
sudo apt-get install bluetooth bluez libbluetooth-dev libudev-dev libcap2-bin
-
@crunchip
jo, sieht nach dem selben Fehler aus./opt/iobroker/node_modules/node-gyp/gyp/pylib/gyp/input.py
Diese Datei gibt es schon mal nicht.
Und in dieser:
/usr/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/input.py
gibt es diese Zeile nicht :
build_file_contents = open(build_file_path, 'rU').read()
Versuche gleich noch den nächsten Schritt...
idash@ioBrokersudo apt-get install bluetooth bluez libbluetooth-dev libudev-dev libcap2-binp2-bin Paketlisten werden gelesen… Fertig Abhängigkeitsbaum wird aufgebaut… Fertig Statusinformationen werden eingelesen… Fertig libudev-dev ist schon die neueste Version (252.17-1~deb12u1). libcap2-bin ist schon die neueste Version (1:2.66-4). Die folgenden zusätzlichen Pakete werden installiert: alsa-topology-conf alsa-ucm-conf libasound2 libasound2-data libbluetooth3 libdw1 Vorgeschlagene Pakete: bluez-cups bluez-obexd bluez-meshd pulseaudio-module-bluetooth libasound2-plugins alsa-utils Die folgenden NEUEN Pakete werden installiert: alsa-topology-conf alsa-ucm-conf bluetooth bluez libasound2 libasound2-data libbluetooth-dev libbluetooth3 libdw1 0 aktualisiert, 9 neu installiert, 0 zu entfernen und 0 nicht aktualisiert. Es müssen 2.278 kB an Archiven heruntergeladen werden. Nach dieser Operation werden 8.717 kB Plattenplatz zusätzlich benutzt. Möchten Sie fortfahren? [J/n] J Holen:1 http://deb.debian.org/debian bookworm/main amd64 libasound2-data all 1.2.8-1 [20,5 kB] Holen:2 http://deb.debian.org/debian bookworm/main amd64 libasound2 amd64 1.2.8-1+b1 [362 kB] Holen:3 http://deb.debian.org/debian bookworm/main amd64 libdw1 amd64 0.188-2.1 [235 kB] Holen:4 http://deb.debian.org/debian bookworm/main amd64 bluez amd64 5.66-1 [1.155 kB] Holen:5 http://deb.debian.org/debian bookworm/main amd64 alsa-topology-conf all 1.2.5.1-2 [15,2 kB] Holen:6 http://deb.debian.org/debian bookworm/main amd64 alsa-ucm-conf all 1.2.8-1 [51,7 kB] Holen:7 http://deb.debian.org/debian bookworm/main amd64 bluetooth all 5.66-1 [38,7 kB] Holen:8 http://deb.debian.org/debian bookworm/main amd64 libbluetooth3 amd64 5.66-1 [107 kB] Holen:9 http://deb.debian.org/debian bookworm/main amd64 libbluetooth-dev amd64 5.66-1 [293 kB] Es wurden 2.278 kB in 0 s geholt (6.226 kB/s). Vormals nicht ausgewähltes Paket libasound2-data wird gewählt. (Lese Datenbank ... 47755 Dateien und Verzeichnisse sind derzeit installiert.) Vorbereitung zum Entpacken von .../0-libasound2-data_1.2.8-1_all.deb ... Entpacken von libasound2-data (1.2.8-1) ... Vormals nicht ausgewähltes Paket libasound2:amd64 wird gewählt. Vorbereitung zum Entpacken von .../1-libasound2_1.2.8-1+b1_amd64.deb ... Entpacken von libasound2:amd64 (1.2.8-1+b1) ... Vormals nicht ausgewähltes Paket libdw1:amd64 wird gewählt. Vorbereitung zum Entpacken von .../2-libdw1_0.188-2.1_amd64.deb ... Entpacken von libdw1:amd64 (0.188-2.1) ... Vormals nicht ausgewähltes Paket bluez wird gewählt. Vorbereitung zum Entpacken von .../3-bluez_5.66-1_amd64.deb ... Entpacken von bluez (5.66-1) ... Vormals nicht ausgewähltes Paket alsa-topology-conf wird gewählt. Vorbereitung zum Entpacken von .../4-alsa-topology-conf_1.2.5.1-2_all.deb ... Entpacken von alsa-topology-conf (1.2.5.1-2) ... Vormals nicht ausgewähltes Paket alsa-ucm-conf wird gewählt. Vorbereitung zum Entpacken von .../5-alsa-ucm-conf_1.2.8-1_all.deb ... Entpacken von alsa-ucm-conf (1.2.8-1) ... Vormals nicht ausgewähltes Paket bluetooth wird gewählt. Vorbereitung zum Entpacken von .../6-bluetooth_5.66-1_all.deb ... Entpacken von bluetooth (5.66-1) ... Vormals nicht ausgewähltes Paket libbluetooth3:amd64 wird gewählt. Vorbereitung zum Entpacken von .../7-libbluetooth3_5.66-1_amd64.deb ... Entpacken von libbluetooth3:amd64 (5.66-1) ... Vormals nicht ausgewähltes Paket libbluetooth-dev:amd64 wird gewählt. Vorbereitung zum Entpacken von .../8-libbluetooth-dev_5.66-1_amd64.deb ... Entpacken von libbluetooth-dev:amd64 (5.66-1) ... libdw1:amd64 (0.188-2.1) wird eingerichtet ... libasound2-data (1.2.8-1) wird eingerichtet ... alsa-topology-conf (1.2.5.1-2) wird eingerichtet ... libbluetooth3:amd64 (5.66-1) wird eingerichtet ... libasound2:amd64 (1.2.8-1+b1) wird eingerichtet ... alsa-ucm-conf (1.2.8-1) wird eingerichtet ... bluez (5.66-1) wird eingerichtet ... Created symlink /etc/systemd/system/dbus-org.bluez.service → /lib/systemd/system/bluetooth.service. Created symlink /etc/systemd/system/bluetooth.target.wants/bluetooth.service → /lib/systemd/system/bluetooth.service. libbluetooth-dev:amd64 (5.66-1) wird eingerichtet ... bluetooth (5.66-1) wird eingerichtet ... Trigger für man-db (2.11.2-2) werden verarbeitet ... Trigger für dbus (1.14.10-1~deb12u1) werden verarbeitet ... Trigger für libc-bin (2.36-9+deb12u3) werden verarbeitet ... idash@ioBrokerVM:~$
-
@crunchip
und beim versuch ble im Webinterface wieder zu installieren:$ iobroker add ble --host ioBrokerVM NPM version: 9.8.1 Installing iobroker.ble@0.13.4... (System call) npm ERR! code 1npm ERR! path /opt/iobroker/node_modules/@abandonware/noblenpm ERR! command failednpm ERR! command sh -c node-gyp-buildnpm ERR! (node:1899) [DEP0150] DeprecationWarning: Setting process.config is deprecated. In the future the property will be read-only.npm ERR! (Use `node --trace-deprecation ...` to show where the warning was created)npm ERR! Traceback (most recent call last):npm ERR! File "/opt/iobroker/node_modules/node-gyp/gyp/gyp_main.py", line 51, in <module>npm ERR! sys.exit(gyp.script_main())npm ERR! ^^^^^^^^^^^^^^^^^npm ERR! File "/opt/iobroker/node_modules/node-gyp/gyp/pylib/gyp/__init__.py", line 670, in script_mainnpm ERR! return main(sys.argv[1:])npm ERR! ^^^^^^^^^^^^^^^^^^npm ERR! File "/opt/iobroker/node_modules/node-gyp/gyp/pylib/gyp/__init__.py", line 662, in mainnpm ERR! return gyp_main(args)npm ERR! ^^^^^^^^^^^^^^npm ERR! File "/opt/iobroker/node_modules/node-gyp/gyp/pylib/gyp/__init__.py", line 629, in gyp_mainnpm ERR! [generator, flat_list, targets, data] = Load(npm ERR! ^^^^^npm ERR! File "/opt/iobroker/node_modules/node-gyp/gyp/pylib/gyp/__init__.py", line 150, in Loadnpm ERR! result = gyp.input.Load(npm ERR! ^^^^^^^^^^^^^^^npm ERR! File "/opt/iobroker/node_modules/node-gyp/gyp/pylib/gyp/input.py", line 3021, in Loadnpm ERR! LoadTargetBuildFile(npm ERR! File "/opt/iobroker/node_modules/node-gyp/gyp/pylib/gyp/input.py", line 411, in LoadTargetBuildFilenpm ERR! build_file_data = LoadOneBuildFile(npm ERR! ^^^^^^^^^^^^^^^^^npm ERR! File "/opt/iobroker/node_modules/node-gyp/gyp/pylib/gyp/input.py", line 239, in LoadOneBuildFilenpm ERR! build_file_contents = open(build_file_path, "rU").read()npm ERR! ^^^^^^^^^^^^^^^^^^^^^^^^^^^npm ERR! ValueError: invalid mode: 'rU' while trying to load binding.gypnpm ERR! gyp ERR! configure error npm ERR! gyp ERR! stack Error: `gyp` failed with exit code: 1npm ERR! gyp ERR! stack at ChildProcess.onCpExit (/opt/iobroker/node_modules/node-gyp/lib/configure.js:351:16)npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:517:28)npm ERR! gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:292:12)npm ERR! gyp ERR! System Linux 6.1.0-13-amd64npm ERR! gyp ERR! command "/usr/bin/node" "/opt/iobroker/node_modules/node-gyp/bin/node-gyp.js" "rebuild"npm ERR! gyp ERR! cwd /opt/iobroker/node_modules/@abandonware/noblenpm ERR! gyp ERR! node -v v18.18.2npm ERR! gyp ERR! node-gyp -v v7.1.2npm ERR! gyp ERR! not oknpm ERR! A complete log of this run can be found in: /home/iobroker/.npm/_logs/2023-11-11T19_00_23_345Z-debug-0.log host.ioBrokerVM Cannot install iobroker.ble@0.13.4: 1 ERROR: Process exited with code 25
-
@gismoh sagte in ioBroker auf neuer Maschine aufgesetzt und Adapter Probleme:
gibt es diese Zeile nicht :
gibt es sie jetzt?
-
Sag mal ... was kapierst Du denn eigentlich nicht ?
In Deinem alten, vergammeltem System DEINSTALLIERST Du bitte den BLE.
Dann mach ein Backup per BACKITUP davon.
Danach erstellst Du eine neue VM mit Debain.
Dort dann iobroker installieren OHNE irgendwelchen Mist.DANN bitte das BackitUp vom "alten vergammelten System" welches ja dann OHNE BLE ist, zurückspielen.
-
build_file_contents = open(build_file_path, encoding='utf-8').read()
[ Das ist das einzige Auftreten ] build_file_contents = open(
-
@djmarc75
Das Szenario mit dem deinstallierten ble hatten wir ja auch bereits durch, meine sicherlich 2 mal. -
@djmarc75 sagte in ioBroker auf neuer Maschine aufgesetzt und Adapter Probleme:
Sag mal ... was kapierst Du denn eigentlich nicht ?
In Deinem alten, vergammeltem System DEINSTALLIERST Du bitte den BLE.
Dann mach ein Backup per BACKITUP davon.
Danach erstellst Du eine neue VM mit Debain.
Dort dann iobroker installieren OHNE irgendwelchen Mist.
DANN bitte das BackitUp vom "alten vergammelten System" welches ja dann OHNE BLE ist, zurückspielen.Ruhig Brauner, kann es sein, dass dies, trotz "bitte" , eine nicht gewaltfreie Kommunikation ist?
-
@gismoh sagte in ioBroker auf neuer Maschine aufgesetzt und Adapter Probleme:
@djmarc75
Das Szenario mit dem deinstallierten ble hatten wir ja auch bereits durch, meine sicherlich 2 mal.Wobei ich nicht sicher bin ob du wirklich alles vom BLE entfernt hattest, oder nur die Instanz.
Jetzt bleiben wir aber bei dem momentanen Szenario, damit es nicht wieder kreuz und quer geht.
-
@homoran habe nun bereits die vm wieder gelöscht, um es erneut ohne ble einzuspielen.
Edit, hatte Instanz und Adapter gelöscvht. -
@gismoh sagte in ioBroker auf neuer Maschine aufgesetzt und Adapter Probleme:
um es erneut ohne ble einzuspielen
dann aber vor dem ble einspielen
sudo apt-get install bluetooth bluez libbluetooth-dev libudev-dev libcap2-bin
-
@crunchip
okay.
Nebenbei, auf der alten Maschine konnte ich nach dem deinstallieren von ble, diesen adapter wieder ohne Probleme installieren - läuft dort. -
-
@homoran sagte in ioBroker auf neuer Maschine aufgesetzt und Adapter Probleme:
ich verstehe den Fehler im log als Fehler/Problem vom npm.
ja, aber es kommt die Meldung beim Versuch ble zu installieren
npm ERR! File "/opt/iobroker/node_modules/node-gyp/gyp/pylib/gyp/input.py", line 239, in LoadOneBuildFile npm ERR! build_file_contents = open(build_file_path, "rU").read() npm ERR! ^^^^^^^^^^^^^^^^^^^^^^^^^^^ npm ERR! ValueError: invalid mode: 'rU' while trying to load binding.gyp npm ERR! gyp ERR! configure error
diese es aber auf dem neuen System gar nicht mehr gibt.
bzw war das bisher die Meldung
den jetzigen code 25 müsste man sich ja nochmal mit --debug ansehen, ob es immer noch die selbe Meldung ist oder jetzt was anderes, da er ja die Datei auf dem alten(U entfernen) vor dem backup bearbeitet hat -
aber irgendwoher kennt npm doch diesen part.
nutzt einnpm cache clean
hier etwas?im nagelneuen System wurde/konnte doch ble installiert (werden).
dann muss der Mist doch irgendwo im Backup sein.
Da ist aber nix von node und npm drin. -
@homoran sagte in ioBroker auf neuer Maschine aufgesetzt und Adapter Probleme:
im nagelneuen System wurde/konnte doch ble installiert (werden).
eben, aber nicht mit dem backup, das ist ja das seltsame
-
@homoran
Alt: ARMv7 Processor rev 3 (v7l), Node.js v18.18.2, NPM 9.8.1
Neu: Mist - habe noch keine Info Seite installiert
aber x64 (i5-7500T)Muss auch ersteinmal nen paar Stunden off - nicht nur mein Kopf qualmt