The upgrade script was successful, but I get an Internal Server Error 500 on access in browser.
Running Seafile with Docker (Hypriot v1.8.0) on RPI3B+ and the following packages
FROM sdhibit/rpi-baseimage
RUN apt-get update && apt-get install -y \
python2.7 \
python-setuptools \
python-simplejson \
python-imaging \
python-memcache \
python-mysqldb \
python-requests \
python-urllib3 \
libpython2.7 \
&& rm -rf /var/lib/apt/lists/*
I tried to update the packages python-urllib3 and python-requests, but already using the latest.
Here are the logs, any ideas?
seahub.log
2018-07-07 13:24:29,667 [ERROR] django.request:135 handle_uncaught_exception Internal Server Error: /
Traceback (most recent call last):
File "/home/seafile/seafile-server-6.3.1/seahub/thirdpart/Django-1.11.13-py2.7.egg/django/core/handlers/exception.py", line 41, in inner
response = get_response(request)
File "/home/seafile/seafile-server-6.3.1/seahub/thirdpart/Django-1.11.13-py2.7.egg/django/core/handlers/base.py", line 244, in _legacy_get_response
response = middleware_method(request)
File "/home/seafile/seafile-server-6.3.1/seahub/thirdpart/Django-1.11.13-py2.7.egg/django/middleware/locale.py", line 24, in process_request
i18n_patterns_used, prefixed_default_language = is_language_prefix_patterns_used(urlconf)
File "/home/seafile/seafile-server-6.3.1/seahub/thirdpart/Django-1.11.13-py2.7.egg/django/utils/lru_cache.py", line 100, in wrapper
result = user_function(*args, **kwds)
File "/home/seafile/seafile-server-6.3.1/seahub/thirdpart/Django-1.11.13-py2.7.egg/django/conf/urls/i18n.py", line 29, in is_language_prefix_patterns_used
for url_pattern in get_resolver(urlconf).url_patterns:
File "/home/seafile/seafile-server-6.3.1/seahub/thirdpart/Django-1.11.13-py2.7.egg/django/utils/functional.py", line 35, in __get__
res = instance.__dict__[self.name] = self.func(instance)
File "/home/seafile/seafile-server-6.3.1/seahub/thirdpart/Django-1.11.13-py2.7.egg/django/urls/resolvers.py", line 405, in url_patterns
patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module)
File "/home/seafile/seafile-server-6.3.1/seahub/thirdpart/Django-1.11.13-py2.7.egg/django/utils/functional.py", line 35, in __get__
res = instance.__dict__[self.name] = self.func(instance)
File "/home/seafile/seafile-server-6.3.1/seahub/thirdpart/Django-1.11.13-py2.7.egg/django/urls/resolvers.py", line 398, in urlconf_module
return import_module(self.urlconf_name)
File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
__import__(name)
File "/home/seafile/seafile-server-6.3.1/seahub/seahub/utils/rooturl.py", line 41, in <module>
url(r'^%s' % settings.SITE_ROOT[1:], include(settings.SITE_ROOT_URLCONF)),
File "/home/seafile/seafile-server-6.3.1/seahub/thirdpart/Django-1.11.13-py2.7.egg/django/conf/urls/__init__.py", line 50, in include
urlconf_module = import_module(urlconf_module)
File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
__import__(name)
File "/home/seafile/seafile-server-6.3.1/seahub/seahub/urls.py", line 12, in <module>
from seahub.views.file import view_history_file, view_trash_file,\
File "/home/seafile/seafile-server-6.3.1/seahub/seahub/views/file.py", line 43, in <module>
from seahub.wopi.utils import get_wopi_dict
File "/home/seafile/seafile-server-6.3.1/seahub/seahub/wopi/utils.py", line 7, in <module>
import requests
File "/home/seafile/seafile-server-6.3.1/seahub/thirdpart/requests-2.18.4-py2.7.egg/requests/__init__.py", line 90, in <module>
from urllib3.exceptions import DependencyWarning
ImportError: cannot import name DependencyWarning
gunicorn_error.log
[2018-07-07 13:24:29 +0000] [86] [ERROR] Error handling request /
Traceback (most recent call last):
File "/home/seafile/seafile-server-6.3.1/seahub/thirdpart/gunicorn-19.8.1-py2.7.egg/gunicorn/workers/sync.py", line 135, in handle
self.handle_request(listener, req, client, addr)
File "/home/seafile/seafile-server-6.3.1/seahub/thirdpart/gunicorn-19.8.1-py2.7.egg/gunicorn/workers/sync.py", line 176, in handle_request
respiter = self.wsgi(environ, resp.start_response)
File "/home/seafile/seafile-server-6.3.1/seahub/thirdpart/Django-1.11.13-py2.7.egg/django/core/handlers/wsgi.py", line 157, in __call__
response = self.get_response(request)
File "/home/seafile/seafile-server-6.3.1/seahub/thirdpart/Django-1.11.13-py2.7.egg/django/core/handlers/base.py", line 124, in get_response
response = self._middleware_chain(request)
File "/home/seafile/seafile-server-6.3.1/seahub/thirdpart/Django-1.11.13-py2.7.egg/django/core/handlers/exception.py", line 43, in inner
response = response_for_exception(request, exc)
File "/home/seafile/seafile-server-6.3.1/seahub/thirdpart/Django-1.11.13-py2.7.egg/django/core/handlers/exception.py", line 93, in response_for_exception
response = handle_uncaught_exception(request, get_resolver(get_urlconf()), sys.exc_info())
File "/home/seafile/seafile-server-6.3.1/seahub/thirdpart/Django-1.11.13-py2.7.egg/django/core/handlers/exception.py", line 142, in handle_uncaught_exception
callback, param_dict = resolver.resolve_error_handler(500)
File "/home/seafile/seafile-server-6.3.1/seahub/thirdpart/Django-1.11.13-py2.7.egg/django/urls/resolvers.py", line 418, in resolve_error_handler
callback = getattr(self.urlconf_module, 'handler%s' % view_type, None)
File "/home/seafile/seafile-server-6.3.1/seahub/thirdpart/Django-1.11.13-py2.7.egg/django/utils/functional.py", line 35, in __get__
res = instance.__dict__[self.name] = self.func(instance)
File "/home/seafile/seafile-server-6.3.1/seahub/thirdpart/Django-1.11.13-py2.7.egg/django/urls/resolvers.py", line 398, in urlconf_module
return import_module(self.urlconf_name)
File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
__import__(name)
File "/home/seafile/seafile-server-6.3.1/seahub/seahub/utils/rooturl.py", line 41, in <module>
url(r'^%s' % settings.SITE_ROOT[1:], include(settings.SITE_ROOT_URLCONF)),
File "/home/seafile/seafile-server-6.3.1/seahub/thirdpart/Django-1.11.13-py2.7.egg/django/conf/urls/__init__.py", line 50, in include
urlconf_module = import_module(urlconf_module)
File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
__import__(name)
File "/home/seafile/seafile-server-6.3.1/seahub/seahub/urls.py", line 12, in <module>
from seahub.views.file import view_history_file, view_trash_file,\
File "/home/seafile/seafile-server-6.3.1/seahub/seahub/views/file.py", line 43, in <module>
from seahub.wopi.utils import get_wopi_dict
File "/home/seafile/seafile-server-6.3.1/seahub/seahub/wopi/utils.py", line 7, in <module>
import requests
File "/home/seafile/seafile-server-6.3.1/seahub/thirdpart/requests-2.18.4-py2.7.egg/requests/__init__.py", line 90, in <module>
from urllib3.exceptions import DependencyWarning
ImportError: cannot import name DependencyWarning