Christian, Thanks for the quick response.
1. I don't need or want subvertpy. I just noticed that the error was in pysvn. I'll stick with what you guys have determined works best; i.e., pysvn. 2. I don't remember ever setting passwords for the repositories. I see what I guess is encrypted passwords in the scmtools_repository table. They are encrypted and do *not* start with a tab, so I guess that is the problem. How do I change them again? If I go into "Repositories" as the admin and click on a repository, I get the same error. Can I change them directly in the database (as plain text)? On Thursday, July 30, 2015 at 3:25:33 PM UTC-4, Christian Hammond wrote: > > Hi David, > > 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 = [ > 'reviewboard.scmtools.svn.subvertpy', > 'reviewboard.scmtools.svn.pysvn', > ] > > 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 > > -- > Christian Hammond - [email protected] <javascript:> > Review Board - https://www.reviewboard.org > Beanbag, Inc. - https://www.beanbaginc.com > > On Thu, Jul 30, 2015 at 11:18 AM, David Carson <[email protected] > <javascript:>> 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 >> range(128) >> Traceback (most recent call last): >> File >> "/usr/lib/python2.7/site-packages/django/core/handlers/base.py", line 112, >> in get_response >> response = wrapped_callback(request, *callback_args, >> **callback_kwargs) >> File >> "/usr/lib/python2.7/site-packages/reviewboard/accounts/decorators.py", line >> 23, in _check >> return view_func(*args, **kwargs) >> File >> "/usr/lib/python2.7/site-packages/reviewboard/site/decorators.py", line 35, >> in _check >> return view_func(request, local_site=local_site, *args, **kwargs) >> File >> "/usr/lib/python2.7/site-packages/reviewboard/reviews/views.py", line 717, >> in review_detail >> 'screenshots': screenshots, >> File >> "/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) >> File >> "/usr/lib/python2.7/site-packages/reviewboard/reviews/forms.py", line 95, >> in __init__ >> data, *args, **kwargs) >> File >> "/usr/lib/python2.7/site-packages/reviewboard/diffviewer/forms.py", line >> 41, in __init__ >> if self.repository.get_scmtool().get_diffs_use_absolute_paths(): >> File >> "/usr/lib/python2.7/site-packages/reviewboard/scmtools/models.py", line >> 231, in get_scmtool >> return cls(self) >> File >> "/usr/lib/python2.7/site-packages/reviewboard/scmtools/svn/__init__.py", >> line 74, in __init__ >> local_site_name) >> File >> "/usr/lib/python2.7/site-packages/reviewboard/scmtools/svn/__init__.py", >> 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__ >> self.client.set_default_password(six.text_type(password)) >> 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: >> 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 [email protected] <javascript:>. >> For more options, visit https://groups.google.com/d/optout. >> > > -- 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 [email protected]. For more options, visit https://groups.google.com/d/optout.
