Seahub will not start - python spacing issues

Hi there… I had my seafile install working for about a month. I ran an update and started getting an NGINX 502 error.

I managed to track it down to seafile not starting, and it appears as though there is a python spacing error. The part I am confused about is to which file/module has the real issue. It references a few of them.

root@sfile:/opt/seafile# vi /opt/seafile/conf/ + 23
2 files to edit
root@sfile:/opt/seafile# vi /opt/seafile/conf/ 
root@sfile:/opt/seafile# /opt/seafile/seafile-server-6.2.5/ start-fastcgi

LC_ALL is not set in ENV, set to en_US.UTF-8
Starting seahub (fastcgi) at ...
Traceback (most recent call last):
  File "/opt/seafile/seafile-server-6.2.5/seahub/", line 10, in <module>
  File "/opt/seafile/seafile-server-6.2.5/seahub/thirdpart/Django-1.8.18-py2.7.egg/django/core/management/", line 354, in execute_from_command_line
  File "/opt/seafile/seafile-server-6.2.5/seahub/thirdpart/Django-1.8.18-py2.7.egg/django/core/management/", line 303, in execute
  File "/opt/seafile/seafile-server-6.2.5/seahub/thirdpart/Django-1.8.18-py2.7.egg/django/conf/", line 48, in __getattr__
  File "/opt/seafile/seafile-server-6.2.5/seahub/thirdpart/Django-1.8.18-py2.7.egg/django/conf/", line 44, in _setup
    self._wrapped = Settings(settings_module)
  File "/opt/seafile/seafile-server-6.2.5/seahub/thirdpart/Django-1.8.18-py2.7.egg/django/conf/", line 92, in __init__
    mod = importlib.import_module(self.SETTINGS_MODULE)
  File "/opt/seafile/seafile-server-6.2.5/seahub/thirdpart/importlib-1.0.4-py2.6.egg/importlib/", line 37, in import_module
  File "/opt/seafile/seafile-server-6.2.5/seahub/seahub/", line 3, in <module>
    from handlers import repo_created_cb, repo_deleted_cb
  File "/opt/seafile/seafile-server-6.2.5/seahub/seahub/", line 4, in <module>
    import settings
  File "/opt/seafile/seafile-server-6.2.5/seahub/seahub/", line 695, in <module>
    import seahub_settings
  File "/opt/seafile/conf/", line 23
    EMAIL_USE_TLS                       = True

Edit - figured it out. Not sure why it was messed up. Just the settings file.

FastCGI isn’t recommend anymore. You should use proxy_pass.

1 Like