Re: Index failure after upgrade to ReviewBoard 2.5.16

2017-10-05 Thread Christian Hammond
Hi Rob,

That's the version listed in the source code for the version of Haystack
being run. Not sure if that indicates a packaging problem or what, but it's
very strange.

Could you show me that one line in fields.py?

Christian


On Thu, Oct 5, 2017 at 13:22 'Rob Backhurst' via reviewboard <
reviewboard@googlegroups.com> wrote:

> Hi Christian,
>
> We deinately only have version 2.3.1 installed.
>
> python-django-haystack 2.3.1-1.el7
>
> Why would it think we're using 2.1.1 dev? Can we force it to look in the
> correct place?
>
> Thanks
> Rob
>
> On Tuesday, 3 October 2017 09:12:26 UTC+1, Rob Backhurst wrote:
>
>> 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 '' does not
>> have a model_attr 'commit'.
>> Traceback (most recent call last):
>>   File "/usr/bin/rb-site", line 9, in 
>> 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 

Re: Index failure after upgrade to ReviewBoard 2.5.16

2017-10-05 Thread 'Rob Backhurst' via reviewboard
Hi Christian,

We deinately only have version 2.3.1 installed.

python-django-haystack 2.3.1-1.el7

Why would it think we're using 2.1.1 dev? Can we force it to look in the 
correct place?

Thanks
Rob

On Tuesday, 3 October 2017 09:12:26 UTC+1, Rob Backhurst wrote:
>
> 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 '' does not 
> have a model_attr 'commit'.
> Traceback (most recent call last):
>   File "/usr/bin/rb-site", line 9, in 
> 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 

Re: Verbose Debug Info?

2017-10-05 Thread dduncan
Forgot to mention in last message: I talked it over with my supervisor and, 
to the best of our knowledge, there are no other Web Services running on 
that server.

On Thursday, October 5, 2017 at 4:08:36 PM UTC-4, 
ddu...@aviationintertec.com wrote:
>
> Hi Christian,
>
> Thank you for the reply.
>
> There is no log being generated in the Review Board folder, but I did see 
> something I hadn't noticed before in the apache log:
>
> [Thu Oct 05 06:25:03.401752 2017] [wsgi:warn] [pid 17317:tid 
>> 140477232400256] mod_wsgi: Compiled for Python/2.7.11.
>> [Thu Oct 05 06:25:03.401833 2017] [wsgi:warn] [pid 17317:tid 
>> 140477232400256] mod_wsgi: Runtime using Python/2.7.12.
>> [Thu Oct 05 06:25:03.401988 2017] [mpm_event:notice] [pid 17317:tid 
>> 140477232400256] AH00489: Apache/2.4.18 (Ubuntu) mod_wsgi/4.3.0 
>> Python/2.7.12 configured -- resuming normal operations
>> [Thu Oct 05 06:25:03.402013 2017] [core:notice] [pid 17317:tid 
>> 140477232400256] AH00094: Command line: '/usr/sbin/apache2'
>> *[Thu Oct 05 19:42:51.964780 2017] [wsgi:error] [pid 29333:tid 
>> 140477126346496] No handlers could be found for logger 
>> "djblets.log.middleware"*
>>
>
> I looked through the djblets.log.middleware documentation on the review 
> board site but couldn't find anything about handlers. Have you seen this 
> error before? If so what steps were needed to solve it?
>
> Thank you for your time,
> David
>
> On Thursday, October 5, 2017 at 1:41:34 PM UTC-4, Christian Hammond wrote:
>>
>> Hi,
>>
>> It's not normal on an Ubuntu install to hit a 500 error like this. If 
>> you're seeing a 500 this early, it's usually something failing before any 
>> requests even get to Review Board. These might appear in the apache 
>> error_log in the Review Board site directory's logs/ directory, or maybe in 
>> Apache's main error_log in /var/logs. Start by checking those and see if 
>> you can find anything that stands out.
>>
>> Is this server being used for any other web services?
>>
>> Christian
>>
>> On Tue, Oct 3, 2017 at 12:15 PM,  wrote:
>>
>>> Installing Review Board for the first time and can't get past a "500 - 
>>> Internal Server Error" page on start up. I followed all of the set up 
>>> instructions from the webpage,checked to make sure that Apache is using 
>>> wsgi, and confirmed that the username and password I gave ReviewBoard work 
>>> correctly with PostgresSQL.
>>>
>>> Is there a way to enable logging from the command line? Or at least get 
>>> more verbose debugging info? As of right now Review Board is not writing 
>>> any log files, and there are no errors in the Apache log file, so I have no 
>>> leads on how to fix this problem.
>>>
>>>
>>> *Installation Info*Ubuntu 16.04.3 LTS
>>> Apache 2.4.18
>>> PostgreSQL 9.5.9
>>> rb-site 2.5.16
>>> Python 2.7.12
>>>
>>> -- 
>>> 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...@googlegroups.com.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>>
>> -- 
>> Christian Hammond
>> President/CEO of Beanbag 
>> Makers of Review Board 
>>
>

-- 
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.


Re: Verbose Debug Info?

2017-10-05 Thread dduncan
Hi Christian,

Thank you for the reply.

There is no log being generated in the Review Board folder, but I did see 
something I hadn't noticed before in the apache log:

[Thu Oct 05 06:25:03.401752 2017] [wsgi:warn] [pid 17317:tid 
> 140477232400256] mod_wsgi: Compiled for Python/2.7.11.
> [Thu Oct 05 06:25:03.401833 2017] [wsgi:warn] [pid 17317:tid 
> 140477232400256] mod_wsgi: Runtime using Python/2.7.12.
> [Thu Oct 05 06:25:03.401988 2017] [mpm_event:notice] [pid 17317:tid 
> 140477232400256] AH00489: Apache/2.4.18 (Ubuntu) mod_wsgi/4.3.0 
> Python/2.7.12 configured -- resuming normal operations
> [Thu Oct 05 06:25:03.402013 2017] [core:notice] [pid 17317:tid 
> 140477232400256] AH00094: Command line: '/usr/sbin/apache2'
> *[Thu Oct 05 19:42:51.964780 2017] [wsgi:error] [pid 29333:tid 
> 140477126346496] No handlers could be found for logger 
> "djblets.log.middleware"*
>

I looked through the djblets.log.middleware documentation on the review 
board site but couldn't find anything about handlers. Have you seen this 
error before? If so what steps were needed to solve it?

Thank you for your time,
David

On Thursday, October 5, 2017 at 1:41:34 PM UTC-4, Christian Hammond wrote:
>
> Hi,
>
> It's not normal on an Ubuntu install to hit a 500 error like this. If 
> you're seeing a 500 this early, it's usually something failing before any 
> requests even get to Review Board. These might appear in the apache 
> error_log in the Review Board site directory's logs/ directory, or maybe in 
> Apache's main error_log in /var/logs. Start by checking those and see if 
> you can find anything that stands out.
>
> Is this server being used for any other web services?
>
> Christian
>
> On Tue, Oct 3, 2017 at 12:15 PM,  > wrote:
>
>> Installing Review Board for the first time and can't get past a "500 - 
>> Internal Server Error" page on start up. I followed all of the set up 
>> instructions from the webpage,checked to make sure that Apache is using 
>> wsgi, and confirmed that the username and password I gave ReviewBoard work 
>> correctly with PostgresSQL.
>>
>> Is there a way to enable logging from the command line? Or at least get 
>> more verbose debugging info? As of right now Review Board is not writing 
>> any log files, and there are no errors in the Apache log file, so I have no 
>> leads on how to fix this problem.
>>
>>
>> *Installation Info*Ubuntu 16.04.3 LTS
>> Apache 2.4.18
>> PostgreSQL 9.5.9
>> rb-site 2.5.16
>> Python 2.7.12
>>
>> -- 
>> 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...@googlegroups.com .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> -- 
> Christian Hammond
> President/CEO of Beanbag 
> Makers of Review Board 
>

-- 
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.


Re: Recently our Sub version server got patched and now our from review board instance, I am unable to create any review request- failing with (400 Bad Request)

2017-10-05 Thread Christian Hammond
Hi,

Do you have any relevant logs you can show, and a full repro case? I don't
really have any context to go off of here.

What kind of work was done on the server?

Christian

On Tue, Oct 3, 2017 at 7:42 AM, venkata kumar 
wrote:

> Hi Team,
>
> Recently our Sub version server got patched and now our from review board
> instance, I am unable to create any review request- failing with (400 Bad
> Request).  Can you please help if this known issue and how to resolve this.
>
> Server sent unexpected return value (400 Bad Request) in response to
> OPTIONS request for
>
> Thanks
> Kumar
>
>
>
> --
> 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.
>



-- 
Christian Hammond
President/CEO of Beanbag 
Makers of Review Board 

-- 
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.


Re: Verbose Debug Info?

2017-10-05 Thread Christian Hammond
Hi,

It's not normal on an Ubuntu install to hit a 500 error like this. If
you're seeing a 500 this early, it's usually something failing before any
requests even get to Review Board. These might appear in the apache
error_log in the Review Board site directory's logs/ directory, or maybe in
Apache's main error_log in /var/logs. Start by checking those and see if
you can find anything that stands out.

Is this server being used for any other web services?

Christian

On Tue, Oct 3, 2017 at 12:15 PM,  wrote:

> Installing Review Board for the first time and can't get past a "500 -
> Internal Server Error" page on start up. I followed all of the set up
> instructions from the webpage,checked to make sure that Apache is using
> wsgi, and confirmed that the username and password I gave ReviewBoard work
> correctly with PostgresSQL.
>
> Is there a way to enable logging from the command line? Or at least get
> more verbose debugging info? As of right now Review Board is not writing
> any log files, and there are no errors in the Apache log file, so I have no
> leads on how to fix this problem.
>
>
> *Installation Info*Ubuntu 16.04.3 LTS
> Apache 2.4.18
> PostgreSQL 9.5.9
> rb-site 2.5.16
> Python 2.7.12
>
> --
> 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.
>



-- 
Christian Hammond
President/CEO of Beanbag 
Makers of Review Board 

-- 
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.


Re: Index failure after upgrade to ReviewBoard 2.5.16

2017-10-05 Thread Christian Hammond
Hi Rob,

Looks like the version of Haystack being run is claiming to be 2.1.1 dev. I
don't know what this version might be doing for the attribute lookup, but
I'd start by trying to solve the version issue, make sure you're running a
2.3.x release.

I would be interested to find out what line 86
of/usr/lib/python2.7/site-packages/haystack/fields.py looks like.

Christian


On Thu, Oct 5, 2017 at 05:28 'Rob Backhurst' via reviewboard <
reviewboard@googlegroups.com> wrote:

> Perhaps we're able to add some kind of debugging to the indexing to
> provide more info?
>
> Thanks
> Rob
>
>
> On Tuesday, 3 October 2017 09:12:26 UTC+1, Rob Backhurst wrote:
>
>> 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 '' does not
>> have a model_attr 'commit'.
>> Traceback (most recent call last):
>>   File "/usr/bin/rb-site", line 9, in 
>> 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 = 

Re: Index failure after upgrade to ReviewBoard 2.5.16

2017-10-05 Thread 'Rob Backhurst' via reviewboard
Perhaps we're able to add some kind of debugging to the indexing to provide 
more info?

Thanks
Rob

On Tuesday, 3 October 2017 09:12:26 UTC+1, Rob Backhurst wrote:
>
> 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 '' does not 
> have a model_attr 'commit'.
> Traceback (most recent call last):
>   File "/usr/bin/rb-site", line 9, in 
> 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 

Re: Index failure after upgrade to ReviewBoard 2.5.16

2017-10-05 Thread 'Rob Backhurst' via reviewboard
Here you go...

>>> import reviewboard
>>> print reviewboard.VERSION
(2, 5, 16, 0, u'final', 0, True)
>>> print reviewboard.__file__
/usr/lib/python2.7/site-packages/reviewboard/__init__.pyc
>>> import haystack
>>> print haystack.__version__
(2, 1, 1, u'dev')
>>> print haystack.__file__
/usr/lib/python2.7/site-packages/haystack/__init__.pyc



On Tuesday, 3 October 2017 09:12:26 UTC+1, Rob Backhurst wrote:
>
> 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 '' does not 
> have a model_attr 'commit'.
> Traceback (most recent call last):
>   File "/usr/bin/rb-site", line 9, in 
> 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
> 

Re: Index failure after upgrade to ReviewBoard 2.5.16

2017-10-05 Thread Christian Hammond
Strange.. Okay, I want to run something else.

$ rb-site manage /var/www/reviews shell
import reviewboard
print reviewboard.VERSION
print reviewboard.__file__
import haystack
print haystack.__version__
print haystack.__file__


That'll just help me verify that the versions and paths we're seeing are
what we expect.

Christian

On Thu, Oct 5, 2017 at 12:11 AM, 'Rob Backhurst' via reviewboard <
reviewboard@googlegroups.com> wrote:

> Hi Chris,
>
> Yep, its True.
>
> # rb-site manage /var/www/reviews shell
> Python 2.7.5 (default, Aug  4 2017, 00:39:18)
> [GCC 4.8.5 20150623 (Red Hat 4.8.5-16)] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
> (InteractiveConsole)
> >>> from reviewboard.reviews.models import ReviewRequest
> >>> r = ReviewRequest.objects.get(pk=1)
> >>> print hasattr(r, 'commit')
> True
> >>>
>
> Cheers
> Rob
>
> On Tuesday, 3 October 2017 09:12:26 UTC+1, Rob Backhurst wrote:
>
>> 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 '' does not
>> have a model_attr 'commit'.
>> Traceback (most recent call last):
>>   File "/usr/bin/rb-site", line 9, in 
>> 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 
>> 

Re: Index failure after upgrade to ReviewBoard 2.5.16

2017-10-05 Thread 'Rob Backhurst' via reviewboard
Hi Chris,

Yep, its True.

# rb-site manage /var/www/reviews shell
Python 2.7.5 (default, Aug  4 2017, 00:39:18)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-16)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
(InteractiveConsole)
>>> from reviewboard.reviews.models import ReviewRequest
>>> r = ReviewRequest.objects.get(pk=1)
>>> print hasattr(r, 'commit')
True
>>>

Cheers
Rob

On Tuesday, 3 October 2017 09:12:26 UTC+1, Rob Backhurst wrote:
>
> 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 '' does not 
> have a model_attr 'commit'.
> Traceback (most recent call last):
>   File "/usr/bin/rb-site", line 9, in 
> 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,