3062: [Review Board] ERROR (EXTERNAL IP): Internal Server Error: /admin/settings/storage/

jose****@fuhu**** (Google Code) (Is this you? Claim this profile.)
david
david
Aug. 20, 2013
What version are you running?


What's the URL of the page containing the problem?


What steps will reproduce the problem?
1. Using a user with administration permission, click on "File storage" in "Admin dashboard"
2.
3.

What is the expected output? 
Next page

What do you see instead?
Error 500

What operating system are you using? ReviewBoard installed on Debian 7.1
What browser? Firefox


Please provide any additional information below.

Traceback (most recent call last):

  File "/usr/local/lib/python2.7/dist-packages/Django-1.4.6-py2.7.egg/django/core/handlers/base.py", line 111, in get_response
    response = callback(request, *callback_args, **callback_kwargs)

  File "/usr/local/lib/python2.7/dist-packages/Django-1.4.6-py2.7.egg/django/contrib/admin/views/decorators.py", line 16, in _checklogin
    return view_func(request, *args, **kwargs)

  File "/usr/local/lib/python2.7/dist-packages/ReviewBoard-1.7.13-py2.7.egg/reviewboard/admin/views.py", line 58, in site_settings
    'root_path': settings.SITE_ROOT + "admin/db/"

  File "/usr/local/lib/python2.7/dist-packages/Django-1.4.6-py2.7.egg/django/contrib/admin/views/decorators.py", line 16, in _checklogin
    return view_func(request, *args, **kwargs)

  File "/usr/local/lib/python2.7/dist-packages/Djblets-0.7.17-py2.7.egg/djblets/siteconfig/views.py", line 50, in site_settings
    form = form_class(siteconfig)

  File "/usr/local/lib/python2.7/dist-packages/Djblets-0.7.17-py2.7.egg/djblets/siteconfig/forms.py", line 41, in __init__
    self.load()

  File "/usr/local/lib/python2.7/dist-packages/ReviewBoard-1.7.13-py2.7.egg/reviewboard/admin/forms.py", line 797, in load
    can_use_amazon_s3, reason = get_can_use_amazon_s3()

  File "/usr/local/lib/python2.7/dist-packages/ReviewBoard-1.7.13-py2.7.egg/reviewboard/admin/checks.py", line 282, in get_can_use_amazon_s3
    from storages.backends.s3boto import S3BotoStorage

  File "/usr/local/lib/python2.7/dist-packages/django_storages-1.1.8-py2.7.egg/storages/backends/s3boto.py", line 23, in <module>
    raise ImproperlyConfigured("Could not load Boto's S3 bindings.\n"

ImproperlyConfigured: Could not load Boto's S3 bindings.
See https://github.com/boto/boto


<WSGIRequest
path:/admin/settings/storage/,
GET:<QueryDict: {}>,
POST:<QueryDict: {}>,
COOKIES:{
 'csrftoken': 'ftYvtIduTIpMpn4b58cDQviUIJ1ION84',
 'rbsessionid': '078033924aa4d4862b4d870130d70ae9'},
META:{'DOCUMENT_ROOT': '/var/www/reviews.192.168.1.84/htdocs',
 'GATEWAY_INTERFACE': 'CGI/1.1',
 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
 'HTTP_ACCEPT_ENCODING': 'gzip, deflate',
 'HTTP_ACCEPT_LANGUAGE': 'en-US,en;q=0.5',
 'HTTP_CONNECTION': 'keep-alive',
 'HTTP_COOKIE': 'rbsessionid=078033924aa4d4862b4d870130d70ae9; csrftoken=ftYvtIduTIpMpn4b58cDQviUIJ1ION84;',
 'HTTP_HOST': '192.168.1.84',
 'HTTP_REFERER': 'http://192.168.1.84/admin/settings/ssh/',
 'HTTP_USER_AGENT': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:23.0) Gecko/20100101 Firefox/23.0',
 'PATH_INFO': u'/admin/settings/storage/',
 'PATH_TRANSLATED': '/var/www/reviews.192.168.1.84/htdocs/reviewboard.wsgi/admin/settings/storage/',
 'QUERY_STRING': '',
 'REMOTE_ADDR': '192.168.8.33',
 'REMOTE_PORT': '64819',
 'REQUEST_METHOD': 'GET',
 'REQUEST_URI': '/admin/settings/storage/',
 'SCRIPT_FILENAME': '/var/www/reviews.192.168.1.84/htdocs/reviewboard.wsgi',
 'SCRIPT_NAME': u'',
 'SERVER_ADDR': '192.168.1.84',
 'SERVER_ADMIN': '[no address given]',
 'SERVER_NAME': '192.168.1.84',
 'SERVER_PORT': '80',
 'SERVER_PROTOCOL': 'HTTP/1.1',
 'SERVER_SIGNATURE': '<address>Apache/2.2.22 (Debian) Server at 192.168.1.84 Port 80</address>\n',
 'SERVER_SOFTWARE': 'Apache/2.2.22 (Debian)',
 'mod_wsgi.application_group': '192.168.1.84|',
 'mod_wsgi.callable_object': 'application',
 'mod_wsgi.handler_script': '',
 'mod_wsgi.input_chunked': '0',
 'mod_wsgi.listener_host': '',
 'mod_wsgi.listener_port': '80',
 'mod_wsgi.process_group': '',
 'mod_wsgi.request_handler': 'wsgi-script',
 'mod_wsgi.script_reloading': '1',
 'mod_wsgi.version': (3, 3),
 'wsgi.errors': <mod_wsgi.Log object at 0x7fee47704ef0>,
 'wsgi.file_wrapper': <built-in method file_wrapper of mod_wsgi.Adapter object at 0x7fee47683918>,
 'wsgi.input': <mod_wsgi.Input object at 0x7fee47701cf0>,
 'wsgi.multiprocess': True,
 'wsgi.multithread': True,
 'wsgi.run_once': False,
 'wsgi.url_scheme': 'http',
 'wsgi.version': (1, 1)}>
david
#1 david
We'll fix the code to properly address this situation, but to get around this for now, you can either install the "boto" package, or remove the "django-storages" package.
  • +Milestone-Release1.7.x
  • +david
david
#2 david
  • +PendingReview
david
#3 david
Fixed in release-1.7.x (c532780). Thanks!
  • -PendingReview
    +Fixed
#4 jose****@fuhu**** (Google Code) (Is this you? Claim this profile.)
Thank you very much for your fast reply and patch!! 

I am not an expert in Python (yet), but I will google for installing "boto" package correctly :-)

Cheers!