"Unhandled exception" after upgrade pro-server 2.0.5 -> 2.1.1

258 views
Skip to first unread message

Marco Jakobs

unread,
Jan 7, 2014, 6:02:38 AM1/7/14
to sea...@googlegroups.com
Hi,

i've updated the pro-server from 2.0.5 to 2.1.1. The upgrade script did not give any error messages, so all seems to be fine. But unfortunately seafile just outputs:

Unhandled Exception

An unhandled exception was thrown by the application.


The django_requests log says: "No module named boto" - maybe this is the problem?


2014-01-07 11:52:22,909 [ERROR] django.request:212 handle_uncaught_exception Internal Server Error: /
Traceback (most recent call last):
  File "/Seafile/pro-server/seahub/thirdpart/Django-1.5.1-py2.6.egg/django/core/handlers/base.py", line 92, in get_response
    response = middleware_method(request)
  File "/Seafile/pro-server/seahub/thirdpart/Django-1.5.1-py2.6.egg/django/middleware/locale.py", line 21, in process_request
    check_path = self.is_language_prefix_patterns_used()
  File "/Seafile/pro-server/seahub/thirdpart/Django-1.5.1-py2.6.egg/django/middleware/locale.py", line 56, in is_language_pre
fix_patterns_used
    for url_pattern in get_resolver(None).url_patterns:
  File "/Seafile/pro-server/seahub/thirdpart/Django-1.5.1-py2.6.egg/django/core/urlresolvers.py", line 347, in url_patterns
    patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module)
  File "/Seafile/pro-server/seahub/thirdpart/Django-1.5.1-py2.6.egg/django/core/urlresolvers.py", line 342, in urlconf_module
    self._urlconf_module = import_module(self.urlconf_name)
  File "/Seafile/pro-server/seahub/thirdpart/Django-1.5.1-py2.6.egg/django/utils/importlib.py", line 35, in import_module
    __import__(name)
  File "/Seafile/pro-server/seahub/thirdpart/Djblets-0.6.14.dev-py2.6.egg/djblets/util/rooturl.py", line 40, in <module>
    (r'^%s' % settings.SITE_ROOT[1:], include(settings.SITE_ROOT_URLCONF)),
  File "/Seafile/pro-server/seahub/thirdpart/Django-1.5.1-py2.6.egg/django/conf/urls/__init__.py", line 25, in include
    urlconf_module = import_module(urlconf_module)
  File "/Seafile/pro-server/seahub/thirdpart/Django-1.5.1-py2.6.egg/django/utils/importlib.py", line 35, in import_module
    __import__(name)
  File "/Seafile/pro-server/seahub/seahub/urls.py", line 151, in <module>
    (r'^api2/', include('seahub.api2.urls')),
  File "/Seafile/pro-server/seahub/thirdpart/Django-1.5.1-py2.6.egg/django/conf/urls/__init__.py", line 25, in include
    urlconf_module = import_module(urlconf_module)
  File "/Seafile/pro-server/seahub/thirdpart/Django-1.5.1-py2.6.egg/django/utils/importlib.py", line 35, in import_module
    __import__(name)
  File "/Seafile/pro-server/seahub/seahub/api2/urls.py", line 3, in <module>
    from views import *
  File "/Seafile/pro-server/seahub/seahub/api2/views.py", line 83, in <module>
    from seahub_extra.search.views import search_keyword
  File "/Seafile/pro-server/seahub-extra/seahub_extra/search/views.py", line 8, in <module>
    from seahub_extra.search.utils import search_file_by_name, search_repo_file_by_name
  File "/Seafile/pro-server/seahub-extra/seahub_extra/search/utils.py", line 4, in <module>
    from seafes import es_get_conn, es_search, es_update_file_tags, es_list_files_by_tags
  File "/Seafile/pro-server/pro/python/seafes/__init__.py", line 2, in <module>
    from seafes import es_get_conn, es_search, es_update_file_tags, es_list_files_by_tags
  File "/Seafile/pro-server/pro/python/seafes/seafes.py", line 11, in <module>
    from extract import is_text_file, is_office_file, get_file_content, get_file_suffix
  File "/Seafile/pro-server/pro/python/seafes/extract.py", line 18, in <module>
    from seafObj import SeafFile
  File "/Seafile/pro-server/pro/python/seafes/seafObj.py", line 10, in <module>
    from backends import fs_backend, commit_backend, block_backend
  File "/Seafile/pro-server/pro/python/seafes/backends.py", line 5, in <module>
    from s3_backend import load_obj_backend_s3, load_block_backend_s3
  File "/Seafile/pro-server/pro/python/seafes/s3_backend.py", line 3, in <module>
    import boto
ImportError: No module named boto   


Shuai Lin

unread,
Jan 7, 2014, 6:37:21 AM1/7/14
to sea...@googlegroups.com
Hi,

Boto library is required to access Amazon S3 storage. It should be optional if you don't use S3 service. We'll fix this asap. 

A quick solution for you is to install python boto library by:

    sudo pip install boto

Sorry for the inconvenience.

Regards,
Lin



--
You received this message because you are subscribed to the Google Groups "seafile" group.
To unsubscribe from this group and stop receiving emails from it, send an email to seafile+u...@googlegroups.com.
To post to this group, send email to sea...@googlegroups.com.
Visit this group at http://groups.google.com/group/seafile.
For more options, visit https://groups.google.com/groups/opt_out.

Marco Jakobs

unread,
Jan 7, 2014, 7:11:46 AM1/7/14
to sea...@googlegroups.com
Dear Shuai,

installing boto has fixed it so far. Thank you for your support!

PS: I love the upload link feature! Great work!!! For which version is the passwort protection and expiration for download/upload links planned?

BR
Marco

Lingtao Pan

unread,
Jan 8, 2014, 3:35:44 AM1/8/14
to sea...@googlegroups.com
The password protection and expiration feature is already implemented. We will publish them in our next major release.
Reply all
Reply to author
Forward
0 new messages