For feature requests, please see: https://mattermost.com/suggestions/.
For troubleshooting questions, please post in the following format:
Summary
Hi all, I am running into an issue where my docker version of Mattermost can’t see the s3 bucket that it was previously using in the Ubuntu installed version. I copied the config.json file and have given s3:* actions on both the ec2 IAM role as well as the s3 bucket policy.
We have a stable docker container, but the actual issue we’re running into is that we can’t see anyone’s profile pictures(they’re stored in s3) as well as uploaded images.
Steps to reproduce
Docker install
Enterprise edition
dockerhub tag release-8.1
config.json:
"FileSettings": {
"EnableFileAttachments": true,
"EnableMobileUpload": true,
"EnableMobileDownload": true,
"MaxFileSize": 10485760,
"MaxImageResolution": 33177600,
"MaxImageDecoderConcurrency": -1,
"DriverName": "amazons3",
"Directory": "./data/",
"EnablePublicLink": false,
"ExtractContent": true,
"ArchiveRecursion": false,
"PublicLinkSalt": "NAMEOFOURPUBLICSALT",
"InitialFont": "nunito-bold.ttf",
"AmazonS3AccessKeyId": "",
"AmazonS3SecretAccessKey": "",
"AmazonS3Bucket": "NAMEOFOURS3BUCKET",
"AmazonS3PathPrefix": "",
"AmazonS3Region": "us-east-1",
"AmazonS3Endpoint": "s3.amazonaws.com",
"AmazonS3SSL": true,
"AmazonS3SignV2": false,
"AmazonS3SSE": false,
"AmazonS3Trace": true,
"AmazonS3RequestTimeoutMilliseconds": 30000,
"DedicatedExportStore": false,
"ExportDriverName": "local",
"ExportDirectory": "./data/",
"ExportAmazonS3AccessKeyId": "",
"ExportAmazonS3SecretAccessKey": "",
"ExportAmazonS3Bucket": "",
"ExportAmazonS3PathPrefix": "",
"ExportAmazonS3Region": "",
"ExportAmazonS3Endpoint": "s3.amazonaws.com",
"ExportAmazonS3SSL": true,
"ExportAmazonS3SignV2": false,
"ExportAmazonS3SSE": false,
"ExportAmazonS3Trace": false,
"ExportAmazonS3RequestTimeoutMilliseconds": 30000,
"ExportAmazonS3PresignExpiresSeconds": 21600
}
The exact error message I’m seeing in the docker logs is:
"Unable to connect to S3. Verify your Amazon S3 connection authorization parameters and authentication settings., unable to check if the S3 bucket exists"
Here to answer follow up questions as well. Thanks in advance for any insight!
EDIT: We upgraded the MM image from 7.1.4 → release-8.1 during this transition as well, and reverting our version back to 7.1.4 using our exact dockerized config, works perfectly. The MM upgrade docs stop at “Upgrade to v7.1” and I’m wondering if there are changes after 7.1 that aren’t documented by MM…