Skip to content

Error when uploading to Cloudflare R2 #2

@avsaase

Description

@avsaase

I set up this integration yesterday to upload my backups to Cloudflare R2 and when it first ran last night it encountered an error:

Logger: homeassistant.components.backup
Bron: components/backup/manager.py:585
integratie: Backup (documentatie, problemen)
Eerst voorgekomen: 04:45:51 (1 gebeurtenis)
Laatst gelogd: 04:45:51

Unexpected error for bauergroup_s3compatiblebackup.01KEN0V36KESZB2ZBW1XD6HX26: An error occurred (InvalidPart) when calling the CompleteMultipartUpload operation: All non-trailing parts must have the same length.
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/backup/manager.py", line 585, in upload_backup_to_agent
    await self.backup_agents[agent_id].async_upload_backup(
    ...<2 lines>...
    )
  File "/config/custom_components/bauergroup_s3compatiblebackup/backup.py", line 176, in async_upload_backup
    await self._upload_multipart(tar_key, open_stream)
  File "/config/custom_components/bauergroup_s3compatiblebackup/backup.py", line 271, in _upload_multipart
    await self._client.complete_multipart_upload(
    ...<4 lines>...
    )
  File "/usr/local/lib/python3.13/site-packages/aiobotocore/client.py", line 412, in _make_api_call
    raise error_class(parsed_response, operation_name)
botocore.exceptions.ClientError: An error occurred (InvalidPart) when calling the CompleteMultipartUpload operation: All non-trailing parts must have the same length.

I haven't tested with other S3 providers so I don't know if they work correctly but the error doesn't sound S2 specific.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions