Default file storage in review board

130 views
Skip to first unread message

bincy

unread,
Oct 17, 2012, 3:10:26 AM10/17/12
to revie...@googlegroups.com
Hi,

Can anybody please tell what is the default file storage in Review Board..

When I click on the link  settings->File Storage settings page is giving the error

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.

Regards
Bincy

Christian Hammond

unread,
Oct 17, 2012, 3:16:33 AM10/17/12
to revie...@googlegroups.com
Can you check your reviewboard.log file and Apache error_log and see what's said?

Also, what version of Review Board?

Christian

--
Christian Hammond - chi...@chipx86.com
Review Board - http://www.reviewboard.org
VMware, Inc. - http://www.vmware.com


--
Want to help the Review Board project? Donate today at http://www.reviewboard.org/donate/
Happy user? Let us know at http://www.reviewboard.org/users/
-~----------~----~----~----~------~----~------~--~---
To unsubscribe from this group, send email to reviewboard...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/reviewboard?hl=en

bincy

unread,
Oct 17, 2012, 7:03:07 AM10/17/12
to revie...@googlegroups.com
Hi,

Review board.log is like this.


CONFI2012-10-16 02:29:34,361 - ERROR - Internal Server Error: /admin/settings/storage/
Traceback (most recent call last):
  File "/usr/local/lib/python2.6/dist-packages/Django-1.3.3-py2.6.egg/django/core/handlers/base.py", line 111, in get_response
    response = callback(request, *callback_args, **callback_kwargs)
  File "/usr/local/lib/python2.6/dist-packages/Django-1.3.3-py2.6.egg/django/contrib/admin/views/decorators.py", line 19, in _checklogin
    return view_func(request, *args, **kwargs)
  File "/usr/local/lib/python2.6/dist-packages/ReviewBoard-1.6.11-py2.6.egg/reviewboard/admin/views.py", line 59, in site_settings
    'root_path': settings.SITE_ROOT + "admin/db/"
  File "/usr/local/lib/python2.6/dist-packages/Django-1.3.3-py2.6.egg/django/contrib/admin/views/decorators.py", line 19, in _checklogin
    return view_func(request, *args, **kwargs)
  File "/usr/local/lib/python2.6/dist-packages/Djblets-0.6.22-py2.6.egg/djblets/siteconfig/views.py", line 50, in site_settings
    form = form_class(siteconfig)
  File "/usr/local/lib/python2.6/dist-packages/Djblets-0.6.22-py2.6.egg/djblets/siteconfig/forms.py", line 41, in __init__
    self.load()
  File "/usr/local/lib/python2.6/dist-packages/ReviewBoard-1.6.11-py2.6.egg/reviewboard/admin/forms.py", line 631, in load
    can_use_amazon_s3, reason = get_can_use_amazon_s3()
  File "/usr/local/lib/python2.6/dist-packages/ReviewBoard-1.6.11-py2.6.egg/reviewboard/admin/checks.py", line 244, in get_can_use_amazon_s3
    from storages.backends.s3 import S3Storage
  File "/usr/local/lib/python2.6/dist-packages/storages/backends/s3.py", line 18, in <module>
    raise ImproperlyConfigured("Could not load amazon's S3 bindings.\nSee "
ImproperlyConfigured: Could not load amazon's S3 bindings.
See http://developer.amazonwebservices.com/connect/entry.jspa?externalID=134

Apche Error log is like this.


In Oct 14 07:45:34 2012] [notice] Apache/2.2.14 (Ubuntu) mod_wsgi/2.8 Python/2.6.5 configured -- resuming normal operations
[Mon Oct 15 10:39:04 2012] [error] Exception KeyError: KeyError(139912301926208,) in <module 'threading' from '/usr/lib/python2.6/threading.pyc'> ignored
[Mon Oct 15 10:39:04 2012] [error] Exception KeyError: KeyError(139912301926208,) in <module 'threading' from '/usr/lib/python2.6/threading.pyc'> ignored
[Mon Oct 15 10:39:04 2012] [notice] caught SIGTERM, shutting down
[Mon Oct 15 10:39:06 2012] [notice] Apache/2.2.14 (Ubuntu) mod_wsgi/2.8 Python/2.6.5 configured -- resuming normal operations
[Tue Oct 16 14:39:48 2012] [error] Exception KeyError: KeyError(140615344748352,) in <module 'threading' from '/usr/lib/python2.6/threading.pyc'> ignored
[Tue Oct 16 02:09:48 2012] [error] Exception KeyError: KeyError(140615344748352,) in <module 'threading' from '/usr/lib/python2.6/threading.pyc'> ignored
[Tue Oct 16 14:39:49 2012] [notice] caught SIGTERM, shutting down
[Tue Oct 16 14:39:51 2012] [notice] Apache/2.2.14 (Ubuntu) mod_wsgi/2.8 Python/2.6.5 configured -- resuming normal operations
[Tue Oct 16 02:10:11 2012] [error] /usr/local/lib/python2.6/dist-packages/Django-1.3.3-py2.6.egg/django/contrib/auth/models.py:393: DeprecationWarning: The user messaging API is deprecated. Please update your code to use the new messages framework.
[Tue Oct 16 02:10:11 2012] [error]   category=DeprecationWarning)
[Tue Oct 16 02:10:17 2012] [error] /usr/local/lib/python2.6/dist-packages/Django-1.3.3-py2.6.egg/django/contrib/auth/models.py:393: DeprecationWarning: The user messaging API is deprecated. Please update your code to use the new messages framework.
[Tue Oct 16 02:10:17 2012] [error]   category=DeprecationWarning)
[Tue Oct 16 02:10:52 2012] [error] [client 10.167.100.85] File does not exist: /local/repository/ReviewBoard/review/htdocs/media/rbcommons


bincy

unread,
Oct 18, 2012, 11:58:56 AM10/18/12
to revie...@googlegroups.com
Hi,

If anybody has any idea on this, please suggest.

Regards
Bincy

Christian Hammond

unread,
Oct 18, 2012, 2:45:11 PM10/18/12
to revie...@googlegroups.com
Is your goal to use S3? It looks like for some reason the bindings are complaining when they're imported, which shouldn't be happening.

What version of django-storages do you have installed?


Christian

--
Christian Hammond - chi...@chipx86.com
Review Board - http://www.reviewboard.org
VMware, Inc. - http://www.vmware.com


bincy

unread,
Oct 19, 2012, 2:18:01 AM10/19/12
to revie...@googlegroups.com, chi...@chipx86.com
Thank you Christian...

No my intention is use local storage.I don't know how its taking S3.How I can I point it  to local storage.

The version is Django-1.3.3

Regards
Bincy

Christian Hammond

unread,
Oct 19, 2012, 2:31:32 AM10/19/12
to revie...@googlegroups.com
The reason you're hitting this is that we look for a django-storages module, and if it exists, we query for S3 support. Regardless of whether you use S3. We're only importing and checking for it.

What's happening is that you have it installed, but it's complaining on import. It's possible a recent release broke how we use it. We'll need to look into that.

If there's nothing on the system using django-storages that you know of, you can probably safely remove it and reload Apache.


Christian

--
Christian Hammond - chi...@chipx86.com
Review Board - http://www.reviewboard.org
VMware, Inc. - http://www.vmware.com


--

bincy

unread,
Oct 19, 2012, 4:12:41 AM10/19/12
to revie...@googlegroups.com

Thank you so much Christian.

But I failed to remove the django-storages module. Could you please suggest how I can remove this module without disturbing any other support in the system

Regards
Bincy

bincy

unread,
Oct 26, 2012, 2:24:35 AM10/26/12
to revie...@googlegroups.com

I removed the django storages and file storage is working well.

Regards
Bincy

Reply all
Reply to author
Forward
0 new messages