won't start, syntax error? Seafile for Pi 7.0.5

I followed the official Seafile documentation to set it up (Seafile Server for Raspberry Pi Version 7.0.5 on Raspberry Pi model 4B with 4Gb RAM running Raspbian Buster 10) with MariaDB instead of MySQL, which seems to be fine. I followed all the deployment instructions for Nginx and in Terminal, I get the error failed to start, please try to start again. I can confirm Nginx is running as I get the welcome to Nginx page when I go to port 80. When I go to which is the correct IP and port, I just get a could not connect to server error. I did add DEBUG=True to but since can’t start it doesn’t seem to be making any difference. Nothing is showing up when I try to load the page or in the seahub.log file.

In seahub.conf I tried changing Daemon from True to False. It seemed to make no difference. Nothing new in the logs. The Nginx access.log and error.log files are also empty.

Starting with fastcgi provided this:

'Starting seahub (fastcgi) at ...
Traceback (most recent call last):
  File "/home/pi/katcloud/seafile-server-7.0.5/seahub/", line 10, in <module>
  File "/home/pi/katcloud/seafile-server-7.0.5/seahub/thirdpart/Django-1.11.16-py2.7.egg/django/core/management/", line 364, in execute_from_command_line
  File "/home/pi/katcloud/seafile-server-7.0.5/seahub/thirdpart/Django-1.11.16-py2.7.egg/django/core/management/", line 308, in execute
  File "/home/pi/katcloud/seafile-server-7.0.5/seahub/thirdpart/Django-1.11.16-py2.7.egg/django/conf/", line 56, in __getattr__
  File "/home/pi/katcloud/seafile-server-7.0.5/seahub/thirdpart/Django-1.11.16-py2.7.egg/django/conf/", line 41, in _setup
    self._wrapped = Settings(settings_module)
  File "/home/pi/katcloud/seafile-server-7.0.5/seahub/thirdpart/Django-1.11.16-py2.7.egg/django/conf/", line 110, in __init__
    mod = importlib.import_module(self.SETTINGS_MODULE)
  File "/usr/lib/python2.7/importlib/", line 37, in import_module
  File "/home/pi/katcloud/seafile-server-7.0.5/seahub/seahub/", line 4, in <module>
    from handlers import repo_created_cb, repo_deleted_cb, clean_up_repo_trash_cb, \
  File "/home/pi/katcloud/seafile-server-7.0.5/seahub/seahub/", line 4, in <module>
    import settings
  File "/home/pi/katcloud/seafile-server-7.0.5/seahub/seahub/", line 841, in <module>
    import seahub_settings
  File "/home/pi/katcloud/conf/", line 13
SyntaxError: invalid syntax
Error:Seahub failed to start.'

So apparently there is some problem with Django? It says I am using version 1.11.23 and no updates available. If you can please be detailed in your replies, I’m fairly new to linux and this is my first time using Nginx instead of Apache.

Hi rphoenix,
welcome to the Community forum!
Thanks for your good problem description and the log.
I am pretty sure your problem lies not in your configuration itself, but in your configuration file. Specifically, in the formating of your file. throws an “invalid syntax” error when reading the Keep in mind that indentation matters in PY-files or in Python in general. My advice: Go through the and more sure that you got the indentation right.