Issues Running opsiconfd backup in Docker Environment

Antworten
thinkabout
Beiträge: 8
Registriert: 03 Dez 2024, 09:58

Issues Running opsiconfd backup in Docker Environment

Beitrag von thinkabout »

Hi everyone,

I'm trying to get opsiconfd backup working in a Dockerized Opsi server environment, but I'm running into some issues.

I ran the backup command inside the Docker container, but I got this message:

Code: Alles auswählen

Config file '/etc/opsi/backends/mysql.conf' not found, skipping in backup   

Backup file '/data/backups/opsiconfd-backup-20250422-145453.msgpack.lz4' successfully created.
Entering maintenance mode   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100% 0:00:00
Backing up database objects ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100% 0:00:00
Backing up config files     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100% 0:00:00
Backing up redis data       ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100% 0:00:00
Creating backup file        ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100% 0:00:00
MobaXterm_TjVWPNuQaR.png
MobaXterm_TjVWPNuQaR.png (42.92 KiB) 4394 mal betrachtet
When running from the host:

When I try running the command from outside the container using:
docker exec opsi-server opsiconfd backup

I get the following error:

Code: Alles auswählen

Multiple exceptions: [Errno 111] Connect call failed ('::1', 6379, 0, 0), [Errno 111] Connect call failed ('127.0.0.1', 6379)

Failed to create backup file '/opsiconfd-backup-20250422-145716.msgpack.lz4':
Error 111 connecting to localhost:6379. Connection refused.
root@ferrao-2025:/# docker exec opsi-server opsiconfd backupMultiple exceptions: [Errno 111] Connect call failed ('::1', 6379, 0, 0), [Errno 111] Connect call failed ('127.0.0.1', 6379)
MobaXterm_S2x5mnS9oY.png
MobaXterm_S2x5mnS9oY.png (93.04 KiB) 4394 mal betrachtet
It seems like opsiconfd is trying to connect to Redis, but the connection is refused.

Has anyone successfully set up opsiconfd backup in a Docker environment? Any tips or guidance would be greatly appreciated!
Thanks!
Benutzeravatar
j.schneider
uib-Team
Beiträge: 2043
Registriert: 29 Mai 2008, 15:14

Re: Issues Running opsiconfd backup in Docker Environment

Beitrag von j.schneider »


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


Antworten