Я установил open edx на двух разных машинах, и доступ осуществляется с помощью балансировщика нагрузки.
Я настроил Scorm xblock https://github.com/raccoongang/edx_xblock_scorm в open edx.
Я хочу загрузить scorm в azure BLOB-объектах, так что доступ к обеим машинам.
Моя конфигурация в lms.env. json и cms.env. json
"AZURE_ACCOUNT_KEY":"xxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"AZURE_ACCOUNT_NAME": "myedx",
"AZURE_CONTAINER": "edx",
"DEFAULT_FILE_STORAGE": "openedx.core.storage.AzureStorageMedia",
"MEDIA_ROOT": "https://myedx.blob.core.windows.net/edx/",
"MEDIA_URL": "https://myedx.blob.core.windows.net/edx/",
Мой класс хранения
class AzureStorageMedia(AzureStorage):
account_name = settings.AZURE_ACCOUNT_NAME
account_key = settings.AZURE_ACCOUNT_KEY
azure_container = settings.AZURE_CONTAINER
expiration_secs = None
location = 'media'
file_overwrite = False
Моя ошибка
resp = descriptor.handle(handler, req, suffix)
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/xblock/mixins.py", line 89, in handle
return self.runtime.handle(self, handler_name, request, suffix)
File "/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/x_module.py", line 1347, in handle
return super(MetricsMixin, self).handle(block, handler_name, request, suffix=suffix)
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/xblock/runtime.py", line 1037, in handle
results = handler(request, suffix)
File "/edx/app/edxapp/edx_xblock_scorm/scormxblock/scormxblock.py", line 164, in studio_submit
os.mkdir(SCORM_ROOT)
OSError: [Errno 2] No such file or directory: 'https://myedx.blob.core.windows.net/edx/scorm'
Как решить эту ошибку.