Xilonz / trellis-backup-role

Ansible backup role to use with trellis. Works with s3, FTP, local disk...
63 stars 9 forks source link

No package matching 'python-boto' is available #43

Open Twansparant opened 1 year ago

Twansparant commented 1 year ago

Hi there,

In my latest project using Trellis version 1.21.0 and trellis-backup-role 2.1.7, I'm getting the following error while provisioning my remote servers running ubuntu 22.04:

TASK [lafranceinsoumise.backup : Install backup profile dependencies] **********
failed: [xxx.xxx.xx.xx] (item={'name': 'example.com_uploads', 'schedule': '0 4 * * *', 'source': '/srv/www/example.com/shared/uploads', 'target': 's3://ams3.digitaloceanspaces.com/backups/example.com/uploads', 'target_user': False, 'target_pass': False, 'max_age': '3M', 'full_max_age': '1M', 'max_full_backups': '3', 'params': ['export S3_USE_SIGV4="True"'], 'action': 'purge_backup --force'}) => {"ansible_loop_var": "item", "changed": false, "item": {"action": "purge_backup --force", "full_max_age": "1M", "max_age": "3M", "max_full_backups": "3", "name": "example.com_uploads", "params": ["export S3_USE_SIGV4=\"True\""], "schedule": "0 4 * * *", "source": "/srv/www/example.com/shared/uploads", "target": "s3://ams3.digitaloceanspaces.com/backups/example.com/uploads", "target_pass": false, "target_user": false}, "msg": "No package matching 'python-boto' is available"}
failed: [xxx.xxx.xx.xx] (item={'name': 'example.com_database', 'schedule': '0 4 * * *', 'source': 'mysql://example_production', 'target': 's3://ams3.digitaloceanspaces.com/backups/example.com/database', 'target_user': False, 'target_pass': False, 'max_age': '3M', 'full_max_age': '1M', 'max_full_backups': '3', 'params': ['export S3_USE_SIGV4="True"'], 'action': 'purge_backup --force'}) => {"ansible_loop_var": "item", "changed": false, "item": {"action": "purge_backup --force", "full_max_age": "1M", "max_age": "3M", "max_full_backups": "3", "name": "example.com_database", "params": ["export S3_USE_SIGV4=\"True\""], "schedule": "0 4 * * *", "source": "mysql://example_production", "target": "s3://ams3.digitaloceanspaces.com/backups/example.com/database", "target_pass": false, "target_user": false}, "msg": "No package matching 'python-boto' is available"}

Locally I'm running Python 3.10.10 The provisioned server is running Python 3.10.12.

Am I supposed to install the package python3-boto3 or python3-boto myself now in Trellis? Anyone else having this issue?

I tried adding both the python3-boto as well as the python3-boto3 package manually like this:

In group_vars/all/main.yml:

apt_packages_custom:
  python-is-python3: "{{ apt_package_state }}"
  python3-boto: "{{ apt_package_state }}"

But same error occurs? I'm using the exact same configuration/credentials in other running projects, so I'm sure those are correct.

Thanks!