Upgrade Seafile CE from 6.2.5 to 6.3.2 gunicorn does not start

I have just tried to upgrade seafile 6.2.5 CE on Ubuntu 14.04 behind Apache to 6.3.2 CE. Seems all okay until I try and start seahub.

No error messages so I altered the ./seahub.sh script to have --preload --spew. This is what I get…

seafile@servername:~/seafile-server-latest$ ./seahub.sh start

Starting seahub at port 8000 …
gunicorn.config:61: if name not in self.settings:
gunicorn.config:63: return self.settings[name].get()
gunicorn.config:305: return self.value
gunicorn.config:61: if name not in self.settings:
gunicorn.config:63: return self.settings[name].get()
gunicorn.config:305: return self.value
gunicorn.util:407: if ‘GUNICORN_FD’ not in os.environ:
UserDict:71: return key in self.data
gunicorn.util:408: if os.fork():
gunicorn.util:409: os._exit(0)
gunicorn.util:410: os.setsid()
gunicorn.util:412: if os.fork():
gunicorn.util:413: os._exit(0)
gunicorn.util:415: os.umask(0o22)
gunicorn.util:423: if not enable_stdio_inheritance:
gunicorn.util:428: closerange(0, 3)

Seahub is started

Done.

seafile@servername:~/seafile-server-latest$ ps aux |grep sea
root 6959 0.0 0.3 49528 3052 pts/0 S 17:09 0:00 su - seafile
seafile 6960 0.0 0.5 22776 5520 pts/0 S 17:09 0:00 -su
seafile 7055 0.0 0.3 72136 3320 ? Ss 17:10 0:00 /home/seafile/seafile-server-6.3.2/seafile/bin/seafile-controller -c /home/seafile/ccnet -d /home/seafile/seafile-data -F /home/seafile/conf
seafile 7057 0.0 1.0 214176 10320 ? Ssl 17:10 0:00 ccnet-server -F /home/seafile/conf -c /home/seafile/ccnet -f /home/seafile/logs/ccnet.log -d -P /home/seafile/pids/ccnet.pid
seafile 7059 0.0 0.9 1025492 9676 ? Ssl 17:10 0:00 seaf-server -F /home/seafile/conf -c /home/seafile/ccnet -d /home/seafile/seafile-data -l /home/seafile/logs/seafile.log -P /home/seafile/pids/seaf-server.pid
seafile 7611 0.0 0.2 18460 2400 pts/0 R+ 17:19 0:00 ps aux
seafile 7612 0.0 0.2 11760 2128 pts/0 S+ 17:19 0:00 grep --color=auto sea
seafile@servername:~/seafile-server-latest$ ls -atlr …/logs/gunicorn_*
-rw-r–r-- 1 seafile seafile 0 Aug 7 16:03 …/logs/gunicorn_error.log
-rw-r–r-- 1 seafile seafile 0 Aug 7 16:03 …/logs/gunicorn_access.log

root@servername:~# netstat -antlup |grep -w LISTEN
tcp 0 0 127.0.0.1:8082 0.0.0.0:* LISTEN 7059/seaf-server
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 864/sshd
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 1906/master
tcp 0 0 0.0.0.0:538 0.0.0.0:* LISTEN 997/gdomap
tcp 0 0 0.0.0.0:5665 0.0.0.0:* LISTEN 1408/icinga2
tcp 0 0 0.0.0.0:5666 0.0.0.0:* LISTEN 1575/nrpe
tcp 0 0 127.0.0.1:11211 0.0.0.0:* LISTEN 1522/memcached
tcp6 0 0 :::22 :::* LISTEN 864/sshd
tcp6 0 0 :::443 :::* LISTEN 3117/apache2
tcp6 0 0 :::5666 :::* LISTEN 1575/nrpe
tcp6 0 0 :::80 :::* LISTEN 3117/apache2
root@severname:~# su - seafile
seafile@servername:~$ cat conf/gunicorn.conf
import os

daemon = True
workers = 5

default localhost:8000

bind = “0.0.0.0:8000”

Pid

pids_dir = ‘/home/seafile/pids’
pidfile = os.path.join(pids_dir, ‘seahub.pid’)

Logging

logs_dir = ‘/home/seafile/logs’
errorlog = os.path.join(logs_dir, ‘gunicorn_error.log’)
accesslog = os.path.join(logs_dir, ‘gunicorn_access.log’)

for file upload, we need a longer timeout value (default is only 30s, too short)

timeout = 1200

limit_request_line = 8190

Hi @caniwi
try to change
daemon = True to False
you’ll see more :sunglasses:

J.

Is this a general requirement? If yes, is it documented?

@DerDanilo no, this is only for debug purposes. This must be reverted after the troubleshooting.