First, to cover the PySVN vs. Subvertpy question, Subvertpy was only the
default for the first release or two of 2.0.x. It had a lot of
compatibility problems and broke in far too many situations, so we flipped
the defaults. If it was working for you and you want to go back to it, you
can set the following in settings_local.py:
SVNTOOL_BACKENDS = [
Alright, on to the problem at hand.
Passwords for repositories are stored encrypted. Perhaps something went
wrong between the dump and restore that broke this. Can you check your dump
file and the contents in the database for the repository
(scmtools_repository table) to see if it's the expected password in plain
text, or if it's something encrypted that starts with a tab character? If
it's neither, that's the problem.
You can, in this case, change the stored password in the repository to your
plain text password. The next time Review Board reads the password in for
the repository, it will re-encrypt it.
One more thing: Did you copy over the old site directory, or create a new
one from scratch?
Christian Hammond - chip...@chipx86.com
Review Board - https://www.reviewboard.org
Beanbag, Inc. - https://www.beanbaginc.com
On Thu, Jul 30, 2015 at 11:18 AM, David Carson <dccar...@gmail.com> wrote:
> I'm trying to restore a ReviewBoard server after a hardware system
> failure. This is a live system and I'm under pressure to get it back up.
> I'm very close to having it working, but I'm hitting a UnicodeDecodeError.
> (Yes, I know there are other topics on this forum regarding
> UnicodeDecodeError, but none of them seem quite the same as mine.)
> The new server is running 2.0.18. The old server was running 2.0.15. I
> think this may be part of the problem.
> I installed 2.0.18 using yum on CentOS 7.0. I then created the
> reviewboard database in mariadb (aka MySQL) and proceeded to restore the
> SQL backup from my old system. This went without any problems, to my great
> relief. I was expecting problems, since the backup is from an older
> version of RB.
> Then I ran `rb-site upgrade /path/to/rbsite`, also without any errors.
> The site displays fine. I can do various admin functions fine, including
> displaying the latest activity that was backed up.
> However, when I try to open any review, I get the UnicodeDecodeError:
> 2015-07-30 17:50:35,484 - ERROR - - Exception thrown for user dcarson
> at http://reviewboard.mycompany.com/r/3254/
> 'ascii' codec can't decode byte 0xf8 in position 0: ordinal not in
> Traceback (most recent call last):
> "/usr/lib/python2.7/site-packages/django/core/handlers/base.py", line 112,
> in get_response
> response = wrapped_callback(request, *callback_args,
> "/usr/lib/python2.7/site-packages/reviewboard/accounts/decorators.py", line
> 23, in _check
> return view_func(*args, **kwargs)
> "/usr/lib/python2.7/site-packages/reviewboard/site/decorators.py", line 35,
> in _check
> return view_func(request, local_site=local_site, *args, **kwargs)
> "/usr/lib/python2.7/site-packages/reviewboard/reviews/views.py", line 717,
> in review_detail
> 'screenshots': screenshots,
> "/usr/lib/python2.7/site-packages/reviewboard/reviews/context.py", line 95,
> in make_review_request_context
> upload_diff_form = UploadDiffForm(review_request, request=request)
> "/usr/lib/python2.7/site-packages/reviewboard/reviews/forms.py", line 95,
> in __init__
> data, *args, **kwargs)
> "/usr/lib/python2.7/site-packages/reviewboard/diffviewer/forms.py", line
> 41, in __init__
> if self.repository.get_scmtool().get_diffs_use_absolute_paths():
> "/usr/lib/python2.7/site-packages/reviewboard/scmtools/models.py", line
> 231, in get_scmtool
> return cls(self)
> line 74, in __init__
> line 441, in build_client
> client = Client(config_dir, repopath, username, password)
> File "/usr/lib/python2.7/site-packages/reviewboard/scmtools/svn
> */pysvn.py"*, line 41, in __init__
> UnicodeDecodeError: 'ascii' codec can't decode byte 0xf8 in position
> 0: ordinal not in range(128)
> One thing I'm wondering is why pysvn is being used, instead of subvertpy.
> I thought I read that the new default was subvertpy.
> It does not seem to matter which review request I try to open. They all
> give me this error. This leads me to believe that it is not a case of some
> weird character in an individual request.
> Any help would be most appreciated. Thanks.
> Supercharge your Review Board with Power Pack:
> Want us to host Review Board for you? Check out RBCommons:
> 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.
Supercharge your Review Board with Power Pack:
Want us to host Review Board for you? Check out RBCommons:
Happy user? Let us know! https://www.reviewboard.org/users/
You received this message because you are subscribed to the Google Groups
To unsubscribe from this group and stop receiving emails from it, send an email
For more options, visit https://groups.google.com/d/optout.