Re: [edx-code] CMS and LMS are down after installing an XBlock.

587 views
Skip to first unread message

Ned Batchelder

unread,
Feb 24, 2015, 11:22:09 AM2/24/15
to edx-...@googlegroups.com
Hosam,

It looks like there's an error in your jsav XBlock:

Traceback (most recent call last):
File "/edx/app/edxapp/edx-platform/cms/djangoapps/contentstore/views/preview.py", line 261, in get_preview_fragment
fragment = module.render(preview_view, context)
File "/edx/app/edxapp/venvs/edxapp/src/xblock/xblock/core.py", line 154, in render
return self.runtime.render(self, view, context)
File "/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/x_module.py", line 1634, in render
return self.__getattr__('render')(block, view_name, context)
File "/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/x_module.py", line 1139, in render
return super(MetricsMixin, self).render(block, view_name, context=context)
File "/edx/app/edxapp/venvs/edxapp/src/xblock/xblock/runtime.py", line 806, in render
frag = view_fn(context)
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/jsav/jsav.py", line 143, in student_view
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/jsav/jsav.py", line 193, in resource_string
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/pkg_resources.py", line 928, in resource_string
self, resource_name
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/pkg_resources.py", line 1226, in get_resource_string
return self._get(self._fn(self.module_path, resource_name))
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/pkg_resources.py", line 1353, in _get
stream = open(path, 'rb')
IOError: [Errno 2] No such file or directory: '/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/jsav/public/html/student_view.html'

--Ned.

On Sat, Feb 21, 2015 at 6:00 PM, Hosam Shahin <hosam.l...@gmail.com> wrote:
Hi,

  I've installed OpenEdX. I followed the instructions on this link (https://github.com/edx/configuration/wiki/edX-Ubuntu-12.04-64-bit-Installation) to install OpenEdX on Ubuntu 12.04.)

Installation was Ok, then I tried to install my XBlock. XBlock installation was fine (I followed the installation instruction in URL https://github.com/edx/edx-platform/wiki/Installing-a-new-XBlock

And then when I tried to reboot using the following command

sudo /edx/bin/supervisorctl -c /edx/etc/supervisord.conf restart edxapp:

cms and lms were down!. I'm getting 502 Bad Gateway response and the browser shows (Uh oh, we are having some server issues..)



Thanks



Reply all
Reply to author
Forward
0 new messages