没办法了,每次都卡在这里,有谁能帮忙解决一下吗?

Rocky-8.7的操作系统 seafile10.0.1 二进制包安装的MySQL8.1.0 编译安装的1.24.0nginx
[root@seafile-10 seafile-server-10.0.1]# ./seafile.sh start

Starting seafile server, please wait …
** Message: 18:54:33.302: seafile-controller.c(621): No seafevents.

Seafile server started

Done.
[root@seafile-10 seafile-server-10.0.1]# ./seahub.sh start

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


It’s the first time you start the seafile server. Now let’s create the admin account

What is the email for the admin account?
[ admin email ] admin@ciphergene.com

What is the password for the admin account?
[ admin password ]

Enter the password again:
[ admin password again ]


Successfully created seafile admin

Traceback (most recent call last):
File “/opt/seafile/seafile-server-10.0.1/seahub/thirdpart/bin/gunicorn”, line 5, in
from gunicorn.app.wsgiapp import run
File “/opt/seafile/seafile-server-10.0.1/seahub/thirdpart/gunicorn/app/wsgiapp.py”, line 9, in
from gunicorn.app.base import Application
File “/opt/seafile/seafile-server-10.0.1/seahub/thirdpart/gunicorn/app/base.py”, line 11, in
from gunicorn import util
File “/opt/seafile/seafile-server-10.0.1/seahub/thirdpart/gunicorn/util.py”, line 25, in
import pkg_resources
File “/opt/seafile/seafile-server-10.0.1/seahub/thirdpart/pkg_resources/init.py”, line 88, in
from pkg_resources.extern import platformdirs
File “”, line 971, in _find_and_load
File “”, line 955, in _find_and_load_unlocked
File “”, line 658, in _load_unlocked
File “”, line 571, in module_from_spec
File “/opt/seafile/seafile-server-10.0.1/seahub/thirdpart/pkg_resources/extern/init.py”, line 52, in create_module
return self.load_module(spec.name)
File “/opt/seafile/seafile-server-10.0.1/seahub/thirdpart/pkg_resources/extern/init.py”, line 37, in load_module
import(extant)
File “/opt/seafile/seafile-server-10.0.1/seahub/thirdpart/pkg_resources/_vendor/platformdirs/init.py”, line 5
from future import annotations
^
SyntaxError: future feature annotations is not defined
Error:Seahub failed to start.
Please try to run “./seahub.sh start” again
[root@seafile-10 seafile-server-10.0.1]#

已解决,编译安装nginx的问题,要改nginx的配置文件,让它和seafile前端关联起来

log_format seafileformat '\$http_x_forwarded_for \$remote_addr [\$time_local] "\$request" \$status \$body_bytes_sent "\$http_referer" "\$http_user_agent" \$upstream_response_time';

server {
    listen 80;
    server_name seafile.example.com;

    proxy_set_header X-Forwarded-For \$remote_addr;

    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_set_header   X-Forwarded-Proto \$scheme;
         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 seafileformat;
         error_log       /var/log/nginx/seahub.error.log;
    }

    location /seafhttp {
         rewrite ^/seafhttp(.*)$ \$1 break;
         proxy_pass http://127.0.0.1:8082;
         client_max_body_size 0;
         proxy_set_header   X-Forwarded-For \$proxy_add_x_forwarded_for;
         proxy_connect_timeout  36000s;
         proxy_read_timeout  36000s;

        access_log      /var/log/nginx/seafhttp.access.log seafileformat;
        error_log       /var/log/nginx/seafhttp.error.log;
    }
    location /media {
        root ${SEAFILE_SERVER_HOME}/seafile-server-latest/seahub;
    }
    location /seafdav {
        proxy_pass         http://127.0.0.1:8080/seafdav;
        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_set_header   X-Forwarded-Proto \$scheme;
        proxy_read_timeout  1200s;

        client_max_body_size 0;

        access_log      /var/log/nginx/seafdav.access.log seafileformat;
        error_log       /var/log/nginx/seafdav.error.log;
    }
}

还有一个问题,我的onlyoffice不是docker安装的,在另一台centos8,怎么把seafile和onlyoffice集成起来


这里改了,那边还需要改动什么吗?使用时会报错:文档令牌和未知错误两个

运行的时候onlyoffice添加令牌了吗

这个有添加教程吗?我就是在onlyoffice里面local.conf找的一个令牌,onlyoffice官网文档没有令牌这一部分

image



令牌搞定了,又出现这个报错了,是哪里设置的问题吗?centos8 tar包安装 依赖包都是按照9.0装的,python装的3.9

seafile是10.0.1

都解决了,onlyoffic机器上的nginx配置问题