Unable to Download Data Generated Open edX
This problem occurs because don’t use Amazon S3 to save data generated. To fix it, follow these steps.
-) Login to Open edX server, then create symbolic link from /tmp/edx-s3/grades
to /edx/var/edxapp/media
.
-) Update nginx configuration of LMS. Find the following snippet codes on the configuration file.
location ~ ^/media/(?P<file>.*) {
root /edx/var/edxapp/media;
try_files /$file =404;
expires 31536000s;
}
Change =404
to /grades/$file
or looks like the configuration below.
location ~ ^/media/(?P<file>.*) {
root /edx/var/edxapp/media;
try_files /$file /grades/$file;
expires 31536000s;
}
location ~ ^/grades/(?P<file>.*) {
root /edx/var/edxapp/media/grades;
try_files /$file =404;
expires 31536000s;
}
After that make sure the configuration is not error, use the command sudo nginx -t
. And then restart nginx service use the command sudo systemctl restart nginx
.