Error:Seahub failed to start


#1

Hello,

I move seafile database from one server (postgresql on centos 7) to other (dump and restore BDD + rsync of data and seafile directory)
On the new server (postgresql on centos 7) I use the same folder name an PATH than old serv.

./seafile.sh start
[03/02/17 12:07:04] ../common/session.c(132): using config file /seafile/haiwen/conf/ccnet.conf
NOTICE:  la relation « emailuser » existe déjà, poursuite du traitement
NOTICE:  la relation « binding » existe déjà, poursuite du traitement
NOTICE:  la relation « userrole » existe déjà, poursuite du traitement
NOTICE:  la relation « ldapusers » existe déjà, poursuite du traitement
NOTICE:  la relation « Group » existe déjà, poursuite du traitement
NOTICE:  la relation « groupuser » existe déjà, poursuite du traitement
NOTICE:  la relation « groupdnpair » existe déjà, poursuite du traitement
NOTICE:  la relation « organization » existe déjà, poursuite du traitement
NOTICE:  la relation « orguser » existe déjà, poursuite du traitement
NOTICE:  la relation « orggroup » existe déjà, poursuite du traitement
Starting seafile server, please wait ...
Seafile server started

./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

ls -ltr /seafile/haiwen/logs/
...
-rw-r--r--. 1 haiwen haiwen     37659  2 mars  12:07 controller.log
-rw-r--r--. 1 haiwen haiwen    504895  2 mars  12:07 seafile.log
-rw-r--r--. 1 haiwen haiwen  60738305  2 mars  12:07 ccnet.log


ccnet.log
[03/02/17 12:07:05] ../common/session.c(132): using config file /seafile/haiwen/conf/ccnet.conf
[03/02/17 12:07:05] ../common/session.c(455): socket file exists, delete it anyway
[03/02/17 12:07:05] ../common/session.c(484): Listen on /seafile/haiwen/ccnet/ccnet.sock for local clients
[03/02/17 12:07:05] ../common/session.c(290): Update pubinfo file
[03/02/17 12:07:05] ../common/connect-mgr.c(515): Opened port 10001 to listen for incoming peer connections
[03/02/17 12:07:06] ../common/session.c(398): Accepted a local client
[03/02/17 12:07:06] ../common/session.c(398): Accepted a local client
[03/02/17 12:07:06] ../common/session.c(398): Accepted a local client
[03/02/17 12:07:06] ../common/session.c(398): Accepted a local client
[03/02/17 12:07:18] ../common/session.c(398): Accepted a local client
[03/02/17 12:07:18] ../common/peer.c(943): Local peer down

seafile.log
[03/02/2017 12:07:06 PM] ../common/mq-mgr.c(54): [mq client] mq cilent is started
[03/02/2017 12:07:06 PM] listen-mgr.c(120): listen on port 12001 for block tranfer

controller.log
[03/02/17 12:00:34] seafile-controller.c(88): spawned /bin/python2.7, pid 4554
[03/02/17 12:07:05] seafile-controller.c(154): starting ccnet-server ...
[03/02/17 12:07:05] seafile-controller.c(73): spawn_process: ccnet-server -F /seafile/haiwen/conf -c /seafile/haiwen/ccnet -f /seafile/haiwen/logs/ccnet.log -d -P /seafile/haiwen/pids/ccnet.pid
[03/02/17 12:07:05] seafile-controller.c(88): spawned ccnet-server, pid 3200
[03/02/17 12:07:06] seafile-controller.c(555): ccnet daemon connected.
[03/02/17 12:07:06] seafile-controller.c(186): starting seaf-server ...
[03/02/17 12:07:06] seafile-controller.c(73): spawn_process: seaf-server -F /seafile/haiwen/conf -c /seafile/haiwen/ccnet -d /seafile/haiwen/seafile-data -l /seafile/haiwen/logs/seafile.log -P /seafile/haiwen/pids/seaf-server.pid
[03/02/17 12:07:06] seafile-controller.c(88): spawned seaf-server, pid 3206
[03/02/17 12:07:06] seafile-controller.c(396): pid file /seafile/haiwen/pids/seafdav.pid does not exist
[03/02/17 12:07:06] seafile-controller.c(73): spawn_process: /bin/python2.7 -m wsgidav.server.run_server runfcgi --log-file /seafile/haiwen/logs/seafdav.log --pid /seafile/haiwen/pids/seafdav.pid --port 18080 --host localhost
[03/02/17 12:07:06] seafile-controller.c(88): spawned /bin/python2.7, pid 3207

Could someone please help me ?
Thanks !


#2

try ./seahub.sh start-fastcgi, this will show error details.


#3

Try these two commands:

sudo rm /tmp/seahub_cache -rf
sudo rm /runtime/*.log

#4

Invaluable. This shold absolutely be in the docs.


#5

This just was a complete showstopper for Seafile for me, as I had run it as a different user before. This also should be in the docs. Thanks!