I made a post on the open edx google groups regarding this issue, pasting the same below. It includes the traceback captured from the edxapp logs
We've just set Bitnami's image of Open EdX on our AWS server. The issue is that Problem Components don't render in LMS, they render correctly in Studio though. I found that an exception is being thrown the from endpoint 'invokexblock_handler' in the file "/opt/bitnami/apps/edx/edx-platform/lms/djangoapps/courseware/module_render.py". The library 'newrelic.agent' is being imported in the start of this file, but looks like the import actually fails.
2016-05-26 01:11:02,518 ERROR 11032 [django.request] base.py:256 - Internal Server Error: /courses/NextBig3D/T101/Summer/xblock/i4x:;_;_NextBig3D;_T101;_problem;_449e99cb692e45ccba85d9e12d6271d5/handler/xmodule_handler/problem_get
Traceback (most recent call last):
File "/opt/bitnami/apps/edx/edx-platform/venv/lib/python2.7/site-packages/django/core/handlers/base.py", line 132, in get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/opt/bitnami/apps/edx/edx-platform/lms/djangoapps/courseware/module_render.py", line 917, in handle_xblock_callback
return _invoke_xblock_handler(request, course_id, usage_id, handler, suffix, course=course)
File "/opt/bitnami/apps/edx/edx-platform/lms/djangoapps/courseware/module_render.py", line 1006, in _invoke_xblock_handler
NameError: global name 'newrelic' is not defined
I've done a pip install of newrelic just to be sure and looks like the lib is already available in the env :
bitnami@ip-172-31-11-2:/opt/bitnami$ sudo ./use_edx
root@ip-172-31-11-2:/opt/bitnami# source /opt/bitnami/apps/edx/edx-platform/venv/bin/activate
(venv)root@ip-172-31-11-2:/opt/bitnami# pip install newrelic
The directory '/home/bitnami/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/home/bitnami/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Requirement already satisfied (use --upgrade to upgrade): newrelic in ./apps/edx/edx-platform/venv/lib/python2.7/site-packages/newrelic-184.108.40.206
You are using pip version 7.1.2, however version 8.1.2 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
can anyone help with any insights into this?
Hope this helps expedite a fix for this.
Our open edX instance is unusable because of this issue, any workarounds till this gets fixed?