Hi Team,
I have nextcloud installed on centos 7 with nginx and lets encrypt setup fine. On a second box again cent os7 with nginx, i have installed only office. When I go to
https://onlyoffice.domain.com, I get document server running. But when I try o setup only office in nextcloud, I keep getting, "Error when trying to connect (Error occured in the document service: Error while downloading file to be converted.)
This is the config in nextcloud config file:

nextcloud config
),
'twofactor_enforced_excluded_groups' =>
array (
),
'onlyoffice' =>
array (
'verify_peer_off' => TRUE,
'jwt_secret' => 'test',
'jwt_header' => 'test',
), 'maintenance' => false,
'theme' => '',
'loglevel' => 1,
);
This is the the local.json file from onlyoffice

local.json
{
"services": {
"CoAuthoring": {
"sql": {
"dbHost": "localhost",
"dbName": "onlyoffice",
"dbUser": "onlyoffice",
"dbPass": "onlyoffice"
},
"redis": {
"host": "localhost"
},
"token": {
"enable": {
"request": {
"inbox": true,
"outbox": true
},
"browser": true
},
"inbox": {
"header": "test"
},
"outbox": {
"header": "test"
}
},
"secret": {
"inbox": {
"string": "Mysecret"
},
"outbox": {
"string": "Mysecret"
},
"session": {
"string": "Mysecret"
}
}
}
},
"rabbitmq": {
"url": "amqp://guest:guest@localhost"
}
}
In nextcloud onlyoffice setup I have under Secret key (leave blank to disable)
Mysecret
In onlyoffice logs this is what I can see.

DS log
[2019-04-21T22:42:17.372] [ERROR] nodeJS - error downloadFile:url=
https://office.domain.com/apps/onlyoffi ... 9271_docx)
Error: Error response: statusCode:404 ;body:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Error</title>
</head>
<body>
<pre>Cannot GET /apps/onlyoffice/empty</pre>
</body>
</html>
at Request._callback (/var/www/onlyoffice/documentserver/server/Common/sources/utils.js:250:18)
at Request.self.callback (/var/www/onlyoffice/documentserver/server/Common/node_modules/request/request.js:185:22)
at emitTwo (events.js:106:13)
at Request.emit (events.js:191:7)
at Request.<anonymous> (/var/www/onlyoffice/documentserver/server/Common/node_modules/request/request.js:1161:10)
at emitOne (events.js:96:13)
at Request.emit (events.js:188:7)
at IncomingMessage.<anonymous> (/var/www/onlyoffice/documentserver/server/Common/node_modules/request/request.js:1083:12)
at IncomingMessage.g (events.js:292:16)
at emitNone (events.js:91:20)
at IncomingMessage.emit (events.js:185:7)
at endReadableNT (_stream_readable.js:978:12)
at _combinedTickCallback (internal/process/next_tick.js:80:11)
at process._tickCallback (internal/process/next_tick.js:104:9)
[2019-04-21T22:42:18.374] [DEBUG] nodeJS - ExitCode (code=0;signal=null;error:-81;id=conv_check_1231189271_docx)
[2019-04-21T22:42:18.375] [DEBUG] nodeJS - output (data={"cmd":{"c":"conv","id":"conv_check_1231189271_docx","format":"docx","url":"
https://office.domain.com/apps/onlyoffi ... 89271_docx)
[2019-04-21T22:42:18.375] [DEBUG] nodeJS - postProcess (id=conv_check_1231189271_docx)
[2019-04-21T22:42:18.376] [DEBUG] nodeJS - deleteFolderRecursive (id=conv_check_1231189271_docx)
Can anyone advise please?
rajbps