December 22, 2020

Open Response Assessment (ORA) Using Filesystem as Storage in Open edX

Linux, Unix, BSD, MacOS, Komunitas Pengguna Linux Indonesia, KPLI Klaten, KPLI Bulukumba, MikroTik, MikroTik Indonesia, FreeBSD, FreeBSD Indonesia, Cisco, Cisco Indonesia, BLC Telkom Klaten, Ansible, Nginx, Apache2, Caddy Server, Ayo Belajar Linux, Cloud Computing, e-Learning, Open edX, Proxmox, Sendy, Microsoft SQL Server, MySQL, PostgreSQL, Lets Encrypt, Case Study, Atlassian, Virtualization, Faizar Septiawan, Icar, siBunglonGanteng, siBunglonLabs, Orang Ganteng

By default, ORA uses Amazon S3 as a storage for files uploaded via this component. Apart from using Amazon S3, ORA has alternative storage, one of which is the filesystem.

Following are the steps you need to take if you want the uploaded files to be stored on the Open edX server.

  1. Open dan edit file /edx/app/edxapp/edx-platform/lms/envs/, then add the following syntax.
### ORA2 filesystem settings
ORA2_FILEUPLOAD_ROOT = os.path.join(MEDIA_ROOT, 'ora-upload/')
  1. Open dan edit file /edx/app/edxapp/lms.env.json, then find FILE_UPLOAD_STORAGE_BUCKET_NAME, the value still needs to be set even when using the filesystem method. For example, the value is set to ora2.

  2. Create a storage media directory and set the directory permissions that are created.

$ sudo mkdir -p /edx/var/edxapp/media/ora-upload/ora2/submissions_attachments
$ sudo chmod -R 775 /edx/var/edxapp/media/ora-upload/ora2
$ sudo chown www-data:www-data /edx/var/edxapp/media/ora-upload/ -R
  1. Until this stage the setup process has been completed, please restart the LMS service then test the upload file and download the uploaded file.