Seahub failed to start

I have installed seafile version 6.3.4 and which was working fine with http but once I have configured ssl certificate with ngnix than seahub not starting and throwing below error.

./seahub.sh start-fastcgi

Seahub is not running
LC_ALL is not set in ENV, set to en_US.UTF-8
Starting seahub (fastcgi) at 127.0.0.1:8000 …
Unknown command: ‘runfcgi’
Type ‘manage.py help’ for usage.
Error:Seahub failed to start.

But once I try to start ./seahub.sh start
$ ./seahub.sh start

LC_ALL is not set in ENV, set to en_US.UTF-8
Starting seahub at port 8000 …

Seahub is started

Done.

than it starts but whenver I try to acess https://Server-IP/accounts/login/ than it gives 504 Gateway Time-out error.

Please help me to resolve this issue.

location / {
proxy_pass http://127.0.0.1:8000;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Host $server_name;
proxy_read_timeout 1200s;

     # used for view/edit office file via Office Online Server
     client_max_body_size 0;

     access_log      /var/log/nginx/seahub.access.log;
     error_log       /var/log/nginx/seahub.error.log;
}

I have solved this issue after adding above option in /etc/nginx/conf.d/seafile.conf
:slight_smile: