NEWS
admin Webseite Leer (Keine Anmeldemaske)
-
@kaskadeur111 NEIN
-
@homoran OK, hab noch nichts getan
-
@kaskadeur111 siehe @fastfoot wegen Container
-
pkill -u iobroker
Danke für den Hinweis, Mach das schon immer so, und hab das nicht explizit erwähnt. iobroker stop wird bei mir im Kopf automatisch zu pkill
-
@kaskadeur111 sagte in admin Webseite Leer (Keine Anmeldemaske):
root@iobroker2:/opt/iobroker# iobroker del admin Delete adapter "admin" host.iobroker2 object admin deleted host.iobroker2 object admin.admin deleted npm uninstall iobroker.admin --loglevel error --prefix "/opt/iobroker" (System c all) npm ERR! code 1 npm ERR! path /opt/iobroker/node_modules/pcap npm ERR! command failed npm ERR! command sh -c node-gyp rebuild npm ERR! make: Verzeichnis „/opt/iobroker/node_modules/pcap/build“ wird betreten npm ERR! CXX(target) Release/obj.target/pcap_binding/pcap_binding.o npm ERR! make: Verzeichnis „/opt/iobroker/node_modules/pcap/build“ wird verlassen npm ERR! ../pcap_binding.cc:2:10: fatal error: pcap/pcap.h: Datei oder Verzeichnis nicht gefunden npm ERR! #include <pcap/pcap.h> npm ERR! ^~~~~~~~~~~~~ npm ERR! compilation terminated. npm ERR! make: *** [pcap_binding.target.mk:112: Release/obj.target/pcap_binding/pcap_binding.o] Fehler 1 npm ERR! gyp ERR! build error npm ERR! gyp ERR! stack Error: `make` failed with exit code: 2 npm ERR! gyp ERR! stack at ChildProcess.onExit (/opt/iobroker/node_modules/node-gyp/lib/build.js:262:23) npm ERR! gyp ERR! stack at ChildProcess.emit (events.js:314:20) npm ERR! gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:276:12) npm ERR! gyp ERR! System Linux 4.4.59+ npm ERR! gyp ERR! command "/usr/bin/node" "/opt/iobroker/node_modules/.bin/node-gyp" "rebuild" npm ERR! gyp ERR! cwd /opt/iobroker/node_modules/pcap npm ERR! gyp ERR! node -v v12.22.2 npm ERR! gyp ERR! node-gyp -v v3.8.0 npm ERR! gyp ERR! not ok npm ERR! A complete log of this run can be found in: npm ERR! /opt/iobroker/.npm/_logs/2021-07-24T12_59_56_173Z-debug.log Error deleting adapter admin from disk: Error: host.iobroker2: Cannot uninstall iobroker.admin: 1 You might have to delete it yourself!
Error deleting adapter admin from disk: Error: host.iobroker2: Cannot uninstall iobroker.admin: 1
You might have to delete it yourself! -
@kaskadeur111
Jetzt muss ein Docker Kundiger helfen.Nur noch zur Abklärung
@kaskadeur111 sagte in admin Webseite Leer (Keine Anmeldemaske):
Was ich bisher versucht habe (laut Hormorans Tip aus dem Forum:
admin neu installiert
npm cache clean
iobroker stop
npm install iobroker.admin
iobroker upload admin
iobroker start
jscontroller neu installiert:
npm cache clean
iobroker stop
npm install iobroker.js-controller
iobroker starthast du die npm Befehle im Installationsverzeichnis (üblicherweise /opt/iobroker, bei Docker hab ich keine Ahnung!) ausgeführt?
-
@homoran OK, Danke Dir trotzdem sehr für die Unterstützung bis hierhin!
Ja ich habe die Befehle in /opt/iobroker ausgeführtKann mir jemand sagen wie ich den admin adapter manuell deinstallieren kann ("You might have to delete it yourself!")?
iobroker list adapters sagt mir immer noch dass die 5.1.5 installiert sei, obwohl es im iobroker-data/files Ordner keine admin Ordner mehr gibt (müsste der dort aufgeführt sein?)
-
cd /opt/iobroker npm list pcap
Da schlägt der Bau vom pcap fehl. Wozu auch immer das Modul verwendet wird. Auf meinem System ist es jedenfalls nicht vorhanden
-
root@iobroker2:/opt/iobroker# npm list pcap iobroker.inst@1.3.1 /opt/iobroker ├─┬ iobroker.amazon-dash@1.1.0 │ └── pcap@3.1.0 └── pcap@2.1.0 extraneous
Das ist der Dash Button Adapter, soll ich den mal runterschmeißen? (Den brauche ich eigentlich ;-))
-
@kaskadeur111 sagte in admin Webseite Leer (Keine Anmeldemaske):
müsste der dort aufgeführt sein?
nein!
der wäre in einem anderen Pfad, hab es gerade nicht im Kopf. irgendwas mit node-modules
mach erstmal was Thomas sagt -
@kaskadeur111
Vermutlich eher der extranous pcap.cd /opt/iobroker npm uninstall pcap@2.1.0 npm prune
-
uninstall:
root@iobroker2:/opt/iobroker# sudo npm uninstall pcap@2.1.0 ⸨#####⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⸩ ⠙ idealTree:socket.io: sill placeDep node_modules/node-red-contrib-polymer socket.io@1.7.4 OK for: node-red-contrib-polymer@0.0.22 w ⸨#####⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⸩ ⠙ idealTree:socket.io: sill placeDep node_modules/node-red-contrib-polymer socket.io@1.7.4 OK for: node-red-contrib-polymer@0.0.22 w ⸨#######⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⸩ ⠴ idealTree:validate-npm-package-license: sill placeDep ROOT validate-npm-package-license@3.0.4 OK for: normalize-package-data@2.5.0 w ⸨#######⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⸩ ⠦ idealTree:validate-npm-package-license: sill placeDep ROOT validate-npm-package-license@3.0.4 OK for: normalize-package-data@2.5.0 w npm ERR! code 128 npm ERR! An unknown git error occurred npm ERR! command git --no-replace-objects ls-remote ssh://git@github.com/ioBroker/ioBroker.cul.git npm ERR! Warning: Permanently added the RSA host key for IP address '140.82.121.4' to the list of known hosts. npm ERR! git@github.com: Permission denied (publickey). npm ERR! fatal: Konnte nicht vom Remote-Repository lesen. npm ERR! npm ERR! Bitte stellen Sie sicher, dass die korrekten Zugriffsberechtigungen bestehen npm ERR! und das Repository existiert. npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2021-07-24T13_53_38_001Z-debug.log
-
@kaskadeur111 Nix sudo!
Hab ich das irgendwo geschrieben? -
@thomas-braun ich habe die befehle erst ohne sudo ausgeführt
-
Du bist doch schon (vermutlich eh Grundlos) root.
Und auch deine Fehlversuche möchten wir sehen damit man sieht was da genau eingegeben wurde.
Mit git kenn ich mich nicht aus, keine Ahnung warum da jetzt die beiden Dinger aufgerufen werden.
-
@thomas-braun OK, hier nochmal ohne sudo
npm WARN deprecated node-pre-gyp@0.12.0: Please upgrade to @mapbox/node-pre-gyp: the non-scoped node-pre-gyp package is deprecated and only the @mapbox scoped package wi ll recieve updates in the future npm WARN deprecated node-pre-gyp@0.11.0: Please upgrade to @mapbox/node-pre-gyp: the non-scoped node-pre-gyp package is deprecated and only the @mapbox scoped package wi ll recieve updates in the future npm WARN deprecated coffee-script@1.12.7: CoffeeScript on NPM has moved to "coffeescript" (no hyphen) ⸨################⠂⠂⸩ ⠴ reify:bcryptjs: http fetch GET 200 https://codeload.github.com/ioBroker/ioBroker.cul/tar.gz/8ccc0070f9d80e2ffa457a50830c964ab5783a46 928ms (c npm WARN deprecated axios@0.19.2: Critical security vulnerability fixed in v0.21.1. For more information, see https://github.com/axios/axios/pull/3410 npm WARN core-js@2.6.12: core-js@<3.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detectio n in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Please, upgrade your dependencies to the actual version of core-js. ⸨##################⸩ ⠧ reify:core-js: WARN deprecated core-js@2.6.12: core-js@<3.3 is no longer maintained and not recommended for usage due to the number of issues. npm ERR! code 1 npm ERR! path /opt/iobroker/node_modules/pcap npm ERR! command failed npm ERR! command sh -c node-gyp rebuild npm ERR! make: Verzeichnis „/opt/iobroker/node_modules/pcap/build“ wird betreten npm ERR! CXX(target) Release/obj.target/pcap_binding/pcap_binding.o npm ERR! make: Verzeichnis „/opt/iobroker/node_modules/pcap/build“ wird verlassen npm ERR! gyp info it worked if it ends with ok npm ERR! gyp info using node-gyp@3.8.0 npm ERR! gyp info using node@14.17.3 | linux | x64 npm ERR! gyp info spawn /usr/bin/python2 npm ERR! gyp info spawn args [ npm ERR! gyp info spawn args '/opt/iobroker/node_modules/node-gyp/gyp/gyp_main.py', npm ERR! gyp info spawn args 'binding.gyp', npm ERR! gyp info spawn args '-f', npm ERR! gyp info spawn args 'make', npm ERR! gyp info spawn args '-I', npm ERR! gyp info spawn args '/opt/iobroker/node_modules/pcap/build/config.gypi', npm ERR! gyp info spawn args '-I', npm ERR! gyp info spawn args '/opt/iobroker/node_modules/node-gyp/addon.gypi', npm ERR! gyp info spawn args '-I', npm ERR! gyp info spawn args '/opt/iobroker/.node-gyp/14.17.3/include/node/common.gypi', npm ERR! gyp info spawn args '-Dlibrary=shared_library', npm ERR! gyp info spawn args '-Dvisibility=default', npm ERR! gyp info spawn args '-Dnode_root_dir=/opt/iobroker/.node-gyp/14.17.3', npm ERR! gyp info spawn args '-Dnode_gyp_dir=/opt/iobroker/node_modules/node-gyp', npm ERR! gyp info spawn args '-Dnode_lib_file=/opt/iobroker/.node-gyp/14.17.3/<(target_arch)/node.lib', npm ERR! gyp info spawn args '-Dmodule_root_dir=/opt/iobroker/node_modules/pcap', npm ERR! gyp info spawn args '-Dnode_engine=v8', npm ERR! gyp info spawn args '--depth=.', npm ERR! gyp info spawn args '--no-parallel', npm ERR! gyp info spawn args '--generator-output', npm ERR! gyp info spawn args 'build', npm ERR! gyp info spawn args '-Goutput_dir=.' npm ERR! gyp info spawn args ] npm ERR! gyp info spawn make npm ERR! gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ] npm ERR! ../pcap_binding.cc:2:10: fatal error: pcap/pcap.h: Datei oder Verzeichnis nicht gefunden npm ERR! #include <pcap/pcap.h> npm ERR! ^~~~~~~~~~~~~ npm ERR! compilation terminated. npm ERR! make: *** [pcap_binding.target.mk:112: Release/obj.target/pcap_binding/pcap_binding.o] Fehler 1 npm ERR! gyp ERR! build error npm ERR! gyp ERR! stack Error: `make` failed with exit code: 2 npm ERR! gyp ERR! stack at ChildProcess.onExit (/opt/iobroker/node_modules/node-gyp/lib/build.js:262:23) npm ERR! gyp ERR! stack at ChildProcess.emit (events.js:375:28) npm ERR! gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:277:12) npm ERR! gyp ERR! System Linux 4.4.59+ npm ERR! gyp ERR! command "/usr/local/bin/node" "/opt/iobroker/node_modules/.bin/node-gyp" "rebuild" npm ERR! gyp ERR! cwd /opt/iobroker/node_modules/pcap npm ERR! gyp ERR! node -v v14.17.3 npm ERR! gyp ERR! node-gyp -v v3.8.0 npm ERR! gyp ERR! not ok npm ERR! A complete log of this run can be found in: npm ERR! /opt/iobroker/.npm/_logs/2021-07-24T13_58_16_080Z-debug.log
-
Deine nodeJS-Installation ist 100% krumm.
Schau in meiner Signatur wir man die gerade zieht. -
@thomas-braun mach ich
-
Frage: Deine einleitende Worte stimmen mich nachdenklich, denn ich habe einen Docker Container auf einer Synology, und ich bin root@ .... was bedeutet jetzt das "Nicht machen!" ???
"Vorwort:
Bis auf Ausnahmefälle (z. B. bei Docker auf einer Synology) wird ein auf Debian basierendes System seit Jahren NICHT mehr per direktem root-login administriert, sondern als normaler user mittels 'sudo'. Solche login prompts sind also unnötig und 'gefährlich':root@raspberrypi:~#
Nicht machen!"
OK, wahrscheinlich bedeutet es nichts, denn ich habe ja so einen Ausnahmefall.
-
@kaskadeur111 Das heißt, das man den root-Account nicht benutzt sondern einen User der entsprechende Rechte erhalten kann.
Auf der Synology geht das aber nicht, weil das dortige System extremst abgespeckt ist und es keine User-Verwaltung im klassischen Sinne gibt.
Aus meiner Sicht ist das ganze auch keine gescheite Basis um dort im Docker den ioBroker laufen zu lassen. Aber das ist ein anderes Thema.