2641: Adding repository to default reviewer fails with HTTP 500

ex***@dps-on******* (Google Code) (Is this you? Claim this profile.)
June 19, 2012
What version are you running?
1.6.6

What's the URL of the page containing the problem?
http://<snip>/admin/db/reviews/defaultreviewer/2/

What steps will reproduce the problem?
1. go to admin page
2. select existing default reviewer
3. add additional repository to chosen repository
4. click "Save"

What is the expected output? What do you see instead?
New repository is added to list and stored in database.
Instead I receive a "Something broke, internal server error" message.

What operating system are you using? What browser?
Server: Win Server 2008R2 x64; Apache with Python 2.7.1
Client: Win XP SP3; Firefox 13.0.1

Please provide any additional information below.
The described steps worked in a previous version since we've added 
some repository and review group not long ago but I canÄt remember exactly which Reviewboard version we used at this time.
Find attached the content of the error mail send to the admin mail account.

If any additional information is needed please let me know.

Martin
Traceback (most recent call last):
  File "C:\Python27\lib\site-packages\django-1.4-py2.7.egg\django\core\handlers\base.py", line 111, in get_response
    response = callback(request, *callback_args, **callback_kwargs)
  File "C:\Python27\lib\site-packages\django-1.4-py2.7.egg\django\contrib\admin\options.py", line 366, in wrapper
    return self.admin_site.admin_view(view)(*args, **kwargs)
  File "C:\Python27\lib\site-packages\django-1.4-py2.7.egg\django\utils\decorators.py", line 91, in _wrapped_view
    response = view_func(request, *args, **kwargs)
  File "C:\Python27\lib\site-packages\django-1.4-py2.7.egg\django\views\decorators\cache.py", line 89, in _wrapped_view_func
    response = view_func(request, *args, **kwargs)
  File "C:\Python27\lib\site-packages\django-1.4-py2.7.egg\django\contrib\admin\sites.py", line 196, in inner
    return view(request, *args, **kwargs)
  File "C:\Python27\lib\site-packages\django-1.4-py2.7.egg\django\utils\decorators.py", li
chipx86
#1 chipx86
Review Board 1.6.x is not compatible with Django 1.4. You're going to have to downgrade and re-run rb-site upgrade on the site.

You may also want to install this on Linux. We won't be supporting Windows as a server after 1.6.x.
  • +SetupIssue
#2 ex***@dps-on******* (Google Code) (Is this you? Claim this profile.)
Thank you for the quick response. Downgrading to Django 1.3.1 fixed the problem for me, which also occured on our test machine running Reviewboard 1.6.9 on Ubuntu.
We will also check switching to a linux server, thanks for your advice.

Side note:
since Django 1.4 seems to update all the password hashes with a stronger algorithm thus downgrading to 1.3.x leaves all your users locked out. So all of them need to recover their passwords. Not a big deal in our case (less than 20 users) but I thought it would be worth to mention.

Martin
chipx86
#3 chipx86
Installing Review Board 1.6.x forces an install of the proper version of Django, so it sounds like it was just overridden in this case by manually installing 1.4 on top of it. So, not a typical problem people will usually hit.

Sorry to hear about the account issues.