Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 3830 by msu...@aurea.com: Rebuild index fails due to character
encoding
https://code.google.com/p/reviewboard/issues/detail?id=3830
*** READ THIS BEFORE POSTING!
***
*** You must complete this form in its entirety, or your bug report will be
*** rejected.
***
*** If you have a security issue to report, please send it confidentially
to
*** secur...@reviewboard.org. Posting security-related issues to this bug
*** tracker causes us to have to do an emergency release.
***
*** For customer support, please post to reviewbo...@googlegroups.com
***
*** If you have a patch, please submit it to
http://reviews.reviewboard.org/
***
*** This bug tracker is public. Please check that any logs or other
information
*** that you include has been stripped of confidential information.
What version are you running?
2.0.15
What's the URL of the page containing the problem?
N/A
What steps will reproduce the problem?
1. From the prompt, rebuild the search index
2. sudo ./usr/local/bin/rb-site manage /var/www/review.aurea.local
rebuild_index
3.
What is the expected output? What do you see instead?
Expected to get an index rebuild. See below for the error.
What operating system are you using? What browser?
Amazon linux
Please provide any additional information below.
[ec2-user@review /]$ sudo ./usr/local/bin/rb-site manage /var/www/review
rebuild_index
/usr/lib64/python2.6/dist-packages/Crypto/Util/number.py:57:
PowmInsecureWarning: Not using mpz_powm_sec. You should rebuild using
libgmp >= 5 to avoid timing attack vulnerability.
_warn("Not using mpz_powm_sec. You should rebuild using libgmp >= 5 to
avoid timing attack vulnerability.", PowmInsecureWarning)
WARNING: This will irreparably remove EVERYTHING from your search index in
connection 'default'.
Your choices after this are to restore from backups or rebuild via the
`rebuild_index` command.
Are you sure you wish to continue? [y/N] y
Removing all documents from your index because you said so.
All documents removed.
Indexing 115 users
ERROR:root:Error updating auth using default
Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/django_haystack-2.3.1-py2.6.egg/haystack/management/commands/update_index.py",
line 189, in handle_label
self.update_backend(label, using)
File "/usr/lib/python2.6/site-packages/django_haystack-2.3.1-py2.6.egg/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.6/site-packages/django_haystack-2.3.1-py2.6.egg/haystack/management/commands/update_index.py",
line 89, in do_update
backend.update(index, current_qs)
File "/usr/lib/python2.6/site-packages/django_haystack-2.3.1-py2.6.egg/haystack/backends/whoosh_backend.py",
line 191, in update
doc = index.full_prepare(obj)
File "/usr/lib/python2.6/site-packages/django_haystack-2.3.1-py2.6.egg/haystack/indexes.py",
line 207, in full_prepare
self.prepared_data = self.prepare(obj)
File "/usr/lib/python2.6/site-packages/django_haystack-2.3.1-py2.6.egg/haystack/indexes.py",
line 198, in prepare
self.prepared_data[field.index_fieldname] = field.prepare(obj)
File "/usr/lib/python2.6/site-packages/django_haystack-2.3.1-py2.6.egg/haystack/fields.py",
line 159, in prepare
return self.convert(super(CharField, self).prepare(obj))
File "/usr/lib/python2.6/site-packages/django_haystack-2.3.1-py2.6.egg/haystack/fields.py",
line 106, in prepare
return current_object()
File "/usr/lib/python2.6/site-packages/Django-1.6.10-py2.6.egg/django/contrib/auth/models.py",
line 402, in get_full_name
full_name = '%s %s' % (self.first_name, self.last_name)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 1:
ordinal not in range(128)
Traceback (most recent call last):
File "./usr/local/bin/rb-site", line 9, in <module>
load_entry_point('ReviewBoard==2.0.15', 'console_scripts', 'rb-site')()
File "/usr/local/lib/python2.6/site-packages/ReviewBoard-2.0.15-py2.6.egg/reviewboard/cmdline/rbsite.py",
line 1885, in main
command.run()
File "/usr/local/lib/python2.6/site-packages/ReviewBoard-2.0.15-py2.6.egg/reviewboard/cmdline/rbsite.py",
line 1814, in run
site.run_manage_command(args[0], args[1:])
File "/usr/local/lib/python2.6/site-packages/ReviewBoard-2.0.15-py2.6.egg/reviewboard/cmdline/rbsite.py",
line 662, in run_manage_command
execute_from_command_line([__file__, cmd] + params)
File "/usr/lib/python2.6/site-packages/Django-1.6.10-py2.6.egg/django/core/management/__init__.py",
line 399, in execute_from_command_line
utility.execute()
File "/usr/lib/python2.6/site-packages/Django-1.6.10-py2.6.egg/django/core/management/__init__.py",
line 392, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/lib/python2.6/site-packages/Django-1.6.10-py2.6.egg/django/core/management/base.py",
line 242, in run_from_argv
self.execute(*args, **options.__dict__)
File "/usr/lib/python2.6/site-packages/Django-1.6.10-py2.6.egg/django/core/management/base.py",
line 285, in execute
output = self.handle(*args, **options)
File "/usr/lib/python2.6/site-packages/django_haystack-2.3.1-py2.6.egg/haystack/management/commands/rebuild_index.py",
line 16, in handle
call_command('update_index', **options)
File "/usr/lib/python2.6/site-packages/Django-1.6.10-py2.6.egg/django/core/management/__init__.py",
line 159, in call_command
return klass.execute(*args, **defaults)
File "/usr/lib/python2.6/site-packages/Django-1.6.10-py2.6.egg/django/core/management/base.py",
line 285, in execute
output = self.handle(*args, **options)
File "/usr/lib/python2.6/site-packages/django_haystack-2.3.1-py2.6.egg/haystack/management/commands/update_index.py",
line 184, in handle
return super(Command, self).handle(*items, **options)
File "/usr/lib/python2.6/site-packages/Django-1.6.10-py2.6.egg/django/core/management/base.py",
line 385, in handle
label_output = self.handle_label(label, **options)
File "/usr/lib/python2.6/site-packages/django_haystack-2.3.1-py2.6.egg/haystack/management/commands/update_index.py",
line 189, in handle_label
self.update_backend(label, using)
File "/usr/lib/python2.6/site-packages/django_haystack-2.3.1-py2.6.egg/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.6/site-packages/django_haystack-2.3.1-py2.6.egg/haystack/management/commands/update_index.py",
line 89, in do_update
backend.update(index, current_qs)
File "/usr/lib/python2.6/site-packages/django_haystack-2.3.1-py2.6.egg/haystack/backends/whoosh_backend.py",
line 191, in update
doc = index.full_prepare(obj)
File "/usr/lib/python2.6/site-packages/django_haystack-2.3.1-py2.6.egg/haystack/indexes.py",
line 207, in full_prepare
self.prepared_data = self.prepare(obj)
File "/usr/lib/python2.6/site-packages/django_haystack-2.3.1-py2.6.egg/haystack/indexes.py",
line 198, in prepare
self.prepared_data[field.index_fieldname] = field.prepare(obj)
File "/usr/lib/python2.6/site-packages/django_haystack-2.3.1-py2.6.egg/haystack/fields.py",
line 159, in prepare
return self.convert(super(CharField, self).prepare(obj))
File "/usr/lib/python2.6/site-packages/django_haystack-2.3.1-py2.6.egg/haystack/fields.py",
line 106, in prepare
return current_object()
File "/usr/lib/python2.6/site-packages/Django-1.6.10-py2.6.egg/django/contrib/auth/models.py",
line 402, in get_full_name
full_name = '%s %s' % (self.first_name, self.last_name)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 1:
ordinal not in range(128)
[ec2-user@review /]$
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
--
You received this message because you are subscribed to the Google Groups
"reviewboard-issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to reviewboard-issues+unsubscr...@googlegroups.com.
To post to this group, send email to reviewboard-issues@googlegroups.com.
Visit this group at http://groups.google.com/group/reviewboard-issues.
For more options, visit https://groups.google.com/d/optout.