seahub无法启动,该如何解决?提示如下


#1

重启了一下系统,然后seahub就无法运行了
运行命令: systemctl start seahub
提示:
systemctl enable seahubJob for seahub.service failed because the control process exited with error code. See “systemctl status seahub.service” and “journalctl -xe” for details.

运行命令: ./seahub.sh start
提示:
LC_ALL is not set in ENV, set to en_US.UTF-8
Starting seahub at port 8000 …
Error:Seahub failed to start.
Please try to run “./seahub.sh start” again

求救

Job for seahub.service failed because the control process exited with error code                                                                             . See "systemctl status seahub.service" and "journalctl -xe" for details.
loywp@loywp-server:~$ systemctl status seahub.service
● seahub.service - Seafile hub
   Loaded: loaded (/lib/systemd/system/seahub.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since 二 2017-12-05 00:10:13 CST; 10s ago
  Process: 2101 ExecStart=/home/seafile/sync-server/seafile-server-latest/seahub.sh start (code=exited, status=1/FAILURE)
 Main PID: 2101 (code=exited, status=1/FAILURE)

12月 05 00:10:08 loywp-server systemd[1]: Starting Seafile hub...
12月 05 00:10:08 loywp-server seahub.sh[2101]: LC_ALL is not set in ENV, set to en_US.UTF-8
12月 05 00:10:08 loywp-server seahub.sh[2101]: Starting seahub at port 8000 ...
12月 05 00:10:13 loywp-server systemd[1]: seahub.service: Main process exited, code=exited, status=1/FAILURE
12月 05 00:10:13 loywp-server systemd[1]: Failed to start Seafile hub.
12月 05 00:10:13 loywp-server systemd[1]: seahub.service: Unit entered failed state.
12月 05 00:10:13 loywp-server systemd[1]: seahub.service: Failed with result 'exit-code'.

#2

看报错可能是某个进程没关掉,卡在那了,你用kill吧跟seafile和seahub有关的进程全部杀了,然后在重启seafile和seahub


#3

问题解决了吗?我也碰到了问题,最后是修改seahub_settings.py解决的,检查到这个配置文件有不规范的文本


#4

你好!,我也遇到同样的问题,请问seahub_settings.py不规范文本是哪几行?怎么修改,盼回。


#5

检查一下,注释,你看最近增加的配置一个个修改一下,或者你把你的配置发上来给大家一起帮忙看一下

我是因为注释的后面有中文的标点符号


#6

seahub_settings.py文件我没有作任何改动,麻烦帮我看一下,可是字符语法的问题?


#7

我试着以debug 的启动方式启动,报 Error loading MySQLdb module: No module named MySQLdb的错误?