Is it currently possible to backup to Wasabi? I attempted to configure this, but could not seem to get it to work with the most recent version of Discourse. It seems like this would be a straightforward matter, but no combination of settings seems to have worked. Perhaps something is off with region selection?
AI-generated summary
In a discussion about using Wasabi (an S3-compatible storage service) with Discourse, Zyniker initially struggled to configure backups, encountering errors such as Failed to list backups from S3: Aws::S3::Errors::BadRequest and The authorization header is malformed; the region 'us-east-1' is wrong; expecting 'us-west-1' [4]. After testing multiple regions, Zyniker confirmed success using us-west-1 (labeled “US West (N. California)” in Discourse) and the endpoint https://s3.us-west-1.wasabisys.com [5]. gerhard noted that basic S3 functionality should work with Wasabi, though pre-signed URL support may be needed for full compatibility, and suggested checking logs for errors. zogstrip had asked gerhard for input. Zyniker also recommended that Discourse’s region dropdown display region codes (e.g., us-west-1) alongside or instead of region names to avoid confusion, since Wasabi’s region naming differs (e.g., us-west-1 maps to Hillsboro, OR). Root-level permissions were confirmed not to be the issue [4]. The resolution confirms that Wasabi is usable with Discourse when region and endpoint are correctly matched.
@gerhard do you know if that’s possible?
It depends on how compatible Wasabi is, but I’d expect that the basic stuff will work. Downloading and or uploading to/from the client might fail unless they also support pre-signed URLs.
Are you getting any errors in the logs?
Looking at the documentation of Wasabi, it supports 2 regions:
us-east-1, US East (N. Virginia)us-west-1, US West (N. California)
Have you tried those two?
I tried quite a few different regions, including us-east-1 and us-west-1.
Here are the two errors showing up in the logs:
Failed to list backups from S3: Aws::S3::Errors::BadRequest
Failed to list backups from S3: The authorization header is malformed; the region 'us-east-1' is wrong; expecting 'us-west-1'
(n.b., for testing purposes, I’m working with root-level permissions, so that is one potential issue that can almost certainly be eliminated.)
It seems to be working now with the following combination:
-
us-west-1(US West (N. California)in Discourse;Hillsboro (OR)for Wasabi) -
https://s3.us-west-1.wasabisys.comas the endpoint (s3.wasabisys.comis the endpoint for the East region)
As any S3-compatible storage can be used with Discourse, it may be clearer to have the drop-down menu for region selection display the region identification (e.g., us-west-1) instead of or along with the region name (e.g., US West (N. California)).