Skip to content

Instantly share code, notes, and snippets.

@singingwolfboy
Created January 5, 2016 20:31
Show Gist options
  • Save singingwolfboy/52ef18e09d54d7d7dd08 to your computer and use it in GitHub Desktop.
Save singingwolfboy/52ef18e09d54d7d7dd08 to your computer and use it in GitHub Desktop.
latest version of edx-search
edxapp@precise64:~/edx-platform$ paver devstack lms
---> pavelib.servers.devstack
---> pavelib.prereqs.install_prereqs
---> pavelib.prereqs.install_ruby_prereqs
Ruby prereqs unchanged, skipping...
---> pavelib.prereqs.install_node_prereqs
Node prereqs unchanged, skipping...
---> pavelib.prereqs.uninstall_python_packages
---> pavelib.prereqs.install_python_prereqs
pip install -q --disable-pip-version-check --exists-action w -r requirements/edx/pre.txt
pip install -q --disable-pip-version-check --exists-action w -r requirements/edx/github.txt
pip install -q --disable-pip-version-check --exists-action w -r requirements/edx/local.txt
pip install -q --disable-pip-version-check --exists-action w -r requirements/edx/base.txt
pip install -q --disable-pip-version-check --exists-action w -r requirements/edx/post.txt
python manage.py cms --settings=devstack reindex_course --setup
/edx/app/edxapp/edx-platform/lms/djangoapps/instructor_task/models.py:39: RemovedInDjango19Warning: Model class instructor_task.models.InstructorTask doesn't declare an explicit app_label and either isn't in an application in INSTALLED_APPS or else was imported before its application was loaded. This will no longer be supported in Django 1.9.
class InstructorTask(models.Model):
2016-01-05 15:31:02,284 WARNING 17060 [py.warnings] base.py:116 - /edx/app/edxapp/edx-platform/lms/djangoapps/instructor_task/models.py:39: RemovedInDjango19Warning: Model class instructor_task.models.InstructorTask doesn't declare an explicit app_label and either isn't in an application in INSTALLED_APPS or else was imported before its application was loaded. This will no longer be supported in Django 1.9.
class InstructorTask(models.Model):
2016-01-05 15:31:04,338 INFO 17060 [urllib3.connectionpool] connectionpool.py:207 - Starting new HTTP connection (1): localhost
2016-01-05 15:31:04,342 INFO 17060 [elasticsearch] base.py:49 - HEAD http://localhost:9200/courseware_index [status:200 request:0.003s]
No handlers could be found for logger "elasticsearch.trace"
2016-01-05 15:31:04,344 INFO 17060 [elasticsearch] base.py:49 - HEAD http://localhost:9200/courseware_index [status:200 request:0.001s]
2016-01-05 15:31:04,346 WARNING 17060 [elasticsearch] base.py:68 - HEAD /courseware_index/courseware_content [status:404 request:0.001s]
2016-01-05 15:31:04,346 INFO 17060 [elasticsearch] base.py:70 - > None
2016-01-05 15:31:04,408 INFO 17060 [urllib3.connectionpool] connectionpool.py:207 - Starting new HTTP connection (1): localhost
2016-01-05 15:31:04,410 INFO 17060 [elasticsearch] base.py:49 - HEAD http://localhost:9200/courseware_index [status:200 request:0.003s]
2016-01-05 15:31:04,436 INFO 17060 [urllib3.connectionpool] connectionpool.py:207 - Starting new HTTP connection (1): localhost
2016-01-05 15:31:04,438 INFO 17060 [elasticsearch] base.py:49 - HEAD http://localhost:9200/courseware_index [status:200 request:0.003s]
2016-01-05 15:31:04,472 INFO 17060 [elasticsearch] base.py:49 - GET http://localhost:9200/courseware_index/course_info/_mapping [status:200 request:0.004s]
2016-01-05 15:31:04,496 INFO 17060 [elasticsearch] base.py:49 - POST http://localhost:9200/_bulk [status:200 request:0.021s]
2016-01-05 15:31:04,497 ERROR 17060 [search.elastic] elastic.py:385 - error while indexing - 'dict' object has no attribute 'message'
Traceback (most recent call last):
File "/edx/app/edxapp/venvs/edxapp/src/edx-search/search/elastic.py", line 381, in index
ElasticSearchEngine.log_indexing_error(indexing_errors)
File "/edx/app/edxapp/venvs/edxapp/src/edx-search/search/elastic.py", line 212, in log_indexing_error
indexing_errors_log.append(indexing_error.message)
AttributeError: 'dict' object has no attribute 'message'
2016-01-05 15:31:04,497 ERROR 17060 [edx.modulestore] courseware_index.py:635 - Course discovery indexing error encountered, course discovery index may be out of date course-v1:edX+DemoX+Demo_Course
Traceback (most recent call last):
File "/edx/app/edxapp/edx-platform/cms/djangoapps/contentstore/courseware_index.py", line 631, in index_about_information
searcher.index(cls.DISCOVERY_DOCUMENT_TYPE, [course_info])
File "/edx/app/edxapp/venvs/edxapp/src/edx-search/search/elastic.py", line 381, in index
ElasticSearchEngine.log_indexing_error(indexing_errors)
File "/edx/app/edxapp/venvs/edxapp/src/edx-search/search/elastic.py", line 212, in log_indexing_error
indexing_errors_log.append(indexing_error.message)
AttributeError: 'dict' object has no attribute 'message'
2016-01-05 15:31:04,503 ERROR 17060 [edx.modulestore] courseware_index.py:267 - Indexing error encountered, courseware index may be out of date course-v1:edX+DemoX+Demo_Course - AttributeError("'dict' object has no attribute 'message'",)
Traceback (most recent call last):
File "/edx/app/edxapp/edx-platform/cms/djangoapps/contentstore/courseware_index.py", line 255, in index
cls.supplemental_index_information(modulestore, structure)
File "/edx/app/edxapp/edx-platform/cms/djangoapps/contentstore/courseware_index.py", line 403, in supplemental_index_information
CourseAboutSearchIndexer.index_about_information(modulestore, structure)
File "/edx/app/edxapp/edx-platform/cms/djangoapps/contentstore/courseware_index.py", line 631, in index_about_information
searcher.index(cls.DISCOVERY_DOCUMENT_TYPE, [course_info])
File "/edx/app/edxapp/venvs/edxapp/src/edx-search/search/elastic.py", line 381, in index
ElasticSearchEngine.log_indexing_error(indexing_errors)
File "/edx/app/edxapp/venvs/edxapp/src/edx-search/search/elastic.py", line 212, in log_indexing_error
indexing_errors_log.append(indexing_error.message)
AttributeError: 'dict' object has no attribute 'message'
Traceback (most recent call last):
File "manage.py", line 116, in <module>
execute_from_command_line([sys.argv[0]] + django_args)
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 354, in execute_from_command_line
utility.execute()
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 346, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/core/management/base.py", line 394, in run_from_argv
self.execute(*args, **cmd_options)
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/core/management/base.py", line 445, in execute
output = self.handle(*args, **options)
File "/edx/app/edxapp/edx-platform/cms/djangoapps/contentstore/management/commands/reindex_course.py", line 115, in handle
CoursewareSearchIndexer.do_course_reindex(store, course_key)
File "/edx/app/edxapp/edx-platform/cms/djangoapps/contentstore/courseware_index.py", line 375, in do_course_reindex
return cls._do_reindex(modulestore, course_key)
File "/edx/app/edxapp/edx-platform/cms/djangoapps/contentstore/courseware_index.py", line 282, in _do_reindex
indexed_count = cls.index(modulestore, structure_key)
File "/edx/app/edxapp/edx-platform/cms/djangoapps/contentstore/courseware_index.py", line 272, in index
raise SearchIndexingError('Error(s) present during indexing', error_list)
contentstore.courseware_index.SearchIndexingError: Error(s) present during indexing
Captured Task Output:
---------------------
---> pavelib.servers.devstack
---> pavelib.prereqs.install_prereqs
---> pavelib.prereqs.install_ruby_prereqs
---> pavelib.prereqs.install_node_prereqs
---> pavelib.prereqs.uninstall_python_packages
---> pavelib.prereqs.install_python_prereqs
pip install -q --disable-pip-version-check --exists-action w -r requirements/edx/pre.txt
pip install -q --disable-pip-version-check --exists-action w -r requirements/edx/github.txt
pip install -q --disable-pip-version-check --exists-action w -r requirements/edx/local.txt
pip install -q --disable-pip-version-check --exists-action w -r requirements/edx/base.txt
pip install -q --disable-pip-version-check --exists-action w -r requirements/edx/post.txt
python manage.py cms --settings=devstack reindex_course --setup
Build failed running pavelib.servers.devstack: Subprocess return code: 1
edxapp@precise64:~/edx-platform$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment