Seafile Professional can`t edit Office files

Hello everyone,
today I upgraded from Server Version: 7.1.15 to Seafile Server Version: 8.0.1.

Unfortunately it is not possible for me to edit an Excel file or something similar. The document opens as usual, but it rotates in a continuous loop until the following error appears:

Error 1: The document could not be saved. Please check the connection settings or contact the administrator. Selecting the OK button will prompt you to download the document.

Error 2: Download Failed. Because I already had errors 7.1.15 and thought that this could be solved by upgrading to 8.

The following works correctly: Upload / download via HTTP (S), ElasticSearch, PDF and Markdown files can be opened / edited. Unfortunately I can’t find an issue so far and hope you can help me a bit?

Thanks & best regards Synnefo

You may try to integrate Seafile with OnlyOffice to support editing Excel files.

Preformatted textHey Daniel,

i have done this.

Please see:

#CCNET.conf

[General]
SERVICE_URL = https://sub.domain.de

[Database]
ENGINE = mysql
HOST = 127.0.0.1
PORT = 3306
USER = seafile
PASSWD = CLEARED
DB = seafile-ccnet
CONNECTION_CHARSET = utf8

#SeaHub_Settings

-- coding: utf-8 --

SECRET_KEY = “CLEARED”

DATABASES = {
‘default’: {
‘ENGINE’: ‘django.db.backends.mysql’,
‘NAME’: ‘seafile-seahub’,
‘USER’: ‘seafile’,
‘PASSWORD’: ‘CLEARED’,
‘HOST’: ‘127.0.0.1’,
‘PORT’: ‘3306’
}
}

Enable Only Office

ENABLE_ONLYOFFICE = True
VERIFY_ONLYOFFICE_CERTIFICATE = False
ONLYOFFICE_APIJS_URL = ‘https://sub.domain.de/onlyofficeds/web-apps/apps/api/documents/api.js
ONLYOFFICE_FILE_EXTENSION = (‘doc’, ‘docx’, ‘ppt’, ‘pptx’, ‘xls’, ‘xlsx’, ‘odt’, ‘fodt’, ‘odp’, ‘fodp’, ‘ods’, ‘fods’)
ONLYOFFICE_EDIT_FILE_EXTENSION = (‘doc’, ‘docx’, ‘ppt’, ‘pptx’, ‘xls’, ‘xlsx’)

This Issue I have after installing 7.1.15 Pro, 7.1.16 Pro and a Upgrade from 7.1.15 to 8 Pro.

OnlyOffice is opening if i click on a .doc or similar. It only “Loading” until the error message appears.

When i would install 7.1.14 Professional it will worked and i don`t make a different installation steps.

I attached a Screenshot (https://ibb.co/SySNcLR) Sorry, i can`t upload Pictures here (Access denied after uploading)

Also see my Docker PS

CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
cc4f118587f2 onlyoffice/documentserver “/app/ds/run-documen…” 14 minutes ago Up 5 minutes 80/tcp, 443/tcp jovial_mayer
1efe68267239 onlyoffice/documentserver “/app/ds/run-documen…” 40 minutes ago Up 5 minutes 443/tcp, 0.0.0.0:88->80/tcp, :::88->80/tcp oods

I hope you can help me?

Thanks in advance

Synnefo

Nobody have an Idea?

Kind regards Synnefo

NGINX Config:

Required for only office document server

map $http_x_forwarded_proto $the_scheme {
default $http_x_forwarded_proto;
“” $scheme;
}

map $http_x_forwarded_host $the_host {
default $http_x_forwarded_host;
“” $host;
}

map $http_upgrade $proxy_connection {
default upgrade;
“” close;
}

server {
    listen       80;
    server_name  sub.domain.de;
    rewrite ^ https://$http_host$request_uri? permanent;    # force redirect http to https
    server_tokens off;
}
server {
    listen 443;
    ssl_certificate /etc/letsencrypt/live/sub.domain.de/fullchain.pem;        # path to your cacert.pem
    ssl_certificate_key /etc/letsencrypt/live/sub.domain.de/privkey.pem;   # path to your privkey.pem
    server_name sub.domain.de;
    ssl_session_timeout 5m;
    ssl_session_cache shared:SSL:20m;

    # secure settings (A+ at SSL Labs ssltest at time of writing)
    # see https://wiki.mozilla.org/Security/Server_Side_TLS#Nginx
    ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
    ssl_ciphers 'ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-SHA384:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-SHA256:ECDHE-RSA-AES256-SHA:ECDHE-ECDSA-AES256-SHA:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES128-SHA:DHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES256-SHA256:DHE-RSA-AES256-SHA:DHE-RSA-CAMELLIA256-SHA:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-RSA-SEED-SHA:DHE-RSA-CAMELLIA128-SHA:HIGH:!aNULL:!eNULL:!LOW:!3DES:!MD5:!EXP:!PSK:!SRP:!DSS';
    ssl_prefer_server_ciphers on;

    proxy_set_header X-Forwarded-For $remote_addr;

    add_header Strict-Transport-Security "max-age=31536000; includeSubDomains";
    server_tokens off;

    location / {
        proxy_pass         http://192.168.178.12: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 https;

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

        proxy_read_timeout  1200s;

        client_max_body_size 0;
    }

    location /seafdav {
        proxy_pass         http://192.168.178.12: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;
        error_log       /var/log/nginx/seafdav.error.log;
    }

    location /seafhttp {
        rewrite ^/seafhttp(.*)$ $1 break;
        proxy_pass http://192.168.178.12: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;
        proxy_send_timeout  36000s;
        send_timeout  36000s;
    }


    location /onlyofficeds/ {

    # THIS ONE IS IMPORTANT ! - Trailing slash !
    proxy_pass http://192.168.178.12:88/;

    proxy_http_version 1.1;
    client_max_body_size 100M; # Limit Document size to 100MB
    proxy_read_timeout 3600s;
    proxy_connect_timeout 3600s;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection $proxy_connection;

    # THIS ONE IS IMPORTANT ! - Subfolder and NO trailing slash !
    proxy_set_header X-Forwarded-Host $the_host/onlyofficeds;

    proxy_set_header X-Forwarded-Proto $the_scheme;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}

}

Someone know the Issue?