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
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)
Has anyone successfully set up opsiconfd backup in a Docker environment? Any tips or guidance would be greatly appreciated!
Thanks!