Seafile 6.1.1, Unhandled Exception (not urllib3 or requests issue)

I’ve having issues with 6.1.1. 6.0.9 worked perfectly though something must have broken as I can’t even downgrade. I have urllib3 and requests for python, so this is not the known issue with 6.1.1. I’m at a loss at the moment and cannot figure what is causing the Unhandled Exception. I’m running on Debian, MySQL and Nginx. The error below is what comes up in /var/log/nginx/seahub.error.log but I can’t make sense of it. Can anyone assist please to guide me in the right direction?

2017/08/07 19:13:13 [error] 2473#0: *8 FastCGI sent in stderr: "Traceback (most recent call last):
File “build/bdist.linux-x86_64/egg/flup/server/fcgi_base.py”, line 558, in run
protocolStatus, appStatus = self.server.handler(self)
File “build/bdist.linux-x86_64/egg/flup/server/fcgi_base.py”, line 1118, in handler
result = self.application(environ, start_response)
File “/opt/seafile/seafile-server-6.0.9/seahub/thirdpart/Django-1.8.17-py2.7.egg/django/core/handlers/wsgi.py”, line 170, in call
self.load_middleware()
File “/opt/seafile/seafile-server-6.0.9/seahub/thirdpart/Django-1.8.17-py2.7.egg/django/core/handlers/base.py”, line 52, in load_middleware
mw_instance = mw_class()
File “/opt/seafile/seafile-server-6.0.9/seahub/thirdpart/Django-1.8.17-py2.7.egg/django/middleware/locale.py”, line 24, in init
for url_pattern in get_resolver(None).url_patterns:
File “/opt/seafile/seafile-server-6.0.9/seahub/thirdpart/Django-1.8.17-py2.7.egg/django/core/urlresolvers.py”, line 401, in url_patterns
patterns = getattr(self.urlconf_module, “urlpatterns”, self.urlconf_module)
File “/opt/seafile/seafile-server-6.0.9/seahub/thirdpart/Django-1.8.17-py2.7.egg/django/core/urlresolvers.py”, line 395, in urlconf_module
self._urlconf_module = import_module(self.urlconf_name)
File “/usr/lib/python2.7/importlib/init.py”, line 37, in import_module
import(name)
File “/opt/seafile/seafile-server-6.0.9/seahub/seahub/utils/rooturl.py”, line 41, in
(r’^%s’ % settings.SITE_ROOT[1:], include(settings.SITE_ROOT_URLCONF)),
File “/opt/seafile/seafile-server-6.0.9/seahub/thirdpart/Django-1.8.17-py2.7.egg/django/conf/urls/init.py”, line 33, in include
urlconf_module = import_module(urlconf_module)
File “/usr/lib/python2.7/importlib/init.py”, line 37, in import_module
import(name)
File “/opt/seafile/seafile-server-6.0.9/seahub/seahub/urls.py”, line 22, in
from seahub.api2.endpoints.groups import Groups, Group
File "/opt/seafile/seaf
2017/08/07 19:16:13 [error] 2485#0: *55 FastCGI sent in stderr: "Traceback (most recent call last):
File “build/bdist.linux-x86_64/egg/flup/server/fcgi_base.py”, line 558, in run
protocolStatus, appStatus = self.server.handler(self)
File “build/bdist.linux-x86_64/egg/flup/server/fcgi_base.py”, line 1118, in handler
result = self.application(environ, start_response)
File “/opt/seafile/seafile-server-6.0.9/seahub/thirdpart/Django-1.8.17-py2.7.egg/django/core/handlers/wsgi.py”, line 170, in call
self.load_middleware()
File “/opt/seafile/seafile-server-6.0.9/seahub/thirdpart/Django-1.8.17-py2.7.egg/django/core/handlers/base.py”, line 52, in load_middleware
mw_instance = mw_class()
File “/opt/seafile/seafile-server-6.0.9/seahub/thirdpart/Django-1.8.17-py2.7.egg/django/middleware/locale.py”, line 24, in init
for url_pattern in get_resolver(None).url_patterns:
File “/opt/seafile/seafile-server-6.0.9/seahub/thirdpart/Django-1.8.17-py2.7.egg/django/core/urlresolvers.py”, line 401, in url_patterns
patterns = getattr(self.urlconf_module, “urlpatterns”, self.urlconf_module)
File “/opt/seafile/seafile-server-6.0.9/seahub/thirdpart/Django-1.8.17-py2.7.egg/django/core/urlresolvers.py”, line 395, in urlconf_module
self._urlconf_module = import_module(self.urlconf_name)
File “/usr/lib/python2.7/importlib/init.py”, line 37, in import_module
import(name)
File “/opt/seafile/seafile-server-6.0.9/seahub/seahub/utils/rooturl.py”, line 41, in
(r’^%s’ % settings.SITE_ROOT[1:], include(settings.SITE_ROOT_URLCONF)),
File “/opt/seafile/seafile-server-6.0.9/seahub/thirdpart/Django-1.8.17-py2.7.egg/django/conf/urls/init.py”, line 33, in include
urlconf_module = import_module(urlconf_module)
File “/usr/lib/python2.7/importlib/init.py”, line 37, in import_module
import(name)
File “/opt/seafile/seafile-server-6.0.9/seahub/seahub/urls.py”, line 22, in
from seahub.api2.endpoints.groups import Groups, Group
File "/opt/seafile/sea
2017/08/07 19:19:12 [error] 2484#0: *162 FastCGI sent in stderr: "Traceback (most recent call last):
File “build/bdist.linux-x86_64/egg/flup/server/fcgi_base.py”, line 558, in run
protocolStatus, appStatus = self.server.handler(self)
File “build/bdist.linux-x86_64/egg/flup/server/fcgi_base.py”, line 1118, in handler

The output you posted is truncated at the end

Thanks schlarbm, I have corrected my post.

I’ve noticed when running ./seafile.sh, I can confirm it’s running using pgrep and find the PID but I cannot do the same for ./seahub.sh. When running start-fastcgi I get this below:

seafile@nas:~/seafile-server-latest$ ./seahub.sh start-fastcgi

LC_ALL is not set in ENV, set to en_US.UTF-8
Starting seahub (fastcgi) at 127.0.0.1:8000 …

Warning: Cache is not working, please check memcached is running if you are using
memcached backend, otherwise, please check permission of cache directory on your
file system.

The entire seafile folder is owned by user seafile, I made sure again using chown

It still doesn’t look complete:

I appreciate the help! Oddly the log appears to be truncated on every error, can’t seem to figure out how to get around it. The last two log entries are below and they are both truncated.

2017/08/10 20:42:24 [error] 2485#0: *17075 FastCGI sent in stderr: "Traceback (most recent call last):
File “build/bdist.linux-x86_64/egg/flup/server/fcgi_base.py”, line 558, in run
protocolStatus, appStatus = self.server.handler(self)
File “build/bdist.linux-x86_64/egg/flup/server/fcgi_base.py”, line 1118, in handler
result = self.application(environ, start_response)
File “/opt/seafile/seafile-server-6.1.1/seahub/thirdpart/Django-1.8.18-py2.7.egg/django/core/handlers/wsgi.py”, line 170, in call
self.load_middleware()
File “/opt/seafile/seafile-server-6.1.1/seahub/thirdpart/Django-1.8.18-py2.7.egg/django/core/handlers/base.py”, line 52, in load_middleware
mw_instance = mw_class()
File “/opt/seafile/seafile-server-6.1.1/seahub/thirdpart/Django-1.8.18-py2.7.egg/django/middleware/locale.py”, line 24, in init
for url_pattern in get_resolver(None).url_patterns:
File “/opt/seafile/seafile-server-6.1.1/seahub/thirdpart/Django-1.8.18-py2.7.egg/django/core/urlresolvers.py”, line 401, in url_patterns
patterns = getattr(self.urlconf_module, “urlpatterns”, self.urlconf_module)
File “/opt/seafile/seafile-server-6.1.1/seahub/thirdpart/Django-1.8.18-py2.7.egg/django/core/urlresolvers.py”, line 395, in urlconf_module
self._urlconf_module = import_module(self.urlconf_name)
File “/usr/lib/python2.7/importlib/init.py”, line 37, in import_module
import(name)
File “/opt/seafile/seafile-server-6.1.1/seahub/seahub/utils/rooturl.py”, line 41, in
(r’^%s’ % settings.SITE_ROOT[1:], include(settings.SITE_ROOT_URLCONF)),
File “/opt/seafile/seafile-server-6.1.1/seahub/thirdpart/Django-1.8.18-py2.7.egg/django/conf/urls/init.py”, line 33, in include
urlconf_module = import_module(urlconf_module)
File “/usr/lib/python2.7/importlib/init.py”, line 37, in import_module
import(name)
File “/opt/seafile/seafile-server-6.1.1/seahub/seahub/urls.py”, line 21, in
from seahub.api2.endpoints.groups import Groups, Group
File "/opt/seafile/
2017/08/10 20:42:24 [error] 2485#0: *17076 FastCGI sent in stderr: "Traceback (most recent call last):
File “build/bdist.linux-x86_64/egg/flup/server/fcgi_base.py”, line 558, in run
protocolStatus, appStatus = self.server.handler(self)
File “build/bdist.linux-x86_64/egg/flup/server/fcgi_base.py”, line 1118, in handler
result = self.application(environ, start_response)
File “/opt/seafile/seafile-server-6.1.1/seahub/thirdpart/Django-1.8.18-py2.7.egg/django/core/handlers/wsgi.py”, line 170, in call
self.load_middleware()
File “/opt/seafile/seafile-server-6.1.1/seahub/thirdpart/Django-1.8.18-py2.7.egg/django/core/handlers/base.py”, line 52, in load_middleware
mw_instance = mw_class()
File “/opt/seafile/seafile-server-6.1.1/seahub/thirdpart/Django-1.8.18-py2.7.egg/django/middleware/locale.py”, line 24, in init
for url_pattern in get_resolver(None).url_patterns:
File “/opt/seafile/seafile-server-6.1.1/seahub/thirdpart/Django-1.8.18-py2.7.egg/django/core/urlresolvers.py”, line 401, in url_patterns
patterns = getattr(self.urlconf_module, “urlpatterns”, self.urlconf_module)
File “/opt/seafile/seafile-server-6.1.1/seahub/thirdpart/Django-1.8.18-py2.7.egg/django/core/urlresolvers.py”, line 395, in urlconf_module
self._urlconf_module = import_module(self.urlconf_name)
File “/usr/lib/python2.7/importlib/init.py”, line 37, in import_module
import(name)
File “/opt/seafile/seafile-server-6.1.1/seahub/seahub/utils/rooturl.py”, line 41, in
(r’^%s’ % settings.SITE_ROOT[1:], include(settings.SITE_ROOT_URLCONF)),
File “/opt/seafile/seafile-server-6.1.1/seahub/thirdpart/Django-1.8.18-py2.7.egg/django/conf/urls/init.py”, line 33, in include
urlconf_module = import_module(urlconf_module)
File “/usr/lib/python2.7/importlib/init.py”, line 37, in import_module
import(name)
File “/opt/seafile/seafile-server-6.1.1/seahub/seahub/urls.py”, line 21, in
from seahub.api2.endpoints.groups import Groups, Group
File "/opt/seafile/