NEWS
[gelöst]Web Adapter
-
Welche Node- und npm-Version hast Du?
Welchen js-controller hast Du nun?
Gruß,
Eric
Von unterwegs getippert
-
npm 6.4.1.
node und nodejs 8.15.0
-
so habe den Zigbee adapter gestoppt, den Stick entfernt und den broker neugestartet. der Web Adapter bleibt rot.
Ich kann auch kein Vis nutzen etc. irgendwas ist da im Eimer xD
-
der Web Adapter bleibt rot.
Ich kann auch kein Vis nutzen `
Das ist klar. vis braucht den Web-Adapter.Der Fehler liegt hier:
@torti0111:Error: Cannot find module './router' `
Warum auch immer.Ich kenne die Anleitung von Schimmermedia nicht, kann dir also nicht sagen ob die korrekt ist oder etwas zerstört.
Gruß
Rainer
-
Also im Endeffekt habe ich einen USB Stick geflasht, den in den Raspberry gesteckt. Comport des USB Sticks ausgelesen und in dem Zigbee adapter eingestellt.
Mehr hab ich nicht gemacht.
-
So ich habe jetzt mal den Web adapter komplett neu installiert und bekomme nach der Installation folgendes im Log:
! ````
host.ioBroker-RasPi 2018-12-29 17:08:35.760 info instance system.adapter.web.0 started with pid 987
host.ioBroker-RasPi 2018-12-29 17:08:05.764 info Restart adapter system.adapter.web.0 because enabled
host.ioBroker-RasPi 2018-12-29 17:08:05.763 error instance system.adapter.web.0 terminated with code 1 ()
host.ioBroker-RasPi 2018-12-29 17:08:05.762 error Caught by controller[0]: at Function.Module._load (module.js:498:3)
host.ioBroker-RasPi 2018-12-29 17:08:05.762 error Caught by controller[0]: at tryModuleLoad (module.js:506:12)
host.ioBroker-RasPi 2018-12-29 17:08:05.761 error Caught by controller[0]: at Module.load (module.js:566:32)
host.ioBroker-RasPi 2018-12-29 17:08:05.760 error Caught by controller[0]: at Object.Module._extensions..js (module.js:664:10)
host.ioBroker-RasPi 2018-12-29 17:08:05.759 error Caught by controller[0]: at Module._compile (module.js:653:30)
host.ioBroker-RasPi 2018-12-29 17:08:05.758 error Caught by controller[0]: at Object. <anonymous>(/opt/iobroker/node_modules/iobroker.web/node_modules/express/lib/application.js:17:14)
host.ioBroker-RasPi 2018-12-29 17:08:05.757 error Caught by controller[0]: at require (internal/module.js:11:18)
host.ioBroker-RasPi 2018-12-29 17:08:05.756 error Caught by controller[0]: at Module.require (module.js:597:17)
host.ioBroker-RasPi 2018-12-29 17:08:05.755 error Caught by controller[0]: at Function.Module._load (module.js:475:25)
host.ioBroker-RasPi 2018-12-29 17:08:05.754 error Caught by controller[0]: at Function.Module._resolveFilename (module.js:548:15)
host.ioBroker-RasPi 2018-12-29 17:08:05.753 error Caught by controller[0]: Error: Cannot find module './router'
host.ioBroker-RasPi 2018-12-29 17:08:05.752 error Caught by controller[0]: ^
host.ioBroker-RasPi 2018-12-29 17:08:05.752 error Caught by controller[0]: throw err;
host.ioBroker-RasPi 2018-12-29 17:08:05.750 error Caught by controller[0]: module.js:550
host.ioBroker-RasPi 2018-12-29 17:08:05.224 info instance system.adapter.web.0 started with pid 981
iobroker 2018-12-29 17:07:41.622 info npm install iobroker.vis --production --save --prefix "/opt/iobroker" (System call)
iobroker 2018-12-29 17:07:40.723 info NPM version: 6.4.1
iobroker 2018-12-29 17:07:37.196 info install vis
host.ioBroker-RasPi 2018-12-29 17:07:37.195 warn startInstance cannot find adapter "vis". Try to install it... 3 attempt
iobroker 2018-12-29 17:07:36.192 info exit 0
iobroker 2018-12-29 17:07:36.179 error Cannot parse null/io-package.json:Error: ENOENT: no such file or directory, open 'null/io-package.json'
iobroker 2018-12-29 17:07:36.110 error host.ioBroker-RasPi Adapter directory "null" does not exists
iobroker 2018-12-29 17:07:35.966 info npm ERR! A complete log of this run can be found in:npm ERR! /home/iobroker/.npm/_logs/2018-12-29T16_07_35_904Z-debug.log
iobroker 2018-12-29 17:07:35.965 info
iobroker 2018-12-29 17:07:35.862 info ERR! Cannot read property '0' of undefined
iobroker 2018-12-29 17:07:35.862 info npm
iobroker 2018-12-29 17:07:35.856 info
iobroker 2018-12-29 17:07:35.854 info enoent ENOENT: no such file or directory, open '/opt/iobroker/node_modules/iobroker.javascript/node_modules/sorted-array-functions/package.json'
iobroker 2018-12-29 17:07:35.853 info enoent ENOENT: no such file or directory, open '/opt/iobroker/node_modules/iobroker.javascript/node_modules/safer-buffer/package.json'npm WARN
iobroker 2018-12-29 17:07:35.853 info enoent ENOENT: no such file or directory, open '/opt/iobroker/node_modules/iobroker.javascript/node_modules/safe-buffer/package.json'npm WARN
iobroker 2018-12-29 17:07:35.852 info npm WARN enoent ENOENT: no such file or directory, open '/opt/iobroker/node_modules/iobroker.javascript/node_modules/qs/package.json'npm WARN
iobroker 2018-12-29 17:07:35.851 info WARN enoent ENOENT: no such file or directory, open '/opt/iobroker/node_modules/iobroker.javascript/node_modules/psl/package.json'npm WARN enoent ENOENT: no such file or directory, open '/opt/iobrok
iobroker 2018-12-29 17:07:35.850 info npm
iobroker 2018-12-29 17:07:35.849 info npm WARN enoent ENOENT: no such file or directory, open '/opt/iobroker/node_modules/iobroker.javascript/node_modules/object-keys/package.json'npm WARN enoent ENOENT: no such file or directory, open '
iobroker 2018-12-29 17:07:35.849 info enoent ENOENT: no such file or directory, open '/opt/iobroker/node_modules/iobroker.javascript/node_modules/ms/package.json'npm WARN enoent ENOENT: no such file or directory, open '/opt/iobroker/node
iobroker 2018-12-29 17:07:35.848 info enoent ENOENT: no such file or directory, open '/opt/iobroker/node_modules/iobroker.javascript/node_modules/moment-timezone/package.json'npm WARN
iobroker 2018-12-29 17:07:35.847 info enoent ENOENT: no such file or directory, open '/opt/iobroker/node_modules/iobroker.javascript/node_modules/moment/package.json'npm WARN
iobroker 2018-12-29 17:07:35.846 info npm WARN enoent ENOENT: no such file or directory, open '/opt/iobroker/node_modules/iobroker.javascript/node_modules/minimist/package.json'npm WARN
iobroker 2018-12-29 17:07:35.845 info npm WARN enoent ENOENT: no such file or directory, open '/opt/iobroker/node_modules/iobroker.javascript/node_modules/mime-types/package.json'
iobroker 2018-12-29 17:07:35.845 info enoent ENOENT: no such file or directory, open '/opt/iobroker/node_modules/iobroker.javascript/node_modules/long-timeout/package.json'npm WARN enoent ENOENT: no such file or directory, open '/opt/io
iobroker 2018-12-29 17:07:35.844 info npm WARN
iobroker 2018-12-29 17:07:35.844 info ENOENT: no such file or directory, open '/opt/iobroker/node_modules/iobroker.javascript/node_modules/json-schema-traverse/package.json'npm WARN enoent ENOENT: no such file or directory, open '/opt/i
iobroker 2018-12-29 17:07:35.843 info npm WARN enoent ENOENT: no such file or directory, open '/opt/iobroker/node_modules/iobroker.javascript/node_modules/json-schema/package.json'npm WARN enoent
iobroker 2018-12-29 17:07:35.842 info enoent ENOENT: no such file or directory, open '/opt/iobroker/node_modules/iobroker.javascript/node_modules/jsbn/package.json'
iobroker 2018-12-29 17:07:35.841 info WARN enoent ENOENT: no such file or directory, open '/opt/iobroker/node_modules/iobroker.javascript/node_modules/isstream/package.json'npm WARN
iobroker 2018-12-29 17:07:35.841 info WARN enoent ENOENT: no such file or directory, open '/opt/iobroker/node_modules/iobroker.javascript/node_modules/is-typedarray/package.json'npm
iobroker 2018-12-29 17:07:35.840 info WARN enoent ENOENT: no such file or directory, open '/opt/iobroker/node_modules/iobroker.javascript/node_modules/is-nan/package.json'npm
iobroker 2018-12-29 17:07:35.840 info WARN enoent ENOENT: no such file or directory, open '/opt/iobroker/node_modules/iobroker.javascript/node_modules/har-schema/package.json'npm
iobroker 2018-12-29 17:07:35.839 info npm WARN enoent ENOENT: no such file or directory, open '/opt/iobroker/node_modules/iobroker.javascript/node_modules/getpass/package.json'npm
iobroker 2018-12-29 17:07:35.838 info npm WARN enoent ENOENT: no such file or directory, open '/opt/iobroker/node_modules/iobroker.javascript/node_modules/form-data/package.json'
iobroker 2018-12-29 17:07:35.838 info npm WARN enoent ENOENT: no such file or directory, open '/opt/iobroker/node_modules/iobroker.javascript/node_modules/forever-agent/package.json'
iobroker 2018-12-29 17:07:35.837 info enoent ENOENT: no such file or directory, open '/opt/iobroker/node_modules/iobroker.javascript/node_modules/fast-json-stable-stringify/package.json'
iobroker 2018-12-29 17:07:35.837 info enoent ENOENT: no such file or directory, open '/opt/iobroker/node_modules/iobroker.javascript/node_modules/fast-deep-equal/package.json'npm WARN
iobroker 2018-12-29 17:07:35.836 info enoent ENOENT: no such file or directory, open '/opt/iobroker/node_modules/iobroker.javascript/node_modules/extsprintf/package.json'npm WARN
iobroker 2018-12-29 17:07:35.835 info enoent ENOENT: no such file or directory, open '/opt/iobroker/node_modules/iobroker.javascript/node_modules/extend/package.json'npm WARN
iobroker 2018-12-29 17:07:35.835 info WARN enoent ENOENT: no such file or directory, open '/opt/iobroker/node_modules/iobroker.javascript/node_modules/ecc-jsbn/package.json'npm WARN
iobroker 2018-12-29 17:07:35.834 info WARN enoent ENOENT: no such file or directory, open '/opt/iobroker/node_modules/iobroker.javascript/node_modules/define-properties/package.json'npm
iobroker 2018-12-29 17:07:35.834 info npm WARN enoent ENOENT: no such file or directory, open '/opt/iobroker/node_modules/iobroker.javascript/node_modules/debug/package.json'npm
iobroker 2018-12-29 17:07:35.833 info npm WARN enoent ENOENT: no such file or directory, open '/opt/iobroker/node_modules/iobroker.javascript/node_modules/cron-parser/package.json'
iobroker 2018-12-29 17:07:35.832 info WARN enoent ENOENT: no such file or directory, open '/opt/iobroker/node_modules/iobroker.javascript/node_modules/asn1/package.json'npm WARN enoent ENOENT: no such file or directory, open '/opt/iobro
iobroker 2018-12-29 17:07:35.831 info npm</anonymous> -
Da ist massiv was faul!
Die Installationsroutine findet einige Pfade nicht.
Auch kann er das von dir gewählte Repository nicht auslesen:
@torti0111:host.ioBroker-RasPi Adapter directory "null" does not exists `
Ich habe die Vermutung, dass deine gesamte Installation hin ist - ggf. wegen einer sterbenden SD-Karte.
Gruß
Rainer
-
mh…
Ich versuche grad mal ein komplettes Backup drüber laufen zu lassen.
Die Sd Karte ist seit 2 Tagen im Einsatz xD
Leider hat das nix zu bedeuten^^
-
Hab alles mit neuer sd card neu aufgesetzt, an der Zigbee Installation lag es nicht.
-
Irgendwas ist mit der installation komisch und zwar mit der express Library. Da kommt der Fehler her.
Gibt es in /opt/iobroker/node_modules/iobroker.web/node_modules/express/lib/ ein Verzeichnis "router"? Was ist da drin bei Dir?
-
Ich hab alles neu aufgesetzt. Da ich zu keinem Ergebnis gekommen bin. Vermute das wirklich die SD-Karte gestorben ist.
Jetzt läuft wieder alles.
Danke für die hilfe