NEWS
backitup: Fehler im Log cannot save backup file
-
pi@iomaster:/opt/iobroker $ ls -la /opt/iobroker/iobroker-data/ insgesamt 30952 drwxrwxr-x+ 8 iobroker iobroker 4096 M▒r 4 22:02 . drwxrwxr-x+ 8 iobroker iobroker 4096 M▒r 4 21:19 .. drwxrwxr-x+ 2 iobroker iobroker 4096 M▒r 4 21:21 backup-objects drwxrwxr-x+ 47 iobroker iobroker 4096 Feb 25 13:21 files drwxrwxr-x+ 124 iobroker iobroker 4096 M▒r 4 00:07 history -rw-rwxr--+ 1 iobroker iobroker 5221 Jan 22 00:25 iobroker.json -rw-rwxr--+ 1 iobroker iobroker 3 M▒r 4 21:11 notifications.json -rw-rw-r--+ 1 iobroker iobroker 13019425 M▒r 4 22:01 objects.json -rw-rw-r--+ 1 iobroker iobroker 13019425 M▒r 4 22:01 objects.json.bak drwxrwxr-x+ 2 iobroker iobroker 4096 Okt 26 18:15 plenticore.0 drwxrwxr-x+ 8 iobroker iobroker 4096 Feb 10 16:01 scripte -rw-rw-r--+ 1 iobroker iobroker 2793977 M▒r 4 22:02 states.json -rw-rw-r--+ 1 iobroker iobroker 2793954 M▒r 4 22:02 states.json.bak drwxrwxr-x+ 2 iobroker iobroker 16384 M▒r 4 21:22 zigbee_0
-
@simatec Oooops, was soll mir das sagen?
pi@iomaster:/opt/iobroker $ iobroker backup host.iomaster 14322 states saved host.iomaster 16042 objects saved Objects database error: connect ECONNREFUSED 0.0.0.0:9001 States database error: connect ECONNREFUSED 0.0.0.0:9000 States database error: connect ECONNREFUSED 0.0.0.0:9000 Objects database error: connect ECONNREFUSED 0.0.0.0:9001 Objects database error: connect ECONNREFUSED 0.0.0.0:9001 States database error: connect ECONNREFUSED 0.0.0.0:9000 States database error: connect ECONNREFUSED 0.0.0.0:9000 Objects database error: connect ECONNREFUSED 0.0.0.0:9001 Backup created: /opt/iobroker/backups/2021_03_04-22_05_03_backupiobroker.tar.gz
-
@amg_666 eventuell das der Port schon belegt ist.
Läuft ausser ioBroker noch etwas auf dem Rechner?
-
@wendy2702 Naja es sind 3 Rechner, aber auf denen läuft jeweils nur iobroker (relativ frische Installation, kein Image oder so sondern sauber nach Anleitung aufgesetzt).
-
@amg_666
Du hast jsonl als DB eingerichtet oder -
@simatec sagte in backitup: Fehler im Log cannot save backup file:
Du hast jsonl als DB eingerichtet oder
?? Ich verstehe die Frage nicht, wenn ich da was als DB eingerichtet habe, dann nicht wissentlich
-
@amg_666
Was ergibt die Ausgabe von iobroker status? -
pi@iomaster:/opt/iobroker $ iobroker status iobroker is running on this host. Objects type: file States type: file pi@iomaster:/opt/iobroker $
-
Ist das also ein System mit einem Master und 2x Slave oder 3 getrennte?
Ist es egal auf welchem Rechner du das manuelle Backup anstößt, der Fehler ist immer der gleiche?
-
@wendy2702 1 Master mit 2 Slaves und normalerweise stoße ich backup über die Admin Oberfläche an (also wohl auf dem Master). @simatec hat mich gebeten mal ein bakcup in der Konsole anzustoßen (siehe oben) das hab ich auf dem Master gemacht. Auf dem Slave geht das nicht, da kommt
pi@iostrom:~ $ cd /opt/iobroker pi@iostrom:/opt/iobroker $ iobroker backup No connection to databases possible ... pi@iostrom:/opt/iobroker $
-
@amg_666 Dann stimmt etwas mit deiner Master-Slave config nicht denke ich.
Eigentlich kann man das auf allen Systemen anstoßen.
Kannst du mal auf allen drei das abfragen:
iobroker status
-
@wendy2702 Oh, oh: Du hast recht, da scheint was mit der master-slave nicht zu stimmen.
Backup auf slave1 führt zu Fehler, siehe mein post oben, ich hab das jetzt mal auf dem anderen slave gemacht da gings:pi@iovis:/opt/iobroker $ iobroker backup host.iovis 14318 states saved host.iovis 16039 objects saved Backup created: /opt/iobroker/backups/2021_03_05-15_43_22_backupiobroker.tar.gz pi@iovis:/opt/iobroker $
Hier die Abfrage iobroker status:
Master:pi@iomaster:/opt/iobroker $ iobroker status iobroker is running on this host. Objects type: file States type: file
Slave1
pi@iostrom:/opt/iobroker $ iobroker status iobroker is running on this host. At least one iobroker host is running. Objects type: file States type: file
Slave2
pi@iovis:/opt/iobroker $ iobroker status iobroker is running on this host. At least one iobroker host is running. Objects type: file States type: file
Ich habe die multihost Umgebung wie empfohlen eingerichtet (sudo iobroker multihost enable, dannn ...browse und ...connect auf den Slaves).
Ich hab jetzt mal auf beiden Slaves iobroker setup custom eingegeben (und hab da erstmal nix geändert nur geschaut. Beide Slaves haben bei Object database und bei states database dieselbe ipadresse (die von Slave1), ich denke mal dass das das Problem ist (?). Kann mir hier jemand Feedback geben? Ich möchte hier jetzt nicht durch unüberlegtes Gebastel was zerschiessen (wäre nicht das erste mal...)
Slave1:
pi@iostrom:/opt/iobroker $ iobroker setup custom Current configuration: - Objects database: - Type: file - Host/Unix Socket: 192.168.2.4 - Port: 9001 - States database: - Type: file - Host/Unix Socket: 192.168.2.4 - Port: 9000 - Data Directory: ../../iobroker-data/ Type of objects DB [(f)ile, (r)edis, ...], default [file]: Host / Unix Socket of objects DB(file), default[192.168.2.4]: Port of objects DB(file), default[9001]: Type of states DB [(f)file, (r)edis, ...], default [file]: Host / Unix Socket of states DB (file), default[192.168.2.4]: Port of states DB (file), default[9000]: Host name of this machine [iostrom]: updating conf/iobroker.json pi@iostrom:/opt/iobroker $
Slave2:
pi@iovis:/opt/iobroker $ iobroker setup custom Current configuration: - Objects database: - Type: file - Host/Unix Socket: 192.168.2.4 - Port: 9001 - States database: - Type: file - Host/Unix Socket: 192.168.2.4 - Port: 9000 - Data Directory: ../../iobroker-data/ Type of objects DB [(f)ile, (r)edis, ...], default [file]: Host / Unix Socket of objects DB(file), default[192.168.2.4]: Port of objects DB(file), default[9001]: Type of states DB [(f)file, (r)edis, ...], default [file]: Host / Unix Socket of states DB (file), default[192.168.2.4]: Port of states DB (file), default[9000]: Host name of this machine [iovis]: updating conf/iobroker.json pi@iovis:/opt/iobroker $
-
@amg_666
Zeige mal bitte das Setup deines Masters -
pi@iomaster:/opt/iobroker $ iobroker setup custom Current configuration: - Objects database: - Type: file - Host/Unix Socket: 0.0.0.0 - Port: 9001 - States database: - Type: file - Host/Unix Socket: 0.0.0.0 - Port: 9000 - Data Directory: ../../iobroker-data/ Type of objects DB [(f)ile, (r)edis, ...], default [file]: Host / Unix Socket of objects DB(file), default[0.0.0.0]: Port of objects DB(file), default[9001]: Type of states DB [(f)file, (r)edis, ...], default [file]: Host / Unix Socket of states DB (file), default[0.0.0.0]: Port of states DB (file), default[9000]: Data directory (file), default[../../iobroker-data/]: Host name of this machine [iomaster]: updating conf/iobroker.json pi@iomaster:/opt/iobroker $
-
@amg_666 Bei mir connecten sich beide Slaves auf den Master.
Master:
iobroker setup custom Current configuration: - Objects database: - Type: file - Host/Unix Socket: 0.0.0.0 - Port: 9001 - States database: - Type: file - Host/Unix Socket: 0.0.0.0 - Port: 9000 - Data Directory: ../../iobroker-data/ Type of objects DB [(f)ile, (r)edis, ...], default [file]: Host / Unix Socket of objects DB(file), default[0.0.0.0]: Port of objects DB(file), default[9001]: Type of states DB [(f)file, (r)edis, ...], default [file]: Host / Unix Socket of states DB (file), default[0.0.0.0]: Port of states DB (file), default[9000]: Data directory (file), default[../../iobroker-data/]: Host name of this machine [iobroker]: updating conf/iobroker.json
Slave 1:
iobroker setup custom Current configuration: - Objects database: - Type: file - Host/Unix Socket: 192.168.178.18 - Port: 9001 - States database: - Type: file - Host/Unix Socket: 192.168.178.18 - Port: 9000 - Data Directory: ../../iobroker-data/ Type of objects DB [(f)ile, (r)edis, ...], default [file]: Host / Unix Socket of objects DB(file), default[192.168.178.18]: Port of objects DB(file), default[9001]: Type of states DB [(f)file, (r)edis, ...], default [file]: Host / Unix Socket of states DB (file), default[192.168.178.18]: Port of states DB (file), default[9000]: Host name of this machine [iobroker-garage-gross]: updating conf/iobroker.json
Slave 2:
pi@pi-iobroker:~ $ iobroker setup custom Current configuration: - Objects database: - Type: file - Host/Unix Socket: 192.168.178.18 - Port: 9001 - States database: - Type: file - Host/Unix Socket: 192.168.178.18 - Port: 9000 - Data Directory: ../../iobroker-data/ Type of objects DB [(f)ile, (r)edis, ...], default [file]: Host / Unix Socket of objects DB(file), default[192.168.178.18]: Port of objects DB(file), default[9001]: Type of states DB [(f)file, (r)edis, ...], default [file]: Host / Unix Socket of states DB (file), default[192.168.178.18]: Port of states DB (file), default[9000]: Host name of this machine [pi-iobroker]: updating conf/iobroker.json
IP .18 ist der Master.
-
@amg_666 sagte in backitup: Fehler im Log cannot save backup file:
dieselbe ipadresse (die von Slave1)
Die IP vom Master sollte bei beiden drin stehen.
-
@wendy2702 Stimmt, aber dann sollte es bei mir ja auch passen (192.168.2.4 ist Master).
Trotzdem: Wenn ich iobroker backup auf slave1 eingebe kommt "No connection to databases possible ..." wenn ich das auf slave2 eingebe dann läuft es durch.
Irgendeine Idee wo ich noch Einstellungen checken könnte? -
@amg_666
Hast du eventuell auf dem Slave dhcp aktiv?
Da hatte ich mal Probleme beim Connect -
@simatec Bin nicht so der unix held, was muss ich da wo prüfen? Ich habe eigentlich überall feste IP vergeben.
ifconfig bringt folgendes, ist imho richtig, die ..16 ist die IP des Slaves:
pi@iostrom:~ $ ifconfig eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 192.168.2.16 netmask 255.255.255.0 broadcast 192.168.2.255 inet6 fe80::b40c:c5e3:b56:aa76 prefixlen 64 scopeid 0x20<link> inet6 fd00::ae5d:8ee1:6b3e:b45d prefixlen 64 scopeid 0x0<global> ether b8:27:eb:d8:d2:dd txqueuelen 1000 (Ethernet) RX packets 228897070 bytes 27222368436 (25.3 GiB) RX errors 0 dropped 2 overruns 0 frame 0 TX packets 198081274 bytes 34937103637 (32.5 GiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536 inet 127.0.0.1 netmask 255.0.0.0 inet6 ::1 prefixlen 128 scopeid 0x10<host> loop txqueuelen 1000 (Lokale Schleife) RX packets 262 bytes 23046 (22.5 KiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 262 bytes 23046 (22.5 KiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 pi@iostrom:~ $
-
@amg_666 Kannst du mal auf beiden Slaves das ausführen:
traceroute 192.168.2.4 traceroute -p 9000 192.168.2.4 traceroute -p 9001 192.168.2.4
Achja, auf dem Slave der nicht funktioniert. Mal mit
iobroker setup custom
Die IP des Master umstellen.
Dann schauen das die Verbindung wirklich "rot" bleibt im HOST Tab.
Dann IP wieder zurück ändern.