TASK [migrate : rebuild_index] **************************************************************************
fatal: [172.31.31.5]: FAILED! => changed=false
cmd: ./manage.py rebuild_index --noinput
msg: |-
stdout: Removing all documents from your index because you said so.
All documents removed.
Indexing 13 releases
:stderr: System check identified some issues:
WARNINGS:
?: (urls.W005) URL namespace 'social' isn't unique. You may not be able to reverse all URLs in this namespace
[ERROR/MainProcess] Failed indexing 1 - 13 (retry 5/5): 'App' object has no attribute 'categories' (pid 4859): 'App' object has no attribute 'categories'
Traceback (most recent call last):
File "/home/ubuntu/appstore/venv/lib/python3.6/site-packages/haystack/management/commands/update_index.py", line 97, in do_update
backend.update(index, current_qs, commit=commit)
File "/home/ubuntu/appstore/venv/lib/python3.6/site-packages/haystack/backends/whoosh_backend.py", line 185, in update
doc = index.full_prepare(obj)
File "/home/ubuntu/appstore/venv/lib/python3.6/site-packages/haystack/indexes.py", line 208, in full_prepare
self.prepared_data = self.prepare(obj)
File "/home/ubuntu/appstore/venv/lib/python3.6/site-packages/haystack/indexes.py", line 202, in prepare
value = getattr(self, "prepare_%s" % field_name)(obj)
File "/home/ubuntu/appstore/apps/search_indexes.py", line 31, in prepare_categories
return [category.id for category in obj.app.categories.all()]
AttributeError: 'App' object has no attribute 'categories'
[ERROR/MainProcess] Error updating apps using default
Traceback (most recent call last):
File "/home/ubuntu/appstore/venv/lib/python3.6/site-packages/haystack/management/commands/update_index.py", line 230, in handle
self.update_backend(label, using)
File "/home/ubuntu/appstore/venv/lib/python3.6/site-packages/haystack/management/commands/update_index.py", line 276, in update_backend
last_max_pk=max_pk)
File "/home/ubuntu/appstore/venv/lib/python3.6/site-packages/haystack/management/commands/update_index.py", line 97, in do_update
backend.update(index, current_qs, commit=commit)
File "/home/ubuntu/appstore/venv/lib/python3.6/site-packages/haystack/backends/whoosh_backend.py", line 185, in update
doc = index.full_prepare(obj)
File "/home/ubuntu/appstore/venv/lib/python3.6/site-packages/haystack/indexes.py", line 208, in full_prepare
self.prepared_data = self.prepare(obj)
File "/home/ubuntu/appstore/venv/lib/python3.6/site-packages/haystack/indexes.py", line 202, in prepare
value = getattr(self, "prepare_%s" % field_name)(obj)
File "/home/ubuntu/appstore/apps/search_indexes.py", line 31, in prepare_categories
return [category.id for category in obj.app.categories.all()]
AttributeError: 'App' object has no attribute 'categories'
Traceback (most recent call last):
File "./manage.py", line 15, in <module>
execute_from_command_line(sys.argv)
File "/home/ubuntu/appstore/venv/lib/python3.6/site-packages/django/core/management/__init__.py", line 381, in execute_from_command_line
utility.execute()
File "/home/ubuntu/appstore/venv/lib/python3.6/site-packages/django/core/management/__init__.py", line 375, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/home/ubuntu/appstore/venv/lib/python3.6/site-packages/django/core/management/base.py", line 323, in run_from_argv
self.execute(*args, **cmd_options)
File "/home/ubuntu/appstore/venv/lib/python3.6/site-packages/django/core/management/base.py", line 364, in execute
output = self.handle(*args, **options)
File "/home/ubuntu/appstore/venv/lib/python3.6/site-packages/haystack/management/commands/rebuild_index.py", line 42, in handle
call_command('update_index', **update_options)
File "/home/ubuntu/appstore/venv/lib/python3.6/site-packages/django/core/management/__init__.py", line 148, in call_command
return command.execute(*args, **defaults)
File "/home/ubuntu/appstore/venv/lib/python3.6/site-packages/django/core/management/base.py", line 364, in execute
output = self.handle(*args, **options)
File "/home/ubuntu/appstore/venv/lib/python3.6/site-packages/haystack/management/commands/update_index.py", line 230, in handle
self.update_backend(label, using)
File "/home/ubuntu/appstore/venv/lib/python3.6/site-packages/haystack/management/commands/update_index.py", line 276, in update_backend
last_max_pk=max_pk)
File "/home/ubuntu/appstore/venv/lib/python3.6/site-packages/haystack/management/commands/update_index.py", line 97, in do_update
backend.update(index, current_qs, commit=commit)
File "/home/ubuntu/appstore/venv/lib/python3.6/site-packages/haystack/backends/whoosh_backend.py", line 185, in update
doc = index.full_prepare(obj)
File "/home/ubuntu/appstore/venv/lib/python3.6/site-packages/haystack/indexes.py", line 208, in full_prepare
self.prepared_data = self.prepare(obj)
File "/home/ubuntu/appstore/venv/lib/python3.6/site-packages/haystack/indexes.py", line 202, in prepare
value = getattr(self, "prepare_%s" % field_name)(obj)
File "/home/ubuntu/appstore/apps/search_indexes.py", line 31, in prepare_categories
return [category.id for category in obj.app.categories.all()]
AttributeError: 'App' object has no attribute 'categories'
path: /home/ubuntu/appstore/venv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
syspath:
- /tmp/ansible_django_manage_payload_iyan8mxd/ansible_django_manage_payload.zip
- /usr/lib/python36.zip
- /usr/lib/python3.6
- /usr/lib/python3.6/lib-dynload
- /usr/local/lib/python3.6/dist-packages
- /usr/lib/python3/dist-packages
PR #236 is merged. Preparing to deploy to https://devappstore3.bioviz.org.
Note that I am not deploying to devappstore5, which hosts the previous commit version of appstore, so that we can compare the two sites when needed.