error when connecting documentserver to nextcloud

Questions/problems on Docker
mik400
Posts: 9
Joined: Mon Jan 06, 2020 12:17 pm

error when connecting documentserver to nextcloud

Post by mik400 » Mon Jan 06, 2020 12:31 pm

documentserver-error.png
documentserver-error.png (93.24 KiB) Viewed 1618 times
Hi, using nginx for reverse proxy to nextcloud and onlyoffice document server all docker containers on the same network. The documentserver welcome page is accessible from the internet. Nextcloud is showing "Loading please wait" when creating a document. Pulled logs from /var/log/onlyoffice/documentserver

Code: Select all

root@b6a4ebbff970:/var/log/onlyoffice/documentserver# cat nginx.error.log 
2020/01/06 11:08:23 [error] 747#747: *2 connect() failed (111: Connection refused) while connecting to upstream, client: 172.20.0.2, server: , request: "GET /healthcheck HTTP/1.1", upstream: "http://127.0.0.1:8000/healthcheck", host: "onlyoffice", referrer: "https://onlyoffice.mycloud.com/welcome/"
2020/01/06 11:08:23 [error] 747#747: *2 connect() failed (111: Connection refused) while connecting to upstream, client: 172.20.0.2, server: , request: "GET /healthcheck HTTP/1.1", upstream: "http://127.0.0.1:8000/healthcheck", host: "onlyoffice", referrer: "https://onlyoffice.mycloud.com/welcome/"
2020/01/06 11:08:24 [error] 747#747: *5 no live upstreams while connecting to upstream, client: 172.20.0.2, server: , request: "GET /welcome/img/icon-cross.png HTTP/1.1", upstream: "http://docservice/welcome/img/icon-cross.png", host: "onlyoffice", referrer: "https://onlyoffice.mycloud.com/welcome/"
Trying to figure out what is causing the issue my reverse proxy or documentserver?
The welcome page is accessible from FQDN
Last edited by mik400 on Thu Jan 09, 2020 11:01 am, edited 2 times in total.

MikhailS
Posts: 25
Joined: Tue Sep 10, 2019 3:31 pm

Re: error when connecting documentserver to nextcloud

Post by MikhailS » Tue Jan 07, 2020 8:28 am

1. Make a screenshot of ONLYOFFICE integration app settings in Nextcloud. Also click on Save button and make a screenshot of the appearing message.
2. Send logs of the Document Server. Logs are in folder C:\Program Files\ONLYOFFICE\DocumentServer\Log\ .
3. Reproduce the issue with browser console open and make screenshots of error messages in Network and Console tabs.

mik400
Posts: 9
Joined: Mon Jan 06, 2020 12:17 pm

Post by mik400 » Wed Jan 08, 2020 5:24 am

deleted redundant post
Last edited by mik400 on Thu Jan 09, 2020 11:07 am, edited 4 times in total.

mik400
Posts: 9
Joined: Mon Jan 06, 2020 12:17 pm

Re: error when connecting documentserver to nextcloud

Post by mik400 » Wed Jan 08, 2020 5:28 am

Here are logs from docker image path /var/log/onlyoffice/documentserver/docservice/out.log
and console network tabs

Code: Select all

[2020-01-08T01:19:43.333] [WARN] nodeJS - Plugins watch exception (https://nodejs.org/docs/latest/api/fs.html#fs_availability).
[2020-01-08T01:19:43.360] [WARN] nodeJS - update cluster with 1 workers
[2020-01-08T01:19:43.372] [WARN] nodeJS - worker 764 started.
[2020-01-08T01:19:43.372] [WARN] nodeJS - update cluster with 1 workers
[2020-01-08T01:19:43.857] [WARN] nodeJS - Express server starting...
[2020-01-08T01:19:44.647] [WARN] nodeJS - Express server listening on port 8000 in production-linux mode
[2020-01-08T01:20:08.829] [WARN] nodeJS - Plugins watch exception (https://nodejs.org/docs/latest/api/fs.html#fs_availability).
[2020-01-08T01:20:08.842] [WARN] nodeJS - update cluster with 1 workers
[2020-01-08T01:20:08.849] [WARN] nodeJS - worker 836 started.
[2020-01-08T01:20:08.849] [WARN] nodeJS - update cluster with 1 workers
[2020-01-08T01:20:09.329] [WARN] nodeJS - Express server starting...
[2020-01-08T01:20:09.986] [WARN] nodeJS - Express server listening on port 8000 in production-linux mode
[2020-01-08T01:32:36.164] [ERROR] nodeJS - postData error: docId = 173335947;url = http://nc.m400cloud.com/apps/onlyoffice/track?doc=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VySWQiOiJtaWtlIiwiZmlsZUlkIjoxMTIsImZpbGVQYXRoIjoiXC9hYmMuZG9jeCIsInNoYXJlVG9rZW4iOm51bGwsImFjdGlvbiI6InRyYWNrIn0.EWo6KBqF6-ZtcvfrVlvJR5UFLDjmxTt8XKsNgylBv8s;data = {"key":"173335947","status":1,"users":["ocxhbukekiw0_mike"],"actions":[{"type":1,"userid":"ocxhbukekiw0_mike"}]}
Error: Error response: statusCode:301 ;body:
<html>
<head><title>301 Moved Permanently</title></head>
<body>
<center><h1>301 Moved Permanently</h1></center>
<hr><center>nginx</center>
</body>
</html>

    at Request._callback (/var/www/onlyoffice/documentserver/server/Common/sources/utils.js:301:23)
    at Request.self.callback (/var/www/onlyoffice/documentserver/server/Common/node_modules/request/request.js:185:22)
    at emitTwo (events.js:126:13)
    at Request.emit (events.js:214:7)
    at Request.<anonymous> (/var/www/onlyoffice/documentserver/server/Common/node_modules/request/request.js:1161:10)
    at emitOne (events.js:116:13)
    at Request.emit (events.js:211:7)
    at IncomingMessage.<anonymous> (/var/www/onlyoffice/documentserver/server/Common/node_modules/request/request.js:1083:12)
    at Object.onceWrapper (events.js:313:30)
    at emitNone (events.js:111:20)
    at IncomingMessage.emit (events.js:208:7)
    at endReadableNT (_stream_readable.js:1064:12)
    at _combinedTickCallback (internal/process/next_tick.js:139:11)
    at process._tickCallback (internal/process/next_tick.js:181:9)
[2020-01-08T01:52:04.575] [ERROR] nodeJS - postData error: docId = 173335947;url = http://nc.m400cloud.com/apps/onlyoffice/track?doc=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VySWQiOiJtaWtlIiwiZmlsZUlkIjoxMTIsImZpbGVQYXRoIjoiXC9hYmMuZG9jeCIsInNoYXJlVG9rZW4iOm51bGwsImFjdGlvbiI6InRyYWNrIn0.EWo6KBqF6-ZtcvfrVlvJR5UFLDjmxTt8XKsNgylBv8s;data = {"key":"173335947","status":4,"actions":[{"type":0,"userid":"ocxhbukekiw0_mike"}]}
Error: Error response: statusCode:301 ;body:
<html>
<head><title>301 Moved Permanently</title></head>
<body>
<center><h1>301 Moved Permanently</h1></center>
<hr><center>nginx</center>
</body>
</html>

    at Request._callback (/var/www/onlyoffice/documentserver/server/Common/sources/utils.js:301:23)
    at Request.self.callback (/var/www/onlyoffice/documentserver/server/Common/node_modules/request/request.js:185:22)
    at emitTwo (events.js:126:13)
    at Request.emit (events.js:214:7)
    at Request.<anonymous> (/var/www/onlyoffice/documentserver/server/Common/node_modules/request/request.js:1161:10)
    at emitOne (events.js:116:13)
    at Request.emit (events.js:211:7)
    at IncomingMessage.<anonymous> (/var/www/onlyoffice/documentserver/server/Common/node_modules/request/request.js:1083:12)
    at Object.onceWrapper (events.js:313:30)
    at emitNone (events.js:111:20)
    at IncomingMessage.emit (events.js:208:7)
    at endReadableNT (_stream_readable.js:1064:12)
    at _combinedTickCallback (internal/process/next_tick.js:139:11)
    at process._tickCallback (internal/process/next_tick.js:181:9)
[2020-01-08T01:57:24.442] [ERROR] nodeJS - postData error: docId = 1617274260;url = http://nc.m400cloud.com/apps/onlyoffice/track?doc=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VySWQiOiJtaWtlIiwiZmlsZUlkIjoxNTMsImZpbGVQYXRoIjoiXC9hYmNkLmRvY3giLCJzaGFyZVRva2VuIjpudWxsLCJhY3Rpb24iOiJ0cmFjayJ9.hXoSHd7s24qzBJlau9Vgd2OCWC1hgwjRYyqZPhNuh4I;data = {"key":"1617274260","status":1,"users":["ocxhbukekiw0_mike"],"actions":[{"type":1,"userid":"ocxhbukekiw0_mike"}]}
Error: Error response: statusCode:301 ;body:
<html>
<head><title>301 Moved Permanently</title></head>
<body>
<center><h1>301 Moved Permanently</h1></center>
<hr><center>nginx</center>
</body>
</html>

    at Request._callback (/var/www/onlyoffice/documentserver/server/Common/sources/utils.js:301:23)
    at Request.self.callback (/var/www/onlyoffice/documentserver/server/Common/node_modules/request/request.js:185:22)
    at emitTwo (events.js:126:13)
    at Request.emit (events.js:214:7)
    at Request.<anonymous> (/var/www/onlyoffice/documentserver/server/Common/node_modules/request/request.js:1161:10)
    at emitOne (events.js:116:13)
    at Request.emit (events.js:211:7)
    at IncomingMessage.<anonymous> (/var/www/onlyoffice/documentserver/server/Common/node_modules/request/request.js:1083:12)
    at Object.onceWrapper (events.js:313:30)
    at emitNone (events.js:111:20)
    at IncomingMessage.emit (events.js:208:7)
    at endReadableNT (_stream_readable.js:1064:12)
    at _combinedTickCallback (internal/process/next_tick.js:139:11)
    at process._tickCallback (internal/process/next_tick.js:181:9)
[2020-01-08T02:05:41.164] [ERROR] nodeJS - postData error: docId = 1617274260;url = http://nc.m400cloud.com/apps/onlyoffice/track?doc=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VySWQiOiJtaWtlIiwiZmlsZUlkIjoxNTMsImZpbGVQYXRoIjoiXC9hYmNkLmRvY3giLCJzaGFyZVRva2VuIjpudWxsLCJhY3Rpb24iOiJ0cmFjayJ9.hXoSHd7s24qzBJlau9Vgd2OCWC1hgwjRYyqZPhNuh4I;data = {"key":"1617274260","status":4,"actions":[{"type":0,"userid":"ocxhbukekiw0_mike"}]}
Error: Error response: statusCode:301 ;body:
<html>
<head><title>301 Moved Permanently</title></head>
<body>
<center><h1>301 Moved Permanently</h1></center>
<hr><center>nginx</center>
</body>
</html>

    at Request._callback (/var/www/onlyoffice/documentserver/server/Common/sources/utils.js:301:23)
    at Request.self.callback (/var/www/onlyoffice/documentserver/server/Common/node_modules/request/request.js:185:22)
    at emitTwo (events.js:126:13)
    at Request.emit (events.js:214:7)
    at Request.<anonymous> (/var/www/onlyoffice/documentserver/server/Common/node_modules/request/request.js:1161:10)
    at emitOne (events.js:116:13)
    at Request.emit (events.js:211:7)
    at IncomingMessage.<anonymous> (/var/www/onlyoffice/documentserver/server/Common/node_modules/request/request.js:1083:12)
    at Object.onceWrapper (events.js:313:30)
    at emitNone (events.js:111:20)
    at IncomingMessage.emit (events.js:208:7)
    at endReadableNT (_stream_readable.js:1064:12)
    at _combinedTickCallback (internal/process/next_tick.js:139:11)
    at process._tickCallback (internal/process/next_tick.js:181:9)
[2020-01-08T02:18:21.400] [ERROR] nodeJS - postData error: docId = 1969156030;url = http://nc.m400cloud.com/apps/onlyoffice/track?doc=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VySWQiOiJtaWtlIiwiZmlsZUlkIjoxNTQsImZpbGVQYXRoIjoiXC9zZGYuZG9jeCIsInNoYXJlVG9rZW4iOm51bGwsImFjdGlvbiI6InRyYWNrIn0.4YyLNSzaFV_7B4fBXwnWevKfF2VXb7Jqn-GX0qLC0zs;data = {"key":"1969156030","status":1,"users":["ocxhbukekiw0_mike"],"actions":[{"type":1,"userid":"ocxhbukekiw0_mike"}]}
Error: Error response: statusCode:301 ;body:
<html>
<head><title>301 Moved Permanently</title></head>
<body>
<center><h1>301 Moved Permanently</h1></center>
<hr><center>nginx</center>
</body>
</html>

    at Request._callback (/var/www/onlyoffice/documentserver/server/Common/sources/utils.js:301:23)
    at Request.self.callback (/var/www/onlyoffice/documentserver/server/Common/node_modules/request/request.js:185:22)
    at emitTwo (events.js:126:13)
    at Request.emit (events.js:214:7)
    at Request.<anonymous> (/var/www/onlyoffice/documentserver/server/Common/node_modules/request/request.js:1161:10)
    at emitOne (events.js:116:13)
    at Request.emit (events.js:211:7)
    at IncomingMessage.<anonymous> (/var/www/onlyoffice/documentserver/server/Common/node_modules/request/request.js:1083:12)
    at Object.onceWrapper (events.js:313:30)
    at emitNone (events.js:111:20)
    at IncomingMessage.emit (events.js:208:7)
    at endReadableNT (_stream_readable.js:1064:12)
    at _combinedTickCallback (internal/process/next_tick.js:139:11)
    at process._tickCallback (internal/process/next_tick.js:181:9)
[2020-01-08T02:18:29.889] [ERROR] nodeJS - postData error: docId = 1969156030;url = http://nc.m400cloud.com/apps/onlyoffice/track?doc=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VySWQiOiJtaWtlIiwiZmlsZUlkIjoxNTQsImZpbGVQYXRoIjoiXC9zZGYuZG9jeCIsInNoYXJlVG9rZW4iOm51bGwsImFjdGlvbiI6InRyYWNrIn0.4YyLNSzaFV_7B4fBXwnWevKfF2VXb7Jqn-GX0qLC0zs;data = {"key":"1969156030","status":4,"actions":[{"type":0,"userid":"ocxhbukekiw0_mike"}]}
Error: Error response: statusCode:301 ;body:
<html>
<head><title>301 Moved Permanently</title></head>
<body>
<center><h1>301 Moved Permanently</h1></center>
<hr><center>nginx</center>
</body>
</html>

    at Request._callback (/var/www/onlyoffice/documentserver/server/Common/sources/utils.js:301:23)
    at Request.self.callback (/var/www/onlyoffice/documentserver/server/Common/node_modules/request/request.js:185:22)
    at emitTwo (events.js:126:13)
    at Request.emit (events.js:214:7)
    at Request.<anonymous> (/var/www/onlyoffice/documentserver/server/Common/node_modules/request/request.js:1161:10)
    at emitOne (events.js:116:13)
    at Request.emit (events.js:211:7)
    at IncomingMessage.<anonymous> (/var/www/onlyoffice/documentserver/server/Common/node_modules/request/request.js:1083:12)
    at Object.onceWrapper (events.js:313:30)
    at emitNone (events.js:111:20)
    at IncomingMessage.emit (events.js:208:7)
    at endReadableNT (_stream_readable.js:1064:12)
    at _combinedTickCallback (internal/process/next_tick.js:139:11)
    at process._tickCallback (internal/process/next_tick.js:181:9)
[2020-01-08T04:30:20.910] [ERROR] nodeJS - postData error: docId = 173335947;url = http://nc.m400cloud.com/apps/onlyoffice/track?doc=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VySWQiOiJtaWtlIiwiZmlsZUlkIjoxMTIsImZpbGVQYXRoIjoiXC9hYmMuZG9jeCIsInNoYXJlVG9rZW4iOm51bGwsImFjdGlvbiI6InRyYWNrIn0.EWo6KBqF6-ZtcvfrVlvJR5UFLDjmxTt8XKsNgylBv8s;data = {"key":"173335947","status":1,"users":["ocxhbukekiw0_mike"],"actions":[{"type":1,"userid":"ocxhbukekiw0_mike"}]}
Error: Error response: statusCode:301 ;body:
<html>
<head><title>301 Moved Permanently</title></head>
<body>
<center><h1>301 Moved Permanently</h1></center>
<hr><center>nginx</center>
</body>
</html>

    at Request._callback (/var/www/onlyoffice/documentserver/server/Common/sources/utils.js:301:23)
    at Request.self.callback (/var/www/onlyoffice/documentserver/server/Common/node_modules/request/request.js:185:22)
    at emitTwo (events.js:126:13)
    at Request.emit (events.js:214:7)
    at Request.<anonymous> (/var/www/onlyoffice/documentserver/server/Common/node_modules/request/request.js:1161:10)
    at emitOne (events.js:116:13)
    at Request.emit (events.js:211:7)
    at IncomingMessage.<anonymous> (/var/www/onlyoffice/documentserver/server/Common/node_modules/request/request.js:1083:12)
    at Object.onceWrapper (events.js:313:30)
    at emitNone (events.js:111:20)
    at IncomingMessage.emit (events.js:208:7)
    at endReadableNT (_stream_readable.js:1064:12)
    at _combinedTickCallback (internal/process/next_tick.js:139:11)
    at process._tickCallback (internal/process/next_tick.js:181:9)
[2020-01-08T04:38:54.702] [ERROR] nodeJS - postData error: docId = 173335947;url = http://nc.m400cloud.com/apps/onlyoffice/track?doc=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VySWQiOiJtaWtlIiwiZmlsZUlkIjoxMTIsImZpbGVQYXRoIjoiXC9hYmMuZG9jeCIsInNoYXJlVG9rZW4iOm51bGwsImFjdGlvbiI6InRyYWNrIn0.EWo6KBqF6-ZtcvfrVlvJR5UFLDjmxTt8XKsNgylBv8s;data = {"key":"173335947","status":4,"actions":[{"type":0,"userid":"ocxhbukekiw0_mike"}]}
Error: Error response: statusCode:301 ;body:
<html>
<head><title>301 Moved Permanently</title></head>
<body>
<center><h1>301 Moved Permanently</h1></center>
<hr><center>nginx</center>
</body>
</html>

    at Request._callback (/var/www/onlyoffice/documentserver/server/Common/sources/utils.js:301:23)
    at Request.self.callback (/var/www/onlyoffice/documentserver/server/Common/node_modules/request/request.js:185:22)
    at emitTwo (events.js:126:13)
    at Request.emit (events.js:214:7)
    at Request.<anonymous> (/var/www/onlyoffice/documentserver/server/Common/node_modules/request/request.js:1161:10)
    at emitOne (events.js:116:13)
    at Request.emit (events.js:211:7)
    at IncomingMessage.<anonymous> (/var/www/onlyoffice/documentserver/server/Common/node_modules/request/request.js:1083:12)
    at Object.onceWrapper (events.js:313:30)
    at emitNone (events.js:111:20)
    at IncomingMessage.emit (events.js:208:7)
    at endReadableNT (_stream_readable.js:1064:12)
    at _combinedTickCallback (internal/process/next_tick.js:139:11)
    at process._tickCallback (internal/process/next_tick.js:181:9)
[2020-01-08T04:39:02.161] [ERROR] nodeJS - postData error: docId = 1617274260;url = http://nc.m400cloud.com/apps/onlyoffice/track?doc=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VySWQiOiJtaWtlIiwiZmlsZUlkIjoxNTMsImZpbGVQYXRoIjoiXC9hYmNkLmRvY3giLCJzaGFyZVRva2VuIjpudWxsLCJhY3Rpb24iOiJ0cmFjayJ9.hXoSHd7s24qzBJlau9Vgd2OCWC1hgwjRYyqZPhNuh4I;data = {"key":"1617274260","status":1,"users":["ocxhbukekiw0_mike"],"actions":[{"type":1,"userid":"ocxhbukekiw0_mike"}]}
Error: Error response: statusCode:301 ;body:
<html>
<head><title>301 Moved Permanently</title></head>
<body>
<center><h1>301 Moved Permanently</h1></center>
<hr><center>nginx</center>
</body>
</html>

    at Request._callback (/var/www/onlyoffice/documentserver/server/Common/sources/utils.js:301:23)
    at Request.self.callback (/var/www/onlyoffice/documentserver/server/Common/node_modules/request/request.js:185:22)
    at emitTwo (events.js:126:13)
    at Request.emit (events.js:214:7)
    at Request.<anonymous> (/var/www/onlyoffice/documentserver/server/Common/node_modules/request/request.js:1161:10)
    at emitOne (events.js:116:13)
    at Request.emit (events.js:211:7)
    at IncomingMessage.<anonymous> (/var/www/onlyoffice/documentserver/server/Common/node_modules/request/request.js:1083:12)
    at Object.onceWrapper (events.js:313:30)
    at emitNone (events.js:111:20)
    at IncomingMessage.emit (events.js:208:7)
    at endReadableNT (_stream_readable.js:1064:12)
    at _combinedTickCallback (internal/process/next_tick.js:139:11)
    at process._tickCallback (internal/process/next_tick.js:181:9)
[2020-01-08T05:09:23.778] [ERROR] nodeJS - postData error: docId = 1617274260;url = http://nc.m400cloud.com/apps/onlyoffice/track?doc=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VySWQiOiJtaWtlIiwiZmlsZUlkIjoxNTMsImZpbGVQYXRoIjoiXC9hYmNkLmRvY3giLCJzaGFyZVRva2VuIjpudWxsLCJhY3Rpb24iOiJ0cmFjayJ9.hXoSHd7s24qzBJlau9Vgd2OCWC1hgwjRYyqZPhNuh4I;data = {"key":"1617274260","status":4,"actions":[{"type":0,"userid":"ocxhbukekiw0_mike"}]}
Error: Error response: statusCode:301 ;body:
<html>
<head><title>301 Moved Permanently</title></head>
<body>
<center><h1>301 Moved Permanently</h1></center>
<hr><center>nginx</center>
</body>
</html>

    at Request._callback (/var/www/onlyoffice/documentserver/server/Common/sources/utils.js:301:23)
    at Request.self.callback (/var/www/onlyoffice/documentserver/server/Common/node_modules/request/request.js:185:22)
    at emitTwo (events.js:126:13)
    at Request.emit (events.js:214:7)
    at Request.<anonymous> (/var/www/onlyoffice/documentserver/server/Common/node_modules/request/request.js:1161:10)
    at emitOne (events.js:116:13)
    at Request.emit (events.js:211:7)
    at IncomingMessage.<anonymous> (/var/www/onlyoffice/documentserver/server/Common/node_modules/request/request.js:1083:12)
    at Object.onceWrapper (events.js:313:30)
    at emitNone (events.js:111:20)
    at IncomingMessage.emit (events.js:208:7)
    at endReadableNT (_stream_readable.js:1064:12)
    at _combinedTickCallback (internal/process/next_tick.js:139:11)
    at process._tickCallback (internal/process/next_tick.js:181:9)
Last edited by mik400 on Thu Jan 09, 2020 11:05 am, edited 1 time in total.

mik400
Posts: 9
Joined: Mon Jan 06, 2020 12:17 pm

Re: error when connecting documentserver to nextcloud

Post by mik400 » Wed Jan 08, 2020 6:09 pm

Here are screenshots and logs, the error now is "the document could not be saved".
Attachments
saved-message.png
saved-message.png (101.34 KiB) Viewed 1619 times
console-tab.png
console-tab.png (240.3 KiB) Viewed 1619 times
network_tab.png
network_tab.png (185.11 KiB) Viewed 1619 times

Carl
Posts: 423
Joined: Thu Apr 12, 2018 10:00 am

Re: error when connecting documentserver to nextcloud

Post by Carl » Thu Jan 09, 2020 10:47 am

Hello,

Please try to disable Advanced Server Settings in ONLYOFFICE connector app settings and check if the issue persists.

mik400
Posts: 9
Joined: Mon Jan 06, 2020 12:17 pm

Re: error when connecting documentserver to nextcloud

Post by mik400 » Thu Jan 09, 2020 11:13 am

uninstalled and reinstalled the onlyoffice nextcloud app, omitted the advanced server settings still receive error
Even tried the demo server but received the same error.

Carl
Posts: 423
Joined: Thu Apr 12, 2018 10:00 am

Re: error when connecting documentserver to nextcloud

Post by Carl » Fri Jan 10, 2020 1:32 pm

Hello,

If you can't connect even to demo ONLYOFFICE server, then I would assume the issue is somewhere in your proxy configuration.

Please enter the container with Document Server and execute wget https://nextcloud-domain-name. Let me know the results.

mik400
Posts: 9
Joined: Mon Jan 06, 2020 12:17 pm

Re: error when connecting documentserver to nextcloud

Post by mik400 » Fri Jan 10, 2020 4:58 pm

hi, output from wget from in inside documentserver container and reverse proxy server block.

Code: Select all

root@e886f01a7d71:/# wget https://nc.example.com
--2020-01-10 16:50:43--  https://nc.example.com/
Resolving nc.example.com (nc.example.com)... 47.203.xxx.xxx
Connecting to nc.example.com (nc.example.com)|47.203.xxx.xxx|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://nc.example.com/login [following]
--2020-01-10 16:50:44--  http://nc.example.com/login
Connecting to nc.example.com (nc.example.com)|47.203.xxx.xxx|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://nc.example.com/login [following]
--2020-01-10 16:50:44--  https://nc.example.com/login
Connecting to nc.example.com (nc.example.com)|47.203.xxx.xxx|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 5443 (5.3K) [text/html]
Saving to: ‘index.html.2’

index.html.2       100%[==============>]   5.32K  --.-KB/s    in 0s      

2020-01-10 16:50:44 (350 MB/s) - ‘index.html.2’ saved [5443/5443]

Code: Select all

server {
	listen 443 ssl http2;
	server_name onlyoffice.example.com;
	location / {
		proxy_set_header Upgrade $http_upgrade;
                proxy_set_header X-Forwarded-Host $host;
                proxy_set_header X-Forwarded-Proto $scheme;
                proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
                proxy_pass http://onlyoffice;
                proxy_http_version 1.1;
                proxy_set_header Connection "upgrade";  #for websockets
		proxy_connect_timeout  3600s;
                proxy_read_timeout  3600s;
                proxy_send_timeout  3600s;

	}
}

mik400
Posts: 9
Joined: Mon Jan 06, 2020 12:17 pm

Re: error when connecting documentserver to nextcloud

Post by mik400 » Sun Jan 12, 2020 8:11 am

update to thread, document server is saving file but with error, here's the flow.
1.) receive cannot save error 2.) file tab is auto selected with Download as... highlighted 3.)i click home button and it works and autosaves.
4.)close file reopen in nextcloud receive same error and must repeat steps 1-3 before editing file
any idea why this is happening?
Attachments
pic1.png
pic1.png (93.45 KiB) Viewed 1534 times
pic2.png
pic2.png (66.74 KiB) Viewed 1534 times
pic3.png
pic3.png (80.38 KiB) Viewed 1534 times

Post Reply