Backup to S3 compatible: problem with location (public)

We are trying to backup to an S3 compatible storage. This fails, because Virtualmin expects the location to be one of the AWS locations. Other S3 compatible storages don't have the same locations and may in fact have no location at all. Is there a way to configure or work around this?

When trying to create a bucket the following error messages is thrown:

Failed to save bucket : Failed to create S3 bucket : The specified location constraint is not valid.

This is with Virtualmin 4.13 on Debian 7 and it is the same with Virtualmin 4.18 on Ubuntu 14.04 LTS

Thanks in advance for any hints.

Status: 
Closed (fixed)

Comments

So does this S3 compatible storage have any locations at all, or does it just expect the location requested to be unspecified?

It has locations, but it is included in the server name, so it does not expect them to be specified separately.

So an option in the Location drop down list like "No specified location" might be a way to take care of it.

Thanks Jamie.

Sure - I will add this in the next release.

Automatically closed -- issue fixed for 2 weeks with no activity.

Just curious - did this make it into a release yet? Thanks in advance Jamie

Not yet - it will be in the 5.0 release.

Thanks Jamie.

Can you suggest a work around? Is there anyway to get Virtualmin to make the backup to our URL?

Thanks in advance.

You can manually apply this fix prior to Virtualmin 5.0, by editing /usr/share/webmin/virtual-server/edit_bucket.cgi, and there, look for lines 46 and 47, which look like this:

&ui_select("location", "us-west-1",
   [ &s3_list_locations(@$account) ]));

Remove those two lines, and replace them with these three lines:

&ui_select("location", "",
   [ [ "", $text{'default'} ],
     &s3_list_locations(@$account) ]));

Once you do that, restart Webmin, and then changes should then be available.

Many thanks - that's awesome :)