NEWS
backitup: Fehler im Log cannot save backup file
-
@simatec Das hats nicht gebracht. iobroker fix ist sauber durchgelaufen, danach iobroker start, soweit alles ok.
Nachdem alle Instanzen wieder "grün" waren hab ich manuell den backitup angestoßen, da war wieder mein altes Problem, dass er das eigentliche backup nicht macht (file not found), siehe unten (10. Zeile von unten)Started iobroker ... [DEBUG] [iobroker] - host.iomaster 14340 states saved [DEBUG] [iobroker] - host.iomaster 16042 objects saved [DEBUG] [iobroker] - done [DEBUG] [zigbee] - The following files were found for the backup: backup_2021_01_24-13_50_37.tar.gz,backup_2021_01_24-13_50_54.tar.gz,backup_2021_01_24-14_12_38.tar.gz,backup_2021_01_24-14_13_50.tar.gz,backup_2021_01_24-14_14_37.tar.gz,backup_2021_01_24-16_14_41.tar.gz,backup_2021_01_24-16_50_33.tar.gz,backup_2021_01_24-20_13_07.tar.gz,backup_2021_01_25-00_20_13.tar.gz,backup_2021_01_25-00_22_33.tar.gz,backup_2021_01_25-00_25_32.tar.gz,backup_2021_01_25-00_26_53.tar.gz,backup_2021_01_25-00_27_51.tar.gz,backup_2021_01_25-00_31_30.tar.gz,backup_2021_01_25-00_45_20.tar.gz,backup_2021_01_25-09_46_53.tar.gz,backup_2021_01_25-10_30_36.tar.gz,backup_2021_01_25-22_48_01.tar.gz,backup_2021_01_26-02_02_05.tar.gz,backup_2021_01_26-19_16_56.tar.gz,backup_2021_01_26-21_37_04.tar.gz,backup_2021_01_27-00_41_20.tar.gz,backup_2021_01_27-01_22_34.tar.gz,backup_2021_01_27-10_35_01.tar.gz,backup_2021_01_27-15_03_13.tar.gz,backup_2021_01_27-20_49_50.tar.gz,backup_2021_01_28-00_41_26.tar.gz,backup_2021_01_28-10_05_52.tar.gz,backup_2021_01_28-18_32_09.tar.gz,backup_2021_01_28-18_34_33.tar.gz,backup_2021_01_29-00_18_25.tar.gz,backup_2021_01_29-00_32_26.tar.gz,backup_2021_01_29-13_49_11.tar.gz,backup_2021_01_29-23_49_35.tar.gz,backup_2021_01_30-09_04_50.tar.gz,backup_2021_01_30-21_17_49.tar.gz,backup_2021_01_31-00_29_24.tar.gz,backup_2021_01_31-11_17_03.tar.gz,backup_2021_01_31-18_46_59.tar.gz,backup_2021_02_01-00_29_29.tar.gz,backup_2021_02_01-08_28_51.tar.gz,backup_2021_02_01-08_41_55.tar.gz,backup_2021_02_01-16_04_57.tar.gz,backup_2021_02_01-18_19_03.tar.gz,backup_2021_02_01-21_02_00.tar.gz,backup_2021_02_02-02_02_13.tar.gz,backup_2021_02_02-14_57_23.tar.gz,backup_2021_02_02-14_59_38.tar.gz,backup_2021_02_02-19_14_27.tar.gz,backup_2021_02_02-19_49_38.tar.gz,backup_2021_02_03-00_17_28.tar.gz,backup_2021_02_03-09_47_01.tar.gz,backup_2021_02_03-14_47_00.tar.gz,backup_2021_02_03-18_12_00.tar.gz,backup_2021_02_03-19_53_54.tar.gz,backup_2021_02_04-00_35_33.tar.gz,backup_2021_02_04-06_02_11.tar.gz,backup_2021_02_04-12_02_54.tar.gz,backup_2021_02_04-19_34_53.tar.gz,backup_2021_02_05-07_32_34.tar.gz,backup_2021_02_05-10_34_30.tar.gz,backup_2021_02_05-10_52_32.tar.gz,backup_2021_02_05-19_56_53.tar.gz,backup_2021_02_06-02_02_08.tar.gz,backup_2021_02_06-14_03_53.tar.gz,backup_2021_02_06-20_24_59.tar.gz,backup_2021_02_07-00_47_12.tar.gz,backup_2021_02_07-14_16_47.tar.gz,backup_2021_02_07-19_23_37.tar.gz,backup_2021_02_08-07_25_59.tar.gz,backup_2021_02_08-09_40_37.tar.gz,backup_2021_02_08-13_06_49.tar.gz,backup_2021_02_08-15_09_42.tar.gz,backup_2021_02_08-15_12_16.tar.gz,backup_2021_02_08-15_32_07.tar.gz,backup_2021_02_09-02_02_47.tar.gz,backup_2021_02_09-11_35_53.tar.gz,backup_2021_02_09-13_33_05.tar.gz,backup_2021_02_09-20_25_33.tar.gz,backup_2021_02_09-20_47_55.tar.gz,backup_2021_02_09-22_07_03.tar.gz,backup_2021_02_09-22_08_50.tar.gz,backup_2021_02_09-22_11_53.tar.gz,backup_2021_02_10-00_50_45.tar.gz,backup_2021_02_10-12_10_34.tar.gz,backup_2021_02_10-20_42_05.tar.gz,backup_2021_02_10-22_39_56.tar.gz,backup_2021_02_11-15_02_37.tar.gz,backup_2021_02_11-20_19_17.tar.gz,backup_2021_02_11-22_42_09.tar.gz,backup_2021_02_12-02_02_35.tar.gz,backup_2021_02_12-17_40_39.tar.gz,backup_2021_02_12-22_46_34.tar.gz,backup_2021_02_13-02_05_02.tar.gz,backup_2021_02_13-12_17_31.tar.gz,backup_2021_02_13-18_34_31.tar.gz,backup_2021_02_13-19_05_02.tar.gz,backup_2021_02_13-20_33_21.tar.gz,backup_2021_02_13-22_50_41.tar.gz,backup_2021_02_14-00_17_37.tar.gz,backup_2021_02_14-00_32_03.tar.gz,backup_2021_02_14-12_07_23.tar.gz,backup_2021_02_14-17_50_45.tar.gz,backup_2021_02_14-18_07_03.tar.gz,backup_2021_02_15-10_38_16.tar.gz,backup_2021_02_15-10_42_45.tar.gz,backup_2021_02_15-13_14_44.tar.gz,backup_2021_02_15-18_02_32.tar.gz,backup_2021_02_15-20_45_28.tar.gz,backup_2021_02_15-21_04_50.tar.gz,backup_2021_02_15-21_06_20.tar.gz,backup_2021_02_15-21_11_49.tar.gz,backup_2021_02_15-21_20_46.tar.gz,backup_2021_02_15-21_25_28.tar.gz,backup_2021_02_16-00_32_42.tar.gz,backup_2021_02_16-02_04_29.tar.gz,backup_2021_02_16-09_02_40.tar.gz,backup_2021_02_16-12_43_35.tar.gz,backup_2021_02_16-18_04_32.tar.gz,backup_2021_02_16-19_04_51.tar.gz,backup_2021_02_17-19_30_36.tar.gz,backup_2021_02_17-21_53_06.tar.gz,backup_2021_02_17-22_00_35.tar.gz,backup_2021_02_18-02_05_13.tar.gz,backup_2021_02_18-13_02_31.tar.gz,backup_2021_02_18-19_32_58.tar.gz,backup_2021_02_19-02_02_47.tar.gz,backup_2021_02_19-09_37_55.tar.gz,backup_2021_02_19-18_39_56.tar.gz,backup_2021_02_19-19_35_00.tar.gz,backup_2021_02_19-21_13_41.tar.gz,backup_2021_02_19-21_14_50.tar.gz,backup_2021_02_20-10_30_26.tar.gz,backup_2021_02_20-19_36_49.tar.gz,backup_2021_02_21-02_02_28.tar.gz,backup_2021_02_21-14_19_12.tar.gz,backup_2021_02_21-19_39_04.tar.gz,backup_2021_02_22-02_05_36.tar.gz,backup_2021_02_22-11_18_01.tar.gz,backup_2021_02_22-19_18_54.tar.gz,backup_2021_02_23-02_02_41.tar.gz,backup_2021_02_23-15_02_18.tar.gz,backup_2021_02_23-19_42_02.tar.gz,backup_2021_02_24-01_17_35.tar.gz,backup_2021_02_24-09_49_24.tar.gz,backup_2021_02_24-15_03_52.tar.gz,backup_2021_02_24-19_46_11.tar.gz,backup_2021_02_25-02_04_36.tar.gz,backup_2021_02_25-09_08_31.tar.gz,backup_2021_02_25-11_47_33.tar.gz,backup_2021_02_25-14_22_11.tar.gz,backup_2021_02_25-17_02_56.tar.gz,backup_2021_02_25-19_38_11.tar.gz,backup_2021_02_26-01_39_13.tar.gz,backup_2021_02_26-11_51_07.tar.gz,backup_2021_02_26-19_48_58.tar.gz,backup_2021_02_27-08_18_40.tar.gz,backup_2021_02_27-15_05_27.tar.gz,backup_2021_02_27-19_51_34.tar.gz,backup_2021_02_28-02_02_30.tar.gz,backup_2021_02_28-12_35_18.tar.gz,backup_2021_02_28-19_54_13.tar.gz,backup_2021_03_01-01_03_40.tar.gz,backup_2021_03_01-09_18_21.tar.gz,backup_2021_03_01-14_20_05.tar.gz,backup_2021_03_01-19_58_41.tar.gz,backup_2021_03_01-23_48_16.tar.gz,backup_2021_03_02-05_47_37.tar.gz,backup_2021_03_02-11_03_43.tar.gz,backup_2021_03_02-16_11_55.tar.gz,backup_2021_03_02-16_53_18.tar.gz,backup_2021_03_02-19_02_36.tar.gz,backup_2021_03_02-21_29_00.tar.gz,backup_2021_03_02-21_33_22.tar.gz,backup_2021_03_02-22_19_53.tar.gz,backup_2021_03_02-23_51_48.tar.gz,backup_2021_03_03-00_17_08.tar.gz,backup_2021_03_03-08_49_38.tar.gz,backup_2021_03_03-13_33_20.tar.gz,backup_2021_03_03-17_08_54.tar.gz,backup_2021_03_04-02_04_25.tar.gz,backup_2021_03_04-09_48_13.tar.gz,backup_2021_03_04-14_47_57.tar.gz,backup_2021_03_04-17_11_27.tar.gz,backup_2021_03_04-19_55_06.tar.gz,backup_2021_03_04-21_22_05.tar.gz,shepherd.db [DEBUG] [zigbee] - found zigbee database: zigbee.0 [DEBUG] [zigbee] - done [DEBUG] [javascripts] - The following files were found for the backup: Licht,Telefon,Tests,Tradfri_Fernbedienungen,Velux,common [DEBUG] [javascripts] - Backup created: /opt/iobroker/backups/javascripts_2021_03_04-21_23_31_backupiobroker.tar.gz [DEBUG] [javascripts] - done [DEBUG] [ftp] - FTP connected. [DEBUG] [ftp] - Send iobroker_2021_03_04-21_23_02_backupiobroker.tar.gz [ERROR] [ftp] - File "/opt/iobroker/backups/iobroker_2021_03_04-21_23_02_backupiobroker.tar.gz" not found [DEBUG] [ftp] - Send zigbee.0_2021_03_04-21_23_30_backupiobroker.tar.gz [DEBUG] [ftp] - Send javascripts_2021_03_04-21_23_31_backupiobroker.tar.gz [DEBUG] [ftp] - done [DEBUG] [clean] - done [DEBUG] [historyHTML] - new history html values created [DEBUG] [historyHTML] - done [DEBUG] [historyJSON] - new history json values created [DEBUG] [historyJSON] - done [EXIT] 0und im log steht wieder
host.iomaster-Server 2021-03-04 21:23:31.181 error Cannot save backup file /opt/iobroker/iobroker-data/objects.json.bak: ENOENT: no such file or directory, stat '/opt/iobroker/iobroker-data/objects.json'ich hab 3mal Raspberry Pi3, all node.js v12.20.10, npm 6.14.10 und js-controller 3.2.16
-
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 -
@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).
-
@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).
-
@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 :-)
-
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 $ -
@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: fileSlave1
pi@iostrom:/opt/iobroker $ iobroker status iobroker is running on this host. At least one iobroker host is running. Objects type: file States type: fileSlave2
pi@iovis:/opt/iobroker $ iobroker status iobroker is running on this host. At least one iobroker host is running. Objects type: file States type: fileIch 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 $ -
@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: fileSlave1
pi@iostrom:/opt/iobroker $ iobroker status iobroker is running on this host. At least one iobroker host is running. Objects type: file States type: fileSlave2
pi@iovis:/opt/iobroker $ iobroker status iobroker is running on this host. At least one iobroker host is running. Objects type: file States type: fileIch 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 $ -
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 $ -
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.jsonSlave 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.jsonSlave 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.jsonIP .18 ist der Master.
-
@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: fileSlave1
pi@iostrom:/opt/iobroker $ iobroker status iobroker is running on this host. At least one iobroker host is running. Objects type: file States type: fileSlave2
pi@iovis:/opt/iobroker $ iobroker status iobroker is running on this host. At least one iobroker host is running. Objects type: file States type: fileIch 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 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.jsonSlave 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.jsonSlave 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.jsonIP .18 ist der Master.
@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? -
@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?
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