NEWS
Admin Upgrade auf 6.xxx Version schlägt fehl - Gelöst
-
Hallo Gemeinde,
Ich versuche seit fast zwei Wochen den Admin Adapter zu aktualisieren und komme einfach nicht weiter. Ich habe es über die GUI u. auch von der Shell aus probiert. Nun bin ich aber auf eine m.M. nach mögliche Fehlerquelle gestossen:
pi@iob-test1-proxmox:~$ iobroker update admin Used repository: admin Error: unknown repository is active - "admin". Known: Stable (default) pi@iob-test1-proxmox:~$ iobroker restart pi@iob-test1-proxmox:~$ htop pi@iob-test1-proxmox:~$ iobroker repo list Stable (default): http://download.iobroker.net/sources-dist.json Active repo(s): Stable (default)
Das repository Admin gibt es nicht.. aber mein Default Repo ist auf Stable gestellt.
Ist das ein Denkfehler von mir oder ist hier was falsch konfiguriert bei mir ?!
--> Error: unknown repository is active - "admin"
Mein System: (auf proxmox)
PlatformBetriebssystem:linux
Architektur:x64
CPUs:8
Geschwindigkeit:1996 MHz
Modell:AMD Opteron 23xx (Gen 3 Class Opteron)
RAM:6.1 GB
System-Betriebszeit:00:16:11
Node.js:v16.17.0
time:1664097731201
timeOffset:-120
Adapter-Anzahl:435
NPM:v8.15.0
Datenträgergröße:30.4 GB
freier Festplattenspeicher:13.3 GB
Betriebszeit:00:16:04
Aktive Instanzen:36
Pfad:/opt/iobroker/ -
@crepp1967 wie wäre es mit
iobroker upgrade admin
-
-
@crepp1967 sagte in Admin Upgrade auf 6.xxx Version schlägt fehl:
Ist das ein Denkfehler von mir oder ist hier was falsch konfiguriert bei mir ?!
Das ist nur ein falscher Befehl.
iobroker update iobroker upgrade
wäre korrekt.
-
i@iob-test1-proxmox:~$ iobroker update Used repository: Stable (default) Adapter "admin" : 6.2.22 , installed 5.3.8 [Updatable] Adapter "alexa2" : 3.19.9 , installed 3.11.2 [Updatable] Adapter "bring" : 1.8.1 , installed 1.8.1 Adapter "broadlink2" : 2.1.5 , installed 2.1.5 Adapter "daswetter" : 3.1.3 , installed 3.1.2 [Updatable] Adapter "discovery" : 3.0.5 , installed 3.0.5 Adapter "ds18b20" : 1.6.0 , installed 1.6.0 Adapter "dwd" : 2.8.3 , installed 2.8.3 Adapter "email" : 1.1.3 , installed 1.1.3 Adapter "feiertage" : 1.1.0 , installed 1.1.0 Adapter "flot" : 1.11.0 , installed 1.11.0 Adapter "fritzbox" : 0.2.1 , installed 0.2.1 Adapter "history" : 2.2.0 , installed 2.2.0 Adapter "hm-rega" : 3.0.40 , installed 3.0.40 Adapter "hm-rpc" : 1.15.12 , installed 1.15.12 Adapter "hue" : 3.7.1 , installed 3.7.1 Adapter "hue-extended" : 2.0.0 , installed 2.0.0 Adapter "ical" : 1.13.1 , installed 1.13.1 Adapter "icons-addictive-flavour-png": 0.1.0, installed 0.1.0 Adapter "icons-fatcow-hosting": 0.1.0, installed 0.1.0 Adapter "icons-icons8" : 0.0.1 , installed 0.0.1 Adapter "icons-material-png": 0.1.0, installed 0.1.0 Adapter "icons-material-svg": 0.1.0, installed 0.1.0 Adapter "icons-mfd-png": 1.1.0 , installed 1.1.0 Adapter "icons-open-icon-library-png": 0.1.2, installed 0.1.2 Adapter "icons-ultimate-png": 1.0.1, installed 1.0.1 Adapter "influxdb" : 3.1.8 , installed 3.1.7 [Updatable] Adapter "info" : 1.9.19 , installed 1.9.19 Adapter "iot" : 1.11.9 , installed 1.11.8 [Updatable] Adapter "javascript" : 6.0.3 , installed 6.0.0 [Updatable] Controller "js-controller": 4.0.23 , installed 4.0.23 Adapter "kodi" : 2.0.8 , installed 2.0.8 Adapter "luftdaten" : 2.2.4 , installed 2.2.4 Adapter "mobile" : 1.0.1 , installed 1.0.1 Adapter "moma" : 1.2.9 , installed 1.2.9 Adapter "mqtt" : 4.0.7 , installed 3.0.6 [Updatable] Adapter "nina" : 0.0.25 , installed 0.0.25 Adapter "node-red" : 4.0.0 , installed 3.3.1 [Updatable] Adapter "openweathermap": 0.3.0 , installed 0.3.0 Adapter "owfs" : 0.7.0 , installed 0.7.0 Adapter "parser" : 1.1.8 , installed 1.1.8 Adapter "pi-hole" : 1.3.4 , installed 1.3.4 Adapter "proxmox" : 1.3.4 , installed 1.3.4 Adapter "pushover" : 3.0.3 , installed 3.0.2 [Updatable] Adapter "radar2" : 2.0.3 , installed 2.0.3 Adapter "rest-api" : 1.0.1 , installed 1.0.1 Adapter "rpi2" : 1.3.2 , installed 1.3.2 Adapter "samsung" : 0.5.8 , installed 0.5.8 Adapter "sayit" : 1.12.3 , installed 1.12.3 Adapter "scenes" : 2.3.9 , installed 2.3.9 Adapter "shelly" : 6.0.0 , installed 6.0.0 Adapter "simple-api" : 2.7.0 , installed 2.7.0 Adapter "socketio" : 4.2.0 , installed 4.2.0 Adapter "sonoff" : 2.5.1 , installed 2.5.1 Adapter "spotify-premium": 1.2.1 , installed 1.2.1 Adapter "squeezeboxrpc": 1.3.9 , installed 1.3.9 Adapter "statistics" : 2.2.0 , installed 2.2.0 Adapter "swiss-weather-api": 1.0.3, installed 1.0.3 Adapter "telegram" : 1.14.1 , installed 1.13.0 [Updatable] Adapter "tr-064" : 4.2.16 , installed 4.2.16 Adapter "traccar" : 0.0.12 , installed 0.0.12 Adapter "trashschedule": 2.0.3 , installed 2.0.3 Adapter "vis" : 1.4.15 , installed 1.4.15 Adapter "vis-bars" : 0.1.4 , installed 0.1.4 Adapter "vis-canvas-gauges": 0.1.5, installed 0.1.5 Adapter "vis-colorpicker": 1.2.0 , installed 1.2.0 Adapter "vis-fancyswitch": 1.1.0 , installed 1.1.0 Adapter "vis-google-fonts": 1.0.3 , installed 1.0.3 Adapter "vis-history" : 1.0.0 , installed 1.0.0 Adapter "vis-hqwidgets": 1.3.0 , installed 1.2.0 [Updatable] Adapter "vis-icontwo" : 0.89.0 , installed 0.89.0 Adapter "vis-inventwo" : 3.3.1 , installed 3.3.1 Adapter "vis-jqui-mfd" : 1.0.12 , installed 1.0.12 Adapter "vis-justgage" : 1.0.2 , installed 1.0.2 Adapter "vis-keyboard" : 0.0.2 , installed 0.0.2 Adapter "vis-map" : 1.0.4 , installed 1.0.4 Adapter "vis-metro" : 1.2.0 , installed 1.2.0 Adapter "vis-players" : 0.1.6 , installed 0.1.6 Adapter "vis-rgraph" : 0.0.2 , installed 0.0.2 Adapter "vis-timeandweather": 1.2.2, installed 1.2.2 Adapter "vis-weather" : 2.5.5 , installed 2.5.5 Adapter "weatherunderground": 3.4.2, installed 3.4.2 Adapter "web" : 4.3.0 , installed 4.3.0 Adapter "windows-control": 0.1.5 , installed 0.1.5 Adapter "worx" : 1.6.6 , installed 1.6.6 Adapter "ws" : 1.3.0 , installed 1.3.0 Adapter "zigbee" : 1.7.5 , installed 1.7.5 pi@iob-test1-proxmox:~$ ^C pi@iob-test1-proxmox:~$ iobroker upgrade all This upgrade of "vis-hqwidgets" will introduce the following changes: ========================================================================== -> 1.3.0: Made it compatible with ioBroker.vis v2 ========================================================================== Would you like to upgrade vis-hqwidgets from @1.2.0 to @1.3.0 now? [(y)es, (n)o]: y Update vis-hqwidgets from @1.2.0 to @1.3.0 NPM version: 8.15.0 Installing iobroker.vis-hqwidgets@1.3.0... (System call) host.iob-test1-proxmox Cannot install iobroker.vis-hqwidgets@1.3.0: 217 pi@iob-test1-proxmox:~$
-
pi@iob-test1-proxmox:~$ iobroker upgrade all This upgrade of "vis-hqwidgets" will introduce the following changes: ========================================================================== -> 1.3.0: Made it compatible with ioBroker.vis v2 ========================================================================== Would you like to upgrade vis-hqwidgets from @1.2.0 to @1.3.0 now? [(y)es, (n)o]: y Update vis-hqwidgets from @1.2.0 to @1.3.0 NPM version: 8.15.0 Installing iobroker.vis-hqwidgets@1.3.0... (System call) host.iob-test1-proxmox Cannot install iobroker.vis-hqwidgets@1.3.0: 217 pi@iob-test1-proxmox:~$
-
-
pi@iob-test1-proxmox:~$ iobroker upgrade all --debug This upgrade of "vis-hqwidgets" will introduce the following changes: ========================================================================== -> 1.3.0: Made it compatible with ioBroker.vis v2 ========================================================================== Would you like to upgrade vis-hqwidgets from @1.2.0 to @1.3.0 now? [(y)es, (n)o]: y Update vis-hqwidgets from @1.2.0 to @1.3.0 NPM version: 8.15.0 Installing iobroker.vis-hqwidgets@1.3.0... (System call) npm WARN old lockfile npm WARN old lockfile The package-lock.json file was created with an old version of npm, npm WARN old lockfile so supplemental metadata must be fetched from the registry. npm WARN old lockfile npm WARN old lockfile This is a one-time fix-up, please be patient... npm WARN old lockfile
-
@crepp1967
Er meckert aber keine Ordner an soweit ich das sehe -
@crepp1967
Ok, er war noch nicht fertig (please be patient...)npm WARN old lockfile npm WARN old lockfile Error: git dep preparation failed npm WARN old lockfile at ChildProcess.<anonymous> (/usr/lib/node_modules/npm/node_modules/@npmcli/promise-spawn/lib/index.js:63:27) npm WARN old lockfile at ChildProcess.emit (node:events:513:28) npm WARN old lockfile at maybeClose (node:internal/child_process:1093:16) npm WARN old lockfile at Process.ChildProcess._handle.onexit (node:internal/child_process:302:5) npm WARN old lockfile Could not fetch metadata for iobroker.mytime@git+ssh://git@github.com/oweitman/iobroker.mytime.git#4f0814f14bdedaedd4a4d4306edc95f8b1269d19 Error: git dep preparation failed npm WARN old lockfile at ChildProcess.<anonymous> (/usr/lib/node_modules/npm/node_modules/@npmcli/promise-spawn/lib/index.js:63:27) npm WARN old lockfile at ChildProcess.emit (node:events:513:28) npm WARN old lockfile at maybeClose (node:internal/child_process:1093:16) npm WARN old lockfile at Process.ChildProcess._handle.onexit (node:internal/child_process:302:5) { npm WARN old lockfile cmd: '/usr/bin/node', npm WARN old lockfile args: [ npm WARN old lockfile '/usr/lib/node_modules/npm/bin/npm-cli.js', npm WARN old lockfile 'install', npm WARN old lockfile '--force', npm WARN old lockfile '--cache=/home/iobroker/.npm', npm WARN old lockfile '--prefer-offline=false', npm WARN old lockfile '--prefer-online=false', npm WARN old lockfile '--offline=false', npm WARN old lockfile '--no-progress', npm WARN old lockfile '--no-save', npm WARN old lockfile '--no-audit', npm WARN old lockfile '--include=dev', npm WARN old lockfile '--include=peer', npm WARN old lockfile '--include=optional', npm WARN old lockfile '--no-package-lock-only', npm WARN old lockfile '--no-dry-run' npm WARN old lockfile ], npm WARN old lockfile code: 1, npm WARN old lockfile signal: null, npm WARN old lockfile stdout: '', npm WARN old lockfile stderr: 'npm WARN using --force Recommended protections disabled.\n' + npm WARN old lockfile 'npm WARN old lockfile \n' + npm WARN old lockfile 'npm WARN old lockfile The package-lock.json file was created with an old version of npm,\n' + npm WARN old lockfile 'npm WARN old lockfile so supplemental metadata must be fetched from the registry.\n' + npm WARN old lockfile 'npm WARN old lockfile \n' + npm WARN old lockfile 'npm WARN old lockfile This is a one-time fix-up, please be patient...\n' + npm WARN old lockfile 'npm WARN old lockfile \n' + npm WARN old lockfile 'npm WARN deprecated stable@0.1.8: Modern JS already guarantees Array#sort() is a stable sort, so this library is deprecated. See the compatibility table on MDN: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#browser_compatibility\n' + npm WARN old lockfile 'npm WARN deprecated request-promise-native@1.0.9: request-promise-native has been deprecated because it extends the now deprecated request package, see https://github.com/request/request/issues/3142\n' + npm WARN old lockfile 'npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated\n' + npm WARN old lockfile 'npm WARN deprecated har-validator@5.1.5: this library is no longer supported\n' + npm WARN old lockfile 'npm WARN deprecated json-parser@1.1.5: `json-parser` is deprecated. Please use `comment-json` instead\n' + npm WARN old lockfile 'npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated\n' + npm WARN old lockfile 'npm WARN deprecated source-map-resolve@0.5.3: See https://github.com/lydell/source-map-resolve#deprecated\n' + npm WARN old lockfile 'npm WARN deprecated source-map-url@0.4.0: See https://github.com/lydell/source-map-url#deprecated\n' + npm WARN old lockfile 'npm WARN deprecated chokidar@2.1.8: Chokidar 2 does not receive security updates since 2019. Upgrade to chokidar 3 with 15x fewer dependencies\n' + npm WARN old lockfile 'npm WARN deprecated debug@4.1.1: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797)\n' + npm WARN old lockfile 'npm WARN deprecated chokidar@2.1.8: Chokidar 2 does not receive security updates since 2019. Upgrade to chokidar 3 with 15x fewer dependencies\n' + npm WARN old lockfile 'npm WARN deprecated querystring@0.2.0: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.\n' + npm WARN old lockfile 'npm WARN deprecated babel-eslint@10.1.0: babel-eslint is now @babel/eslint-parser. This package will no longer receive updates.\n' + npm WARN old lockfile '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.\n' + npm WARN old lockfile 'npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142\n' + npm WARN old lockfile 'npm WARN deprecated @material-ui/system@4.11.3: You can now upgrade to @mui/system. See the guide: https://mui.com/guides/migration-v4/\n' + npm WARN old lockfile 'npm WARN deprecated svgo@1.3.2: This SVGO version is no longer supported. Upgrade to v2.x.x.\n' + npm WARN old lockfile 'npm WARN deprecated @material-ui/styles@4.11.4: You can now upgrade to @mui/styles. See the guide: https://mui.com/guides/migration-v4/\n' + npm WARN old lockfile "npm WARN deprecated parcel-bundler@1.12.5: Parcel v1 is no longer maintained. Please migrate to v2, which is published under the 'parcel' package. See https://v2.parceljs.org/getting-started/migration for details.\n" + npm WARN old lockfile 'npm WARN deprecated @material-ui/lab@4.0.0-alpha.58: You can now upgrade to @mui/lab. See the guide: https://mui.com/guides/migration-v4/\n' + npm WARN old lockfile 'npm WARN deprecated core-js@2.6.12: core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js.\n' + npm WARN old lockfile 'npm WARN deprecated @material-ui/core@4.11.4: You can now upgrade to @mui/material. See the guide: https://mui.com/guides/migration-v4/\n' + npm WARN old lockfile 'npm WARN deprecated @material-ui/icons@4.11.2: You can now upgrade to @mui/icons. See the guide: https://mui.com/guides/migration-v4/\n' + npm WARN old lockfile 'npm ERR! code 1\n' + npm WARN old lockfile 'npm ERR! path /home/iobroker/.npm/_cacache/tmp/git-cloneobk4GU/node_modules/deasync\n' + npm WARN old lockfile 'npm ERR! command failed\n' + npm WARN old lockfile 'npm ERR! command sh /tmp/install-84fea94e.sh\n' + npm WARN old lockfile 'npm ERR! node:internal/modules/cjs/loader:959\n' + npm WARN old lockfile 'npm ERR! throw err;\n' + npm WARN old lockfile 'npm ERR! ^\n' + npm WARN old lockfile 'npm ERR! \n' + npm WARN old lockfile "npm ERR! Error: Cannot find module 'object-assign'\n" + npm WARN old lockfile 'npm ERR! Require stack:\n' + npm WARN old lockfile 'npm ERR! - /usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/gauge/render-template.js\n' + npm WARN old lockfile 'npm ERR! - /usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/gauge/plumbing.js\n' + npm WARN old lockfile 'npm ERR! - /usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/gauge/index.js\n' + npm WARN old lockfile 'npm ERR! - /usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/npmlog/log.js\n' + npm WARN old lockfile 'npm ERR! - /usr/lib/node_modules/npm/node_modules/node-gyp/lib/node-gyp.js\n' + npm WARN old lockfile 'npm ERR! - /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js\n' + npm WARN old lockfile 'npm ERR! at Function.Module._resolveFilename (node:internal/modules/cjs/loader:956:15)\n' + npm WARN old lockfile 'npm ERR! at Function.Module._load (node:internal/modules/cjs/loader:804:27)\n' + npm WARN old lockfile 'npm ERR! at Module.require (node:internal/modules/cjs/loader:1028:19)\n' + npm WARN old lockfile 'npm ERR! at require (node:internal/modules/cjs/helpers:102:18)\n' + npm WARN old lockfile 'npm ERR! at Object.<anonymous> (/usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/gauge/render-template.js:4:20)\n' + npm WARN old lockfile 'npm ERR! at Module._compile (node:internal/modules/cjs/loader:1126:14)\n' + npm WARN old lockfile 'npm ERR! at Object.Module._extensions..js (node:internal/modules/cjs/loader:1180:10)\n' + npm WARN old lockfile 'npm ERR! at Module.load (node:internal/modules/cjs/loader:1004:32)\n' + npm WARN old lockfile 'npm ERR! at Function.Module._load (node:internal/modules/cjs/loader:839:12)\n' + npm WARN old lockfile 'npm ERR! at Module.require (node:internal/modules/cjs/loader:1028:19) {\n' + npm WARN old lockfile "npm ERR! code: 'MODULE_NOT_FOUND',\n" + npm WARN old lockfile 'npm ERR! requireStack: [\n' + npm WARN old lockfile "npm ERR! '/usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/gauge/render-template.js',\n" + npm WARN old lockfile "npm ERR! '/usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/gauge/plumbing.js',\n" + npm WARN old lockfile "npm ERR! '/usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/gauge/index.js',\n" + npm WARN old lockfile "npm ERR! '/usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/npmlog/log.js',\n" + npm WARN old lockfile "npm ERR! '/usr/lib/node_modules/npm/node_modules/node-gyp/lib/node-gyp.js',\n" + npm WARN old lockfile "npm ERR! '/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js'\n" + npm WARN old lockfile 'npm ERR! ]\n' + npm WARN old lockfile 'npm ERR! }\n' + npm WARN old lockfile 'npm ERR! Build failed\n' + npm WARN old lockfile '\n' + npm WARN old lockfile 'npm ERR! A complete log of this run can be found in:\n' + npm WARN old lockfile 'npm ERR! /home/iobroker/.npm/_logs/2022-09-25T09_40_03_317Z-debug-0.log\n' npm WARN old lockfile } npm ERR! code ENOTEMPTY npm ERR! syscall rename npm ERR! path /opt/iobroker/node_modules/iobroker.backitup npm ERR! dest /opt/iobroker/node_modules/.iobroker.backitup-ZZHwpo6A npm ERR! errno -39 npm ERR! ENOTEMPTY: directory not empty, rename '/opt/iobroker/node_modules/iobroker.backitup' -> '/opt/iobroker/node_modules/.iobroker.backitup-ZZHwpo6A' npm ERR! A complete log of this run can be found in: npm ERR! /home/iobroker/.npm/_logs/2022-09-25T09_39_52_308Z-debug-0.log host.iob-test1-proxmox Cannot install iobroker.vis-hqwidgets@1.3.0: 217 pi@iob-test1-proxmox:~$
-
Mit diesem Befehl kann ich die alten Ordner löschen?
for i in $(find /opt/iobroker/node_modules -type d -iname ".*-????????" ! -iname ".local-chromium"); do rm -rf ${i%%/}; done
Wo muss ich stehen ? /opt/iobroker ?
-
@crepp1967 sagte in Admin Upgrade auf 6.xxx Version schlägt fehl:
Wo muss ich stehen ? /opt/iobroker ?
Egal. Der Befehl läuft (mittlerweile) immer automatisch im richtigen Verzeichnis.
-
Es hat funktioniert, Vielen Dank für Deine schnelle Hilfe!
-
@crepp1967 sagte in Admin Upgrade auf 6.xxx Version schlägt fehl - Gelöst:
Ok, er war noch nicht fertig
Übrigens: Solange im Terminal nicht wieder der LoginPrompt erscheint läuft das Kommando noch. Grundsätzlich immer unter Linux.
-
@thomas-braun
Ja, theoretisch wusste ich das - war bloß zu fix ...