Can not connect Nextcloud to Document server

Do you want to: Ask a how-to question
For feature suggestions, describe the result you would like to achieve in detail:
Connection between Nextcloud OnlyOffice app and Document server

Document Server version: 7.2.1-34
Connector version: 7.4.6
DMS (platform) version: 23.0.10
OS: Nextcloud - Debian 10, Document server - Ubuntu 22.04
Browser version: Chrome 106

Error: Error when trying to connect (Error occurred in the document service: Error while downloading the document file to be converted.) (version 7.2.1.34)

Logs:
/var/log/onlyoffice/documentserver/converter/out.log

[2022-10-24T10:08:38.140] [WARN] [localhost] [docId] [userId] nodeJS - update cluster with 1 workers
[2022-10-24T10:08:38.169] [WARN] [localhost] [docId] [userId] nodeJS - worker 3281 started.
[2022-10-24T10:08:38.184] [WARN] [localhost] [docId] [userId] nodeJS - update cluster with 1 workers
[2022-10-24T15:08:51.831] [ERROR] [localhost] [conv_check_1077715732_docx] [userId] nodeJS - error downloadFile:url=https://docserver.b-net.eu/index.php/apps/onlyoffice/empty?doc=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhY3Rpb24iOiJlbXB0eSJ9.1LRpzCyjgagu1bJZV9RPOWdpPdrNf8JK1JdwKZkRzjk;attempt=1;code:UNABLE_TO_VERIFY_LEAF_SIGNATURE;connect:undefined Error: unable to verify the first certificate
    at TLSSocket.onConnectSecure (_tls_wrap.js:1515:34)
    at TLSSocket.emit (events.js:400:28)
    at TLSSocket._finishInit (_tls_wrap.js:937:8)
    at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:709:12)
[2022-10-24T15:08:52.840] [ERROR] [localhost] [conv_check_1077715732_docx] [userId] nodeJS - error downloadFile:url=https://docserver.b-net.eu/index.php/apps/onlyoffice/empty?doc=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhY3Rpb24iOiJlbXB0eSJ9.1LRpzCyjgagu1bJZV9RPOWdpPdrNf8JK1JdwKZkRzjk;attempt=2;code:UNABLE_TO_VERIFY_LEAF_SIGNATURE;connect:undefined Error: unable to verify the first certificate
    at TLSSocket.onConnectSecure (_tls_wrap.js:1515:34)
    at TLSSocket.emit (events.js:400:28)
    at TLSSocket._finishInit (_tls_wrap.js:937:8)
    at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:709:12)
[2022-10-24T15:08:53.845] [ERROR] [localhost] [conv_check_1077715732_docx] [userId] nodeJS - error downloadFile:url=https://docserver.b-net.eu/index.php/apps/onlyoffice/empty?doc=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhY3Rpb24iOiJlbXB0eSJ9.1LRpzCyjgagu1bJZV9RPOWdpPdrNf8JK1JdwKZkRzjk;attempt=3;code:UNABLE_TO_VERIFY_LEAF_SIGNATURE;connect:undefined Error: unable to verify the first certificate
    at TLSSocket.onConnectSecure (_tls_wrap.js:1515:34)
    at TLSSocket.emit (events.js:400:28)
    at TLSSocket._finishInit (_tls_wrap.js:937:8)
    at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:709:12)
[2022-10-24T15:09:13.058] [ERROR] [localhost] [conv_check_941974778_docx] [userId] nodeJS - error downloadFile:url=https://docserver.b-net.eu/index.php/apps/onlyoffice/empty?doc=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhY3Rpb24iOiJlbXB0eSJ9.1LRpzCyjgagu1bJZV9RPOWdpPdrNf8JK1JdwKZkRzjk;attempt=1;code:UNABLE_TO_VERIFY_LEAF_SIGNATURE;connect:undefined Error: unable to verify the first certificate
    at TLSSocket.onConnectSecure (_tls_wrap.js:1515:34)
    at TLSSocket.emit (events.js:400:28)
    at TLSSocket._finishInit (_tls_wrap.js:937:8)
    at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:709:12)
[2022-10-24T15:09:14.065] [ERROR] [localhost] [conv_check_941974778_docx] [userId] nodeJS - error downloadFile:url=https://docserver.b-net.eu/index.php/apps/onlyoffice/empty?doc=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhY3Rpb24iOiJlbXB0eSJ9.1LRpzCyjgagu1bJZV9RPOWdpPdrNf8JK1JdwKZkRzjk;attempt=2;code:UNABLE_TO_VERIFY_LEAF_SIGNATURE;connect:undefined Error: unable to verify the first certificate
    at TLSSocket.onConnectSecure (_tls_wrap.js:1515:34)
    at TLSSocket.emit (events.js:400:28)
    at TLSSocket._finishInit (_tls_wrap.js:937:8)
    at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:709:12)
[2022-10-24T15:09:15.071] [ERROR] [localhost] [conv_check_941974778_docx] [userId] nodeJS - error downloadFile:url=https://docserver.b-net.eu/index.php/apps/onlyoffice/empty?doc=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhY3Rpb24iOiJlbXB0eSJ9.1LRpzCyjgagu1bJZV9RPOWdpPdrNf8JK1JdwKZkRzjk;attempt=3;code:UNABLE_TO_VERIFY_LEAF_SIGNATURE;connect:undefined Error: unable to verify the first certificate
    at TLSSocket.onConnectSecure (_tls_wrap.js:1515:34)
    at TLSSocket.emit (events.js:400:28)
    at TLSSocket._finishInit (_tls_wrap.js:937:8)
    at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:709:12)
[2022-10-24T15:29:12.216] [WARN] [localhost] [docId] [userId] nodeJS - update cluster with 1 workers
[2022-10-24T15:29:12.226] [WARN] [localhost] [docId] [userId] nodeJS - worker 19792 started.
[2022-10-24T15:29:12.236] [WARN] [localhost] [docId] [userId] nodeJS - update cluster with 1 workers
[2022-10-24T15:29:51.644] [ERROR] [localhost] [conv_check_1144792142_docx] [userId] nodeJS - error downloadFile:url=https://docserver.b-net.eu/index.php/apps/onlyoffice/empty?doc=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhY3Rpb24iOiJlbXB0eSJ9.1LRpzCyjgagu1bJZV9RPOWdpPdrNf8JK1JdwKZkRzjk;attempt=1;code:undefined;connect:undefined Error: Error response: statusCode:404; headers:{"server":"nginx","date":"Mon, 24 Oct 2022 15:29:51 GMT","content-type":"text/html; charset=utf-8","transfer-encoding":"chunked","connection":"keep-alive","vary":"Accept-Encoding","content-security-policy":"default-src 'none'","x-content-type-options":"nosniff","content-encoding":"gzip"};
    at Request.fResponse (/snapshot/server/build/server/Common/sources/utils.js)
    at Request.emit (events.js:400:28)
    at Request.onRequestResponse (/snapshot/server/build/server/Common/node_modules/request/request.js:1059:10)
    at ClientRequest.emit (events.js:400:28)
    at HTTPParser.parserOnIncomingClient (_http_client.js:647:27)
    at HTTPParser.parserOnHeadersComplete (_http_common.js:127:17)
    at TLSSocket.socketOnData (_http_client.js:515:22)
    at TLSSocket.emit (events.js:400:28)
    at addChunk (internal/streams/readable.js:293:12)
    at readableAddChunk (internal/streams/readable.js:267:9)
    at TLSSocket.Readable.push (internal/streams/readable.js:206:10)
    at TLSWrap.onStreamRead (internal/stream_base_commons.js:188:23)
[2022-10-24T15:29:52.655] [ERROR] [localhost] [conv_check_1144792142_docx] [userId] nodeJS - error downloadFile:url=https://docserver.b-net.eu/index.php/apps/onlyoffice/empty?doc=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhY3Rpb24iOiJlbXB0eSJ9.1LRpzCyjgagu1bJZV9RPOWdpPdrNf8JK1JdwKZkRzjk;attempt=2;code:undefined;connect:undefined Error: Error response: statusCode:404; headers:{"server":"nginx","date":"Mon, 24 Oct 2022 15:29:52 GMT","content-type":"text/html; charset=utf-8","transfer-encoding":"chunked","connection":"keep-alive","vary":"Accept-Encoding","content-security-policy":"default-src 'none'","x-content-type-options":"nosniff","content-encoding":"gzip"};
    at Request.fResponse (/snapshot/server/build/server/Common/sources/utils.js)
    at Request.emit (events.js:400:28)
    at Request.onRequestResponse (/snapshot/server/build/server/Common/node_modules/request/request.js:1059:10)
    at ClientRequest.emit (events.js:400:28)
    at HTTPParser.parserOnIncomingClient (_http_client.js:647:27)
    at HTTPParser.parserOnHeadersComplete (_http_common.js:127:17)
    at TLSSocket.socketOnData (_http_client.js:515:22)
    at TLSSocket.emit (events.js:400:28)
    at addChunk (internal/streams/readable.js:293:12)
    at readableAddChunk (internal/streams/readable.js:267:9)
    at TLSSocket.Readable.push (internal/streams/readable.js:206:10)
    at TLSWrap.onStreamRead (internal/stream_base_commons.js:188:23)

my config.php file on nextcloud look like this:

<?php
$CONFIG = array (
  'instanceid' => 'oc4u98a48vgr',
  'passwordsalt' => 'PfWm4oaB275iyt7CjBJz10Djl8nZOy',
  'secret' => 'YY/D3Ws8Zhp865DekD5eMRxxweEQHpzFdkoz118KqSVvrQtl',
  'trusted_domains' =>
  array (
    0 => '100.100.102.14',
    1 => 'nextcloud.bnet-internet.cz',
  ),
  'datadirectory' => '/var/www/nextcloud/data',
  'dbtype' => 'mysql',
  'version' => '23.0.10.1',
  'overwrite.cli.url' => 'http://100.100.102.14',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'nextclouduser',
  'dbpassword' => '_HzgU-r9af8EzbfzKRKPyAdE',
  'installed' => true,
  'mail_from_address' => 'Nextcoud',
  'mail_smtpmode' => 'smtp',
  'mail_sendmailmode' => 'smtp',
  'mail_domain' => 'bnet-internet.cz',
  'mail_smtphost' => 'smtp.bnet-internet.cz',
  'mail_smtpport' => '465',
  'app_install_overwrite' =>
  array (
    0 => 'documentserver_community',
    1 => 'ownbackup',
    2 => 'nextbackup',
  ),
  'maintenance' => false,
  'mail_smtpsecure' => 'ssl',
  'theme' => '',
  'loglevel' => 2,
  'default_phone_region' => 'CZ',
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'defaultapp' => 'files',
  'onlyoffice' =>
  array (
    'verify_peer_off' => true,
    'jwt_header' => 'AuthorizationJwt',
  ),
);

my default.json dile look like this:

{
        "statsd": {
                "useMetrics": false,
                "host": "localhost",
                "port": "8125",
                "prefix": "ds."
        },
        "log": {
                "filePath": "",
                "options": {
                        "replaceConsole": true
                }
        },
        "queue": {
                "type": "rabbitmq",
                "visibilityTimeout": 300,
                "retentionPeriod": 900
        },
        "storage": {
                "name": "storage-fs",
                "fs": {
                        "folderPath": "",
                        "urlExpires": 900,
                        "secretString": "verysecretstring"
                },
                "region": "",
                "endpoint": "http://localhost/s3",
                "bucketName": "cache",
                "storageFolderName": "files",
                "cacheFolderName": "data",
                "urlExpires": 604800,
                "accessKeyId": "AKID",
                "secretAccessKey": "SECRET",
                "sslEnabled": false,
                "s3ForcePathStyle": true,
                "externalHost": ""
        },
        "rabbitmq": {
                "url": "amqp://guest:guest@localhost:5672",
                "socketOptions": {},
                "exchangepubsub": "ds.pubsub",
                "queueconverttask": "ds.converttask",
                "queueconvertresponse": "ds.convertresponse",
                "exchangeconvertdead": "ds.exchangeconvertdead",
                "queueconvertdead": "ds.convertdead",
                "queuedelayed": "ds.delayed"
        },
        "activemq": {
                "connectOptions": {
                        "port": 5672,
                        "host": "localhost",
                        "name": "admin",
                        "reconnect": false
                },
                "queueconverttask": "ds.converttask",
                "queueconvertresponse": "ds.convertresponse",
                "queueconvertdead": "ActiveMQ.DLQ",
                "queuedelayed": "ds.delayed",
                "topicpubsub": "ds.pubsub"
        },
        "dnscache": {
                "enable" : true,
                "ttl" : 300,
                "cachesize" : 1000
        },
        "openpgpjs": {
                "config": {
                },
                "encrypt": {
                        "passwords": ["verysecretstring"]
                },
                "decrypt": {
                        "passwords": ["verysecretstring"]
                }
        },
        "wopi": {
                "enable": false,
                "host" : "",
                "htmlTemplate" : "../../web-apps/apps/api/wopi",
                "wopiZone" : "external-http",
                "favIconUrlWord" : "/web-apps/apps/documenteditor/main/resources/img/favicon.ico",
                "favIconUrlCell" : "/web-apps/apps/spreadsheeteditor/main/resources/img/favicon.ico",
                "favIconUrlSlide" : "/web-apps/apps/presentationeditor/main/resources/img/favicon.ico",
                "fileInfoBlockList" : ["FileUrl"],
                "wordView": ["pdf", "djvu", "xps", "oxps", "doc", "dotx", "dotm", "dot", "fodt", "ott", "rtf", "mht", "html", "htm", "xml", "epub", "fb2"],
                "wordEdit": ["docx", "docm", "docxf", "oform", "odt", "txt"],
                "cellView": ["xls", "xlsb", "xltx", "xltm", "xlt", "fods", "ots"],
                "cellEdit": ["xlsx", "xlsm", "ods", "csv"],
                "slideView": ["ppt", "ppsx", "ppsm", "pps", "potx", "potm", "pot", "fodp", "otp"],
                "slideEdit": ["pptx", "pptm", "odp"],
                "publicKey": "BgIAAACkAABSU0ExAAgAAAEAAQD/NVqekFNi8X3p6Bvdlaxm0GGuggW5kKfVEQzPGuOkGVrz6DrOMNR+k7Pq8tONY+1NHgS6Z+v3959em78qclVDuQX77Tkml0xMHAQHN4sAHF9iQJS8gOBUKSVKaHD7Z8YXch6F212YSUSc8QphpDSHWVShU7rcUeLQsd/0pkflh5+um4YKEZhm4Mou3vstp5p12NeffyK1WFZF7q4jB7jclAslYKQsP82YY3DcRwu5Tl/+W0ifVcXze0mI7v1reJ12pKn8ifRiq+0q5oJST3TRSrvmjLg9Gt3ozhVIt2HUi3La7Qh40YOAUXm0g/hUq2BepeOp1C7WSvaOFHXe6Hqq",
                "modulus": "qnro3nUUjvZK1i7UqeOlXmCrVPiDtHlRgIPReAjt2nKL1GG3SBXO6N0aPbiM5rtK0XRPUoLmKu2rYvSJ/Kmkdp14a/3uiEl788VVn0hb/l9OuQtH3HBjmM0/LKRgJQuU3LgHI67uRVZYtSJ/n9fYdZqnLfveLsrgZpgRCoabrp+H5Uem9N+x0OJR3LpToVRZhzSkYQrxnERJmF3bhR5yF8Zn+3BoSiUpVOCAvJRAYl8cAIs3BwQcTEyXJjnt+wW5Q1VyKr+bXp/39+tnugQeTe1jjdPy6rOTftQwzjro81oZpOMazwwR1aeQuQWCrmHQZqyV3Rvo6X3xYlOQnlo1/w==",
                "exponent": "AQAB",
                "privateKey": "MIIEowIBAAKCAQEAqnro3nUUjvZK1i7UqeOlXmCrVPiDtHlRgIPReAjt2nKL1GG3SBXO6N0aPbiM5rtK0XRPUoLmKu2rYvSJ/Kmkdp14a/3uiEl788VVn0hb/l9OuQtH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MHHf5bo14+Jv4NzYtR2llrUxO+UJX7aCfUYXI7RC93GUmhpeQ414j7SNAXec58d7e+ETw+6cHiAWO4uOSTPAoGATPq5qDLR4Zi4FUNdn8LZPyKfNqHF6YmupT5hIgd8kZO1jKiaYNPL8jBjkIRmjBBcaXcYD5p85nImvumf2J9jNxPpZOpwyC/Fo5xlVROp97qu1eY7DTmodntXJ6/2SXAlnZQhHmHsrPtyG752f+HtyJJbbgiem8cKWDu+DfHybfECgYBbSLo1WiBwgN4nHqZ3E48jgA6le5azLeKOTTpuKKwNFMIhEkj//t7MYn+jhLL0Mf3PSwZU50Vidc1To1IHkbFSGBGIFHFFEzl8QnXEZS4hr/y3o/teezj0c6HAn8nlDRUzRVBEDXWMdV6kCcGpCccTIrqHzpqTY0vV0UkOTQFnDQKBgAxSEhm/gtCYJIMCBe+KBJT9uECV5xDQopTTjsGOkd4306EN2dyPOIlAfwM6K/0qWisa0Ei5i8TbRRuBeTTdLEYLqXCJ7fj5tdD1begBdSVtHQ2WHqzPJSuImTkFi9NXxd1XUyZFM3y6YQvlssSuL7QSxUIEtZHnrJTt3QDd10dj",
                "refreshLockInterval": "10m"
        },
        "tenants": {
                "baseDir": "",
                "baseDomain": "",
                "filenameSecret": "secret.key",
                "filenameLicense": "license.lic",
                "defaultTenant": "localhost",
                "cache" : {
                        "stdTTL": 300,
                        "checkperiod": 60,
                        "useClones": false
                }
        },
        "services": {
                "CoAuthoring": {
                        "server": {
                                "port": 8000,
                                "workerpercpu": 1,
                                "mode": "development",
                                "limits_tempfile_upload": 104857600,
                                "limits_image_size": 26214400,
                                "limits_image_download_timeout": {
                                        "connectionAndInactivity": "2m",
                                        "wholeCycle": "2m"
                                },
                                "callbackRequestTimeout": {
                                        "connectionAndInactivity": "10m",
                                        "wholeCycle": "10m"
                                },
                                "healthcheckfilepath": "../public/healthcheck.docx",
                                "savetimeoutdelay": 5000,
                                "edit_singleton": false,
                                "forgottenfiles": "forgotten",
                                "forgottenfilesname": "output",
                                "maxRequestChanges": 20000,
                                "openProtectedFile": true,
                                "editorDataStorage": "editorDataMemory",
                                "assemblyFormatAsOrigin": true,
                                "newFileTemplate" : "../../document-templates/new",
                                "downloadFileAllowExt": ["pdf"],
                                "tokenRequiredParams": true
                        },
                        "requestDefaults": {
                                "headers": {
                                        "User-Agent": "Node.js/6.13",
                                        "Connection": "Keep-Alive"
                                },
                                "gzip": true,
                                "rejectUnauthorized": false
                        },
                        "autoAssembly": {
                                "enable": false,
                                "interval": "5m",
                                "step": "1m"
                        },
                        "utils": {
                                "utils_common_fontdir": "null",
                                "utils_fonts_search_patterns": "*.ttf;*.ttc;*.otf",
                                "limits_image_types_upload": "jpg;jpeg;jpe;png;gif;bmp"
                        },
                        "sql": {
                                "type": "postgres",
                                "tableChanges": "doc_changes",
                                "tableResult": "task_result",
                                "dbHost": "localhost",
                                "dbPort": 5432,
                                "dbName": "onlyoffice",
                                "dbUser": "onlyoffice",
                                "dbPass": "onlyoffice",
                                "charset": "utf8",
                                "connectionlimit": 10,
                                "max_allowed_packet": 1048575,
                                "pgPoolExtraOptions": {}
                        },
                        "redis": {
                                "name": "redis",
                                "prefix": "ds:",
                                "host": "localhost",
                                "port": 6379,
                                "options": {}
                        },
                        "pubsub": {
                                "maxChanges": 1000
                        },
                        "expire": {
                                "saveLock": 60,
                                "presence": 300,
                                "locks": 604800,
                                "changeindex": 86400,
                                "lockDoc": 30,
                                "message": 86400,
                                "lastsave": 604800,
                                "forcesave": 604800,
                                "saved": 3600,
                                "documentsCron": "0 */2 * * * *",
                                "files": 86400,
                                "filesCron": "00 00 */1 * * *",
                                "filesremovedatonce": 100,
                                "sessionidle": "1h",
                                "sessionabsolute": "30d",
                                "sessionclosecommand": "2m",
                                "pemStdTTL": "1h",
                                "pemCheckPeriod": "10m",
                                "updateVersionStatus": "5m",
                                "monthUniqueUsers": "1y"
                        },
                        "ipfilter": {
                                "rules": [{"address": "*", "allowed": true}],
                                "useforrequest": false,
                                "errorcode": 403
                        },
                        "request-filtering-agent" : {
                                "allowPrivateIPAddress": true,
                                "allowMetaIPAddress": true
                        },
                        "secret": {
                                "inbox": {"string": "secret", "file": ""},
                                "outbox": {"string": "secret", "file": ""},
                                "session": {"string": "secret", "file": ""}
                        },
                        "token": {
                                "enable": {
                                        "browser": false,
                                        "request": {
                                                "inbox": false,
                                                "outbox": false
                                        }
                                },
                                "inbox": {
                                        "header": "Authorization",
                                        "prefix": "Bearer ",
                                        "inBody": false
                                },
                                "outbox": {
                                        "header": "Authorization",
                                        "prefix": "Bearer ",
                                        "algorithm": "HS256",
                                        "expires": "5m",
                                        "inBody": false,
                                        "urlExclusionRegex": ""
                                },
                                "session": {
                                        "algorithm": "HS256",
                                        "expires": "30d"
                                },
                                "verifyOptions": {
                                        "clockTolerance": 60
                                }
                        },
                        "plugins": {
                                "uri": "/sdkjs-plugins",
                                "autostart": []
                        },
                        "themes": {
                                "uri": "/web-apps/apps/common/main/resources/themes"
                        },
                        "editor":{
                                "spellcheckerUrl": "",
                                "reconnection":{
                                        "attempts": 50,
                                        "delay": "2s"
                                },
                                "websocketMaxPayloadSize": "1.5MB",
                                "maxChangesSize": "0mb"
                        },
                        "sockjs": {
                                "sockjs_url": "",
                                "disable_cors": true,
                                "websocket": true
                        },
                        "callbackBackoffOptions": {
                                "retries": 0,
                                "timeout":{
                                        "factor": 2,
                                        "minTimeout": 1000,
                                        "maxTimeout": 2147483647,
                                        "randomize": false
                                },
                                "httpStatus": "429,500-599"
                        }
                }
        },
        "license" : {
                "license_file": "",
                "warning_limit_percents": 70,
                "packageType": 0
        },
        "FileConverter": {
                "converter": {
                        "maxDownloadBytes": 104857600,
                        "downloadTimeout": {
                                "connectionAndInactivity": "2m",
                                "wholeCycle": "2m"
                        },
                        "downloadAttemptMaxCount": 3,
                        "downloadAttemptDelay": 1000,
                        "maxprocesscount": 1,
                        "fontDir": "null",
                        "presentationThemesDir": "null",
                        "x2tPath": "null",
                        "docbuilderPath": "null",
                        "args": "",
                        "spawnOptions": {},
                        "errorfiles": "",
                        "streamWriterBufferSize": 8388608,
                        "maxRedeliveredCount": 2,
                        "inputLimits": [
                                {
                                "type": "docx;dotx;docm;dotm",
                                "zip": {
                                        "uncompressed": "50MB",
                                        "template": "*.xml"
                                }
                                },
                                {
                                "type": "xlsx;xltx;xlsm;xltm",
                                "zip": {
                                        "uncompressed": "300MB",
                                        "template": "*.xml"
                                }
                                },
                                {
                                "type": "pptx;ppsx;potx;pptm;ppsm;potm",
                                "zip": {
                                        "uncompressed": "50MB",
                                        "template": "*.xml"
                                }
                                }
                        ]
                }
        }
}

and my local.json fiel looks like this:

{
  "services": {
    "CoAuthoring": {
      "sql": {
        "type": "postgres",
        "dbHost": "localhost",
        "dbPort": "5432",
        "dbName": "onlyoffice",
        "dbUser": "onlyoffice",
        "dbPass": "dbpass"
      },
      "token": {
        "enable": {
          "request": {
            "inbox": true,
            "outbox": true
          },
          "browser": true
        },
        "inbox": {
          "header": "AuthorizationJwt"
        },
        "outbox": {
          "header": "AuthorizationJwt"
        }
      },
      "secret": {
        "inbox": {
          "string": "mysecret"
        },
        "outbox": {
          "string": "mysecret"
        },
        "session": {
          "string": "mysecret"
        }
      }
    }
  },
  "rabbitmq": {
    "url": "amqp://guest:guest@localhost"
  },
  "storage": {
    "fs": {
      "secretString": "p67RqE3U7ZYp64GYDqIl"
    }
  }
}

I changed db pass and “string”: “mysecret”, just for obvious reasons.

I changed few things in those files, after i read some discussion, but with no result.

Can you help me please?

Hello @cenda
First of all please check mutual availability between servers. Please go to DS server and run wget https://NC_address. And vice versa (from Nextcloud server run wget https://DS_address). Please show us the result.

DMS (platform) version : ?

That means Nextcloud version. Please provide us with this information. Also please point me to the guide which you used for Document server installation.

One more thing. Please go to connector page > click Save button > make screenshot of whole page with output result. If this information is sensitive (Document server URL), you can contact me via PM.

Hi Alexandre,

i edit DMS verison in original post.

Here are result from wget


I manage to correct the error with certificate, but now i have different error.

/var/log/onlyoffice/documentserver/converter/out.log here:

[2022-10-26T09:28:36.255] [ERROR] [localhost] [conv_check_1516581614_docx] [userId] nodeJS - error downloadFile:url=https://docserver.b-net.eu/index.php/apps/onlyoffice/empty?doc=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhY3Rpb24iOiJlbXB0eSJ9.1LRpzCyjgagu1bJZV9RPOWdpPdrNf8JK1JdwKZkRzjk;attempt=3;code:undefined;connect:undefined Error: Error response: statusCode:404; headers:{"server":"nginx","date":"Wed, 26 Oct 2022 09:28:36 GMT","content-type":"text/html; charset=utf-8","transfer-encoding":"chunked","connection":"keep-alive","vary":"Accept-Encoding","content-security-policy":"default-src 'none'","x-content-type-options":"nosniff","content-encoding":"gzip"};
    at Request.fResponse (/snapshot/server/build/server/Common/sources/utils.js)
    at Request.emit (events.js:400:28)
    at Request.onRequestResponse (/snapshot/server/build/server/Common/node_modules/request/request.js:1059:10)
    at ClientRequest.emit (events.js:400:28)
    at HTTPParser.parserOnIncomingClient (_http_client.js:647:27)
    at HTTPParser.parserOnHeadersComplete (_http_common.js:127:17)
    at TLSSocket.socketOnData (_http_client.js:515:22)
    at TLSSocket.emit (events.js:400:28)
    at addChunk (internal/streams/readable.js:293:12)
    at readableAddChunk (internal/streams/readable.js:267:9)
    at TLSSocket.Readable.push (internal/streams/readable.js:206:10)
    at TLSWrap.onStreamRead (internal/stream_base_commons.js:188:23)
[2022-10-26T09:35:05.670] [WARN] [localhost] [conv_check_563601617_docx] [userId] nodeJS - downloadUrlPromise body size mismatch: uri=https://nextcloud.bnet-internet.cz/index.php/login; content-length=4921; body.length=12953
[2022-10-26T09:35:39.693] [WARN] [localhost] [conv_check_1817224139_docx] [userId] nodeJS - downloadUrlPromise body size mismatch: uri=https://nextcloud.bnet-internet.cz/index.php/login; content-length=4920; body.length=12953
[2022-10-26T09:48:41.343] [WARN] [localhost] [conv_check_1412141801_docx] [userId] nodeJS - downloadUrlPromise body size mismatch: uri=https://nextcloud.bnet-internet.cz/index.php/login; content-length=4918; body.length=12953
[2022-10-26T09:49:48.010] [WARN] [localhost] [conv_check_1653518302_docx] [userId] nodeJS - downloadUrlPromise body size mismatch: uri=https://nextcloud.bnet-internet.cz/index.php/login; content-length=4916; body.length=12953
[2022-10-26T09:50:11.600] [WARN] [localhost] [conv_check_920979022_docx] [userId] nodeJS - downloadUrlPromise body size mismatch: uri=https://nextcloud.bnet-internet.cz/index.php/login; content-length=4917; body.length=12953
[2022-10-26T09:55:49.038] [WARN] [localhost] [conv_check_1668927732_docx] [userId] nodeJS - downloadUrlPromise body size mismatch: uri=https://nextcloud.bnet-internet.cz/index.php/login; content-length=4917; body.length=12953
[2022-10-26T09:56:02.523] [WARN] [localhost] [conv_check_1664523967_docx] [userId] nodeJS - downloadUrlPromise body size mismatch: uri=https://nextcloud.bnet-internet.cz/index.php/login; content-length=4920; body.length=12953
[2022-10-26T10:07:07.560] [WARN] [localhost] [docId] [userId] nodeJS - update cluster with 1 workers
[2022-10-26T10:07:07.570] [WARN] [localhost] [docId] [userId] nodeJS - worker 67569 started.
[2022-10-26T10:07:07.580] [WARN] [localhost] [docId] [userId] nodeJS - update cluster with 1 workers
[2022-10-26T10:07:34.759] [WARN] [localhost] [conv_check_44896134_docx] [userId] nodeJS - downloadUrlPromise body size mismatch: uri=https://nextcloud.bnet-internet.cz/index.php/login; content-length=4918; body.length=12953
[2022-10-26T10:23:48.282] [WARN] [localhost] [docId] [userId] nodeJS - update cluster with 1 workers
[2022-10-26T10:23:48.292] [WARN] [localhost] [docId] [userId] nodeJS - worker 68518 started.
[2022-10-26T10:23:48.304] [WARN] [localhost] [docId] [userId] nodeJS - update cluster with 1 workers
[2022-10-26T10:26:11.558] [WARN] [localhost] [docId] [userId] nodeJS - update cluster with 1 workers
[2022-10-26T10:26:11.569] [WARN] [localhost] [docId] [userId] nodeJS - worker 68746 started.
[2022-10-26T10:26:11.577] [WARN] [localhost] [docId] [userId] nodeJS - update cluster with 1 workers
[2022-10-26T10:27:18.419] [WARN] [localhost] [docId] [userId] nodeJS - update cluster with 1 workers
[2022-10-26T10:27:18.430] [WARN] [localhost] [docId] [userId] nodeJS - worker 68865 started.
[2022-10-26T10:27:18.437] [WARN] [localhost] [docId] [userId] nodeJS - update cluster with 1 workers
[2022-10-26T10:32:26.767] [WARN] [localhost] [docId] [userId] nodeJS - update cluster with 1 workers
[2022-10-26T10:32:26.781] [WARN] [localhost] [docId] [userId] nodeJS - worker 69189 started.
[2022-10-26T10:32:26.792] [WARN] [localhost] [docId] [userId] nodeJS - update cluster with 1 workers
[2022-10-26T10:33:14.295] [WARN] [localhost] [conv_check_1885562662_docx] [userId] nodeJS - downloadUrlPromise body size mismatch: uri=https://nextcloud.bnet-internet.cz/index.php/login; content-length=4916; body.length=12953
[2022-10-26T11:23:18.719] [WARN] [localhost] [conv_check_1450366081_docx] [userId] nodeJS - downloadUrlPromise body size mismatch: uri=https://nextcloud.bnet-internet.cz/index.php/login; content-length=4917; body.length=12953
[2022-10-26T11:23:35.478] [WARN] [localhost] [conv_check_375393695_docx] [userId] nodeJS - downloadUrlPromise body size mismatch: uri=https://nextcloud.bnet-internet.cz/index.php/login; content-length=4919; body.length=12953
[2022-10-26T11:32:02.273] [WARN] [localhost] [conv_check_915336320_docx] [userId] nodeJS - downloadUrlPromise body size mismatch: uri=https://nextcloud.bnet-internet.cz/index.php/login; content-length=4921; body.length=12953
[2022-10-26T11:32:20.704] [WARN] [localhost] [conv_check_1475583553_docx] [userId] nodeJS - downloadUrlPromise body size mismatch: uri=https://nextcloud.bnet-internet.cz/index.php/login; content-length=4916; body.length=12953

Could you please run a test?
Go to Document server and run secure link script. The script is located in /bin/ folder - bash documentserver-update-securelink.sh
Please let us know the result.

NB! We recommend to prepare whole server backup before any server side actions.

Hi Alexandre,

thank you for your advice. Now it is working!

Well i tried update Nextcloud from 23.0.10 to 24.0.6 and share folders disapper, but that’s different topic.

Thank you, again.

Hello @cenda
We are glad that the issue is solved.

Well i tried update Nextcloud from 23.0.10 to 24.0.6 and share folders disapper, but that’s different topic.

Yes, please create separate topic and provide us with details.

i have the same problem on a synology nas… but i don’t see all the file you mentioned… any help for me?
explain better my problem.
in a ds1815+ all is fine : nextcloud 24-0-6, last connector version, and server for nextcloud is up and running fine.
in another synology nas: nextcloud 24.0.6, ever last connector, and redirect to the 1815+ that have onlyoffice… problem whit connection… can you help me please?

Hello @pandino84
As far as I understand, you created separate topic with the issue. Please do not post the same question in different threads.

Got it. I’m sorry