Upload SGA and grades attachments on S3

47 views
Skip to first unread message

Neville D'Souza

unread,
Dec 27, 2018, 2:33:43 AM12/27/18
to General Open edX discussion
Hi All,

I am hoping someone can help with moving SGA and grades uploads from local to S3. We are using the same version of SGA that came with Ficus.4 version of edx.

So far i have done the below

sudo vi /edx/app/edxapp/lms.auth.json
"AWS_ACCESS_KEY_ID": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
 "AWS_SECRET_ACCESS_KEY": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
 "AWS_STORAGE_BUCKET_NAME": "edxbucket",

But it is still getting uploaded on local storage. I am guessing its because of below. But what do I change this to work with S3 storage.

sudo vi /edx/app/edxapp/lms.env.json
sudo vi /edx/app/edxapp/cms.env.json
"DEFAULT_FILE_STORAGE": "django.core.files.storage.FileSystemStorage",
"MEDIA_ROOT": "/edx/var/edxapp/media/",
"MEDIA_URL": "/media/",

I must say i have ORA2 files uploaded on S3 storage but grades attachments uploaded locally. I would like to upload grade attachments on S3 storage as well. Any help with SGA and grades attachments upload to s3 would be helpful.

For grades would the below be correct

Inside lms.env.json & cms.env.json


"GRADES_DOWNLOAD": {

        "BUCKET": "",

        "ROOT_PATH": "",

        "STORAGE_CLASS": "django.core.files.storage.FileSystemStorage",

        "STORAGE_KWARGS": {

            "location": "/tmp/edx-s3/grades"

        },

        "STORAGE_TYPE": ""


change to

    "GRADES_DOWNLOAD": {
        "BUCKET": "edxbucket",
        "ROOT_PATH": "
edxbucket/grades",
        "STORAGE_TYPE": "s3"
    },

Regards,
Neville

Neville D'Souza

unread,
Jan 1, 2019, 11:03:08 PM1/1/19
to General Open edX discussion
Any one willing to share their configuration of S3 for SGA and grades? It would be really helpful. Thanks.

Neville D'Souza

unread,
Jan 12, 2019, 3:40:31 AM1/12/19
to General Open edX discussion
Anybody any ideas?

Tobias Macey

unread,
Jan 15, 2019, 9:15:37 AM1/15/19
to General Open edX discussion
This is the relevant section of our lms.env.json file:

        "GRADES_DOWNLOAD": {
            "BUCKET": "your-grade-bucket-name-goes-here",
            "ROOT_PATH": "folder/path",
            "STORAGE_CLASS": "django.core.files.storage.FileSystemStorage",
            "STORAGE_KWARGS": {
                "location": "/tmp/edx-s3/grades"
            },
            "STORAGE_TYPE": "S3"
        },

On Saturday, January 12, 2019 at 3:40:31 AM UTC-5, Neville D'Souza wrote:
Anybody any ideas?

Neville D'Souza

unread,
Jan 18, 2019, 10:26:17 PM1/18/19
to General Open edX discussion
Thanks Tobias. This is very helpful. I will try it out soon. Any one would like to share SGA S3 config please?
Reply all
Reply to author
Forward
0 new messages