NEWS
Backup lässt sich nicht zurückspielen
-
Moin,
ich habe auf einem neuen PI3b (der alte hat sich verabschiedet) das ioBroker Image vom 14.04.18 installiert.
Nun wollte ich das Backup zurückspielen und bekomme folgende Fehlermeldung:
pi@ioBroker-RasPi:~ $ cd /opt/iobroker pi@ioBroker-RasPi:/opt/iobroker $ sudo iobroker stop Stopping iobroker controller daemon... iobroker controller daemon stopped. Exit code for "killall.sh": 123 pi@ioBroker-RasPi:/opt/iobroker $ ./iobroker restore 2018_05_02-15_33_51_backupiobroker.tar.gz iobroker controller daemon is not running host.ioBroker-RasPi OK. host.ioBroker-RasPi Clear all objects and states... clean 361 objects... /opt/iobroker/node_modules/iobroker.js-controller/lib/objects/objectsInMemServer.js:2546 callback('Object is marked as non deletable'); ^ TypeError: callback is not a function at Immediate._onImmediate (/opt/iobroker/node_modules/iobroker.js-controller/lib/objects/objectsInMemServer.js:2546:21) at runCallback (timers.js:794:20) at tryOnImmediate (timers.js:752:5) at processImmediate [as _immediateCallback] (timers.js:729:5) pi@ioBroker-RasPi:/opt/iobroker $
Kann mir da jemand weiterhelfen?
EDIT:
Hier hatte jemand das gleiche Problem: https://www.forum.iobroker.net/viewtopic.php?t=13298, ich kann aber die Lösung nicht nachvollziehen.
-
Welche Version des js-Controller?
-
Moin appolon77,
habe vorhin ein iobroker Update gemacht, da wurde das ausgegeben: "Controller "js-controller" : 1.2.3 , installed 1.4.0"
-
Downgrade mal den Controller auf 1.3.0, das Problem hatte ich auch.
cd /opt/iobroker
iobroker stop
npm i iobroker.js-controller@1.3.0
iobroker restore 0
So sollte es eigentlich klappen.
MfG
dna909
-
Moin,
das klappt nicht, wird mit Warn- und Error-Meldungen abgebrochen:
pi@ioBroker-RasPi:~ $ cd /opt/iobroker pi@ioBroker-RasPi:/opt/iobroker $ pi@ioBroker-RasPi:/opt/iobroker $ iobroker stop iobroker controller daemon is not running pi@ioBroker-RasPi:/opt/iobroker $ npm i iobroker.js-controller@1.3.0 npm WARN deprecated localhost.daplie.me-certificates@1.3.5: this package has been deprecated npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/cliui npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/moment npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/winston-syslog npm ERR! path /opt/iobroker/node_modules/cliui npm ERR! code EACCES npm ERR! errno -13 npm ERR! syscall access npm ERR! Error: EACCES: permission denied, access '/opt/iobroker/node_modules/cliui' npm ERR! { Error: EACCES: permission denied, access '/opt/iobroker/node_modules/cliui' npm ERR! stack: 'Error: EACCES: permission denied, access \'/opt/iobroker/node_modules/cliui\'', npm ERR! errno: -13, npm ERR! code: 'EACCES', npm ERR! syscall: 'access', npm ERR! path: '/opt/iobroker/node_modules/cliui' } 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 the npm ERR! permissions of the file and its containing directories, or try running npm ERR! the command again as root/Administrator (though this is not recommended). npm ERR! A complete log of this run can be found in: npm ERR! /home/pi/.npm/_logs/2018-05-03T12_57_47_128Z-debug.log pi@ioBroker-RasPi:/opt/iobroker $
-
Ich wurde statt downgrade lieber update empfehlen.
Und bevor du update auf 1.4.2 machst, setze bitte die permissions:
cd /opt/iobroker chmod 777 * -R
-
Danke @Bluefox, so hat es jetzt funktioniert.
Ob Linux und ich jemals Freunde werden….