6.3.4 can't load seahub.sh restart-fastcgi

Hello all, i need help i have update my seafile for 6.3.4 but when i want to restart my seahub.sh i have this error


./seahub.sh restart.fastcgi

stopping seahub…
LC_ALL is not set in ENV, set to en_us.UTF.8
Starting seahub (fastcgi) at 127.0.0.1:8000

Warning: File comment has changed since version 6.3, while table base_filecomment is not migrated yet, please consider migrate it according to v6.3.0 release note, otherwise the file comment feature will not work correctly

unknow command: ‘runfcgi’
type ‘manage.py help’ for usage
Error:Seahub failed to start.

./manage.py
Traceback (most recent call last):
File “./seahub.manage.py”, line 8, in
from django.core.managmenet import execute_from_command_line
ImportError: No module named django.core.management


i’m trying to access with HTTPS but i have all time this error :frowning:

Someone can help me please ?

I could be wrong but I don’t think fastcgi is supported in the newer versions. Suggest you try starting it without fastcgi.

that’s working without fastcgi but that’s without HTTPS. it’s only work on http,

and i want to have https for my site :slight_smile:

From 6.2, It is recommended to use WSGI mode for communication between Seahub and Nginx/Apache. Two steps are needed if you’d like to switch to WSGI mode:

Change the config file of Nginx/Apache.
Restart Seahub with ./seahub.sh start instead of ./seahub.sh start-fastcgi
The configuration of Nginx is as following:

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;
}

The configuration of Apache is as following:

# seahub
SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1
ProxyPass / http://127.0.0.1:8000/
ProxyPassReverse / http://127.0.0.1:8000/