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”}}