NEWS
iobroker restore 0 funktioniert nicht
-
@thomas-braun
Hab den Eintrag in der cmdline.txt gemacht und rebootet.
Welche Logs benötigst du jetzt?markus@rpi:~ $ blkid /dev/mmcblk0p1: LABEL_FATBOOT="boot" LABEL="boot" UUID="0C61-73F5" BLOCK_SIZE="512" TYPE="vfat" PARTUUID="02211fe5-01" /dev/mmcblk0p2: LABEL="rootfs" UUID="43f2d0bb-83be-464f-94d0-9a751f376c64" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="02211fe5-02" /dev/sda1: LABEL="ESD-USB" UUID="5CD7-2DC8" BLOCK_SIZE="512" TYPE="vfat" PARTUUID="292eb410-01" /dev/sdb1: UUID="bbe67a8e-80a1-4c79-992c-a11ebfacecfe" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="3b18e43a-01" /dev/sdb2: UUID="c25aeb0d-0033-4d60-a8a9-a914652a27c1" TYPE="swap" PARTUUID="3b18e43a-02" markus@rpi:~ $ cat /boot/cmdline.txt dwc_otg.lpm_enable=0 console=serial0,115200 console=tty1 root=PARTUUID=3b18e43a-01 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait quiet splash plymouth.ignore-serial-consoles
-
iobroker status iobroker update iobroker list instances
-
markus@rpi:~ $ iobroker status iobroker is running on this host. Objects type: jsonl States type: jsonl markus@rpi:~ $ iobroker update Used repository: stable Adapter "admin" : 6.2.22 , installed 6.2.20 [Updatable] Adapter "alexa2" : 3.19.9 , installed 3.19.7 [Updatable] Adapter "backitup" : 2.4.12 , installed 2.4.10 [Updatable] Adapter "cloud" : 4.2.2 , installed 4.2.2 Adapter "cul" : 2.0.2 , installed 2.0.2 Adapter "discovery" : 3.0.5 , installed 3.0.5 Adapter "dwd" : 2.8.3 , installed 2.8.3 Adapter "email" : 1.1.3 , installed 1.1.3 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 "icons-mfd-svg": 1.1.0 , installed 1.1.0 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 "linux-control": 1.1.3 , installed 1.1.5 Adapter "mqtt" : 4.0.7 , installed 4.0.7 Adapter "node-red" : 4.0.0 , installed 3.3.1 [Updatable] Adapter "openweathermap": 0.3.0 , installed 0.3.0 Adapter "ping" : 1.5.3 , installed 1.5.3 Adapter "pollenflug" : 1.0.6 , installed 1.0.6 Adapter "pushover" : 3.0.3 , installed 3.0.2 [Updatable] Adapter "radar2" : 2.0.3 , installed 2.0.3 Adapter "rpi2" : 1.3.2 , installed 1.3.2 Adapter "scenes" : 2.3.9 , installed 2.3.9 Adapter "simple-api" : 2.7.0 , installed 2.7.0 Adapter "socketio" : 4.2.0 , installed 4.2.0 Adapter "synology" : 2.1.9 , installed 2.1.9 Adapter "tankerkoenig" : 2.1.1 , installed 2.1.1 Adapter "telegram" : 1.14.1 , installed 1.13.0 [Updatable] Adapter "text2command" : 2.2.2 , installed 2.2.2 Adapter "tr-064" : 4.2.16 , installed 4.2.16 Adapter "trashschedule": 2.0.3 , installed 2.0.3 Adapter "vis" : 1.4.15 , installed 1.4.15 Adapter "vis-material-advanced": 1.7.2, installed 1.7.2 Adapter "web" : 4.3.0 , installed 4.3.0 Adapter "withings" : 0.0.9 , installed 0.0.9 Adapter "ws" : 1.3.0 , installed 1.3.0 Adapter "yahka" : 0.13.1 , installed 0.13.1 markus@rpi:~ $ iobroker list instances system.adapter.admin.0 : admin : rpi - enabled, port: 8081, bind: 0.0.0.0, run as: admin system.adapter.admin.1 : admin : rpi - enabled, port: 8081, bind: 0.0.0.0, run as: admin system.adapter.alexa2.0 : alexa2 : rpi - enabled system.adapter.alexa2.1 : alexa2 : rpi - enabled + system.adapter.backitup.0 : backitup : rpi - enabled + system.adapter.discovery.0 : discovery : rpi - enabled system.adapter.dwd.0 : dwd : rpi - disabled + system.adapter.email.0 : email : rpi - enabled + system.adapter.history.0 : history : rpi - enabled + system.adapter.hm-rega.0 : hm-rega : rpi - enabled + system.adapter.hm-rpc.0 : hm-rpc : rpi - enabled, port: 0 + system.adapter.hm-rpc.1 : hm-rpc : rpi - enabled, port: 0 + system.adapter.hm-rpc.2 : hm-rpc : rpi - enabled, port: 0 + system.adapter.hm-rpc.3 : hm-rpc : rpi - enabled, port: 0 system.adapter.icons-mfd-svg.0 : icons-mfd-svg : rpi - disabled + system.adapter.info.0 : info : rpi - enabled + system.adapter.iot.0 : iot : rpi - enabled + system.adapter.javascript.0 : javascript : rpi - enabled + system.adapter.linux-control.0 : linux-control : rpi - enabled + system.adapter.mqtt.0 : mqtt : rpi - enabled, port: 1883, bind: 0.0.0.0 + system.adapter.ping.0 : ping : rpi - enabled system.adapter.pollenflug.0 : pollenflug : rpi - disabled + system.adapter.pushover.0 : pushover : rpi - enabled + system.adapter.rpi2.0 : rpi2 : rpi - enabled + system.adapter.scenes.0 : scenes : rpi - enabled system.adapter.synology.0 : synology : rpi - disabled, port: 5000 + system.adapter.tankerkoenig.0 : tankerkoenig : rpi - enabled system.adapter.telegram.0 : telegram : rpi - disabled, port: 8443, bind: 0.0.0.0 system.adapter.text2command.0 : text2command : rpi - disabled + system.adapter.tr-064.0 : tr-064 : rpi - enabled system.adapter.vis-material-advanced.0 : vis-material-advanced : rpi - disabled system.adapter.vis.0 : vis : rpi - disabled system.adapter.web.0 : web : rpi - enabled, port: 8082, bind: 0.0.0.0, run as: admin system.adapter.withings.0 : withings : rpi - disabled system.adapter.yahka.0 : yahka : rpi - disabled + system.adapter.yahka.1 : yahka : rpi - enabled + instance is alive
-
iobroker upgrade iobroker del admin.1 iobroker start admin.0
Warum 2 Instanzen vom Admin?
-
Da stimmt schon was nicht!
markus@rpi:~ $ iobroker upgrade This upgrade of "alexa2" will introduce the following changes: ========================================================================== -> 3.19.9: Receive the correct player status again when musik is stopped -> 3.19.8: Add safeguard for too high intervals ========================================================================== Would you like to upgrade alexa2 from @3.19.7 to @3.19.9 now? [(y)es, (n)o]: y Update alexa2 from @3.19.7 to @3.19.9 NPM version: 8.15.0 Installing iobroker.alexa2@3.19.9... (System call) host.rpi Cannot install iobroker.alexa2@3.19.9: 217
-
for i in $(find /opt/iobroker/node_modules -type d -iname ".*-????????" ! -iname ".local-chromium"); do rm -rf ${i%%/}; done
-
markus@rpi:~ $ iobroker upgrade This upgrade of "openweathermap" will introduce the following changes: ========================================================================== -> 0.3.0: Added new widget for vis2.0 ========================================================================== Would you like to upgrade openweathermap from @0.2.5 to @0.3.0 now? [(y)es, (n)o]: n No upgrade of "openweathermap" desired. This upgrade of "admin" will introduce the following changes: ========================================================================== -> 6.2.22: Corrected admin4 adapter settings -> 6.2.21: Corrected small JSON config issue ========================================================================== Would you like to upgrade admin from @6.2.20 to @6.2.22 now? [(y)es, (n)o]: y Update admin from @6.2.20 to @6.2.22 host.rpi Adapter "system.adapter.admin.0" is stopped. NPM version: 8.15.0 Installing iobroker.admin@6.2.22... (System call) host.rpi Cannot install iobroker.admin@6.2.22: 217
-
@funkytown sagte in iobroker restore 0 funktioniert nicht:
iobroker upgrade admin --debug
-
markus@rpi:~ $ iobroker upgrade admin --debug This upgrade of "admin" will introduce the following changes: ========================================================================== -> 6.2.22: Corrected admin4 adapter settings -> 6.2.21: Corrected small JSON config issue ========================================================================== Would you like to upgrade admin from @6.2.20 to @6.2.22 now? [(y)es, (n)o]: y Update admin from @6.2.20 to @6.2.22 NPM version: 8.15.0 Installing iobroker.admin@6.2.22... (System call) npm ERR! code ENOTEMPTY npm ERR! syscall rename npm ERR! path /opt/iobroker/node_modules/addressparser npm ERR! dest /opt/iobroker/node_modules/.addressparser-qF9vtHFg npm ERR! errno -39 npm ERR! ENOTEMPTY: directory not empty, rename '/opt/iobroker/node_modules/addressparser' -> '/opt/iobroker/node_modules/.addressparser-qF9vtHFg' npm ERR! A complete log of this run can be found in: npm ERR! /home/iobroker/.npm/_logs/2022-09-22T20_14_23_357Z-debug-0.log host.rpi Cannot install iobroker.admin@6.2.22: 217
-
@funkytown
Nochmalfor i in $(find /opt/iobroker/node_modules -type d -iname ".*-????????" ! -iname ".local-chromium"); do rm -rf ${i%%/}; done
-
@thomas-braun
Zwischendurch einmal ein DANKE an dich! -
markus@rpi:~ $ iobroker upgrade admin --debug This upgrade of "admin" will introduce the following changes: ========================================================================== -> 6.2.22: Corrected admin4 adapter settings -> 6.2.21: Corrected small JSON config issue ========================================================================== Would you like to upgrade admin from @6.2.20 to @6.2.22 now? [(y)es, (n)o]: y Update admin from @6.2.20 to @6.2.22 NPM version: 8.15.0 Installing iobroker.admin@6.2.22... (System call) npm WARN deprecated dgram@1.0.1: npm is holding this package for security reasons. As it's a core Node module, we will not transfer it over to other users. You may safely remove the package from your dependencies. 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 npm WARN deprecated har-validator@5.1.5: this library is no longer supported npm WARN deprecated request-promise@4.2.6: request-promise has been deprecated because it extends the now deprecated request package, see https://github.com/request/request/issues/3142 npm WARN deprecated json3@3.3.2: Please use the native JSON object instead of JSON 3 npm WARN deprecated querystring@0.2.1: The querystring API is considered Legacy. new code should use the URLSearchParams API instead. npm WARN deprecated node-inspect@2.0.0: This module is part of Node.js core and does not need to be installed separately. It is now unmaintained. npm WARN deprecated multer@1.4.4: Multer 1.x is affected by CVE-2022-24434. This is fixed in v1.4.4-lts.1 which drops support for versions of Node.js before 6. Please upgrade to at least Node.js 6 and version 1.4.4-lts.1 of Multer. If you need support for older versions of Node.js, we are open to accepting patches that would fix the CVE on the main 1.x release line, whilst maintaining compatibility with Node.js 0.10. 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) 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) 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) 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 npm WARN deprecated axios@0.27.0: Formdata complete broken, incorrect build size npm ERR! code ENOTEMPTY npm ERR! syscall rename npm ERR! path /opt/iobroker/node_modules/node-red-node-email/node_modules/encoding-japanese/src npm ERR! dest /opt/iobroker/node_modules/.node-red-node-email-1lk8B7Gi/node_modules/encoding-japanese/src npm ERR! errno -39 npm ERR! ENOTEMPTY: directory not empty, rename '/opt/iobroker/node_modules/node-red-node-email/node_modules/encoding-japanese/src' -> '/opt/iobroker/node_modules/.node-red-node-email-1lk8B7Gi/node_modules/encoding-japanese/src' npm ERR! A complete log of this run can be found in: npm ERR! /home/iobroker/.npm/_logs/2022-09-22T20_27_53_207Z-debug-0.log host.rpi Cannot install iobroker.admin@6.2.22: 217 markus@rpi:~ $
-
Führst du das nicht aus?
for i in $(find /opt/iobroker/node_modules -type d -iname ".*-????????" ! -iname ".local-chromium"); do rm -rf ${i%%/}; done
Das sollte das eigentlich alles bereinigen.
-
@thomas-braun
Das habe ich jedes mal ausgeführt. Muss das evtl als sudo ausgeführt werden? -
@funkytown sagte in iobroker restore 0 funktioniert nicht:
Muss das evtl als sudo ausgeführt werden?
Wenn du die Rechte nicht zerschossen hast nicht.
iobroker stop iobroker fix
-
@thomas-braun
eben wird das erste mal was ausgegeben! Muss wohl tatsächlich unter sudo ausgeführt werden!... rm: das Entfernen von '/opt/iobroker/node_modules/.sharp-I3mcBL1h/vendor/8.12.2/linux-armv7/include/zconf.h' ist nicht möglich: Keine Berechtigung rm: das Entfernen von '/opt/iobroker/node_modules/.sharp-I3mcBL1h/vendor/8.12.2/linux-armv7/include/tiff.h' ist nicht möglich: Keine Berechtigung rm: das Entfernen von '/opt/iobroker/node_modules/.sharp-I3mcBL1h/vendor/8.12.2/linux-armv7/include/expat.h' ist nicht möglich: Keine Berechtigung rm: das Entfernen von '/opt/iobroker/node_modules/.sharp-I3mcBL1h/vendor/8.12.2/linux-armv7/include/webp/mux.h' ist nicht möglich: Keine Berechtigung rm: das Entfernen von '/opt/iobroker/node_modules/.sharp-I3mcBL1h/vendor/8.12.2/linux-armv7/include/webp/demux.h' ist nicht möglich: Keine Berechtigung rm: das Entfernen von '/opt/iobroker/node_modules/.sharp-I3mcBL1h/vendor/8.12.2/linux-armv7/include/webp/decode.h' ist nicht möglich: Keine Berechtigung rm: das Entfernen von '/opt/iobroker/node_modules/.sharp-I3mcBL1h/vendor/8.12.2/linux-armv7/include/webp/mux_types.h' ist nicht möglich: Keine Berechtigung rm: das Entfernen von '/opt/iobroker/node_modules/.sharp-I3mcBL1h/vendor/8.12.2/linux-armv7/include/webp/types.h' ist nicht möglich: Keine Berechtigung rm: das Entfernen von '/opt/iobroker/node_modules/.sharp-I3mcBL1h/vendor/8.12.2/linux-armv7/include/webp/encode.h' ist nicht möglich: Keine Berechtigung rm: das Entfernen von '/opt/iobroker/node_modules/.sharp-I3mcBL1h/vendor/8.12.2/linux-armv7/include/pnglibconf.h' ist nicht möglich: Keine Berechtigung rm: das Entfernen von '/opt/iobroker/node_modules/.sharp-I3mcBL1h/vendor/8.12.2/linux-armv7/include/ffi.h' ist nicht möglich: Keine Berechtigung rm: das Entfernen von '/opt/iobroker/node_modules/.sharp-I3mcBL1h/vendor/8.12.2/linux-armv7/include/lcms2.h' ist nicht möglich: Keine Berechtigung rm: das Entfernen von '/opt/iobroker/node_modules/.sharp-I3mcBL1h/vendor/8.12.2/linux-armv7/lib/libvips-cpp.so.42' ist nicht möglich: Keine Berechtigung rm: das Entfernen von '/opt/iobroker/node_modules/.sharp-I3mcBL1h/vendor/8.12.2/linux-armv7/lib/glib-2.0/include/glibconfig.h' ist nicht möglich: Keine Berechtigung ...
-
@funkytown sagte in iobroker restore 0 funktioniert nicht:
ist nicht möglich: Keine Berechtigung
Da dürftest du mal als root / mit sudo hantiert haben.
iobroker fix
ausgeführt? -
@thomas-braun
kann ich jetzt mit Sicherheit nicht mehr sagen. Aber ja, das könnte schon bei den vielen Versuchen den Fehler zu beheben in der Vergangenheit passiert sein. -
Dann die Version für Erwachsene:
for i in $(find /opt/iobroker/node_modules -type d -iname ".*-????????" ! -iname ".local-chromium"); do sudo rm -rf ${i%%/}; done
-
@thomas-braun
kann immer noch nicht zugreifen!markus@rpi:~ $ iobroker fix library: loaded Library version=2022-06-15 ========================================================================== Welcome to the ioBroker installation fixer! Script version: 2022-06-03 You might need to enter your password a couple of times. ========================================================================== ========================================================================== Installing prerequisites (1/3) ========================================================================== [sudo] Passwort für markus: OK:1 http://raspbian.raspberrypi.org/raspbian bullseye InRelease OK:2 http://archive.raspberrypi.org/debian bullseye InRelease OK:3 https://dl.yarnpkg.com/debian stable InRelease OK:4 https://deb.nodesource.com/node_16.x bullseye InRelease Paketlisten werden gelesen… Fertig Installed gcc-c++ ========================================================================== Checking ioBroker user and directory permissions (2/3) ========================================================================== Created /etc/sudoers.d/iobroker Fixing directory permissions... ========================================================================== Checking autostart (3/3) ========================================================================== Enabling autostart... Autostart enabled! ========================================================================== Your installation was fixed successfully Run iobroker start to start ioBroker again! ========================================================================== markus@rpi:~ $ iobroker start markus@rpi:~ $ for i in $(find /opt/iobroker/node_modules -type d -iname ".*-????????" ! -iname ".local-chromium"); do rm -rf ${i%%/}; done markus@rpi:~ $ iobroker upgrade admin --debug Adapter "admin" is up to date. markus@rpi:~ $