打开 edx edxapp 并且 edxapp_worker 而不是 运行

Open edx edxapp and edxapp_worker not running

CMS 和 LMS 出现服务器错误。 我尝试重新启动 edxapp_worker 并遇到错误:

sudo /edx/bin/supervisorctl restart edxapp_worker:
edxapp_worker:lms_high_mem_2: started
edxapp_worker:lms_default_3: started
edxapp_worker:cms_default_4: started
edxapp_worker:lms_high_4: started
edxapp_worker:cms_low_3: ERROR (abnormal termination)
edxapp_worker:cms_high_1: ERROR (abnormal termination)
edxapp_worker:lms_low_1: started

错误日志:

Traceback (most recent call last):
  File "/edx/app/edxapp/edx-platform/manage.py", line 111, in <module>
    startup = importlib.import_module(edx_args.startup)
  File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
    __import__(name)
  File "/edx/app/edxapp/edx-platform/cms/startup.py", line 8, in <module>
    settings.INSTALLED_APPS  # pylint: disable=pointless-statement
  File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/utils/functional.py", line 184, in inner
    self._setup()
  File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/conf/__init__.py", line 42, in _setup
    self._wrapped = Settings(settings_module)
  File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/conf/__init__.py", line 95, in __init__
    raise ImportError("Could not import settings '%s' (Is it on sys.path?): %s" % (self.SETTINGS_MODULE, e))
ImportError: Could not import settings 'cms.envs.aws' (Is it on sys.path?): No module named validation

如何解决这个问题?

您安装的 Xblock 版本似乎没有 validation.py 文件。 重新安装它,它会解决这个问题。

  /edx/bin/pip.edxapp install -e git+https://github.com/edx/XBlock.git@named-release/birch#egg=xblock