Centos7 Error:Seahub failed to start


#1

root@localhost seafile-server-6.0.5]# ./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 …
Traceback (most recent call last):
File “/data/install/seafile-server-6.0.5/seahub/manage.py”, line 10, in
execute_from_command_line(sys.argv)
File “/data/install/seafile-server-6.0.5/seahub/thirdpart/Django-1.8.10-py2.7.egg/django/core/management/init.py”, line 354, in execute_from_command_line
utility.execute()
File “/data/install/seafile-server-6.0.5/seahub/thirdpart/Django-1.8.10-py2.7.egg/django/core/management/init.py”, line 303, in execute
settings.INSTALLED_APPS
File “/data/install/seafile-server-6.0.5/seahub/thirdpart/Django-1.8.10-py2.7.egg/django/conf/init.py”, line 48, in getattr
self._setup(name)
File “/data/install/seafile-server-6.0.5/seahub/thirdpart/Django-1.8.10-py2.7.egg/django/conf/init.py”, line 44, in _setup
self._wrapped = Settings(settings_module)
File “/data/install/seafile-server-6.0.5/seahub/thirdpart/Django-1.8.10-py2.7.egg/django/conf/init.py”, line 92, in init
mod = importlib.import_module(self.SETTINGS_MODULE)
File “/usr/lib64/python2.7/importlib/init.py”, line 37, in import_module
import(name)
File “/data/install/seafile-server-6.0.5/seahub/seahub/init.py”, line 3, in
from handlers import repo_created_cb, repo_deleted_cb
File “/data/install/seafile-server-6.0.5/seahub/seahub/handlers.py”, line 4, in
import settings
File “/data/install/seafile-server-6.0.5/seahub/seahub/settings.py”, line 607, in
import seahub_settings
File “/data/install/conf/seahub_settings.py”, line 15
SyntaxError: Non-ASCII character ‘\xe6’ in file /data/install/conf/seahub_settings.py on line 15, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details
Error:Seahub failed to start.

请问怎么解决呢?


#2

试试把 seahub_settings.py 文件中的非英文字符都删掉。


#3

非常感谢! 已经可以了


#4

我也遇到同样的情况,seahub_settings.py怎么改?