NEWS
Kann kein Backup einspielen
-
Hallo zusammen,
leider kann ich kein Backup nach einer ioBroker Neuinstallation gerade einspielen.
Da ist wohl was wegen js-controller version daneben:pi@raspberrypi:~ $ iob restore 0 host.raspberrypi Using backup file 2022_05_25-11_04_11_backupiobroker.tar.gz iobroker controller daemon is not running host.raspberrypi OK. The current version of js-controller differs from the version in the backup. The js-controller version of the backup can not be restored automatically. To restore the js-controller version of the backup, execute "npm i iobroker.js-controller@3.3.21 --production" inside your ioBroker directory If you really want to restore the backup with the current installed js-controller, execute the restore command with the --force flaghabe ich auch getan, geht aber noch immer nicht:
pi@raspberrypi:~ $ npm i iobroker.js-controller@3.3.21 --production npm WARN config production Use `--omit=dev` instead. added 1 package, removed 27 packages, changed 18 packages, and audited 284 packages in 22s 14 packages are looking for funding run `npm fund` for details 4 vulnerabilities (3 moderate, 1 high) To address all issues (including breaking changes), run: npm audit fix --force Run `npm audit` for details. pi@raspberrypi:~ $ iob restore 0 host.raspberrypi Using backup file 2022_05_25-11_04_11_backupiobroker.tar.gz iobroker controller daemon is not running host.raspberrypi OK. The current version of js-controller differs from the version in the backup. The js-controller version of the backup can not be restored automatically. To restore the js-controller version of the backup, execute "npm i iobroker.js-controller@3.3.21 --production" inside your ioBroker directory If you really want to restore the backup with the current installed js-controller, execute the restore command with the --force flag pi@raspberrypi:~ $wenn ich
npm audit fix --forceausführe macht er wieder ein Update auf js-controller 4
@hg6806 sagte in Kann kein Backup einspielen:
npm audit fix --force
Nie machen! Schon gerade gar nicht per force!
pi@raspberrypi:~ $ npm i iobroker.js-controller@3.3.21
Da stehst du im falschen Verzeichnis.
Du musst nach /opt/iobroker wechseln.cd /opt/iobroker sudo -H -u iobroker npm install iobroker.js-controller@3.3.21 -
@hg6806 sagte in Kann kein Backup einspielen:
npm audit fix --force
Nie machen! Schon gerade gar nicht per force!
pi@raspberrypi:~ $ npm i iobroker.js-controller@3.3.21
Da stehst du im falschen Verzeichnis.
Du musst nach /opt/iobroker wechseln.cd /opt/iobroker sudo -H -u iobroker npm install iobroker.js-controller@3.3.21@thomas-braun sagte in Kann kein Backup einspielen:
Du musst nach /opt/iobroker wechseln.
Hatte ich zwar auf dem Schirm, jedoch wurde ja trotzdem was ausgeführt, deshalb dachte ich das mit dem Verzeichnis ist ok.
@thomas-braun sagte in Kann kein Backup einspielen:
npm audit fix --force
Das stand ja auch in der Meldung, deshalb hatte ich das ausgeführt.
Läuft jetzt! Danke!
-
iobroker lief nicht, also habe ich nochmal alles neu installiert, also den Pi neu aufgesetzt.
Jetzt kommt folgende Meldung:
pi@raspberrypi:/opt/iobroker $ npm i iobroker.js-controller@3.3.21 --production npm WARN config production Use `--omit=dev` instead. npm ERR! code EACCES npm ERR! syscall rename npm ERR! path /opt/iobroker/node_modules/alcalzone-shared npm ERR! dest /opt/iobroker/node_modules/.alcalzone-shared-FgX40TmF npm ERR! errno -13 npm ERR! Error: EACCES: permission denied, rename '/opt/iobroker/node_modules/al calzone-shared' -> '/opt/iobroker/node_modules/.alcalzone-shared-FgX40TmF' npm ERR! [Error: EACCES: permission denied, rename '/opt/iobroker/node_modules/ alcalzone-shared' -> '/opt/iobroker/node_modules/.alcalzone-shared-FgX40TmF'] { npm ERR! errno: -13, npm ERR! code: 'EACCES', npm ERR! syscall: 'rename', npm ERR! path: '/opt/iobroker/node_modules/alcalzone-shared', npm ERR! dest: '/opt/iobroker/node_modules/.alcalzone-shared-FgX40TmF' npm ERR! } npm ERR! npm ERR! The operation was rejected by your operating system. npm ERR! It is likely you do not have the permissions to access this file as the current user npm ERR! npm ERR! If you believe this might be a permissions issue, please double-check t he npm ERR! permissions of the file and its containing directories, or try running npm ERR! the command again as root/Administrator. npm ERR! A complete log of this run can be found in: npm ERR! /home/pi/.npm/_logs/2022-06-30T09_48_50_758Z-debug-0.log -
@thomas-braun sagte in Kann kein Backup einspielen:
Du musst nach /opt/iobroker wechseln.
Hatte ich zwar auf dem Schirm, jedoch wurde ja trotzdem was ausgeführt, deshalb dachte ich das mit dem Verzeichnis ist ok.
@thomas-braun sagte in Kann kein Backup einspielen:
npm audit fix --force
Das stand ja auch in der Meldung, deshalb hatte ich das ausgeführt.
Läuft jetzt! Danke!
@hg6806 sagte in Kann kein Backup einspielen:
jedoch wurde ja trotzdem was ausgeführt
Natürlich. Aber es liegt jetzt im home vom pi herum.
-
iobroker lief nicht, also habe ich nochmal alles neu installiert, also den Pi neu aufgesetzt.
Jetzt kommt folgende Meldung:
pi@raspberrypi:/opt/iobroker $ npm i iobroker.js-controller@3.3.21 --production npm WARN config production Use `--omit=dev` instead. npm ERR! code EACCES npm ERR! syscall rename npm ERR! path /opt/iobroker/node_modules/alcalzone-shared npm ERR! dest /opt/iobroker/node_modules/.alcalzone-shared-FgX40TmF npm ERR! errno -13 npm ERR! Error: EACCES: permission denied, rename '/opt/iobroker/node_modules/al calzone-shared' -> '/opt/iobroker/node_modules/.alcalzone-shared-FgX40TmF' npm ERR! [Error: EACCES: permission denied, rename '/opt/iobroker/node_modules/ alcalzone-shared' -> '/opt/iobroker/node_modules/.alcalzone-shared-FgX40TmF'] { npm ERR! errno: -13, npm ERR! code: 'EACCES', npm ERR! syscall: 'rename', npm ERR! path: '/opt/iobroker/node_modules/alcalzone-shared', npm ERR! dest: '/opt/iobroker/node_modules/.alcalzone-shared-FgX40TmF' npm ERR! } npm ERR! npm ERR! The operation was rejected by your operating system. npm ERR! It is likely you do not have the permissions to access this file as the current user npm ERR! npm ERR! If you believe this might be a permissions issue, please double-check t he npm ERR! permissions of the file and its containing directories, or try running npm ERR! the command again as root/Administrator. npm ERR! A complete log of this run can be found in: npm ERR! /home/pi/.npm/_logs/2022-06-30T09_48_50_758Z-debug-0.log@hg6806 sagte in Kann kein Backup einspielen:
/opt/iobroker/node_modules/.alcalzone-shared-FgX40TmF
Lösch das:
sudo -u iobroker rm /opt/iobroker/node_modules/.alcalzone-shared-FgX40TmF -
@hg6806 sagte in Kann kein Backup einspielen:
/opt/iobroker/node_modules/.alcalzone-shared-FgX40TmF
Lösch das:
sudo -u iobroker rm /opt/iobroker/node_modules/.alcalzone-shared-FgX40TmF@thomas-braun sagte in Kann kein Backup einspielen:
sudo -u iobroker rm /opt/iobroker/node_modules/.alcalzone-shared-FgX40TmF
pi@raspberrypi:/opt/iobroker $ sudo -u iobroker rm /opt/iobroker/node_modules/.alcalzone-shared-FgX40TmF rm: cannot remove '/opt/iobroker/node_modules/.alcalzone-shared-FgX40TmF': No such file or directory pi@raspberrypi:/opt/iobroker $ -
iobroker lief nicht, also habe ich nochmal alles neu installiert, also den Pi neu aufgesetzt.
Jetzt kommt folgende Meldung:
pi@raspberrypi:/opt/iobroker $ npm i iobroker.js-controller@3.3.21 --production npm WARN config production Use `--omit=dev` instead. npm ERR! code EACCES npm ERR! syscall rename npm ERR! path /opt/iobroker/node_modules/alcalzone-shared npm ERR! dest /opt/iobroker/node_modules/.alcalzone-shared-FgX40TmF npm ERR! errno -13 npm ERR! Error: EACCES: permission denied, rename '/opt/iobroker/node_modules/al calzone-shared' -> '/opt/iobroker/node_modules/.alcalzone-shared-FgX40TmF' npm ERR! [Error: EACCES: permission denied, rename '/opt/iobroker/node_modules/ alcalzone-shared' -> '/opt/iobroker/node_modules/.alcalzone-shared-FgX40TmF'] { npm ERR! errno: -13, npm ERR! code: 'EACCES', npm ERR! syscall: 'rename', npm ERR! path: '/opt/iobroker/node_modules/alcalzone-shared', npm ERR! dest: '/opt/iobroker/node_modules/.alcalzone-shared-FgX40TmF' npm ERR! } npm ERR! npm ERR! The operation was rejected by your operating system. npm ERR! It is likely you do not have the permissions to access this file as the current user npm ERR! npm ERR! If you believe this might be a permissions issue, please double-check t he npm ERR! permissions of the file and its containing directories, or try running npm ERR! the command again as root/Administrator. npm ERR! A complete log of this run can be found in: npm ERR! /home/pi/.npm/_logs/2022-06-30T09_48_50_758Z-debug-0.logIn /opt/iobroker agiert man besser auch als user iobroker. So
sudo -H -u iobroker npm install iobroker.js-controller@3.3.21 -
In /opt/iobroker agiert man besser auch als user iobroker. So
sudo -H -u iobroker npm install iobroker.js-controller@3.3.21@thomas-braun sagte in Kann kein Backup einspielen:
sudo -H -u iobroker npm install iobroker.js-controller@3.3.21
Das hat zwar funktioniert, das Backup geht noch immer nicht:
pi@raspberrypi:~ $ iob status Cannot read system.config: null (OK when migrating or restoring) iobroker is not running on this host. -
@thomas-braun sagte in Kann kein Backup einspielen:
sudo -H -u iobroker npm install iobroker.js-controller@3.3.21
Nach einem erneuten Restore geht es jetzt.
Ich frage mich nur welchen Fehler ich gemacht habe? Backup von zu alter js-controller-version?
-
@thomas-braun sagte in Kann kein Backup einspielen:
sudo -H -u iobroker npm install iobroker.js-controller@3.3.21
Nach einem erneuten Restore geht es jetzt.
Ich frage mich nur welchen Fehler ich gemacht habe? Backup von zu alter js-controller-version?
Keine Ahnung. Da waren aber halt ein paar 'Ungereimtheiten' bei dir drin.
Hey! Du scheinst an dieser Unterhaltung interessiert zu sein, hast aber noch kein Konto.
Hast du es satt, bei jedem Besuch durch die gleichen Beiträge zu scrollen? Wenn du dich für ein Konto anmeldest, kommst du immer genau dorthin zurück, wo du zuvor warst, und kannst dich über neue Antworten benachrichtigen lassen (entweder per E-Mail oder Push-Benachrichtigung). Du kannst auch Lesezeichen speichern und Beiträge positiv bewerten, um anderen Community-Mitgliedern deine Wertschätzung zu zeigen.
Mit deinem Input könnte dieser Beitrag noch besser werden 💗
Registrieren Anmelden