Error with Cloudflare R2

Hello,

I’m getting the following error when uploading files above 5MB to Cloudflare R2:

25/08/2023 09:20:57	[Error]	Destination error: Failed to upload "C:\Windows\TEMP\SYSTEM\Pranas.NET\SBF\0e82be2e-fd86-4d17-85f4-db2480620255\<databasename>202308250914.7z" file to "mysql" folder. > One or more errors occurred. > STREAMING-AWS4-HMAC-SHA256-PAYLOAD not implemented

On C# this is solved by setting to true the flag DisablePayloadSigning, but I can’t find a way of doing that on the GUI.

Here are 2 examples that work for me:

Custom C# code I made (using the .NET AWSSDK.S3 NuGet package):

var fileTransferUtility = new TransferUtility(s3client);

var uploadRequest = new TransferUtilityUploadRequest
{
	Key = fileKey,
	FilePath = $"{filePath}",
	BucketName = settings.CloudflareR2BucketName,
	DisablePayloadSigning = true,
	ContentType = "application/octet-stream",
	DisableMD5Stream = true,
	Metadata = 
	{
		["sha256"] = sha256
	}
};

await fileTransferUtility.UploadAsync(uploadRequest);

GitLab Self-Hosted object storage configuration:

gitlab_rails['object_store']['connection'] = {
	'provider' => 'AWS',
	'region' => 'auto',
	'aws_access_key_id' => 'xxx',
	'aws_secret_access_key' => 'xxx',
    'aws_signature_version' => 4,
	'enable_signature_v4_streaming' => false,
    'endpoint' => 'https://xxx.r2.cloudflarestorage.com',
    'path_style' => true
}

Please advise.

Thank you

Hello Karbust,

Kindly allow us some time to investigate the issue. We will keep you informed of our progress.

If you have any other questions, please feel free to ask.

Thank you, and we apologize for any inconvenience.

Hello Karbust,

Thank you for your patience.

We have just released the new Alpha version, which includes the “Disable upload payload signing” option in the S3 Compatible destination settings.

Please install it and check if the issue is resolved.

If you have any other questions, please let us know.

Thank you, and sorry for the inconvenience.

1 Like

Hello,

It did work, I attempted with and without the option selected and it behave as supposed (selected uploads correctly, not selected fails with the error specified above).

Thank you for the assistance

Hello Karbust,

Great news! Thank you for confirming.

Please don’t hesitate to reach out to us with any issues or concerns.