I’m using admin console >> storage.
Enabled type Amazon S3, typed the bucket name and pressed test connection.
Are there settings required in the config?
The first link doesn’t help. it lacks important steps. I think processes like setting up S3 storage must be well documented on docs.mattermost.org.
"
If you store the files on Amazon S3, set File Storage System to Amazon S3 and enter the appropriate values for your Amazon account.
"
The second link seems to be a different issue.
The s3 test error I keep getting is the following
{“level”:“error”,“ts”:1531504348.024893,“caller”:“web/handlers.go:140”,“msg”:“S3 Bucket is required”,“path”:"/api/v4/file/s3_test",“request_id”:“hbcgfgtofighxdyy9aanjo9uac”,“ip_addr”:“XX.XX.XX.XX”,“user_id”:“m8fp1td76tbi5ctaonm5tm5zko”,“method”:“POST”,“err_where”:“S3File”,“http_code”:400,“err_details”:""}
@jespino Would you know what might be causing issues with setting up S3 bucket storage?
Summary:
RbDev has created an S3 bucket and a IAM role to give read/write permissions but he gets an error saying “Connection Unsuccessful:S3 Bucket is required - undefined”. This is the full error:
{“level”:“error”,“ts”:1531504348.024893,“caller”:“web/handlers.go:140”,“msg”:“S3 Bucket is required”,“path”:"/api/v4/file/s3_test",“request_id”:“hbcgfgtofighxdyy9aanjo9uac”,“ip_addr”:“XX.XX.XX.XX”,“user_id”:“m8fp1td76tbi5ctaonm5tm5zko”,“method”:“POST”,“err_where”:“S3File”,“http_code”:400,“err_details”:""}
Hi @RbDev, could you configure S3, save all changes, and then click the “Test button”? The test button now is working with the already saved configuration. It’s a bug, that must be solved, but for now the “save and then test” approach should work.
Hi @RbDev - I checked with our developers about this and they said that the error messages you are getting mean that the setting AmazonS3Bucket in your config.json is not set. Can you help set that setting?
That’s not how it should work.
The user doesn’t have to guess how to do something in mattermost.
There should be instructions available in documents website for everybody to see.
Ask the devs to send clear instructions how to create a s3 bucket for mm and how to configure mm to access it.
and please place them on documents websites.
@RbDev, thanks for your feedback and sorry about the issues you’re running into. Setting up S3 /should/ be as easy as filling in the requisite Amazon S3 configuration values, but there’s a couple of known issues that can impact some installations.
You mentioned seeing a message: “There appears to be a problem with your internet connection.” Is this reproducible for every file upload? Can you check your server logs to see if there is a panic or crash when this occurs? If so, you’re likely running into https://mattermost.atlassian.net/browse/MM-10677. A short-term workaround until that bug is fixed would be to increase the amount of memory on your Mattermost server.
You also asked, “Does using S3 redirects all file upload and download to amazon servers?” Yes: any file uploads and subsequent downloads are handled by Amazon servers. Mattermost will proxy the downloaded file back to the user.