@thomas-braun
Hallo Thomas,
danke nochmal. Der Link https://forum.iobroker.net/topic/57337/fehler-25-bei-adapter-install-update-mit-npm8 von dir hat geholfen.
@thomas-braun
Hallo Thomas,
danke nochmal. Der Link https://forum.iobroker.net/topic/57337/fehler-25-bei-adapter-install-update-mit-npm8 von dir hat geholfen.
@thomas-braun
Hallo Thomas,
Danke für deine Antwort:
Mein erster Versuch der Installation war wie immer über den Admin Adapter. Das hat leider mit folgenden Meldungen nicht geklappt.
$ iobroker add b-control-em --host IObroker
Installing iobroker.b-control-em@0.2.1... (System call)
host.IObroker Cannot install iobroker.b-control-em@0.2.1: 217
ERROR: Process exited with code 25
Anschließend habe ich im Adapter auf der Admin Oberfläche das ? angeklickt und unter "Abzeichen" die Install Anweisung gefunden. Mit obigen Ergebnis.
Ich habe es nun mit deiner Lösung versucht.
tgr@IObroker:~$ iobroker add b-control-em
NPM version: 8.15.0
Installing iobroker.b-control-em@0.2.1... (System call)
host.IObroker Cannot install iobroker.b-control-em@0.2.1: 217
Leider ohne Erfolg
Eine Variante:
sudo npm install iobroker.b-control-em
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
npm WARN deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
added 48 packages, and audited 49 packages in 3s
2 packages are looking for funding
run `npm fund` for details
found 0 vulnerabilities
Scheint zumindest das Modul zu finden, allerdings landen dann das Modul irgendwo, es wird auf alle Fälle nicht unter Instanzen angezeigt.
Noch jemand eine Idee?
P.S. ich war nicht root - Die Meldung "npm ERR! /root/.npm/_logs/2022-09-10T16_27_08_403Z-debug-0.log" wird wohl immer so angezeigt.
Systemdata | Bitte Ausfüllen |
---|---|
Hardwaresystem: | NUC- Proxmox VM |
Arbeitsspeicher: | 3GB |
Festplattenart: | SSD |
Betriebssystem: | Debian |
Node-Version: | ?? |
Nodejs-Version: | 16.7.0 |
NPM-Version: | 8.15.0 |
Installationsart: | Manuell |
Image genutzt: | Nein |
Ort/Name der Imagedatei: | Link |
Hallo
Js-Controller ist 4.0.23
Nach einem Update auf die neuen Versionen lässt sich der b-control Adapter nicht mehr installieren.
Alles andere läuft.
Ein Versuch manuell ergab:
npm install iobroker.bcontrol
npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/iobroker.bcontrol - Not found
npm ERR! 404
npm ERR! 404 'iobroker.bcontrol@*' is not in this registry.
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2022-09-10T15_51_03_249Z-debug-0.log
Für mich sieht das so aus das dieser nicht mehr im repository ist. Hat jemand eine Idee was man machen kann? Version 0.2.1 wurde zuletzt von bluefox angefasst.
Danke
Hatte ich ich schon mal.
Bei mir hat es geholfen mal den Cache von Browser zu löschen.
Nur ein versuch - vielleicht ist die Lösung einfach.
Gruß
@sigi234
Danke, dachte das wäre eine Einstellung und nicht die Änderung des Titels. Man lernt nie aus :-))
Ich versuche gerade den Thread als "solved" zu markieren, finde aber die Einstellung nicht ??
habe jetzt das Folgende gemacht.
In der alten Installation https deaktiviert
neues Backup gemacht mit
iobroker backup
Restore mit
iobroker restore
auf dem neuen System
Wie oben beschrieben habe ich den eingebauten Befehl iobroker backup und restore benutzt.
In der alten Installation habe ich die folgenden Zertifikate
Der dort angegebenen Ordner/Datei "/opt/certs/cert.pem'" existiert allerdings nicht. Ich habe die Zertifikate damals auch über die Admin-Webseite hochgeladen. Wo die gelandet sind kann ich nicht sagen.
Eventuell kann ich die in der alten Installation löschen und in der neuen Installation neue erstellen. Ich bin mir allerdings nicht im klaren wie sich das in der alten Installation (die ja im Moment wieder produktiv läuft) auswirken wird. Wenn die neue läuft wird die alte abgeschaltet. Bis dahin brauche ich die aber.
iobroker list instances ergibt :
system.adapter.admin.0 : admin - enabled, port: 8081, bind: 0.0.0.0 (SSL), run as: admin
system.adapter.alexa2.0 : alexa2 - disabled
system.adapter.b-control-em.0 : b-control-em - disabled
+ system.adapter.backitup.0 : backitup - enabled
system.adapter.bosesoundtouch.0 : bosesoundtouch - disabled
system.adapter.cloud.0 : cloud - disabled
system.adapter.discovery.0 : discovery - disabled
system.adapter.flot.0 : flot - disabled
system.adapter.hm-rega.0 : hm-rega - disabled
system.adapter.hm-rpc.0 : hm-rpc - disabled, port: 0
system.adapter.hm-rpc.1 : hm-rpc - disabled, port: 0
system.adapter.hue.0 : hue - disabled, port: 80
system.adapter.icons-icons8.0 : icons-icons8 - disabled
system.adapter.icons-material-png.0 : icons-material-png - disabled
system.adapter.influxdb.0 : influxdb - disabled, port: 8086
system.adapter.info.0 : info - disabled
system.adapter.iot.0 : iot - disabled
system.adapter.javascript.0 : javascript - disabled
system.adapter.javascript.1 : javascript - disabled
system.adapter.material.0 : material - disabled
system.adapter.mqtt.0 : mqtt - disabled, port: 1883
system.adapter.node-red.0 : node-red - disabled, port: 1880, bind: 0.0.0.0
system.adapter.ping.0 : ping - disabled
system.adapter.proxmox.0 : proxmox - disabled, port: 8006
system.adapter.ring.0 : ring - disabled
system.adapter.scenes.0 : scenes - disabled
system.adapter.simple-api.0 : simple-api - disabled, port: 8087, bind: 0.0.0.0 (SSL), run as: admin
system.adapter.smappee.0 : smappee - disabled
system.adapter.snmp.0 : snmp - disabled
system.adapter.sonoff.0 : sonoff - disabled, port: 1884, bind: 0.0.0.0
system.adapter.tankerkoenig.0 : tankerkoenig - disabled
system.adapter.tvspielfilm.0 : tvspielfilm - disabled
system.adapter.unifi.0 : unifi - disabled
system.adapter.upnp.0 : upnp - disabled
system.adapter.vis-bars.0 : vis-bars - disabled
system.adapter.vis-canvas-gauges.0 : vis-canvas-gauges - disabled
system.adapter.vis-colorpicker.0 : vis-colorpicker - disabled
system.adapter.vis-fancyswitch.0 : vis-fancyswitch - disabled
system.adapter.vis-google-fonts.0 : vis-google-fonts - disabled
system.adapter.vis-history.0 : vis-history - disabled
system.adapter.vis-hqwidgets.0 : vis-hqwidgets - disabled
system.adapter.vis-jqui-mfd.0 : vis-jqui-mfd - disabled
system.adapter.vis-justgage.0 : vis-justgage - disabled
system.adapter.vis-map.0 : vis-map - disabled
system.adapter.vis-material.0 : vis-material - disabled
system.adapter.vis-metro.0 : vis-metro - disabled
system.adapter.vis-rgraph.0 : vis-rgraph - disabled
system.adapter.vis-timeandweather.0 : vis-timeandweather - disabled
system.adapter.vis-weather.0 : vis-weather - disabled
system.adapter.vis.0 : vis - disabled
system.adapter.web.0 : web - disabled, port: 8082, bind: 0.0.0.0, run as: admin
system.adapter.wetty.0 : wetty - disabled, port: 8089, bind: 0.0.0.0 (SSL)
Die anderen
node -v
v10.16.3
nodejs -v
v10.16.3
npm -v
6.9.0
Ein Verbindungsversuch mit Firefox ergab gerade
Beim Verbinden mit 192.168.xx.xx:8081 trat ein Fehler auf. Sichere Kommunikation mit der Gegenstelle ist nicht möglich: Keine gemeinsamen Verschlüsselungsalgorithmen. Fehlercode: SSL_ERROR_NO_CYPHER_OVERLAP
Kann es sein das ein Zertifikat fehlt oder fehlerhaft ist.
Gruß
TGR
Ich habe gerade versucht iobroker auf eine neue Maschine um zu ziehen.
Das Ergebnis ist leider nicht so prickelnd, da ich den Admin Adapter weder unter https noch unter http erreichen kann und beim Start von iobroker eine Reihe Fehlermeldungen im Log bekomme.
Nach dem Durchlesen einiger Hilfen und Threads zu dem Thema bin ich folgendermaßen vorgegangen.
Auf dem alten System lief Debian 9.5
Node 8.14.0
npm 6.4.1
Iobroker Version ergibt 1.5.14
Folgende Befehle habe ich durchgeführt
# iobroker stop
# iobroker backup
Das Backupfile anschließend gesichert
Auf der neuen Maschine
Debian 10.1 installiert
Aus Bequemlichkeit meinen Standardbenutzer als sudouer hinzugefügt
Dann Node 10 installiert mit
curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
sudo apt-get install -y nodejs
Kontrolle
Node -v
v10.16.3
npm -v
6.9.0
Anschließend iobroker installiert mit
curl -sL https://iobroker.net/install.sh | bash -
IP Adresse auf die IP Adresse des alte iobroker System gesetzt
System restarted
Admin aufgerufen und Land etc. konfiguriert
[Alles OK]
Jetzt geht um das zurücksichern des alten Systems das ja mit Node 8 lief
iobroker stop
iobroker restore
Ergebnis :
host.IObroker object system.certificates created
System successfully restored!
zu root mit su gewechselt, anschließend
npm rebuild
Einige warnings aber keine Fehlermeldungen
System neu gestartet
iobroker status
[sudo] Passwort für xx:
iobroker is running
Objects type: file
States type: file
Leider ist der Admin nicht mehr aufrufbar.
schaut man sich jedoch das kontinuierlich aktualisierte log mittels
tail -f /opt/iobroker/log/iorboker.2019…..log an
Sieht man das alle möglichen Sachen geladen und installiert werden.
BSP.:
019-10-09 22:21:18.683 - info: iobroker upload [300] icons-icons8 /opt/iobroker/node_modules/iobroker.icons-icons8/www/battery/red/Low Battery Filled.png battery/red/Low Battery Filled.png image/png
Es kommen aber auch solche Meldungen
nfo: iobroker exit 0
2019-10-09 22:21:54.331 - warn: host.IObroker startInstance cannot find adapter "hm-rega@2.4.12". Try to install it... 1 attempt
2019-10-09 22:21:54.332 - info: iobroker install hm-rega@2.4.12
2019-10-09 22:21:54.871 - info: iobroker NPM version: 6.9.0
2019-10-09 22:21:55.034 - info: iobroker npm install iobroker.hm-rega@2.4.12 --production --save --prefix "/opt/iobroker" (System call)
2019-10-09 22:21:59.677 - info: iobroker npm
2019-10-09 22:21:59.678 - info: iobroker
2019-10-09 22:21:59.679 - info: iobroker WARN
2019-10-09 22:21:59.680 - info: iobroker
2019-10-09 22:21:59.681 - info: iobroker optional
2019-10-09 22:21:59.682 - info: iobroker SKIPPING OPTIONAL DEPENDENCY: osx-temperature-sensor@1.0.4 (node_modules/osx-temperature-sensor):
2019-10-09 22:21:59.684 - info: iobroker npm
2019-10-09 22:21:59.685 - info: iobroker
2019-10-09 22:21:59.686 - info: iobroker WARN
2019-10-09 22:21:59.687 - info: iobroker
2019-10-09 22:21:59.688 - info: iobroker notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for osx-temperature-sensor@1.0.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
Das geht dann munter so weiter
Also erst mal warten was sich tut.
Dann nach einiger Zeit scheint das System fertig zu sein.
Also sicherheitshalber
iobroker stop
iobroker start
Ergibt dann u.a. folgende Einträge im LOG
2019-10-09 22:32:38.195 - info: iobroker make: *** [pty.target.mk:101: Release/obj.target/pty/src/unix/pty.o] Fehler 1
2019-10-09 22:32:38.195 - info: iobroker gyp ERR! build error
2019-10-09 22:32:38.196 - info: iobroker gyp
2019-10-09 22:32:38.196 - info: iobroker
2019-10-09 22:32:38.196 - info: iobroker ERR!
2019-10-09 22:32:38.198 - info: iobroker stack Error: `make` failed with exit code: 2gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:262:23)
gyp ERR! stack at ChildProcess.emit (events.js:198:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)
gyp ERR! System Linux 4.19.0-6-amd64
gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /opt/iobroker/node_modules/pty.js
gyp ERR! node -v v10.16.3
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
2019-10-09 22:32:23.959 - info: iobroker install wetty@0.1.1
2019-10-09 22:32:24.005 - info: host.IObroker instance system.adapter.admin.0 started with pid 2747
2019-10-09 22:32:24.910 - info: admin.0 starting. Version 3.6.2 in /opt/iobroker/node_modules/iobroker.admin, node: v10.16.3
2019-10-09 22:32:25.140 - info: iobroker NPM version: 6.9.0
2019-10-09 22:32:25.142 - info: admin.0 Request actual repository...
2019-10-09 22:32:25.146 - error: admin.0 Cannot enable secure web server, because no certificates found: TGHOMEPUB, TGHOMEPRIV,
2019-10-09 22:32:25.146 - info: admin.0 requesting all states
2019-10-09 22:32:25.147 - info: admin.0 requesting all objects
2019-10-09 22:32:26.167 - info: iobroker npm install iobroker.wetty@0.1.1 --production --save --prefix "/opt/iobroker" (System call)
2019-10-09 22:32:26.239 - info: host.IObroker Update repository "latest" under "http://download.iobroker.net/sources-dist-latest.json"
2019-10-09 22:32:28.401 - info: host.IObroker instance system.adapter.backitup.0 started with pid 2795
2019-10-09 22:32:28.939 - info: admin.0 Repository received successfully.
2019-10-09 22:32:29.359 - info: admin.0 received all states
2019-10-09 22:32:31.224 - info: backitup.0 starting. Version 1.2.0 in /opt/iobroker/node_modules/iobroker.backitup, node: v10.16.3
2019-10-09 22:32:31.570 - info: backitup.0 [minimal] backup was activated at 02:00 every 1 day(s)
2019-10-09 22:32:31.586 - info: backitup.0 [ccu] backup was activated at 01:30 every 3 day(s)
2019-10-09 22:32:31.590 - info: backitup.0 [total] backup was activated at 03:00 every 3 day(s)
2019-10-09 22:32:32.494 - info: admin.0 received all objects
2019-10-09 22:32:32.641 - info: admin.0 https server listening on port 8081
2019-10-09 22:32:32.641 - info: admin.0 Use link "https://localhost:8081" to configure.
2019-10-09 22:32:38.068 - info: iobroker In file included from ../node_modules/nan/nan.h:190, from ../src/unix/pty.cc:20:
../node_modules/nan/nan_maybe_43_inl.h: In function ‘Nan::Maybe<bool> Nan::ForceSet(v8::Local<v8::Object>, v8::Local<v8::Value>, v8::Local<v8::Value>, v8::PropertyAttribute)’:
../node_modules/nan/nan_maybe_43_inl.h:88:15: error: ‘class v8::Object’ has no member named ‘ForceSet’
return obj->ForceSet(GetCurrentContext(), key, value, attribs);
^~~~~~~~
2019-10-09 22:32:38.087 - info: iobroker In file included from ../src/unix/pty.cc:20:../node_modules/nan/nan.h: In function ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’:
../node_modules/nan/nan.h:817:60: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
v8::Isolate::GetCurrent(), target, func, argc, argv);
^
Etc …….. sowie
2019-10-09 22:32:38.813 - info: iobroker npm
2019-10-09 22:32:38.813 - info: iobroker
2019-10-09 22:32:38.814 - info: iobroker WARN
2019-10-09 22:32:38.814 - info: iobroker
2019-10-09 22:32:38.814 - info: iobroker optional
2019-10-09 22:32:38.815 - info: iobroker SKIPPING OPTIONAL DEPENDENCY: osx-temperature-sensor@1.0.4 (node_modules/osx-temperature-sensor):
2019-10-09 22:32:38.815 - info: iobroker npm
2019-10-09 22:32:38.815 - info: iobroker
2019-10-09 22:32:38.816 - info: iobroker WARN
2019-10-09 22:32:38.816 - info: iobroker
2019-10-09 22:32:38.816 - info: iobroker notsup
2019-10-09 22:32:38.817 - info: iobroker SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for osx-temperature-sensor@1.0.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
2019-10-09 22:32:38.817 - info: iobroker
2019-10-09 22:32:38.818 - info: iobroker npm
2019-10-09 22:32:38.819 - info: iobroker
2019-10-09 22:32:38.819 - info: iobroker ERR!
2019-10-09 22:32:38.820 - info: iobroker
2019-10-09 22:32:38.820 - info: iobroker code
2019-10-09 22:32:38.820 - info: iobroker ELIFECYCLE
2019-10-09 22:32:38.821 - info: iobroker npm
2019-10-09 22:32:38.821 - info: iobroker
2019-10-09 22:32:38.821 - info: iobroker ERR!
2019-10-09 22:32:38.822 - info: iobroker
2019-10-09 22:32:38.822 - info: iobroker errno
2019-10-09 22:32:38.822 - info: iobroker 1
2019-10-09 22:32:38.823 - info: iobroker npm
2019-10-09 22:32:38.823 - info: iobroker ERR! pty.js@0.3.1 install: `node-gyp rebuild`
2019-10-09 22:32:38.824 - info: iobroker npm ERR! Exit status 1
2019-10-09 22:32:38.825 - info: iobroker npm ERR! npm ERR! Failed at the pty.js@0.3.1 install script.
npm
2019-10-09 22:32:38.827 - info: iobroker ERR! This is probably not a problem with npm. There is likely additional logging output above.
2019-10-09 22:32:38.842 - info: iobroker
2019-10-09 22:32:38.843 - info: iobroker npm
2019-10-09 22:32:38.843 - info: iobroker
2019-10-09 22:32:38.843 - info: iobroker ERR!
2019-10-09 22:32:38.844 - info: iobroker A complete log of this run can be found in:
2019-10-09 22:32:38.844 - info: iobroker npm
2019-10-09 22:32:38.844 - info: iobroker
2019-10-09 22:32:38.844 - info: iobroker ERR!
2019-10-09 22:32:38.845 - info: iobroker /home/iobroker/.npm/_logs/2019-10-09T20_32_38_829Z-debug.log
2019-10-09 22:32:38.852 - error: iobroker host.IObroker Adapter directory "null" does not exists
2019-10-09 22:32:38.862 - error: iobroker Cannot parse null/io-package.json:Error: ENOENT: no such file or directory, open 'null/io-package.json'
2019-10-09 22:32:38.867 - info: iobroker exit 0
Und Admin lässt sich nicht aufrufen.
Wieder im Forum gelesen. Leider nichts gefunden was mich irgendwie weiterbringen.
Vielleicht kann mir jemand sagen was ich falsch gemacht habe, oder einen alternativen Weg vorschlagen.
Da es sich bei allen Systemen um VMs handelt kann ich zu fast jedem Installationsschritt per Snapshot zurückspringen.
Hat jemand eine Idee?
Gruß
TGR