Document Server version: last
Type of installation of the Document Server: Manual installation, as per the official website (Installing ONLYOFFICE Docs for Debian, Ubuntu, and derivatives):
Connector version: 9.5.0
DMS (platform) version: Linux
OS: Debian 12 ((bookworm)
Browser version: Google Chrome
I have two servers, one running Nextcloud ([Nextcloud Hub 10 (31.0.7)]) and the other running OnlyOffice Docs (latest version). I installed the OnlyOffice app on Nextcloud, and when I click ‘Save’, I get the following error: ‘Error when trying to connect (An error occurred in the document service: Error while downloading the document file to be converted.) (version 9.0.2.9)’.
I’ve tried several things based on posts here in the forum, but without success. Honestly, I’m exhausted with this issue. Can someone help me resolve it?
Below is information I consider relevant for analysis. If you need anything else, please let me know. I’m in a test environment, so I’ve only hidden the real server IP and a few other details, since I plan to rebuild both servers once everything works in the test environment
server Nextcloud: /var/www/html/nextcloud/config/config.php
<?php
$CONFIG = array (
'instanceid' => 'ocyadrrpc5wo',
'passwordsalt' => 'lUtfL9M4GpgI8QqtF70ZhciJ/04LKT',
'secret' => 'stTlY0wfCvbhG/ThReg0MchvXdqjZxZXcHpLMG/w0LInZbgG',
'trusted_domains' =>
array (
0 => 'IP_Server',
),
'datadirectory' => '/var/www/html/nextcloud/data',
'dbtype' => 'mysql',
'version' => '31.0.7.1',
'overwrite.cli.url' => 'https://IP_Server',
'dbname' => 'nextcloud',
'dbhost' => 'localhost',
'dbport' => '',
'dbtableprefix' => 'oc_',
'mysql.utf8mb4' => true,
'dbuser' => 'user',
'dbpassword' => 'password',
'installed' => true,
);
Notes: it already includes the lower block and it didn’t work, so I left it in its original state to start from scratch with the analysis here on the forum.
'onlyoffice' => array (
'verify_peer_off' => true
)
'jwt_secret' => "key secret jwt",
'jwt_header' => "Authorization",
),
Server OnlyofficeDocs /etc/onlyoffice/documentserver/local.json
{
"services": {
"CoAuthoring": {
"sql": {
"type": "postgres",
"dbHost": "localhost",
"dbPort": "5432",
"dbName": "onlyoffice",
"dbUser": "onlyoffice",
"dbPass": "onlyoffice"
},
"token": {
"enable": {
"request": {
"inbox": true,
"outbox": true
},
"browser": true
},
"inbox": {
"header": "Authorization"
},
"outbox": {
"header": "Authorization"
}
},
"secret": {
"inbox": {
"string": "BL9wMTvtZ7VPUyLg0xozI8faYcLNODHN"
},
"outbox": {
"string": "BL9wMTvtZ7VPUyLg0xozI8faYcLNODHN"
},
"session": {
"string": "BL9wMTvtZ7VPUyLg0xozI8faYcLNODHN"
}
}
}
},
"rabbitmq": {
"url": "amqp://guest:guest@localhost"
},
"wopi": {
"enable": false,
"privateKey": "-----BEGIN PRIVATE KEY-----\nMIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQCnozkQfO3cil5e\nflqyH+dWQOB80l6GcVEEfiODel0SdmEKDYk3MrwUr0zhkrIH8XjUTbw2HMxJmWER\n8XWC0F29K001mdq>
"privateKeyOld": "-----BEGIN PRIVATE KEY-----\nMIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQCnozkQfO3cil5e\nflqyH+dWQOB80l6GcVEEfiODel0SdmEKDYk3MrwUr0zhkrIH8XjUTbw2HMxJmWER\n8XWC0F29K001>
"publicKey": "BgIAAACkAABSU0ExAAgAAAEAAQBXTnZlbc3ikfoO8zpwjgpO2kf5Ydgu1jh/3pyOA7Izt2CA6RP9BW5MQcOXYklrLGtsX6/n3kjgeavEuWjEGoQjwupGcOQRw+kaPDZxMw8a6Tg0rqClJ1immp2tBOj2Kk7h2YJOomfaExBwdjs9reqzp>
"publicKeyOld": "BgIAAACkAABSU0ExAAgAAAEAAQBXTnZlbc3ikfoO8zpwjgpO2kf5Ydgu1jh/3pyOA7Izt2CA6RP9BW5MQcOXYklrLGtsX6/n3kjgeavEuWjEGoQjwupGcOQRw+kaPDZxMw8a6Tg0rqClJ1immp2tBOj2Kk7h2YJOomfaExBwdjs9re>
"modulus": "p6M5EHzt3IpeXn5ash/nVkDgfNJehnFRBH4jg3pdEnZhCg2JNzK8FK9M4ZKyB/F41E28NhzMSZlhEfF1gtBdvStNNZnapeqdOZikRIFe8i33wMhcLNHFoipZEKPxBMHTS3xEUzZ35SQIq1qK1Z/n7rNISqDW07HaoYyt1eVW5TMLaVj+lr9>
"modulusOld": "p6M5EHzt3IpeXn5ash/nVkDgfNJehnFRBH4jg3pdEnZhCg2JNzK8FK9M4ZKyB/F41E28NhzMSZlhEfF1gtBdvStNNZnapeqdOZikRIFe8i33wMhcLNHFoipZEKPxBMHTS3xEUzZ35SQIq1qK1Z/n7rNISqDW07HaoYyt1eVW5TMLaVj+>
"exponent": 65537,
"exponentOld": 65537
},
"storage": {
"fs": {
"secretString": "V6VIbN3kDVkh6W1DOYaC"
}
}
}
**First 20 lines of the log in the OnlyOffice Docs server right after trying to configure the app in Nextcloud **
File path: /app/onlyoffice/DocumentServer/logs/documentserver/converter/out.log.
root@hostname:/# tail -n 20 /var/log/onlyoffice/documentserver/converter/out.log
at TLSSocket.emit (node:events:524:28)
at emitErrorNT (node:internal/streams/destroy:169:8)
at emitErrorCloseNT (node:internal/streams/destroy:128:3)
at Axios.request (/snapshot/server/Common/node_modules/axios/dist/node/axios.cjs)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Object.downloadUrlPromise (/snapshot/server/Common/sources/utils.js)
[2025-07-29T17:28:38.202] [ERROR] [localhost] [check_798610731] [userId] nodeJS - error downloadFile:url=https://IP_Server_Nextcloud/index.php/apps/onlyoffice/empty?doc=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhY3Rpb24iOiJlbXB0eSJ9.273Si7bohQjeAiDJilHn_H7sul9-teaO4PbZ8iEWz_0;attempt=3;code:SELF_SIGNED_CERT_IN_CHAIN;connect:undefined Error: self-signed certificate in certificate chain
at Function.from (/snapshot/server/Common/node_modules/axios/dist/node/axios.cjs)
at RedirectableRequest.handleRequestError (/snapshot/server/Common/node_modules/axios/dist/node/axios.cjs)
at RedirectableRequest.emit (node:events:536:35)
at ClientRequest.<anonymous> (/snapshot/server/Common/node_modules/follow-redirects/index.js:49:24)
at ClientRequest.emit (node:events:524:28)
at emitErrorEvent (node:_http_client:101:11)
at TLSSocket.socketErrorListener (node:_http_client:504:5)
at TLSSocket.emit (node:events:524:28)
at emitErrorNT (node:internal/streams/destroy:169:8)
at emitErrorCloseNT (node:internal/streams/destroy:128:3)
at Axios.request (/snapshot/server/Common/node_modules/axios/dist/node/axios.cjs)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Object.downloadUrlPromise (/snapshot/server/Common/sources/utils.js)