[Solved] Opsi backup läuft nicht.

Antworten
Lukas Keresztesi
Beiträge: 19
Registriert: 12 Nov 2024, 15:14

[Solved] Opsi backup läuft nicht.

Beitrag von Lukas Keresztesi »

Hallo zusammen,

ich benutze die opsi 4.3 und habe Probleme beim erstellen eines backups, mit dem Befehl

Code: Alles auswählen

opsi-backup create
bekomme ich folgende Ausgabe.

Code: Alles auswählen

[4] [2025-02-07 08:11:24.191] [               ] opsi-backup is deprecated, please use `opsiconfd backup`   (opsibackup.py:150)
[4] [2025-02-07 08:11:24.343] [               ] Failed to read backend config "mysql.conf": cannot access local variable 'dispatchedBackends' where it is not associated with a value   (__init__.py:1406)
[4] [2025-02-07 08:11:24.348] [               ] Failed to read backend config "dhcpd.conf": cannot access local variable 'dispatchedBackends' where it is not associated with a value   (__init__.py:1406)
[4] [2025-02-07 08:11:24.350] [               ] Failed to read backend config "opsipxeconfd.conf": cannot access local variable 'dispatchedBackends' where it is not associated with a value   (__init__.py:1406)
[4] [2025-02-07 08:11:24.351] [               ] Failed to read backend config "hostcontrol.conf": cannot access local variable 'dispatchedBackends' where it is not associated with a value   (__init__.py:1406)
[5] [2025-02-07 08:11:24.353] [               ] Creating backup archive adm-opsi-server_4.3.6.0_2025-02-07_08-11-24.341882.tar.bz2   (Backup.py:107)
[4] [2025-02-07 08:11:24.354] [               ] Failed to read backend config "mysql.conf": cannot access local variable 'dispatchedBackends' where it is not associated with a value   (__init__.py:1406)
[4] [2025-02-07 08:11:24.355] [               ] Failed to read backend config "dhcpd.conf": cannot access local variable 'dispatchedBackends' where it is not associated with a value   (__init__.py:1406)
[4] [2025-02-07 08:11:24.355] [               ] Failed to read backend config "opsipxeconfd.conf": cannot access local variable 'dispatchedBackends' where it is not associated with a value   (__init__.py:1406)
[4] [2025-02-07 08:11:24.358] [               ] Failed to read backend config "hostcontrol.conf": cannot access local variable 'dispatchedBackends' where it is not associated with a value   (__init__.py:1406)
[4] [2025-02-07 08:11:24.359] [               ] Failed to read backend config "mysql.conf": cannot access local variable 'dispatchedBackends' where it is not associated with a value   (__init__.py:1406)
[4] [2025-02-07 08:11:24.359] [               ] Failed to read backend config "dhcpd.conf": cannot access local variable 'dispatchedBackends' where it is not associated with a value   (__init__.py:1406)
[4] [2025-02-07 08:11:24.361] [               ] Failed to read backend config "opsipxeconfd.conf": cannot access local variable 'dispatchedBackends' where it is not associated with a value   (__init__.py:1406)
[4] [2025-02-07 08:11:24.362] [               ] Failed to read backend config "hostcontrol.conf": cannot access local variable 'dispatchedBackends' where it is not associated with a value   (__init__.py:1406)
[4] [2025-02-07 08:11:24.363] [               ] Failed to read backend config "mysql.conf": cannot access local variable 'dispatchedBackends' where it is not associated with a value   (__init__.py:1406)
[4] [2025-02-07 08:11:24.364] [               ] Failed to read backend config "dhcpd.conf": cannot access local variable 'dispatchedBackends' where it is not associated with a value   (__init__.py:1406)
[4] [2025-02-07 08:11:24.366] [               ] Failed to read backend config "opsipxeconfd.conf": cannot access local variable 'dispatchedBackends' where it is not associated with a value   (__init__.py:1406)
[4] [2025-02-07 08:11:24.367] [               ] Failed to read backend config "hostcontrol.conf": cannot access local variable 'dispatchedBackends' where it is not associated with a value   (__init__.py:1406)
[4] [2025-02-07 08:11:24.553] [               ] Failed to read backend config "mysql.conf": cannot access local variable 'dispatchedBackends' where it is not associated with a value   (__init__.py:1406)
[4] [2025-02-07 08:11:24.554] [               ] Failed to read backend config "dhcpd.conf": cannot access local variable 'dispatchedBackends' where it is not associated with a value   (__init__.py:1406)
[4] [2025-02-07 08:11:24.555] [               ] Failed to read backend config "opsipxeconfd.conf": cannot access local variable 'dispatchedBackends' where it is not associated with a value   (__init__.py:1406)
[4] [2025-02-07 08:11:24.558] [               ] Failed to read backend config "hostcontrol.conf": cannot access local variable 'dispatchedBackends' where it is not associated with a value   (__init__.py:1406)
[5] [2025-02-07 08:11:24.589] [               ] Archive /tmp/adm-opsi-server_4.3.6.0_2025-02-07_08-11-24.341882.tar.bz2 is OK.   (Backup.py:182)
[5] [2025-02-07 08:11:24.590] [               ] Backup complete   (Backup.py:138)
Ich habe leider keine Ahnung was ich dagegn tun kann, obwohl unten steht Backup complete zeigt es mir auch im opsi-health-check an das kein Backup vorhanden ist.

Dannach habe ich es noch mit dem Befehl opsiconfd create backup probiert

Code: Alles auswählen

opsiconfd backup create
jeddoch auch ein Fehlversuch. Ausgabe lautet:

Code: Alles auswählen

[3] [2025-02-07 08:21:42.179] [               ] list index out of range   (backup.py:122)
Traceback (most recent call last):
  File "opsiconfd/main/backup.py", line 72, in backup_main
IndexError: list index out of range
Failed to create backup file '/var/log/opsi/create': list index out of range
Das Verzeichnis /create existiert bei mir nicht

könnte mir da jemand weiterhelfen? würde mich freuen.
Vielen Dank! und Schöne Grüße.
Benutzeravatar
ThomasT
uib-Team
Beiträge: 565
Registriert: 26 Jun 2013, 12:26

Re: Opsi backup läuft nicht.

Beitrag von ThomasT »

Hallo,

der Befehl lautet einfach

Code: Alles auswählen

opsiconfd backup
Dieser erzeugt eine Backup Datei im aktuellen Verzeichnis


Vielen Dank für die Nutzung von opsi. Im Forum ist unser Support begrenzt.

Für den professionellen Einsatz und individuelle Beratung empfehlen wir einen Support-Vertrag und eine Schulung.
Gerne informieren wir Sie zu unserem Angebot.

uib GmbH
Telefon: +49 6131 27561 0
E-Mail: sales@uib.de


Lukas Keresztesi
Beiträge: 19
Registriert: 12 Nov 2024, 15:14

Re: Opsi backup läuft nicht.

Beitrag von Lukas Keresztesi »

Hallo Thomas,

Danke! Das hat funktioniert. Backup wurde erfolgreich abgespeichert.

Schöne Grüße
Antworten