Nexctloud connector stopped working

Document Server version: 8.0.1
Connector version: 8.2.4
DMS (platform) version:
OS: Ubuntu
Browser version: Firefox 122

Hello!
Connector is not working with the message: “Error when trying to connect (Error occurred in the document service: Error while downloading the document file to be converted.) (version 8.0.1.31)”

On the DS side I see the error: "[2024-03-06T08:46:31.697] [ERROR] [localhost] [conv_check_1010098590_docx] [userId] nodeJS - error downloadFile:url=http://10.9.9.3/apps/onlyoffice/empty?doc=eJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhY3Rpb24iOiJlbXB0eSJ9.to7r0HOAVsJpw1a2HRLSxoNzoEs9mosxor3NvmCK8s0;attempt=3;code:null;connect:null Error: Error response:statusCode:403; headers:{“server”:“nginx”,“date”:“Wed, 06 Mar 2024 08:46:25 GMT”,“content-type”:“application/json; charset=utf-8”,“content-length”:“27”,“connecion”:“keep-alive”,“set-cookie”:[“oc_sessionPassphrase=cTpjANL0xxccqhs8x4oTnZTAlx74A%2F1qaIT8XVT8Q4h8kp6hGmbOU18HjuBQbN47sL%2BQ7I0fcbtTaj5PU1zQCd%2B%2FqB3tslJlzpoy6ezisHCrdr5q%2FMj2hRvcYNRzdMr; path=/; HttpOnly; SameSite=Lax”,“nc_sameSiteCookielax=true; path=/; httponly;expires=Fri, 31-Dec-2100 23:59:59 GMT; SameSite=ax”,“nc_sameSiteCookiestrict=true; path=/; httponly;expires=Fri, 31-Dec-2100 23:59:59 GMT; SameSite=strict”,“ocy4rki19yaq=ca518e86a86484431227d6f3ceea689a; pat=/; HttpOnly; SameSite=Lax”],“expires”:“Thu, 19 Nov 1981 08:52:00 GMT”,“pragma”:“no-cache”,“cache-control”:“no-cache, no-store, must-revalidate”,“x-request-id”“dAEABsvBqnbiuohxlCTg”,“content-security-policy”:“default-src ‘none’;base-uri ‘none’;manifest-src ‘self’;frame-ancestors ‘none’”,“feature-policy”:“autoplay ‘noe’;camera ‘none’;fullscreen ‘none’;geolocation ‘none’;microphone ‘none’;payment ‘none’”,“x-robots-tag”:“noindex, nofollow, noindex, nofollow”,“referrer-policy”“no-referrer”,“x-content-type-options”:“nosniff”,“x-download-options”:“noopen”,“x-frame-options”:“SAMEORIGIN”,“x-permitted-cross-domain-policies”:“none”,“x-xssprotection”:“1; mode=block”};
at Request.fResponse (/snapshot/server/Common/sources/utils.js)
at Request.emit (node:events:527:28)
at Request.onRequestResponse (/snapshot/server/Common/node_modules/request/request.js:1066:10)
at ClientRequest.emit (node:events:527:28)
at HTTPParser.parserOnIncomingClient (node:_http_client:631:27)
at HTTPParser.parserOnHeadersComplete (node:_http_common:128:17)
at Socket.socketOnData (node:_http_client:494:22)
at Socket.emit (node:events:527:28)
at addChunk (node:internal/streams/readable:315:12)
at readableAddChunk (node:internal/streams/readable:289:9)
at Socket.Readable.push (node:internal/streams/readable:228:10)
at TCP.onStreamRead (node:internal/stream_base_commons:190:23)
"

10.9.9.3 - private address of Nextcloud
Clients access Nextcloud via public name trough reverse proxy and Nextcloud access DS via private name through reverse proxy.

Same for me.
I got my nextcloud hosted at hetzner with onlyoffice behind the apache proxy. Both have ssl enabled and when i try to connect with the docs server the Error message is: “Fehler beim Anschließen (Im Dokumentenservice ist ein Fehler aufgetreten: Error while downloading the document file to be converted.) (version 8.0.1.31)” And in the Error Logs from the converter i see the following message:

[2024-03-11T20:38:45.389] [ERROR] [localhost] [conv_check_855212067_docx] [userId] nodeJS - error downloadFile:url=https://nx>
at Request.fResponse (/snapshot/server/Common/sources/utils.js)
at Request.emit (node:events:527:28)
at Request.onRequestResponse (/snapshot/server/Common/node_modules/request/request.js:1066:10)
at ClientRequest.emit (node:events:527:28)
at HTTPParser.parserOnIncomingClient (node:_http_client:631:27)
at HTTPParser.parserOnHeadersComplete (node:_http_common:128:17)
at TLSSocket.socketOnData (node:_http_client:494:22)
at TLSSocket.emit (node:events:527:28)
at addChunk (node:internal/streams/readable:315:12)
at readableAddChunk (node:internal/streams/readable:289:9)
at TLSSocket.Readable.push (node:internal/streams/readable:228:10)
at TLSWrap.onStreamRead (node:internal/stream_base_commons:190:23)
[2024-03-11T20:38:46.436] [ERROR] [localhost] [conv_check_855212067_docx] [userId] nodeJS - error downloadFile:url=https://nx>
at Request.fResponse (/snapshot/server/Common/sources/utils.js)
at Request.emit (node:events:527:28)
at Request.onRequestResponse (/snapshot/server/Common/node_modules/request/request.js:1066:10)
at ClientRequest.emit (node:events:527:28)
at HTTPParser.parserOnIncomingClient (node:_http_client:631:27)
at HTTPParser.parserOnHeadersComplete (node:_http_common:128:17)
at TLSSocket.socketOnData (node:_http_client:494:22)
at TLSSocket.emit (node:events:527:28)
at addChunk (node:internal/streams/readable:315:12)
at readableAddChunk (node:internal/streams/readable:289:9)
at TLSSocket.Readable.push (node:internal/streams/readable:228:10)
at TLSWrap.onStreamRead (node:internal/stream_base_commons:190:23)

Thanks in advance.
Jonas

Hello @Semyon @HeldvonKosmos

Usually status code 403 is returned when incorrect JWT credentials are used or securelink mismatches.
Depending on your installation type you can check JWT credentials in local.json config that is located in:

  • for Docker and DEB/RPM packages in /etc/onlyoffice/documentserver/local.json (for Docker inside the container with Document Server);
  • for Windows in %ProgramFiles%\ONLYOFFICE\DocumentServer\config\local.json.

As for the securelink, you have to execute script to automatically reset values:

  • for Docker and DEB/RPM packages execute sudo bash /usr/bin/documentserver-update-securelink.sh (for Docker execute from inside the container with Document Server);
  • for Windows execute %ProgramFiles%\ONLYOFFICE\DocumentServer\bin\documentserver-update-securelink.bat.

Note that error in your log differs from the one that @Semyon has. Please create a separate thread for your issue to avoid mixing up different discussions.