NEWS
Iobroker backitup error.. Wo liegt das problem
-
Hallo,
einige Access Permissions und Konfigurationsfehler habe ich gefunden und ausgebessert.2021-03-23 20:46:25.638 - error: backitup.0 (5704) [iobroker] error on backup process: Error when executing script "zigbee": ReferenceError: timer is not defined Please check the config of backitup and execute "iobroker fix" 2021-03-23 20:46:25.807 - error: backitup.0 (5704) [iobroker] Error: EACCES: permission denied, mkdir '/opt/iobroker/backups/grafana_tmp/dashboards' 2021-03-23 20:46:25.811 - error: backitup.0 (5704) Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). 2021-03-23 20:46:25.811 - error: backitup.0 (5704) unhandled promise rejection: callback is not a function 2021-03-23 20:46:25.813 - error: backitup.0 (5704) TypeError: callback is not a function at Object.command (/opt/iobroker/node_modules/iobroker.backitup/lib/scripts/36-grafana.js:270:9) at Immediate.executeScripts (/opt/iobroker/node_modules/iobroker.backitup/lib/execute.js:359:26) at processImmediate (internal/timers.js:463:21) 2021-03-23 20:46:25.814 - error: backitup.0 (5704) callback is not a function 2021-03-23 20:46:25.836 - info: backitup.0 (5704) cleaned everything up... 2021-03-23 20:46:25.837 - info: backitup.0 (5704) terminating 2021-03-23 20:46:25.839 - warn: backitup.0 (5704) Terminated (UNCAUGHT_EXCEPTION): Without reason 2021-03-23 20:46:26.485 - error: host.broker1 Caught by controller[0]: This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason: 2021-03-23 20:46:26.486 - error: host.broker1 Caught by controller[1]: TypeError: callback is not a function 2021-03-23 20:46:26.486 - error: host.broker1 Caught by controller[1]: at Object.command (/opt/iobroker/node_modules/iobroker.backitup/lib/scripts/36-grafana.js:270:9) 2021-03-23 20:46:26.487 - error: host.broker1 Caught by controller[1]: at Immediate.executeScripts (/opt/iobroker/node_modules/iobroker.backitup/lib/execute.js:359:26) 2021-03-23 20:46:26.487 - error: host.broker1 Caught by controller[1]: at processImmediate (internal/timers.js:463:21) 2021-03-23 20:46:26.488 - error: host.broker1 instance system.adapter.backitup.0 terminated with code 6 (UNCAUGHT_EXCEPTION) 2021-03-23 20:46:26.488 - info: host.broker1 Restart adapter system.adapter.backitup.0 because enabled 2021-03-23 20:46:56.527 - info: host.broker1 instance system.adapter.backitup.0 started with pid 6348 2021-03-23 20:46:59.926 - info: backitup.0 (6348) starting. Version 2.0.5 in /opt/iobroker/node_modules/iobroker.backitup, node: v12.21.0, js-controller: 3.2.16 2021-03-23 20:47:00.019 - info: backitup.0 (6348) [iobroker] backup was activated at 02:40 every 1 day(s)
Könnt ihr mir bitte sagen was hier schief läuft?
welcher timer im zigbee soll das sein
Erste Zeile!
Thx -
@fred-freund sagte in Iobroker backitup error.. Wo liegt das problem:
iobroker fix
mal ausgeführt? Ansonsten bräuchte man wohl auch die Konfiguration der einzelnen Backupvarianten, denke ich.
-
@thomas-braun
Jetzt startet der iobroker 8081nicht mehr, node red lauft aber auf 1880..
1882 läuft auch nur der Admin nicht..
Denke habe den unabsichtlich deaktiviert.. Wie drehe ich den wieder auf? -
Was haste denn nun gemacht?
iobroker status iobroker list adapters iobroker list instances
-
@thomas-braun
Gefunden
iobroker start adminIobroker fix sagte soll alle adapter disable setzen.. Irrtümlich admin erwischt
als erstes. LETZTES!Man soll nicht Sowas mit einem Tablett machen.
-
@fred-freund Der fixer sagt, man soll den kompletten iobroker stoppen, nicht nur die Instanzen. Jedenfalls ist das damit gemeint...
iobroker stop
ist dein Freund.
-
io.javascript.0 io.mqtt.0 io.ping.0 io.rpi2.0 io.web.0 io.zigbee.0 io.zwave2.0 Please stop them first and try again!
Z. Bsp.
Soll jetzt backitup neu installieren nochmal fix...
Kann in opt/iobroker/backup keine Ordner anlegenOK bis auf
Started iobroker ... [DEBUG] [mount] - mount successfully completed [DEBUG] [mount] - done [DEBUG] [iobroker] - host.broker1 1195 states saved [DEBUG] [iobroker] - host.broker1 1570 objects saved [ERROR] [iobroker] - host.broker1 Cannot pack directory /opt/iobroker/node_modules/iobroker.js-controller/tmp/backup: Error: EACCES: permission denied, open '/opt/iobroker/backups/iobroker_2021_03_23-22_18_13_backupiobroker.tar.gz' [ERROR] [iobroker] - host.broker1 Cannot pack directory /opt/iobroker/node_modules/iobroker.js-controller/tmp/backup: Error [ERR_STREAM_DESTROYED]: Cannot call write after a stream was destroyed
-
@fred-freund sagte in Iobroker backitup error.. Wo liegt das problem:
ls -la /opt/iobroker/backups/
-
drwxrwxr-x+ 2 iobroker iobroker 4096 Mar 23 20:32 . drwxrwxr-x+ 6 iobroker iobroker 4096 Mar 23 21:57 .. -rw-rwxr--+ 1 iobroker iobroker 3339610 Mar 9 21:18 2021_03_09-21_18_54_backupiobroker.tar.gz -rw-rwxr--+ 1 iobroker iobroker 0 Mar 23 19:58 historyDB_2021_03_23-19_58_43_backupiobroker.tar.gz -rw-rwxr--+ 1 iobroker iobroker 0 Mar 23 20:04 historyDB_2021_03_23-20_04_53_backupiobroker.tar.gz -rw-rwxr--+ 1 iobroker iobroker 0 Mar 23 20:06 historyDB_2021_03_23-20_06_28_backupiobroker.tar.gz -rw-rwxr--+ 1 iobroker iobroker 0 Mar 23 20:31 historyDB_2021_03_23-20_31_53_backupiobroker.tar.gz -rw-rwxr--+ 1 iobroker iobroker 0 Mar 23 20:32 historyDB_2021_03_23-20_32_47_backupiobroker.tar.gz -rw-rwxr--+ 1 iobroker iobroker 991 Mar 23 19:58 influxDB_2021_03_23-19_58_42_backupiobroker.tar.gz -rw-rwxr--+ 1 iobroker iobroker 991 Mar 23 20:04 influxDB_2021_03_23-20_04_52_Iobroker1_backupiobroker.tar.gz -rw-rwxr--+ 1 iobroker iobroker 990 Mar 23 20:06 influxDB_2021_03_23-20_06_27_Iobroker1_backupiobroker.tar.gz -rw-rwxr--+ 1 iobroker iobroker 989 Mar 23 20:31 influxDB_2021_03_23-20_31_52_backupiobroker.tar.gz -rw-rwxr--+ 1 iobroker iobroker 990 Mar 23 20:32 influxDB_2021_03_23-20_32_46_backupiobroker.tar.gz -rw-rwxr--+ 1 iobroker iobroker 3516990 Mar 23 19:58 iobroker_2021_03_23-19_58_36_backupiobroker.tar.gz -rw-rwxr--+ 1 iobroker iobroker 3517122 Mar 23 20:04 iobroker_2021_03_23-20_04_46_Iobroker1_backupiobroker.tar.gz -rw-rwxr--+ 1 iobroker iobroker 3517072 Mar 23 20:06 iobroker_2021_03_23-20_06_20_Iobroker1_backupiobroker.tar.gz -rw-rwxr--+ 1 iobroker iobroker 3517129 Mar 23 20:31 iobroker_2021_03_23-20_31_45_backupiobroker.tar.gz -rw-rwxr--+ 1 iobroker iobroker 3517069 Mar 23 20:32 iobroker_2021_03_23-20_32_40_backupiobroker.tar.gz -rw-rwxr--+ 1 iobroker iobroker 83731 Mar 23 19:58 zigbee.0_2021_03_23-19_58_43_backupiobroker.tar.gz -rw-rwxr--+ 1 iobroker iobroker 83731 Mar 23 20:04 zigbee.0_2021_03_23-20_04_53_backupiobroker.tar.gz -rw-rwxr--+ 1 iobroker iobroker 83731 Mar 23 20:06 zigbee.0_2021_03_23-20_06_28_backupiobroker.tar.gz -rw-rwxr--+ 1 iobroker iobroker 83736 Mar 23 20:31 zigbee.0_2021_03_23-20_31_53_backupiobroker.tar.gz -rw-rwxr--+ 1 iobroker iobroker 83736 Mar 23 20:32 zigbee.0_2021_03_23-20_32_47_backupiobroker.tar.gz -rw-rwxr--+ 1 iobroker iobroker 1669 Mar 23 19:58 zigbee.1_2021_03_23-19_58_43_backupiobroker.tar.gz -rw-rwxr--+ 1 iobroker iobroker 1669 Mar 23 20:04 zigbee.1_2021_03_23-20_04_53_backupiobroker.tar.gz -rw-rwxr--+ 1 iobroker iobroker 1669 Mar 23 20:06 zigbee.1_2021_03_23-20_06_28_backupiobroker.tar.gz -rw-rwxr--+ 1 iobroker iobroker 1669 Mar 23 20:31 zigbee.1_2021_03_23-20_31_53_backupiobroker.tar.gz -rw-rwxr--+ 1 iobroker iobroker 1669 Mar 23 20:32 zigbee.1_2021_03_23-20_32_47_backupiobroker.tar.gz -rw-rwxr--+ 1 iobroker iobroker 0 Mar 23 19:58 zigbee.2_2021_03_23-19_58_43_backupiobroker.tar.gz -rw-rwxr--+ 1 iobroker iobroker 0 Mar 23 20:04 zigbee.2_2021_03_23-20_04_53_backupiobroker.tar.gz -rw-rwxr--+ 1 iobroker iobroker 0 Mar 23 20:06 zigbee.2_2021_03_23-20_06_28_backupiobroker.tar.gz -rw-rwxr--+ 1 iobroker iobroker 0 Mar 23 20:31 zigbee.2_2021_03_23-20_31_53_backupiobroker.tar.gz -rw-rwxr--+ 1 iobroker iobroker 0 Mar 23 20:32 zigbee.2_2021_03_23-20_32_47_backupiobroker.tar.gz
Ist da jetzt auch Node red backed up, Dh. Die Flows???
Danke! -
Die Datei gibt es ja auch gar nicht. Kann es sein, dass du den Backup-Vorgang im laufenden Betrieb abgeschossen hast?
-
@thomas-braun eigentlich habe ich Nas gewählt.
Hier das Nas verzeichnis..
Ein altes ist manuell gemacht.. Auch die flows.. Etc.-rwxr--r-- 1 1000 1000 3339610 Mär 9 21:25 2021_03_09-21_18_54_backupiobroker.tar.gz -rwxr--r-- 1 1000 1000 697099 Nov 28 15:27 CC2531ZNP-Prod.hex -rwxr--r-- 1 1000 1000 18318 Mär 9 21:30 flows.json drwxr-xr-x 2 1000 1000 4096 Mär 23 22:22 grafana_tmp -rw-r--r-- 1 1000 1000 0 Mär 23 20:36 historyDB_2021_03_23-20_36_04_backupiobroker.tar.gz -rw-r--r-- 1 1000 1000 0 Mär 23 20:46 historyDB_2021_03_23-20_46_25_backupiobroker.tar.gz -rw-r--r-- 1 1000 1000 0 Mär 23 21:59 historyDB_2021_03_23-21_59_26_backupiobroker.tar.gz -rw-r--r-- 1 1000 1000 0 Mär 23 22:02 historyDB_2021_03_23-22_02_05_backupiobroker.tar.gz -rwxr--r-- 1 1000 1000 0 Mär 23 22:05 historyDB_2021_03_23-22_05_32_backupiobroker.tar.gz -rwxr--r-- 1 1000 1000 977 Mär 23 22:05 influxDB_2021_03_23-22_05_31_backupiobroker.tar.gz -rw-r--r-- 1 1000 1000 0 Mär 23 20:36 iobroker_2021_03_23-20_35_58_backupiobroker.tar.gz -rw-r--r-- 1 1000 1000 0 Mär 23 20:46 iobroker_2021_03_23-20_46_19_backupiobroker.tar.gz -rw-r--r-- 1 1000 1000 0 Mär 23 21:59 iobroker_2021_03_23-21_59_20_backupiobroker.tar.gz -rw-r--r-- 1 1000 1000 0 Mär 23 22:02 iobroker_2021_03_23-22_01_59_backupiobroker.tar.gz -rwxr--r-- 1 1000 1000 3520194 Mär 23 22:05 iobroker_2021_03_23-22_05_24_backupiobroker.tar.gz -rw-r--r-- 1 1000 1000 0 Mär 23 22:16 iobroker_2021_03_23-22_16_39_backupiobroker.tar.gz -rw-r--r-- 1 1000 1000 0 Mär 23 22:18 iobroker_2021_03_23-22_18_13_backupiobroker.tar.gz -rw-r--r-- 1 1000 1000 0 Mär 23 22:22 iobroker_2021_03_23-22_22_44_backupiobroker.tar.gz -rwxr--r-- 1 1000 1000 585004 Mär 13 21:29 iobroker.current.log -rwxrwxr--+ 1 1000 1000 92404 Mär 14 13:43 iobroker.rtf -rw-rw-r-- 1 1000 1000 0 Mär 23 22:37 txt.txt -rw-r--r-- 1 1000 1000 0 Mär 23 20:36 zigbee.0_2021_03_23-20_36_04_backupiobroker.tar.gz -rw-r--r-- 1 1000 1000 0 Mär 23 20:46 zigbee.0_2021_03_23-20_46_25_backupiobroker.tar.gz -rw-r--r-- 1 1000 1000 0 Mär 23 21:59 zigbee.0_2021_03_23-21_59_27_backupiobroker.tar.gz -rw-r--r-- 1 1000 1000 0 Mär 23 22:02 zigbee.0_2021_03_23-22_02_05_backupiobroker.tar.gz -rw-r--r-- 1 1000 1000 0 Mär 23 20:36 zigbee.1_2021_03_23-20_36_04_backupiobroker.tar.gz -rw-r--r-- 1 1000 1000 0 Mär 23 20:46 zigbee.1_2021_03_23-20_46_25_backupiobroker.tar.gz -rw-r--r-- 1 1000 1000 0 Mär 23 21:59 zigbee.1_2021_03_23-21_59_27_backupiobroker.tar.gz -rw-r--r-- 1 1000 1000 0 Mär 23 22:02 zigbee.1_2021_03_23-22_02_05_backupiobroker.tar.gz -rw-r--r-- 1 1000 1000 0 Mär 23 20:36 zigbee.2_2021_03_23-20_36_04_backupiobroker.tar.gz -rw-r--r-- 1 1000 1000 0 Mär 23 20:46 zigbee.2_2021_03_23-20_46_25_backupiobroker.tar.gz -rw-r--r-- 1 1000 1000 0 Mär 23 21:59 zigbee.2_2021_03_23-21_59_27_backupiobroker.tar.gz -rw-r--r-- 1 1000 1000 0 Mär 23 22:02 zigbee.2_2021_03_23-22_02_05_backupiobroker.tar.gz
-
@fred-freund Der user iobroker hat i.d.R. nicht die UID 1000
cat /etc/passwd | grep iobroker
-
pi@broker1:~ $ cat /etc/passwd | grep iobroker iobroker:x:1001:1001::/home/iobroker:/usr/sbin/nologin
Raspi! Aber am Nas gibt's den smb User für den share!
-
@fred-freund Aber der hat da eine andere UID.
-
@thomas-braun
Auszug ist oben!Nein abgeschossen hab ich den Vorgang nicht..
Werd mal Nas wegnehmen und schauen was er lokal macht... Oder macht er das trotzdem?
Braucht man das Javascript bkup?
Auch Ohne Javascript..
DEBUG] [iobroker] - host.broker1 1570 objects saved [ERROR] [iobroker] - host.broker1 Cannot pack directory /opt/iobroker/node_modules/iobroker.js-controller/tmp/backup: Error: EACCES: permission denied, open '/opt/iobroker/backups/iobroker_2021_03_23-23_09_27_backupiobroker.tar.gz' [ERROR] [iobroker] - host.broker1 Cannot pack directory /opt/iobroker/node_modules/iobroker.js-controller/tmp/backup: Error [ERR_STREAM_DESTROYED]: Cannot call write after a stream was destroyed [DEBUG] [iobroker] - done [DEBUG] [influxDB] - Start InfluxDB Backup ... [DEBUG] [influxDB] - InfluxDB Backup tmp directory created [DEBUG] [influxDB] - Try deleting the InfluxDB tmp directory [DEBUG] [influxDB] - InfluxDB tmp directory was successfully deleted [ERROR] [influxDB] - [IGNORED] Error: Command failed: influxd backup -portable -database iobroker "/opt/iobroker/backups/influxDB_2021_03_23-23_09_32_backupiobroker" backup: open temp file: open /opt/iobroker/backups/influxDB_2021_03_23-23_09_32_backupiobroker/meta.00.pending: permission denied
-
@fred-freund Versuche mal bitte die Version 2.1.0
-
DEBUG] [iobroker] - host.broker1 1195 states saved [DEBUG] [iobroker] - host.broker1 1570 objects saved [ERROR] [iobroker] - host.broker1 Cannot pack directory /opt/iobroker/node_modules/iobroker.js-controller/tmp/backup: Error: EACCES: permission denied, open '/opt/iobroker/backups/iobroker_2021_03_24-22_45_57_backupiobroker.tar.gz' [DEBUG] [iobroker] - done [DEBUG] [zigbee] - found zigbee database: zigbee.0,zigbee.1,zigbee.2 [DEBUG] [zigbee] - done [ERROR] [zigbee] - [IGNORED] Error: EACCES: permission denied, open '/opt/iobroker/backups/zigbee.0_2021_03_24-22_46_03_backupiobroker.tar.gz' [DEBUG] [cifs] - Copy iobroker_2021_03_24-22_45_57_backupiobroker.tar.gz... [DEBUG] [cifs] - Copy zigbee.0_2021_03_24-22_46_03_backupiobroker.tar.gz... [DEBUG] [cifs] - Copy zigbee.1_2021_03_24-22_46_03_backupiobroker.tar.gz... [DEBUG] [cifs] - Copy zigbee.2_2021_03_24-22_46_03_backupiobroker.tar.gz... [DEBUG] [cifs] - done [DEBUG] [cifs] start with {"mountType":"CIFS","type":"storage","source":"local","mount":"//192.168.1.22","debugging":true,"fileDir":"/opt/iobroker/node_modules/iobroker.backitup","wakeOnLAN":false,"macAd":"20:DE:20:DE:20:DE","wolTime":"25","smb":"vers=1.0","sudo":true,"cifsDomain":"","deleteOldBackup":true,"ownDir":false,"dir":"/home/iobroker","dirMinimal":"sharename/backupDir","user":"user1","pass":"****","backupDir":"/opt/iobroker/backups","deleteBackupAfter":0} [ERROR] [clean] - Backup files not deleted from /opt/iobroker/backups because some errors. [DEBUG] [clean] - done [DEBUG] [historyHTML] - new history html values created [DEBUG] [historyHTML] - done [DEBUG] [historyJSON] - new history json values created [DEBUG] [historyJSON] - done [DEBUG] [historyHTML] start with {"type":"creator","time":"02:40","debugging":true,
Das Backup hat wieder Größe 0
Der Ordner am smb share
drwxrwxrwx 3 1000 1000 4096 Mär 24 22:46 iobroker rw-r--r-- 1 1000 1000 0 Mär 24 22:39 zigbee.1_2021_03_24-22_39_23_backupiobroker.tar.gz
-
@fred-freund
Dann hast du ein Rechteproblem.
Hast du iobroker fix bereits ausgeführt? -
@simatec
Ja gestern 2x
Mach ich jetzt auch nochmal... Je nachdem welche smb Version ich verwende ändert sich auch die Error Meldung..2021-03-24 23:00:26.538 - error: backitup.0 (27502) [iobroker] Backup folder not created: Error: EPERM: operation not permitted, chmod '/opt/iobroker/backups'Please reinstall backitup and run "iobroker fix"!!
Smb 3.1.1
Fix hat nix gebracht...
-
@fred-freund
Bitte vollständigen Log posten