NEWS
Issue Admin/WebAdapter - iobroker/webserver/build/index.js
-
@thomas-braun said in Issue Admin/WebAdapter - iobroker/webserver/build/index.js:
cd /opt/iobroker npm ls
schaut wie aus?
iobroker.inst@3.0.0 /opt/iobroker ├── @iobroker/socket-classes@1.1.5 extraneous ├── @iobroker/ws-server@2.1.0 extraneous ├── body-parser@1.20.2 extraneous ├── busboy@1.6.0 extraneous ├── compressible@2.0.18 extraneous ├── compression@1.7.4 extraneous ├── connect-flash@0.1.1 extraneous ├── cookie-parser@1.4.6 extraneous ├── express-fileupload@1.4.0 extraneous ├── express-session@1.17.3 extraneous ├── iobroker.acme@0.1.0 (git+ssh://git@github.com/iobroker-community-adapters/ioBroker.acme.git#07333a0c32ead5f656aebdd33e205f74aaa7f923) ├── iobroker.admin@6.4.3 ├── iobroker.alexa2@3.23.2 ├── iobroker.asuswrt@1.0.1 ├── iobroker.backitup@2.6.16 ├── iobroker.bring@1.8.1 ├── iobroker.daswetter@3.1.8 ├── iobroker.device-reminder@1.2.9 (git+ssh://git@github.com/Xenon-s/ioBroker.device-reminder.git#ba8fd2a79a5b06ff7d48233b52bc8167e171d05c) ├── iobroker.discovery@3.1.0 ├── iobroker.energiefluss@3.6.0 (git+ssh://git@github.com/SKB-CGN/ioBroker.energiefluss.git#4065c9c98279dd5f1bc55a8c0eb0485e4a55089e) ├── iobroker.feiertage@1.1.0 ├── iobroker.heatingcontrol@2.10.6 ├── iobroker.hm-rega@3.0.46 ├── iobroker.hm-rpc@1.15.16 ├── iobroker.ical@1.13.2 ├── iobroker.influxdb@3.2.0 ├── iobroker.info@1.9.26 ├── iobroker.iot@1.14.5 ├── iobroker.jarvis@3.1.3 (git+ssh://git@github.com/Zefau/ioBroker.jarvis.git#cc70089e4fdb1b89ead2c37cec22f277f2c32e9b) ├── iobroker.javascript@7.0.3 ├── iobroker.js-controller@4.0.24 ├── iobroker.libre@0.0.4 ├── iobroker.life360@0.2.19 (git+ssh://git@github.com/MiGoller/ioBroker.life360.git#7577116196472ac8b4507e691f15c448f092118b) ├── iobroker.linux-control@1.1.5 ├── iobroker.mqtt@4.1.1 ├── iobroker.netatmo-crawler@0.8.1 ├── iobroker.nightscout@0.0.8 (git+ssh://git@github.com/Apollon77/ioBroker.nightscout.git#1b88b23fe0d5eec7209ce5527031c6ece8204d61) ├── iobroker.nina@0.0.25 ├── iobroker.openligadb@1.2.4 ├── iobroker.parcel@0.0.27 ├── iobroker.ping@1.5.3 ├── iobroker.pvoutputorg@1.8.8 ├── iobroker.schoolfree@1.1.1 ├── iobroker.shelly@6.4.0 ├── iobroker.shuttercontrol@1.4.24 ├── iobroker.simple-api@2.7.2 extraneous ├── iobroker.smartcontrol@1.3.2 ├── iobroker.socketio@6.3.5 extraneous ├── iobroker.sprinklecontrol@0.2.13 ├── iobroker.tankerkoenig@3.3.7 ├── iobroker.telegram@1.15.6 ├── iobroker.trashschedule@2.2.0 ├── iobroker.vaillant@0.1.2 ├── iobroker.vis@1.4.16 ├── iobroker.vofo-speedtest@0.0.13 (git+ssh://git@github.com/peterbaumert/ioBroker.vofo-speedtest.git#f20bee5eca63eaa957d282e609a68e79ee5f94de) ├── iobroker.web@6.0.1 (git+ssh://git@github.com/ioBroker/ioBroker.web.git#b7aaab94b9ea7f039fece2a8c0c1f574c4efc3da) ├── iobroker.whatsapp-cmb@0.2.3 ├── iobroker.worx@2.1.0 ├── iobroker.ws@2.3.6 extraneous ├── on-headers@1.0.2 extraneous ├── passport-local@1.0.0 extraneous ├── passport-strategy@1.0.0 extraneous ├── passport@0.6.0 extraneous ├── pause@0.0.1 extraneous ├── random-bytes@1.0.0 extraneous ├── raw-body@2.5.2 extraneous ├── streamsearch@1.1.0 extraneous └── uid-safe@2.1.5 extraneous
-
@cooper19888
Prune da mal durch.npm prune npm ls npm ls @iobroker/webserver
-
@thomas-braun said in Issue Admin/WebAdapter - iobroker/webserver/build/index.js:
@cooper19888
Prune da mal durch.npm prune npm ls npm ls @iobroker/webserver
gemacht und getan.
Zum Schluss:
cooper1988@intelnuc:/opt/iobroker$ npm prune removed 250 packages in 2s cooper1988@intelnuc:/opt/iobroker/node_modules$ npm ls @iobroker/webserver/ iobroker.inst@3.0.0 /opt/iobroker └── (empty)
Errors nach restart Admin Adapter:
2023-04-11 16:15:38.401 - [31merror[39m: host.intelnuc Caught by controller[0]: Error: Cannot find module '/opt/iobroker/node_modules/@iobroker/webserver/build/index.js'. Please verify that the package.json has a valid "main" entry 2023-04-11 16:15:38.401 - [31merror[39m: host.intelnuc Caught by controller[0]: at tryPackage (node:internal/modules/cjs/loader:436:19) 2023-04-11 16:15:38.401 - [31merror[39m: host.intelnuc Caught by controller[0]: at Module._findPath (node:internal/modules/cjs/loader:678:18) 2023-04-11 16:15:38.401 - [31merror[39m: host.intelnuc Caught by controller[0]: at Module._resolveFilename (node:internal/modules/cjs/loader:1061:27) 2023-04-11 16:15:38.401 - [31merror[39m: host.intelnuc Caught by controller[0]: at Module._load (node:internal/modules/cjs/loader:920:27) 2023-04-11 16:15:38.401 - [31merror[39m: host.intelnuc Caught by controller[0]: at Module.require (node:internal/modules/cjs/loader:1141:19) 2023-04-11 16:15:38.401 - [31merror[39m: host.intelnuc Caught by controller[0]: at require (node:internal/modules/cjs/helpers:110:18) 2023-04-11 16:15:38.401 - [31merror[39m: host.intelnuc Caught by controller[0]: at Object.<anonymous> (/opt/iobroker/node_modules/iobroker.admin/lib/web.js:7:22) 2023-04-11 16:15:38.401 - [31merror[39m: host.intelnuc Caught by controller[0]: at Module._compile (node:internal/modules/cjs/loader:1254:14) 2023-04-11 16:15:38.401 - [31merror[39m: host.intelnuc Caught by controller[0]: at Module._extensions..js (node:internal/modules/cjs/loader:1308:10) 2023-04-11 16:15:38.401 - [31merror[39m: host.intelnuc Caught by controller[0]: at Module.load (node:internal/modules/cjs/loader:1117:32) { 2023-04-11 16:15:38.401 - [31merror[39m: host.intelnuc Caught by controller[0]: code: 'MODULE_NOT_FOUND', 2023-04-11 16:15:38.401 - [31merror[39m: host.intelnuc Caught by controller[0]: path: '/opt/iobroker/node_modules/@iobroker/webserver/package.json', 2023-04-11 16:15:38.401 - [31merror[39m: host.intelnuc Caught by controller[0]: requestPath: '@iobroker/webserver' 2023-04-11 16:15:38.401 - [31merror[39m: host.intelnuc Caught by controller[0]: }
-
@cooper19888
Bügel den admin@6.4.3 noch mal rein.iobroker upgrade admin@6.4.3
-
@cooper19888 sagte in Issue Admin/WebAdapter - iobroker/webserver/build/index.js:
npm ls @iobroker/webserver
Übrigens
npm ls @iobroker/webserver
NICHT
npm ls @iobroker/webserver/
-
@thomas-braun
Mein Fehlercooper1988@intelnuc:/opt/iobroker$ npm ls @iobroker/webserver iobroker.inst@3.0.0 /opt/iobroker ├─┬ iobroker.acme@0.1.0 (git+ssh://git@github.com/iobroker-community-adapters/ioBroker.acme.git#07333a0c32ead5f656aebdd33e205f74aaa7f923) │ └── @iobroker/webserver@0.3.4 (git+ssh://git@github.com/ioBroker/webserver.git#f99d86254380e9cbe6698815e9ea3b444d2624b0) ├─┬ iobroker.admin@6.4.3 │ └── @iobroker/webserver@0.3.4 deduped └─┬ iobroker.web@6.0.1 (git+ssh://git@github.com/ioBroker/ioBroker.web.git#b7aaab94b9ea7f039fece2a8c0c1f574c4efc3da) └── @iobroker/webserver@0.3.4 deduped
Drüberbügeln mittels iob upgrade bringt nichts, nur wenn ich direkt in das node modul reinspringe und npm i --production mache.
-
--production ist mit npm>7 durch --omit=dev ersetzt worden, wenn ich mich recht entsinne.
Ich würde
iobroker.acme
undiobroker.web
auch auf die Version aus einem Repo zwingen. -
iob stop find "/opt/iobroker/" -iname "*package-lock*" -exec rm -rf "{}" \; iob fix iob start
bringt auch nix?
-
Danke für die Hilfe bisher.
Auch das hatte ich bereits durchgejagt ohne erfolg.Nun habe ich mal admin, web und acm sowie @iobroker/webserver entfernt und dann mal alles neu installiert. Dann nochmal
npm i @iobroker/webserver
und nun hat der Server einen reboot überlebt.Nicht das ich Idiot sowas wie npm i @iobroker/webserver/ gemacht habe^^
-
@cooper19888
Eigentich sollte direktes hantieren per npm auch nicht notwendig sein. Viel zu leicht zerlegt man sich da den npm tree. -
@thomas-braun
Ja normalerweise nicht, wer weiß was mich geritten hat.
Aber jetzt scheint es vorerst zu laufen, hoffentlich passt das jetzt