NEWS
[gelöst]Backup & Restore klappt nicht
-
und?
@DirtyAtze sagte in [gelöst]Backup & Restore klappt nicht:
Open http://192.168.178.79:8081 in a browser and start configuring!
-
Das sagt der fix:
pi@raspberrypi:~ $ curl -sL https://iobroker.net/fix.sh | bash - ========================================================================== Welcome to the ioBroker installation fixer! Script version: 2019-07-03 You might need to enter your password a couple of times. ========================================================================== ========================================================================== Installing prerequisites (1/3) ========================================================================== ========================================================================== Checking ioBroker user and directory permissions (2/3) ========================================================================== Created /etc/sudoers.d/iobroker Fixing directory permissions... ========================================================================== Checking autostart (3/3) ========================================================================== bash: Zeile 667: /opt/iobroker/iobroker: Keine Berechtigung chmod: Zugriff auf '/opt/iobroker/iobroker' nicht möglich: Datei oder Verzeichnis nicht gefunden chown: Zugriff auf '/opt/iobroker/iobroker' nicht möglich: Datei oder Verzeichnis nicht gefunden Enabling autostart... Autostart enabled! ========================================================================== Your installation was fixed successfully Run iobroker start to start ioBroker again! ========================================================================== pi@raspberrypi:~ $
ist das in Ordnung?
-
@DirtyAtze sagte in [gelöst]Backup & Restore klappt nicht:
Das sagt der fix:
ein fix sollte jetzt nicht mehr nötig sein, aber:
@DirtyAtze sagte in [gelöst]Backup & Restore klappt nicht:
bash: Zeile 667: /opt/iobroker/iobroker: Keine Berechtigung
chmod: Zugriff auf '/opt/iobroker/iobroker' nicht möglich: Datei oder Verzeichnis nicht gefunden
chown: Zugriff auf '/opt/iobroker/iobroker' nicht möglich: Datei oder Verzeichnis nicht gefundendas muss sich @AlCalzone ansehen.
-
Und da ist auch schon der "trim fehler":
pi@raspberrypi:~ $ iobroker status iobroker is running Objects type: file States type: file pi@raspberrypi:~ $ iobroker stop pi@raspberrypi:~ $ iobroker restore Please specify one of the backup names: minimal_2019_07_07-20_35_35_backupiobroker.tar.gz or minimal_2019_07_07-20_35_35 or 0 minimal_2019_07_05-09_15_24_std_backupiobroker.tar.gz or minimal_2019_07_05-09_15_24_std or 1 pi@raspberrypi:~ $ iobroker restore 1 /opt/iobroker/node_modules/iobroker.js-controller/lib/setup/setupBackup.js:568 if (parseInt(name.trim(), 10).toString() === name.trim().toString()) { ^ TypeError: name.trim is not a function at BackupRestore.restoreBackup (/opt/iobroker/node_modules/iobroker.js-controller/lib/setup/setupBackup.js:568:27) at dbConnect (/opt/iobroker/node_modules/iobroker.js-controller/lib/setup.js:1474:28) at Object.connected (/opt/iobroker/node_modules/iobroker.js-controller/lib/setup.js:3087:29) at Immediate.<anonymous> (/opt/iobroker/node_modules/iobroker.js-controller/lib/states/statesInMemServer.js:184:26) at runCallback (timers.js:705:18) at tryOnImmediate (timers.js:676:5) at processImmediate (timers.js:658:5) pi@raspberrypi:~ $
-
OK, nach änder der backupSetup.js ist es jetzt tatsächlich durchgelaufen!
dann mal vielen Dank für die Unterstützung!!!
-
-
Werd ich heute Abend mal schauen.
-
Sorry, etwas verspätet...
-
@DirtyAtze Ok danke ich hab ne Idee woran es liegt. Kannst du bitte noch die Ausgabe von folgendem Befehl posten?
sudo getfacl /opt/iobroker/iobroker
-
Last login: Sun Jul 14 11:14:57 2019 from 192.168.178.12 pi@raspberrypi:~ $ sudo getfacl /opt/iobroker/iobroker getfacl: Entferne führende '/' von absoluten Pfadnamen # file: opt/iobroker/iobroker # owner: iobroker # group: iobroker user::rwx group::r-x group:iobroker:rwx #effective:r-x mask::r-x other::r-x pi@raspberrypi:~ $