Hi,

I upgraded our ReviewBoard system from 2.5.10 to 2.5.16 - since then, 
indexing doesn't seem to complete.
The index starts OK, but after a while stops with this error...

ERROR:root:Error updating reviews using default
Traceback (most recent call last):
  File 
"/usr/lib/python2.7/site-packages/haystack/management/commands/update_index.py",
 
line 189, in handle_label
    self.update_backend(label, using)
  File 
"/usr/lib/python2.7/site-packages/haystack/management/commands/update_index.py",
 
line 234, in update_backend
    do_update(backend, index, qs, start, end, total, self.verbosity)
  File 
"/usr/lib/python2.7/site-packages/haystack/management/commands/update_index.py",
 
line 89, in do_update
    backend.update(index, current_qs)
  File 
"/usr/lib/python2.7/site-packages/haystack/backends/whoosh_backend.py", 
line 191, in update
    doc = index.full_prepare(obj)
  File "/usr/lib/python2.7/site-packages/haystack/indexes.py", line 207, in 
full_prepare
    self.prepared_data = self.prepare(obj)
  File "/usr/lib/python2.7/site-packages/haystack/indexes.py", line 198, in 
prepare
    self.prepared_data[field.index_fieldname] = field.prepare(obj)
  File "/usr/lib/python2.7/site-packages/haystack/fields.py", line 159, in 
prepare
    return self.convert(super(CharField, self).prepare(obj))
  File "/usr/lib/python2.7/site-packages/haystack/fields.py", line 87, in 
prepare
    raise SearchFieldError("The model '%s' does not have a model_attr 
'%s'." % (repr(obj), attr))
SearchFieldError: The model '<ReviewRequest: <CUT_REVIEW_NAME>' does not 
have a model_attr 'commit'.
Traceback (most recent call last):
  File "/usr/bin/rb-site", line 9, in <module>
    load_entry_point('ReviewBoard==2.5.16', 'console_scripts', 'rb-site')()
  File "/usr/lib/python2.7/site-packages/reviewboard/cmdline/rbsite.py", 
line 1964, in main
    command.run()
  File "/usr/lib/python2.7/site-packages/reviewboard/cmdline/rbsite.py", 
line 1884, in run
    site.run_manage_command(args[0], args[1:])
  File "/usr/lib/python2.7/site-packages/reviewboard/cmdline/rbsite.py", 
line 712, in run_manage_command
    execute_from_command_line([__file__, cmd] + params)
  File 
"/usr/lib/python2.7/site-packages/django/core/management/__init__.py", line 
399, in execute_from_command_line
    utility.execute()
  File 
"/usr/lib/python2.7/site-packages/django/core/management/__init__.py", line 
392, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/usr/lib/python2.7/site-packages/django/core/management/base.py", 
line 242, in run_from_argv
    self.execute(*args, **options.__dict__)
  File "/usr/lib/python2.7/site-packages/django/core/management/base.py", 
line 285, in execute
    output = self.handle(*args, **options)
  File 
"/usr/lib/python2.7/site-packages/reviewboard/reviews/management/commands/index.py",
 
line 21, in handle
    call_command('update_index')
  File 
"/usr/lib/python2.7/site-packages/django/core/management/__init__.py", line 
159, in call_command
    return klass.execute(*args, **defaults)
  File "/usr/lib/python2.7/site-packages/django/core/management/base.py", 
line 285, in execute
    output = self.handle(*args, **options)
  File 
"/usr/lib/python2.7/site-packages/haystack/management/commands/update_index.py",
 
line 184, in handle
    return super(Command, self).handle(*items, **options)
  File "/usr/lib/python2.7/site-packages/django/core/management/base.py", 
line 385, in handle
    label_output = self.handle_label(label, **options)
  File 
"/usr/lib/python2.7/site-packages/haystack/management/commands/update_index.py",
 
line 189, in handle_label
    self.update_backend(label, using)
  File 
"/usr/lib/python2.7/site-packages/haystack/management/commands/update_index.py",
 
line 234, in update_backend
    do_update(backend, index, qs, start, end, total, self.verbosity)
  File 
"/usr/lib/python2.7/site-packages/haystack/management/commands/update_index.py",
 
line 89, in do_update
    backend.update(index, current_qs)
  File 
"/usr/lib/python2.7/site-packages/haystack/backends/whoosh_backend.py", 
line 191, in update
    doc = index.full_prepare(obj)
  File "/usr/lib/python2.7/site-packages/haystack/indexes.py", line 207, in 
full_prepare
    self.prepared_data = self.prepare(obj)
  File "/usr/lib/python2.7/site-packages/haystack/indexes.py", line 198, in 
prepare
    self.prepared_data[field.index_fieldname] = field.prepare(obj)
  File "/usr/lib/python2.7/site-packages/haystack/fields.py", line 159, in 
prepare
    return self.convert(super(CharField, self).prepare(obj))
  File "/usr/lib/python2.7/site-packages/haystack/fields.py", line 87, in 
prepare
    raise SearchFieldError("The model '%s' does not have a model_attr 
'%s'." % (repr(obj), attr))
haystack.exceptions.SearchFieldError: The model '<ReviewRequest: 
CUT_REVIEW_NAME>' does not have a model_attr 'commit'.

Any ideas what could be causing this?
We are running this on CentOS Linux release 7.4.1708 (Core)

Thanks
Rob




-- 
Supercharge your Review Board with Power Pack: 
https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: 
https://rbcommons.com/
Happy user? Let us know! https://www.reviewboard.org/users/
--- 
You received this message because you are subscribed to the Google Groups 
"reviewboard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to