HI, I am trying to change the openassessment module to use filesystem storage instead of s3. But on the CMS insterface when I try to create a peer to peer exercise and I chose the option that is obligatory to upload a file i receive the next error:
2018-09-24T16:28:09.712315+02:00 pruebas-openedx-02 [service_variant=cms][django.request][env:sandbox] ERROR [pruebas-openedx-02 7637] [base.py:256] - Internal Server Error: /preview/xblock/block-v1:pruebaX+BRD03+2018-T2+type@openassessment+block@a8313ebb40064820b657c8fcc58a7974/handler/render_submission
Traceback (most recent call last):
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 132, in get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/utils/decorators.py", line 145, in inner
return func(*args, **kwargs)
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/contrib/auth/decorators.py", line 22, in _wrapped_view
return view_func(request, *args, **kwargs)
File "/edx/app/edxapp/edx-platform/cms/djangoapps/contentstore/views/preview.py", line 69, in preview_handler
resp = instance.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 1339, 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 1029, in handle
results = handler(request, suffix)
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/openassessment/xblock/submission_mixin.py", line 477, in render_submission
path, context = self.submission_path_and_context()
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/openassessment/xblock/submission_mixin.py", line 523, in submission_path_and_context
file_url = self._get_download_url(i)
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/openassessment/xblock/submission_mixin.py", line 348, in _get_download_url
return file_upload_api.get_download_url(self._get_student_item_key(file_num))
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/openassessment/fileupload/api.py", line 22, in get_download_url
return backends.get_backend().get_download_url(key)
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/openassessment/fileupload/backends/filesystem.py", line 42, in get_download_url
return self._get_url(key)
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/openassessment/fileupload/backends/filesystem.py", line 50, in _get_url
url = reverse("openassessment-filesystem-storage", kwargs={'key': key_name})
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/core/urlresolvers.py", line 578, in reverse
return force_text(iri_to_uri(resolver._reverse_with_prefix(view, prefix, *args, **kwargs)))
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/core/urlresolvers.py", line 495, in _reverse_with_prefix
(lookup_view_s, args, kwargs, len(patterns), patterns))
NoReverseMatch: Reverse for 'openassessment-filesystem-storage' with arguments '()' and keyword arguments '{'key': u'submissions_attachments/student/course-v1:pruebaX+BRD03+2018-T2/block-v1:pruebaX+BRD03+2018-T2+type@openassessment+block@a8313ebb40064820b657c8fcc58a7974'}' not found. 0 pattern(s) tried: []
On the CMS a loading red circle appears to show that there is an error but the exercise seems to work fine without errors, only in the log.