Unraid - Owncloud with Onlyoffice - Error when trying to connect (Error occurred in the document service: Error while downloading the document file to be converted.) (version 8.1.1.26)

Hi guys,
i want to use Onlyoffice on my own Unraid server.
I have Owncloud installed, through DNS (pihole) and nginx (NPM) is owncloud data.local. and Onlyoffice is docs.local.

I have the Onlyoffice app installed in my Owncloud from market.
In the setting:
ONLYOFFICE Docs address = https://data.local
Disable certificate verification (insecure) = allowed
Secret key (leave blank to disable) = test
.

In config.php I have this:

<?php
$CONFIG = array (
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'filelocking.enabled' => true,
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'redis' => 
  array (
    'host' => '/var/run/redis/redis-server.sock',
    'port' => 0,
    'timeout' => 0.0,
   ),
   array (
    'verify_peer_off' => true,
    'jwt_secret' => 'test',
    'jwt_header' => 'AuthorizationJwt',
   ),
  'instanceid' => 'ocyh9gfcpgnq',
  'passwordsalt' => 'WyKyX/uwsUmwg6I8V1/EFdqaKVNrdp',
  'secret' => '928OHkPporhUrbbp39aBvWIJBCBGGLkNP9KFfpTWmu5vfE7p',
  'trusted_domains' => 
  array (
    0 => '192.168.2.13',
    1 => 'data.local',
    2 => '192.168.2.14',
    3 => 'docs.local',
  ),
  'datadirectory' => '/data',
  'overwrite.cli.url' => 'https://192.168.2.13',
  'dbtype' => 'mysql',
  'version' => '10.15.0.2',
  'dbname' => 'owncloud',
  'dbconnectionstring' => '',
  'dbhost' => 'localhost',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'owncloud',
  'dbpassword' => 'owncloud',
  'allow_user_to_change_mail_address' => '',
  'logtimezone' => 'UTC',
  'apps_paths' => 
  array (
    0 => 
    array (
      'path' => '/config/www/owncloud/apps',
      'url' => '/apps',
      'writable' => false,
    ),
    1 => 
    array (
      'path' => '/config/www/owncloud/apps-external',
      'url' => '/apps-external',
      'writable' => true,
    ),
  ),
  'installed' => true,
);

.

in the 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",
          "inBody": false
        },
        "outbox": {
          "header": "Authorization",
          "inBody": false
        }
      },
      "secret": {
        "inbox": {
          "string": "test"
        },
        "outbox": {
          "string": "test"
        },
        "session": {
          "string": "test"
        }
      },
      "certificates": {
        "privateKey": "/usr/local/share/ca-certificates/onlyoffice.key",
        "certificate": "/usr/local/share/ca-certificates/onlyoffice.crt",
        "caBundle": "/usr/local/share/ca-certificates/onlyoffice.pem"
      },
      "rejectUnauthorized": false
    }
  },
  "rabbitmq": {
    "url": "amqp://guest:guest@localhost"
  },
  "wopi": {
    "enable": false,
    "privateKey": ,
    "exponent": 65537,
    "exponentOld": 65537
  },
  "storage": {
    "fs": {
      "secretString": "XJeeBPRLFKqCYWtpD9KM"
    }
  }
}

.

and default.json

{
	"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": ""
	},
	"persistentStorage": {
	},
	"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",
			"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"]
		}
	},
	"bottleneck": {
		"getChanges": {
		}
	},
	"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",
		"favIconUrlPdf" : "/web-apps/apps/pdfeditor/main/resources/img/favicon.ico",
		"fileInfoBlockList" : ["FileUrl"],
		"pdfView": ["djvu", "xps", "oxps"],
		"pdfEdit": ["pdf"],
		"forms": ["pdf"],
		"wordView": ["doc", "dotx", "dotm", "dot", "fodt", "ott", "rtf", "mht", "mhtml", "html", "htm", "xml", "epub", "fb2", "sxw", "stw", "wps", "wpt", "docxf", "oform"],
		"wordEdit": ["docx", "docm", "odt", "txt"],
		"cellView": ["xls", "xlsb", "xltx", "xltm", "xlt", "fods", "ots", "sxc", "xml", "et", "ett"],
		"cellEdit": ["xlsx", "xlsm", "ods", "csv"],
		"slideView": ["ppt", "ppsx", "ppsm", "pps", "potx", "potm", "pot", "fodp", "otp", "sxi", "dps", "dpt"],
		"slideEdit": ["pptx", "pptm", "odp"],
		"publicKey": ,
		"dummy" : {
			"enable": false,
			"sampleFilePath": ""
		}
	},
	"tenants": {
		"baseDir": "",
		"baseDomain": "",
		"filenameConfig": "config.json",
		"filenameSecret": "secret.key",
		"filenameLicense": "license.lic",
		"defaultTenant": "localhost",
		"cache" : {
			"stdTTL": 300,
			"checkperiod": 60,
			"useClones": false
		}
	},
	"externalRequest": {
		"directIfIn" : {
			"allowList": [],
			"jwtToken": true
		},
		"action": {
			"allow": true,
			"blockPrivateIP": true,
			"proxyUrl": "",
			"proxyUser": {
				"username": "",
				"password": ""
			},
			"proxyHeaders": {
			}
		}
	},
	"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,
				"isAnonymousSupport": true,
				"editorDataStorage": "editorDataMemory",
				"editorStatStorage": "",
				"assemblyFormatAsOrigin": true,
				"newFileTemplate" : "../../document-templates/new",
				"downloadFileAllowExt": ["pdf", "xlsx"],
				"tokenRequiredParams": true
			},
			"requestDefaults": {
				"headers": {
					"User-Agent": "Node.js/6.13",
					"Connection": "Keep-Alive"
				},
				"gzip": true,
				"rejectUnauthorized": true
			},
			"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;svg;tiff;tif"
			},
			"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": {
					"idleTimeoutMillis": 30000,
					"maxLifetimeSeconds ": 60000,
					"statement_timeout ": 60000,
					"query_timeout  ": 60000,
					"connectionTimeoutMillis": 60000
				},
				"damengExtraOptions": {
					"columnNameUpperCase": false,
					"columnNameCase": "lower",
					"connectTimeout": 60000,
					"loginEncrypt": false,
					"localTimezone": 0,
					"poolTimeout": 60,
					"socketTimeout": 60000,
					"queueTimeout": 60000
				},
				"oracleExtraOptions": {
					"connectTimeout": 60
				},
				"msSqlExtraOptions": {
					"options": {
						"encrypt": false,
						"trustServerCertificate": true
					},
					"pool": {
						"idleTimeoutMillis": 30000
					}
				},
				"mysqlExtraOptions": {}
			},
			"redis": {
				"name": "redis",
				"prefix": "ds:",
				"host": "127.0.0.1",
				"port": 6379,
				"options": {},
				"optionsCluster": {},
				"iooptions": {
					"lazyConnect": true
				},
				"iooptionsClusterNodes": [
				],
				"iooptionsClusterOptions": {
					"lazyConnect": true
				}
			},
			"pubsub": {
				"maxChanges": 1000
			},
			"expire": {
				"saveLock": 60,
				"presence": 300,
				"locks": 604800,
				"changeindex": 86400,
				"lockDoc": 30,
				"message": 86400,
				"lastsave": 604800,
				"forcesave": 604800,
				"forcesaveLock": 5000,
				"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": false,
				"allowMetaIPAddress": false
			},
			"secret": {
				"browser": {"string": "secret", "file": ""},
				"inbox": {"string": "secret", "file": ""},
				"outbox": {"string": "secret", "file": ""},
				"session": {"string": "secret", "file": ""}
			},
			"token": {
				"enable": {
					"browser": false,
					"request": {
						"inbox": false,
						"outbox": false
					}
				},
				"browser": {
					"secretFromInbox": true
				},
				"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"
				},
				"binaryChanges": false,
				"websocketMaxPayloadSize": "1.5MB",
				"maxChangesSize": "0mb"
			},
			"sockjs": {
				"sockjs_url": "",
				"disable_cors": true,
				"websocket": true
			},
			"socketio": {
				"connection": {
					"path": "/doc/",
					"serveClient": false,
					"pingTimeout": 20000,
					"pingInterval": 25000,
					"maxHttpBufferSize": 1e8
				}
			},
			"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"
				}
				}
			]
		}
	}
}

Can you please give me a solution?
Thanks for any suggestion.

Hello @dzavel

Please specify installation type of Document Server (Docker, DEB/RPM packages, MSI/EXE) and also provide logs of Document Server for analysis as a single archive.

Logs are located:

  • for Linux in /var/log/onlyoffice/documentserver (same path for Docker inside the container with Document Server);
  • for Windows in C:\Program Files\ONLYOFFICE\DocumentServer\Log.