Seafile 7.0.4 on Debian 9.9 crashing gunicorn?

I switched a while back to using wsgi mode (if I recall so that I could utilize webdav?) and I am having a fairly regular issue with gunicorn crashing 2-3 times a week randomly. I am not sure where to begin to figure this out, and I’m considering an OS reload anyway to latest Debian.

What might cause gunicorn to crash? Here is a console copy and paste :slight_smile:

root@server:~# ps auxw|grep seaf
root 19190 0.0 0.0 12780 1028 pts/1 S+ 15:22 0:00 grep seaf
ledoktre 41954 0.0 0.0 72200 3216 ? Ss Nov24 0:01 /opt/seafile/seafile-server-7.0.4/seafile/bin/seafile-controller -c /opt/seafile/ccnet -d /sysvol/seafile/ledoktre -F /opt/seafile/conf
ledoktre 41956 0.0 0.0 186184 8920 ? Ss Nov24 0:00 ccnet-server -F /opt/seafile/conf -c /opt/seafile/ccnet -f /opt/seafile/logs/ccnet.log -d -P /opt/seafile/pids/ccnet.pid
ledoktre 41958 0.0 0.2 821776 32336 ? Sl Nov24 0:06 /usr/bin/python2.7 -m wsgidav.server.run_server --log-file /opt/seafile/logs/seafdav.log --pid /opt/seafile/pids/seafdav.pid --port 8080 --host 0.0.0.0
ledoktre 41959 0.0 0.1 1016116 16552 ? Ssl Nov24 0:08 seaf-server -F /opt/seafile/conf -c /opt/seafile/ccnet -d /sysvol/seafile/ledoktre -l /opt/seafile/logs/seafile.log -P /opt/seafile/pids/seaf-server.pid
root@server:~#
root@server:~# cd /home
root@server:/home# /etc/init.d/seafile stop && /etc/init.d/seafile start
** Message: seafile-controller.c(718): No seafevents.

root@server:/home# ps auxw|grep seaf
ledoktre 19248 0.0 0.0 72200 3092 ? Ss 15:22 0:00 /opt/seafile/seafile-server-7.0.4/seafile/bin/seafile-controller -c /opt/seafile/ccnet -d /sysvol/seafile/ledoktre -F /opt/seafile/conf
ledoktre 19250 0.0 0.0 186184 8884 ? Ssl 15:22 0:00 ccnet-server -F /opt/seafile/conf -c /opt/seafile/ccnet -f /opt/seafile/logs/ccnet.log -d -P /opt/seafile/pids/ccnet.pid
ledoktre 19252 1.3 0.1 821776 32140 ? Sl 15:22 0:00 /usr/bin/python2.7 -m wsgidav.server.run_server --log-file /opt/seafile/logs/seafdav.log --pid /opt/seafile/pids/seafdav.pid --port 8080 --host 0.0.0.0
ledoktre 19253 0.0 0.0 1016116 8732 ? Ssl 15:22 0:00 seaf-server -F /opt/seafile/conf -c /opt/seafile/ccnet -d /sysvol/seafile/ledoktre -l /opt/seafile/logs/seafile.log -P /opt/seafile/pids/seaf-server.pid
ledoktre 19296 4.7 0.4 156872 64884 ? S 15:22 0:00 python2.7 /opt/seafile/seafile-server-7.0.4/seahub/thirdpart/gunicorn seahub.wsgi:application -c /opt/seafile/conf/gunicorn.conf --preload
ledoktre 19303 0.0 0.3 163192 55248 ? S 15:22 0:00 python2.7 /opt/seafile/seafile-server-7.0.4/seahub/thirdpart/gunicorn seahub.wsgi:application -c /opt/seafile/conf/gunicorn.conf --preload
ledoktre 19304 0.0 0.3 163192 55248 ? S 15:22 0:00 python2.7 /opt/seafile/seafile-server-7.0.4/seahub/thirdpart/gunicorn seahub.wsgi:application -c /opt/seafile/conf/gunicorn.conf --preload
ledoktre 19305 0.0 0.3 163192 55252 ? S 15:22 0:00 python2.7 /opt/seafile/seafile-server-7.0.4/seahub/thirdpart/gunicorn seahub.wsgi:application -c /opt/seafile/conf/gunicorn.conf --preload
ledoktre 19306 0.0 0.3 163192 55264 ? S 15:22 0:00 python2.7 /opt/seafile/seafile-server-7.0.4/seahub/thirdpart/gunicorn seahub.wsgi:application -c /opt/seafile/conf/gunicorn.conf --preload
ledoktre 19307 0.0 0.3 163192 55264 ? S 15:22 0:00 python2.7 /opt/seafile/seafile-server-7.0.4/seahub/thirdpart/gunicorn seahub.wsgi:application -c /opt/seafile/conf/gunicorn.conf --preload
root 19317 0.0 0.0 12780 972 pts/1 S+ 15:23 0:00 grep seaf

Thanks!

Hi @ledoktre,
could you please check your log files under /opt/seafile/logs/.
Either you have gunicorn_errors.log or seahub.log.

Look at the end of the output, say the last 50 lines. If you notice any error message, post it here.