August 29, 2021

Unable to Download Data Generated Open edX

Activities, Android Developer, Ansible, Apache2, Atlassian, Ayo Belajar Linux, Bestpath Network, BLC Telkom Klaten, BSD, Caddy Server, Case Study, Cisco, Cisco Indonesia, Cloud Computing, Cockpit, Custom Weapons, Docker, E-Learning, Engenius, Error, FreeBSD, FreeBSD Indonesia, Komunitas Pengguna Linux Indonesia, KPLI Bulukumba, KPLI Klaten, Lets Encrypt, Linux, MacOS, Microsoft Azure, Microsoft SQL Server, MikroTik, MikroTik Indonesia, MySQL, Nginx, Open edX, OpenSID, Others, PHP, phpMyAdmin, PostgreSQL, Proxmox, Python, Redash, Sendy, SSH, Stories, Subnetting, TP-Link, Ubiquiti, Unix, Virtualization, Windows, X-Mosque, Faizar Septiawan, Icar, siBunglonGanteng, Orang Ganteng, siBunglonLabs, Programmer, SysAdmin, Site Reliability Engineer, Developer, Palugada, Makassar, Ganteng, Gila, Cyclist, Panglima, Setan, Panglima Setan, sibunglon, Ganteng

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.