Cannot Connect nextcloud 30 and OnlyOffice 8.1.3-4

I have a VM running Ubuntu Server. I have nextcloud installed and also opeenoffice in the same server. Onlyoffice is installed as a docker container. When i try to connect onlyoffice in nextcloud when i press save to the connector settings i get the folllowing error: "Error when trying to connect (Error occurred in the document service: Error while downloading the document file to be converted.) (version 8.1.3.4) ". The token is correct as well as the address of onlyoffice. This is the error i get in onlyoffice log:

[2024-10-10T14:17:42.636] [ERROR] [localhost] [check_1049157041] [userId] nodeJS - error downloadFile:url=http://grmarfor.nato.int/nextcloud/index.php/apps/onlyoffice/empty?doc=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhY3Rpb24iOiJlbXB0eSJ9.WiEyH-9AammW1nI1DocsD5Kf_CDLSD7bXsaE3NkvuOo;attempt=3;code:null;connect:null Error: Error response: statusCode:403; headers:{“date”:“Thu, 10 Oct 2024 14:17:42 GMT”,“server”:“Apache/2.4.58 (Ubuntu)”,“set-cookie”:[“oc7rlw9aw4x6=pss52mdbn5rt639n8rl87a0orb; path=/nextcloud; HttpOnly; SameSite=Lax”,“oc_sessionPassphrase=Do9UBNB9vsvIVmjnUwtCbl1Kj872PvsiZTKcvmvIxq1BmLvqRlzTGlbnU4fL2K0QWBXLNinSrf4VXz6vmqRLUr%2BmRoUUlmBsjgd4sIHjuzd8xjZdJe3WBhNwL5jwPiPZ; path=/nextcloud; HttpOnly; SameSite=Lax”,“oc7rlw9aw4x6=pss52mdbn5rt639n8rl87a0orb; path=/nextcloud; HttpOnly; SameSite=Lax”,“nc_sameSiteCookielax=true; path=/nextcloud; httponly;expires=Fri, 31-Dec-2100 23:59:59 GMT; SameSite=lax”,“nc_sameSiteCookiestrict=true; path=/nextcloud; httponly;expires=Fri, 31-Dec-2100 23:59:59 GMT; SameSite=strict”,“oc7rlw9aw4x6=pss52mdbn5rt639n8rl87a0orb; path=/nextcloud; HttpOnly; SameSite=Lax”],“content-security-policy”:“default-src ‘none’;base-uri ‘none’;manifest-src ‘self’;frame-ancestors ‘none’”,“referrer-policy”:“no-referrer”,“x-content-type-options”:“nosniff”,“x-frame-options”:“SAMEORIGIN”,“x-permitted-cross-domain-policies”:“none”,“x-robots-tag”:“noindex, nofollow”,“x-xss-protection”:“1; mode=block”,“x-request-id”:“NwE9pO4KWDw283RpacIw”,“cache-control”:“no-cache, no-store, must-revalidate”,“feature-policy”:“autoplay ‘none’;camera ‘none’;fullscreen ‘none’;geolocation ‘none’;microphone ‘none’;payment ‘none’”,“content-length”:“27”,“keep-alive”:“timeout=5, max=100”,“connection”:“Keep-Alive”,“content-type”:“application/json; charset=utf-8”};
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)

And this the error in nextcloud log:

{“reqId”:“sFk1MbKlMMVHCehDLBxw”,“level”:3,“time”:“2024-10-10T14:40:44+00:00”,“remoteAddr”:“192.168.1.96”,“user”:“administrator”,“app”:“onlyoffice”,“method”:“PUT”,
“url”:“/nextcloud/index.php/apps/onlyoffice/ajax/settings/address”,“message”:“getConvertedUri on check error”,“userAgent”:“Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko)
Chrome/129.0.0.0 Safari/537.36 Edg/129.0.0.0”,“version”:“30.0.0.14”,“exception”:{“Exception”:“Exception”,“Message”:“Error occurred in the document service: Error while downloading the document file to
be converted.”,“Code”:0,“Trace”:[{“file”:“/var/www/html/nextcloud/apps/onlyoffice/lib/DocumentService.php”,“line”:104,“function”:“processConvServResponceError”,“class”:“OCA\Onlyoffice\DocumentService”,
“type”:“->”},{“file”:“/var/www/html/nextcloud/apps/onlyoffice/lib/DocumentService.php”,“line”:452,“function”:“getConvertedUri”,“class”:“OCA\Onlyoffice\DocumentService”,“type”:“->”},
{“file”:“/var/www/html/nextcloud/apps/onlyoffice/lib/Controller/SettingsController.php”,“line”:192,“function”:“checkDocServiceUrl”,“class”:“OCA\Onlyoffice\DocumentService”,“type”:“->”},
{“file”:“/var/www/html/nextcloud/lib/private/AppFramework/Http/Dispatcher.php”,“line”:208,“function”:“saveAddress”,“class”:“OCA\Onlyoffice\Controller\SettingsController”,“type”:“->”},
{“file”:“/var/www/html/nextcloud/lib/private/AppFramework/Http/Dispatcher.php”,“line”:114,“function”:“executeController”,“class”:“OC\AppFramework\Http\Dispatcher”,“type”:“->”},
{“file”:“/var/www/html/nextcloud/lib/private/AppFramework/App.php”,“line”:161,“function”:“dispatch”,“class”:“OC\AppFramework\Http\Dispatcher”,“type”:“->”},
{“file”:“/var/www/html/nextcloud/lib/private/Route/Router.php”,“line”:302,“function”:“main”,“class”:“OC\AppFramework\App”,“type”:“::”},{“file”:“/var/www/html/nextcloud/lib/base.php”,
“line”:1001,“function”:“match”,“class”:“OC\Route\Router”,“type”:“->”},{“file”:“/var/www/html/nextcloud/index.php”,“line”:24,“function”:“handleRequest”,“class”:“OC”,“type”:“::”}],
“File”:“/var/www/html/nextcloud/apps/onlyoffice/lib/DocumentService.php”,“Line”:257,“message”:“getConvertedUri on check error”,“CustomMessage”:“getConvertedUri on check error”}}

Hello @dinma440

Please specify version of the connector app currently used. Additionally, please make sure that Document Server works by navigating to its address in browser, enabling integrated test example according to the instruction on Welcome Page and creating/uploading a file there to open.

By the way, do you use any proxy in your environment?

I am seeing the same error when trying to connect nextcloud to onlyoffice. I have tested onlyoffice through the testing of the examples page. I can upload files there and also create new files. I am using truenas nextcloud through TrueCharts. I have tested access from onlyoffice with wget https://nextcloud.koe.plumbing. I have also testing the file connection from nextcloud and get this error. Error when trying to connect (Error occurred in the document service: Error while downloading the document file to be converted.) (version 8.1.3.4)
In the onlyoffice download I get the following error.
[2024-10-18T19:28:27.888] [ERROR] [localhost] [check_2088377870] [userId] nodeJS - error downloadFile:url=https://nextcloud.koe.plumbing/apps/onlyoffice/empty?doc=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhY3Rpb24iOiJlbXB0eSJ9.qX_6R5gELq9sXhzmj5llekjyPXUw6dZdnuM5SNQ2Wn4;attempt=3;code:null;connect:null Error: Error response: statusCode:403; headers:{“date”:“Sat, 19 Oct 2024 00:28:26 GMT”,“content-type”:“application/json; charset=utf-8”,“content-length”:“27”,“connection”:“keep-alive”,“cache-control”:“no-cache, no-store, must-revalidate”,“content-security-policy”:“default-src ‘none’;base-uri ‘none’;manifest-src ‘self’;frame-ancestors ‘none’”,“expires”:“Thu, 19 Nov 1981 08:52:00 GMT”,“feature-policy”:“autoplay ‘none’;camera ‘none’;fullscreen ‘none’;geolocation ‘none’;microphone ‘none’;payment ‘none’”,“pragma”:“no-cache”,“referrer-policy”:“same-origin”,“set-cookie”:[“oc_sessionPassphrase=05VKolwN01V4JiNfQUhR3Pi47svVn%2Fg2Nz1ejLw%2FAbdY2MaIr8OCV0rMfv%2BPZTlvaaGf%2F%2BYmhsaNnrouxtsZxNXwznKlAS7gispQtBidz%2FFAOTuyHiiiD4ZhDqGfXHsg; path=/; secure; HttpOnly; SameSite=Lax”,“__Host-nc_sameSiteCookielax=true; path=/; httponly;secure; expires=Fri, 31-Dec-2100 23:59:59 GMT; SameSite=lax”,“__Host-nc_sameSiteCookiestrict=true; path=/; httponly;secure; expires=Fri, 31-Dec-2100 23:59:59 GMT; SameSite=strict”,“ocnsuz2fwgvi=4b962b51ab6776c4d50de14aa35f9ca1; path=/; secure; HttpOnly; SameSite=Lax”],“strict-transport-security”:“max-age=63072000”,“vary”:“Accept-Encoding”,“x-content-type-options”:“nosniff”,“x-download-options”:“noopen”,“x-frame-options”:“SAMEORIGIN”,“x-permitted-cross-domain-policies”:“none”,“x-request-id”:“LZ6rSUrT6qZ8j3GsmnoA”,“x-robots-tag”:“noindex, nofollow, noindex, nofollow”,“x-xss-protection”:“1; mode=block”,“cf-cache-status”:“DYNAMIC”,“report-to”:"{"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/r
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 [as onIncoming] (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)

I am using the latest version of onlyoffice. I am using [Nextcloud Hub 8] (29.0.0)

Interestingly I turned off SELinux and I am able to connect. My guess is there is a configuration setting that is causing this issue. I cannot save files to the location. Is that possible???

First of all, please note that there is newer version of Document Server is available. I recommend updating it to see if the same issue occurs.

Also, you didn’t mention version of the connector for Nextcloud, and now you are saying that version of Nextcloud is 29, however, the title of the topic says 30. Can you elaborate on current environment?

Apologize. The version of Nextcloud is 29.0.0 with connector version 9.4.0

I installed in only office with the 1-click installer from the only office help center. Thought that would download the latest version of the application.

What is the best way to update/upgrade the application to the latest version

If I understand correctly, you’ve installed it via DEB/RPM packages, in this case please refer to this guide:
https://helpcenter.onlyoffice.com/installation/docs-community-update-linux.aspx

Document Server works fine. Also the test example works fine. Connector version 9.5. No proxy to my knowledge. I installed onlyoffice via docker. I do not have SELinux installed in my server.

Did you configure HTTPS or changed JWT settings?