• Resolved davethenerd

    (@davethenerd)


    I set up my own MinIO server which I am successfully using with many other engines. For UpdraftPlus, it _seems_ like I need an option to specify my region, which I have set (in MinIO) to ‘us-east-dtndurham’.

    Here’s the message I get:

    S3-Compatible (Generic) settings test result: Failure: We successfully accessed the bucket, but the attempt to create a file in it failed. Please check your access credentials. (UpdraftPlus_S3::putObject(): [AuthorizationHeaderMalformed] The authorization header is malformed; the region is wrong; expecting 'us-east-dtndurham'.)

    Is there a way in UpdraftPlus for me to be able to set the desired region for an S3-Compatible server? Thanks!

    • This topic was modified 10 months ago by davethenerd.
Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author David Anderson

    (@davidanderson)

    What is the end-point you are connecting to? Is there a region-specific endpoint you can connect to instead? (Presumably you’re connecting to a non-region specific one?).

    Thread Starter davethenerd

    (@davethenerd)

    The end-point is my own server running MinIO on my Synology NAS. I have configured it to have its region named us-east-dtndurham, and that’s what I put in as the region into all the other clients I use to connect to it.

    My issue (I think?) is that I don’t know how to type in a region when selecting “S3-Compatible (Generic)” in the settings.

    Plugin Author David Anderson

    (@davidanderson)

    In all other S3 “generic” providers (of which there are quite a lot), the region is identical to the endpoint. As such, there is no setting for the region, because one’s never been necessary (the “S3 generic” module has been in UpdraftPlus for about 10 years). Is it not possible to configure that on your server side too? i.e. To configure a region which matches the end-point?

    Thread Starter davethenerd

    (@davethenerd)

    Interesting! I _had_ to configure the region (instead of leaving it blank, which is MinIO’s default) to make it work with BackWPup several years ago, and now everything I have connected to it has the region set to match.

    So, yes, I could remove the region and leave it blank (as the default), but then I think just about everything else I connect to this would break (and need to be reconfigured). Is there any off-label way of setting the region for UpDraftPlus?

    Plugin Author David Anderson

    (@davidanderson)

    Hi,

    Unfortunately no, there aren’t any hooks or filters that can currently be used to change it.

    I said above that it looked to me like by default the region is the same as the endpoint, but on reading it again, I believe it does default to blank. This makes sense as the region field in the protocol is only intended for if you have multiple regions in which you are storing data (and even then, all the compatible S3 providers seem to not use that, but instead have region-specific endpoints anyway). i.e. It appears to be a field only Amazon actually use in their implementation.

    David

    Thread Starter davethenerd

    (@davethenerd)

    Ok, thank you for looking! I’m going to see if I can wipe that region setting without causing a great amount of friction here. 🙂

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘“the region is wrong” when connecting to S3-compatible MinIO server’ is closed to new replies.