Error:Seahub failed to start. after migration to pro

Hi,

I tried migrating to pro and now the server wont start. I only get this error when running seahub.sh start:

[..]
# /usr/lib/python2.7/gettext.pyc matches /usr/lib/python2.7/gettext.py
import gettext # precompiled from /usr/lib/python2.7/gettext.pyc
# /usr/lib/python2.7/shlex.pyc matches /usr/lib/python2.7/shlex.py
import shlex # precompiled from /usr/lib/python2.7/shlex.pyc
# /home/alex/seafile/seafile-pro-server-7.0.8/seahub/thirdpart/gunicorn-19.8.1-py2.7.egg/gunicorn/reloader.pyc matches /home/alex/seafile/seafile-pro-server-7.0.8/seahub/thirdpart/gunicorn-19.8.1-py2.7.egg/gunicorn/reloader.py
import gunicorn.reloader # precompiled from /home/alex/seafile/seafile-pro-server-7.0.8/seahub/thirdpart/gunicorn-19.8.1-py2.7.egg/gunicorn/reloader.pyc
# /home/alex/seafile/seafile-pro-server-7.0.8/seahub/thirdpart/gunicorn-19.8.1-py2.7.egg/gunicorn/debug.pyc matches /home/alex/seafile/seafile-pro-server-7.0.8/seahub/thirdpart/gunicorn-19.8.1-py2.7.egg/gunicorn/debug.py
import gunicorn.debug # precompiled from /home/alex/seafile/seafile-pro-server-7.0.8/seahub/thirdpart/gunicorn-19.8.1-py2.7.egg/gunicorn/debug.pyc
Error:Seahub failed to start.
Please try to run "./seahub.sh start" again
alex@seafile:~/seafile/latest$

The log files show only one error related to the database (i am using sqlite3):

seafile:/home/alex/seafile/logs# ls -altr
insgesamt 198808
-rw-r--r--  1 alex alex      1335 Mär 28  2018 seafile.init.log
-rw-r--r--  1 alex alex      1208 Mär 28  2018 seahub.init.log
-rw-r--r--  1 alex alex    877732 Dez 24  2018 seahub_django_request.log
-rw-------  1 alex alex   1497620 Mär 12  2019 seaf-fuse.log
drwx------  2 alex alex      4096 Sep 16 12:43 slow_logs
-rw-------  1 alex alex         0 Sep 16 12:44 elasticsearch_index_search_slowlog.log
-rw-------  1 alex alex         0 Sep 16 12:44 elasticsearch_deprecation.log
-rw-------  1 alex alex         0 Sep 16 12:44 elasticsearch_index_indexing_slowlog.log
drwxr-xr-x  3 alex alex      4096 Sep 16 13:26 .
-rw-r--r--  1 alex alex  73176649 Sep 16 13:32 seafdav.log
-rw-r--r--  1 alex alex  19741301 Sep 16 13:32 seafile.log
-rw-------  1 alex alex    163036 Sep 16 13:32 elasticsearch.log
drwx------ 14 alex alex      4096 Sep 16 13:35 ..
-rw-r--r--  1 alex alex   3614970 Sep 16 13:35 seahub.log
-rw-r--r--  1 alex alex    364266 Sep 16 13:40 ccnet.log
-rw-r--r--  1 alex alex 104047254 Sep 16 13:40 controller.log
-rw-------  1 alex alex     39185 Sep 16 13:40 seafevents.log
seafile:/home/alex/seafile/logs# tail ccnet.log
[09/16/19 13:35:41] ../common/session.c(409): Accepted a local client
[09/16/19 13:35:41] ../common/peer.c(950): Local peer down
[09/16/19 13:38:22] ../common/session.c(409): Accepted a local client
[09/16/19 13:38:22] ../common/peer.c(950): Local peer down
[09/16/19 13:40:02] ../common/session.c(409): Accepted a local client
[09/16/19 13:40:02] ../common/peer.c(950): Local peer down
[09/16/19 13:40:15] ../common/session.c(409): Accepted a local client
[09/16/19 13:40:15] ../common/peer.c(950): Local peer down
[09/16/19 13:40:29] ../common/session.c(409): Accepted a local client
[09/16/19 13:40:29] ../common/peer.c(950): Local peer down
seafile:/home/alex/seafile/logs# tail controller.log
[09/16/19 13:40:24] seafile-controller.c(94): spawn_process: /usr/bin/python2.7 -m seafevents.main --config-file /home/alex/seafile/conf/seafevents.conf --logfile /home/alex/seafile/logs/seafevents.log -P /home/alex/seafile/pids/seafevents.pid
[09/16/19 13:40:24] seafile-controller.c(109): spawned /usr/bin/python2.7, pid 7367
[09/16/19 13:40:34] seafile-controller.c(594): pid file /home/alex/seafile/pids/seafevents.pid does not exist
[09/16/19 13:40:34] seafile-controller.c(625): seafevents need restart...
[09/16/19 13:40:34] seafile-controller.c(94): spawn_process: /usr/bin/python2.7 -m seafevents.main --config-file /home/alex/seafile/conf/seafevents.conf --logfile /home/alex/seafile/logs/seafevents.log -P /home/alex/seafile/pids/seafevents.pid
[09/16/19 13:40:34] seafile-controller.c(109): spawned /usr/bin/python2.7, pid 7393
[09/16/19 13:40:44] seafile-controller.c(594): pid file /home/alex/seafile/pids/seafevents.pid does not exist
[09/16/19 13:40:44] seafile-controller.c(625): seafevents need restart...
[09/16/19 13:40:44] seafile-controller.c(94): spawn_process: /usr/bin/python2.7 -m seafevents.main --config-file /home/alex/seafile/conf/seafevents.conf --logfile /home/alex/seafile/logs/seafevents.log -P /home/alex/seafile/pids/seafevents.pid
[09/16/19 13:40:44] seafile-controller.c(109): spawned /usr/bin/python2.7, pid 7398
seafile:/home/alex/seafile/logs# tail seafevents.log
[2019-09-16 13:40:34,968] [INFO] [seafevents] database: sqlite3, path: /home/alex/seafile/pro-data/seafevents.db
[2019-09-16 13:40:34,981] [INFO] audit is enabled
[2019-09-16 13:40:34,981] [INFO] [seafevents] database: sqlite3, path: /home/alex/seafile/pro-data/seafevents.db
[2019-09-16 13:40:34,982] [ERROR] Error loading seafevents config. Detial: No section: 'database'
[2019-09-16 13:40:34,983] [INFO] remove pidfile /home/alex/seafile/pids/seafevents.pid
[2019-09-16 13:40:45,001] [INFO] [seafevents] database: sqlite3, path: /home/alex/seafile/pro-data/seafevents.db
[2019-09-16 13:40:45,013] [INFO] audit is enabled
[2019-09-16 13:40:45,013] [INFO] [seafevents] database: sqlite3, path: /home/alex/seafile/pro-data/seafevents.db
[2019-09-16 13:40:45,014] [ERROR] Error loading seafevents config. Detial: No section: 'database'
[2019-09-16 13:40:45,015] [INFO] remove pidfile /home/alex/seafile/pids/seafevents.pid
seafile:/home/alex/seafile/logs#

Any idea what to check or modify?

btw, my seafevent.conf looks like this:

seafile:/home/alex/seafile/logs# cat ../conf/seafevents.conf
[DATABASE]
type = sqlite3
path = /home/alex/seafile/pro-data/seafevents.db

[..]

I renamed [DATABASE] to [database] and now i have no more errors, but seafile wont start:

seafile:/home/alex/seafile/logs# tail seafevents.log
[2019-09-16 14:04:28,595] [INFO] remove pidfile /home/alex/seafile/pids/seafevents.pid
[2019-09-16 14:04:38,580] [INFO] remove pidfile /home/alex/seafile/pids/seafevents.pid
[2019-09-16 14:04:48,594] [INFO] remove pidfile /home/alex/seafile/pids/seafevents.pid
[2019-09-16 14:04:58,583] [INFO] remove pidfile /home/alex/seafile/pids/seafevents.pid
[2019-09-16 14:05:08,614] [INFO] remove pidfile /home/alex/seafile/pids/seafevents.pid
[2019-09-16 14:05:18,621] [INFO] remove pidfile /home/alex/seafile/pids/seafevents.pid
[2019-09-16 14:05:28,585] [INFO] remove pidfile /home/alex/seafile/pids/seafevents.pid
[2019-09-16 14:05:38,645] [INFO] remove pidfile /home/alex/seafile/pids/seafevents.pid
[2019-09-16 14:05:48,636] [INFO] remove pidfile /home/alex/seafile/pids/seafevents.pid
[2019-09-16 14:05:58,654] [INFO] remove pidfile /home/alex/seafile/pids/seafevents.pid
seafile:/home/alex/seafile/logs# tail controller.log
[09/16/19 14:05:38] seafile-controller.c(94): spawn_process: /usr/bin/python2.7 -m seafevents.main --config-file /home/alex/seafile/conf/seafevents.conf --logfile /home/alex/seafile/logs/seafevents.log -P /home/alex/seafile/pids/seafevents.pid
[09/16/19 14:05:38] seafile-controller.c(109): spawned /usr/bin/python2.7, pid 8692
[09/16/19 14:05:48] seafile-controller.c(594): pid file /home/alex/seafile/pids/seafevents.pid does not exist
[09/16/19 14:05:48] seafile-controller.c(625): seafevents need restart…
[09/16/19 14:05:48] seafile-controller.c(94): spawn_process: /usr/bin/python2.7 -m seafevents.main --config-file /home/alex/seafile/conf/seafevents.conf --logfile /home/alex/seafile/logs/seafevents.log -P /home/alex/seafile/pids/seafevents.pid
[09/16/19 14:05:48] seafile-controller.c(109): spawned /usr/bin/python2.7, pid 8706
[09/16/19 14:05:58] seafile-controller.c(594): pid file /home/alex/seafile/pids/seafevents.pid does not exist
[09/16/19 14:05:58] seafile-controller.c(625): seafevents need restart…
[09/16/19 14:05:58] seafile-controller.c(94): spawn_process: /usr/bin/python2.7 -m seafevents.main --config-file /home/alex/seafile/conf/seafevents.conf --logfile /home/alex/seafile/logs/seafevents.log -P /home/alex/seafile/pids/seafevents.pid
[09/16/19 14:05:58] seafile-controller.c(109): spawned /usr/bin/python2.7, pid 8733
seafile:/home/alex/seafile/logs# tail ccnet.log
[09/16/19 13:55:07] …/common/session.c(409): Accepted a local client
[09/16/19 13:55:07] …/common/session.c(409): Accepted a local client
[09/16/19 13:55:07] …/common/session.c(409): Accepted a local client
[09/16/19 13:55:07] …/common/session.c(409): Accepted a local client
[09/16/19 13:55:17] …/common/session.c(409): Accepted a local client
[09/16/19 13:55:17] …/common/peer.c(950): Local peer down
[09/16/19 14:01:16] …/common/session.c(409): Accepted a local client
[09/16/19 14:01:16] …/common/session.c(409): Accepted a local client
[09/16/19 14:05:53] …/common/session.c(409): Accepted a local client
[09/16/19 14:05:53] …/common/peer.c(950): Local peer down
seafile:/home/alex/seafile/logs#

[..]
# /home/alex/seafile/seafile-pro-server-7.0.8/seahub/thirdpart/gunicorn-19.8.1-py2.7.egg/gunicorn/reloader.pyc matches /home/alex/seafile/seafile-pro-server-7.0.8/seahub/thirdpart/gunicorn-19.8.1-py2.7.egg/gunicorn/reloader.py
import gunicorn.reloader # precompiled from /home/alex/seafile/seafile-pro-server-7.0.8/seahub/thirdpart/gunicorn-19.8.1-py2.7.egg/gunicorn/reloader.pyc
# /home/alex/seafile/seafile-pro-server-7.0.8/seahub/thirdpart/gunicorn-19.8.1-py2.7.egg/gunicorn/debug.pyc matches /home/alex/seafile/seafile-pro-server-7.0.8/seahub/thirdpart/gunicorn-19.8.1-py2.7.egg/gunicorn/debug.py
import gunicorn.debug # precompiled from /home/alex/seafile/seafile-pro-server-7.0.8/seahub/thirdpart/gunicorn-19.8.1-py2.7.egg/gunicorn/debug.pyc
Error:Seahub failed to start.
Please try to run "./seahub.sh start" again
alex@seafile:~/seafile/latest$

Help, please

Any idea welcome. Please

Hello,
WARNING, the Pro version does not use sqlite

Hi @jacky35,
thank you. I tried migrating to MySQL, but found new bugs in Seafile. Will update this thread once I manage to migrate from SQLite to MySQL. Thank you a lot!

Edit: fyi, this is the bug I came along now: https://github.com/haiwen/seafile-server/issues/248
Edit2: I fixed it and posted workaround on github. Now I am still stuck with the same error. gunicorn seahub.wsgi will not start. No error message, no logfile.

Edit3: Okay, I got it working. I went back to community for initial tests. So, I manually ran all the scripts and finally found that python was complaining about my setting of DEBUG=true in seahub_settings.py. It had to be a capital “T” (True, not true). It then ran. I was using 6.3.4 but it did not load after login, because of two other bugs:

1)
[WARNING] django.request:152 get_response Not Found: /media/assets/scripts/app/main.js

It could not load main.js from the path. main.js is not in /app/. Actually /app/ doesnt exist. I created it and linked to …/main.js
mkdir app
cd app
ln -s …/main.js main.js
cd …
chown -R alex:alex app/

2)
[WARNING] django.request:152 get_response Not Found: /media/assets/css/bootstrap.min.css.map

bootstrap map was not included. I removed the 5th line of bootstrap.min.css which contained:
/*# sourceMappingURL=bootstrap.min.css.map */

After fixing so many bugs today, I will postpone the upgrade to pro for tomorrow. I am tired of finding and fixing more bugs on a friday :slight_smile:

Upgrade to pro went smooth.