I’d like to start this off with a question, is here anyone who has actually managed to make this connection work?
Progress of the current situation. No matter what I’ve done, I still haven’t managed to get it working. So, I waited a day for a friend of mine, who has more experience with servers than I do, to make sure it wasn’t by my hands. And I will tell our conclusions.
I have the whole server installed fine, the only thing that still doesn’t work is the connection to s3.
After countless unsuccessful attempts to get MT Gateway working, with no successful result….
We have decided to give self-hosted ST gateway a try. However, the result was mostly the same.
When using aws-cli the ST gateway works and lists buckets without any issues even with NGINX reverse proxy (from localhost:7777)
We set up the ST gateway using an access grant.
However, regardless which config option we changed (S3_ENABLED, S3_HOSTNAME, S3_PROTOCOL) or which gateway we used (Hosted MT / Self-hosted ST) the response from Mastodon was always the same →
Aws::S3::Errors::InvalidAccessKeyId: The AWS Access Key Id you provided does not exist in our records
The only difference was with self-hosted ST gateway and omitted S3_REGION parameter when Mastodon added extra “S3 client configured for “us-east-1” but the bucket “mastodon” is in “us-east-2”; Please configure the proper region to avoid multiple unnecessary redirects and signing attempts” to ever the same Access Key does not exist.
Nov 27 01:48:40 ns102719 bundle: S3 client configured for "us-east-1" but the bucket "mastodon" is in "us-east-2"; Please configure the proper region to avoid multiple unnecessary redirects and signing attempts
However, there is no option to configure region when using the access grant setup. (I thought that using a custom gateway shouldn’t work with regions at all, but apparently it still requires it somehow.)
If we tried to play system’s game and slip the region, all that happened was the message disappeared, but the transfer still won’t work.
We’re currently stuck here and can’t go any further, which is why I asked at the beginning if anyone had managed to do this with by the self-hosted gateway.
I have to admit that if I am not a StorJ supporter, selecting one of the preset services at install wizard would be much faster. My friend and I spent almost a whole day on it and still didn’t get a workable result. I hope we will figure it out…