(6.3.4) gunicorn.conf doesn't exist

Good day people!
I hope you can help me.

XigmaNas (6026, FreeBSD 11.2-RELEASE-p3)
I tried to install seafile (not upgrade) in jail. Everything was good (installation of packages, connection to MySQL, launch of seafile server), except for launching seahub, it gives an error, see below:

root@seafile:/ # service seafile start
[10/31/18 19:02:22] …/common/session.c(132): using config file /usr/local/www/haiwen/conf/ccnet.conf
Starting seafile server, please wait …
Seafile server started

root@seafile:/ # service seahub start
LANG is not set in ENV, set to en_US.UTF-8
LC_ALL is not set in ENV, set to en_US.UTF-8
Starting seahub at port 8000 …

Error: ‘/usr/local/www/haiwen/conf/gunicorn.conf’ doesn’t exist
Error:Seahub failed to start.
Please try to run “./seahub.sh start” again

Pls, help to solve my problem.
I even do not know what to look for…
There is not a lot of information in the internet.

The update couldn’t write into the conf/ folder due its permissions. Change them, update again, them change them back. Best you change them for all seafile folders.

I do not update the seafile, it was first install in jail.
Last post I forgot to mention that I install on the nginx.

about the permissions
root@seafile:/usr/local/www/haiwen # ls -ls
total 72
18 drwx------ 3 seafile seafile 6 Oct 31 19:02 ccnet
18 drwxr-xr-x 2 seafile seafile 7 Nov 1 22:19 conf
1 drwxr-xr-x 2 seafile seafile 5 Oct 28 02:10 logs
1 drwxr-xr-x 2 seafile seafile 4 Oct 31 19:02 pids
18 drwx------ 6 seafile seafile 6 Oct 28 02:10 seafile-data
18 drwxr-xr-x 6 root wheel 25 Nov 1 21:42 seafile-server
1 lrwxr-xr-x 1 root seafile 14 Oct 28 02:07 seafile-server-latest -> seafile-server
1 drwxr-xr-x 4 seafile seafile 4 Oct 26 01:58 seahub-data

force reinstall do not help…

Even then, change the permissions, and update, then gunicorn.conf will exist.

This is the default content:

import os

daemon = True
workers = 5

# default localhost:8000
bind = "0.0.0.0:8000"

# Pid
pids_dir = '/path/to/seafile-installation/pids'
pidfile = os.path.join(pids_dir, 'seahub.pid')

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

limit_request_line = 8190

Its placed in the conf-Folder.

2 Likes

Now I have another problem.

root@seafile:/usr/local/www/haiwen/seafile-server # service seahub start
LANG is not set in ENV, set to en_US.UTF-8
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
root@seafile:/usr/local/www/haiwen/seafile-server # ./seahub.sh start

Starting seahub at port 8000 …
python2.7: can’t open file ‘/usr/local/www/haiwen/seafile-server/seahub/thirdpart/gunicorn’: [Errno 2] No such file or directory
Error:Seahub failed to start.
Please try to run “./seahub.sh start” again
root@seafile:/usr/local/www/haiwen/seafile-server #

What should I do?

Seems missing, reupdate

Is not related to the error, caused by ssh.

Hi there … had the same problem while activating a seafile server installing from scratch version 6.3.4
seafile-server_6.3.4_x86-64.tar.gz
while starting seahub.service (systemctl start seahub.service ) i receive a
Apr 16 17:03:34 seafile-int-01.amana.vpn seahub.sh[9065]: Error: ‘/opt/seafile/conf/gunicorn.conf’ doesn’t exist
I noticed @marcusm sent the file content which can be easily edited to suit my needs however it would be beneficial (specially for me since i am creating an ansible role) to have a proper install with all bell and whistles … is it possible ?

thanks
Francesco

You could download a defined gunicorn file via wget (from a public URL), if this is needed.

Yes pls can you give me the URL ? Also this should change periodically and / or it would be good if included in the distribution don’t you think ?

thanks

Francesco

I would recommend that you upload it to your own domain.

This file is included in new installations.

I’ve made a gist with my gunicorn.conf in it so you can download.

Hello,
Thank you @marcusm and @bionade24 for your gunicorn.conf content.

I am trying to get a new seafile server (version 6.3.9 pro) to run before a migration, using the install script with nginx and MariaDB. Despite the fact that I did add the gunicorn file to the conf directory, seahub will still not start :disappointed_relieved:
Why does the official script doesn’t come clean with the gunicorn file and a working seahub ?
Here is what I’ve got :

Starting seahub at port 8000 ...
Error:Seahub failed to start.
Please try to run "./seahub.sh start" again```

Have you got any idea of what could go wrong ?