(6.3.4) gunicorn.conf doesn't exist

server

#1

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.


#2

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.


#3

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…


#4

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


#5

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.


#6

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?


#7

Seems missing, reupdate

Is not related to the error, caused by ssh.