Hi @alex
I recently updated both the server and the moodle export block to the latest versions.
I am trying to export a course with media to the staging server that I set up. I am getting an error. (I have increased the php upload size but am still getting an error.)
I have attached the error files.
Here is the apache error log for oppia:-
[Wed Jan 27 15:08:05.277218 2021] [wsgi:error] [pid 1715] setattr(self, attr, getattr(obj, attr))
[Wed Jan 27 15:08:05.277446 2021] [wsgi:error] [pid 1715] /home/oppia/env/lib/python3.6/site-packages/sorl/thumbnail/conf/init.py:16: RemovedInDjango31Warning: The FILE_CHARSET setting is deprecated. Starting with Django 3.1, all files read from disk must be UTF-8 encoded.
[Wed Jan 27 15:08:05.277457 2021] [wsgi:error] [pid 1715] setattr(self, attr, getattr(obj, attr))
[Wed Jan 27 15:08:06.585812 2021] [wsgi:error] [pid 1715] [remote 52.207.27.153:53848] /home/oppia/django-oppia/av/forms.py:69: ResourceWarning: unclosed file <_io.BufferedReader name=’/tmp/tmper_23py0.upload.m4v’>
[Wed Jan 27 15:08:06.585846 2021] [wsgi:error] [pid 1715] [remote 52.207.27.153:53848] ‘rb’).read()).hexdigest()
[Wed Jan 27 15:08:07.067032 2021] [wsgi:error] [pid 1715] [remote 52.207.27.153:53848] deleting …/home/oppia/media/uploaded/2021/01/PriorityEssentialHealthServices-Overview.m4v
[Wed Jan 27 15:08:07.078168 2021] [wsgi:error] [pid 1715] [remote 52.207.27.153:53848] File removed
[Wed Jan 27 15:08:07.082700 2021] [wsgi:error] [pid 1715] [remote 52.207.27.153:53848] Bad Request: /api/media/
Thanks, I had not installed the ffmpeg package on the new server (I copied over the whole oppia folder and database to the new server, so I had assumed all the packages wea installed as well)
@alex Maybe a follow up question, previously, I used to upload my video files in a folder outside the oppia directory. And I would use the media embed helper to generate the script used in moodle.
Following this update on the export block, Is there a way to specify a diffrent upload directory different from the default??
I’ve not specifically tested this out, and it might require a db migration, plus need to check the web server etc has write access and that it can serve up the media files from that dir (in the apache config). Think that should work.