You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
unit-mysql-0: 12:22:43 DEBUG unit.mysql/0.juju-log Exception raised.
Traceback (most recent call last):
File "/var/lib/juju/agents/unit-mysql-0/charm/venv/s3transfer/tasks.py", line 139, in __call__
return self._execute_main(kwargs)
File "/var/lib/juju/agents/unit-mysql-0/charm/venv/s3transfer/tasks.py", line 162, in _execute_main
return_value = self._main(**kwargs)
File "/var/lib/juju/agents/unit-mysql-0/charm/venv/s3transfer/upload.py", line 764, in _main
client.put_object(Bucket=bucket, Key=key, Body=body, **extra_args)
File "/var/lib/juju/agents/unit-mysql-0/charm/venv/botocore/client.py", line 553, in _api_call
return self._make_api_call(operation_name, kwargs)
File "/var/lib/juju/agents/unit-mysql-0/charm/venv/botocore/client.py", line 1009, in _make_api_call
raise error_class(parsed_response, operation_name)
botocore.exceptions.ClientError: An error occurred (PermanentRedirect) when calling the PutObject operation: The bucket you are attempting to access must be addressed using the specified endpoint. Please send all future requests to this endpoint.
Steps to reproduce
juju deploy mysql --channel 8.0/edge
juju deploy s3-integrator
(and configure it)juju integrate s3-integrator mysql
juju run mysql/0 create-backup
Expected behavior
All the S3-related actions should work with the AWS.
Actual behavior
Creating backup, listing backups and restoring backup actions are failing when trying to connect to the AWS S3.
Versions
Operating system: Ubuntu 24.04.1 LTS
Juju CLI: 3.5.4-genericlinux-amd64
Juju agent: 3.5.4
Charm revision: 303
LXD: 6.1
Log output
Juju debug log: tmp.log
Additional context
With
endpoint=https://s3.<region-name>.amazonaws.com
it works, but either this requirement in the documentation should be added (currently it statesFor older buckets, the endpoint s3.amazonaws.com can be used.
) or automatic resolving should be ported from postgresql-operator (https://github.com/canonical/postgresql-operator/blob/c5c916d41d00849da5ae657cba4c97c46cb3caad/src/backups.py#L229).The text was updated successfully, but these errors were encountered: