2936: Something broke! (Error 500) at http://rb.domain.pl/r/119/

Miko*****@gmai***** (Google Code) (Is this you? Claim this profile.)
Aug. 7, 2013
What version are you running?
1.7.6

What's the URL of the page containing the problem?
http://rb.pl/r/*/ <- all review requests

What steps will reproduce the problem?
1. Try to visit review request page
2. Wait for a long time and then error appears

What is the expected output? What do you see instead?
expected: review request page
current: "Something broke! (Error 500)

It appears something broke when you tried to go to here. This is either a bug in Review Board or a server configuration error. Please report this to your administrator."

What operating system are you using? What browser?
client: Arch Linux, firefox, qupzilla, opera
server: Debian Lenny

Please provide any additional information below.
It looks like error with mercurial in ReviewBoard
apache error.log:

[Thu Mar 21 12:45:33 2013] [error] error accessing repository at True
[Thu Mar 21 12:45:33 2013] [error] error accessing repository at True
[Thu Mar 21 12:45:35 2013] [error] error accessing repository at True
[Thu Mar 21 12:45:35 2013] [error] error accessing repository at True
[Thu Mar 21 11:45:42 2013] [error] /usr/local/lib/python2.6/dist-packages/django/views/generic/list_detail.py:10: DeprecationWarning: Function-based generic views have been deprecated; use class-based views instead.
[Thu Mar 21 11:45:42 2013] [error]   DeprecationWarning
[Thu Mar 21 11:45:42 2013] [error] /usr/local/lib/python2.6/dist-packages/django/conf/__init__.py:75: DeprecationWarning: The ADMIN_MEDIA_PREFIX setting has been removed; use STATIC_URL instead.
[Thu Mar 21 11:45:42 2013] [error]   "use STATIC_URL instead.", DeprecationWarning)
[Thu Mar 21 11:45:43 2013] [error] ERROR:root:Exception thrown for user xxx at http://rb.pl/r/121/
[Thu Mar 21 11:45:43 2013] [error]
[Thu Mar 21 11:45:43 2013] [error] 'NoneType' object has no attribute 'strip'
[Thu Mar 21 11:45:43 2013] [error] Traceback (most recent call last):
[Thu Mar 21 11:45:43 2013] [error]   File "/usr/local/lib/python2.6/dist-packages/django/core/handlers/base.py", line 111, in get_response
[Thu Mar 21 11:45:43 2013] [error]     response = callback(request, *callback_args, **callback_kwargs)
[Thu Mar 21 11:45:43 2013] [error]   File "/usr/local/lib/python2.6/dist-packages/ReviewBoard-1.7.6-py2.6.egg/reviewboard/accounts/decorators.py", line 20, in _check
[Thu Mar 21 11:45:43 2013] [error]     return login_required(view_func)(*args, **kwargs)
[Thu Mar 21 11:45:43 2013] [error]   File "/usr/local/lib/python2.6/dist-packages/Djblets-0.7.11-py2.6.egg/djblets/auth/util.py", line 47, in _checklogin
[Thu Mar 21 11:45:43 2013] [error]     return view_func(request, *args, **kwargs)
[Thu Mar 21 11:45:43 2013] [error]   File "/usr/local/lib/python2.6/dist-packages/ReviewBoard-1.7.6-py2.6.egg/reviewboard/reviews/views.py", line 728, in review_detail
[Thu Mar 21 11:45:43 2013] [error]     'screenshots': screenshots,
[Thu Mar 21 11:45:43 2013] [error]   File "/usr/local/lib/python2.6/dist-packages/ReviewBoard-1.7.6-py2.6.egg/reviewboard/reviews/views.py", line 124, in _make_review_request_context
[Thu Mar 21 11:45:43 2013] [error]     upload_diff_form = UploadDiffForm(review_request)
[Thu Mar 21 11:45:43 2013] [error]   File "/usr/local/lib/python2.6/dist-packages/ReviewBoard-1.7.6-py2.6.egg/reviewboard/reviews/forms.py", line 284, in __init__
[Thu Mar 21 11:45:43 2013] [error]     data, *args, **kwargs)
[Thu Mar 21 11:45:43 2013] [error]   File "/usr/local/lib/python2.6/dist-packages/ReviewBoard-1.7.6-py2.6.egg/reviewboard/diffviewer/forms.py", line 51, in __init__
[Thu Mar 21 11:45:43 2013] [error]     if self.repository.get_scmtool().get_diffs_use_absolute_paths():
[Thu Mar 21 11:45:43 2013] [error]   File "/usr/local/lib/python2.6/dist-packages/ReviewBoard-1.7.6-py2.6.egg/reviewboard/scmtools/models.py", line 136, in get_scmtool
[Thu Mar 21 11:45:43 2013] [error]     return cls(self)
[Thu Mar 21 11:45:43 2013] [error]   File "/usr/local/lib/python2.6/dist-packages/ReviewBoard-1.7.6-py2.6.egg/reviewboard/scmtools/hg.py", line 31, in __init__
[Thu Mar 21 11:45:43 2013] [error]     self.client = HgClient(repository.path, repository.local_site)
[Thu Mar 21 11:45:43 2013] [error]   File "/usr/local/lib/python2.6/dist-packages/ReviewBoard-1.7.6-py2.6.egg/reviewboard/scmtools/hg.py", line 212, in __init__
[Thu Mar 21 11:45:43 2013] [error]     from mercurial import hg, ui
[Thu Mar 21 11:45:43 2013] [error]   File "/usr/local/lib/python2.6/dist-packages/mercurial-2.4.2-py2.6-linux-x86_64.egg/mercurial/hg.py", line 12, in <module>
[Thu Mar 21 11:45:43 2013] [error]     import localrepo, bundlerepo, httppeer, sshpeer, statichttprepo, bookmarks
[Thu Mar 21 11:45:43 2013] [error]   File "/usr/local/lib/python2.6/dist-packages/mercurial-2.4.2-py2.6-linux-x86_64.egg/mercurial/localrepo.py", line 9, in <module>
[Thu Mar 21 11:45:43 2013] [error]     import peer, changegroup, subrepo, discovery, pushkey, obsolete
[Thu Mar 21 11:45:43 2013] [error]   File "/usr/local/lib/python2.6/dist-packages/mercurial-2.4.2-py2.6-linux-x86_64.egg/mercurial/subrepo.py", line 11, in <module>
[Thu Mar 21 11:45:43 2013] [error]     import config, scmutil, util, node, error, cmdutil, bookmarks, match as matchmod
[Thu Mar 21 11:45:43 2013] [error]   File "/usr/local/lib/python2.6/dist-packages/mercurial-2.4.2-py2.6-linux-x86_64.egg/mercurial/scmutil.py", line 9, in <module>
[Thu Mar 21 11:45:43 2013] [error]     import util, error, osutil, revset, similar, encoding, phases
[Thu Mar 21 11:45:43 2013] [error]   File "/usr/local/lib/python2.6/dist-packages/mercurial-2.4.2-py2.6-linux-x86_64.egg/mercurial/revset.py", line 12, in <module>
[Thu Mar 21 11:45:43 2013] [error]     import match as matchmod
[Thu Mar 21 11:45:43 2013] [error]   File "/usr/local/lib/python2.6/dist-packages/mercurial-2.4.2-py2.6-linux-x86_64.egg/mercurial/match.py", line 9, in <module>
[Thu Mar 21 11:45:43 2013] [error]     import scmutil, util, fileset
[Thu Mar 21 11:45:43 2013] [error]   File "/usr/local/lib/python2.6/dist-packages/mercurial-2.4.2-py2.6-linux-x86_64.egg/mercurial/fileset.py", line 8, in <module>
[Thu Mar 21 11:45:43 2013] [error]     import parser, error, util, merge, re
[Thu Mar 21 11:45:43 2013] [error]   File "/usr/local/lib/python2.6/dist-packages/mercurial-2.4.2-py2.6-linux-x86_64.egg/mercurial/merge.py", line 10, in <module>
[Thu Mar 21 11:45:43 2013] [error]     import error, scmutil, util, filemerge, copies, subrepo
[Thu Mar 21 11:45:43 2013] [error]   File "/usr/local/lib/python2.6/dist-packages/mercurial-2.4.2-py2.6-linux-x86_64.egg/mercurial/filemerge.py", line 139, in <module>
[Thu Mar 21 11:45:43 2013] [error]     @internaltool('prompt', False)
[Thu Mar 21 11:45:43 2013] [error]   File "/usr/local/lib/python2.6/dist-packages/mercurial-2.4.2-py2.6-linux-x86_64.egg/mercurial/filemerge.py", line 28, in decorator
[Thu Mar 21 11:45:43 2013] [error]     func.__doc__ = "``%s``\\n" % fullname + func.__doc__.strip()
[Thu Mar 21 11:45:43 2013] [error] AttributeError: 'NoneType' object has no attribute 'strip'
#1 sarar******@gmai***** (Google Code) (Is this you? Claim this profile.)
This error for me was resolved by updating the reviewboard/conf/apache-wsgi.conf file with the following that was suggested during the update to 1.7.6, and then restarting apache. Hope that helps.

# Alias static media requests to filesystem
    <Location "/static">
        SetHandler None
    </Location>

    Alias /static "/var/www/reviewboard/htdocs/static"
david
#2 david
  • +SetupIssue