OnlyOffice issues with community documentserver

I have been looking around for a similar issue but haven’t found anything that might help me in this matter, so im trying to explain this to the best of my effort.

I recently installed OnlyOffice integration app along with the community document server app and everything worked fine, i have since then had some issues with documents not saving in the correct path. I read some where that it could be solved through installing a separate document server, so i did. Installation process for onlyoffice were a bit tricky as i had to get a selfsigned cert and in the meantime i managed to circumvent the problem using the onlyoffice desktop software as we are collaborating locally in the office. How ever, i now have a problem with the desktop client of things also, and we can’t edit anything at all from the server.

The installation of the document server says “Welcome” and as i connect i got the issue of self-signed certificate (the standalone document server machine is not accessible from anything other than the Nextcloud instance (it answers to ping) and we can browse the server locally through it’s ip) it does however not accept the certificate so i added:

'onlyoffice' => array ( 'verify_peer_off' => TRUE, ), );

in nextcloud/config/config.php

it still gives me a ssl error and i tried to manually add the selfsigned cert in nextcloud trough

sudo -u www-data php occ security:certificates:import my-path/fullchain.pem

and it gives me and error of “certifcate not found” even tho i can see the certificate trough “ls /my-path/”

i then tried to change back to the original text in the onlyoffice settings and same issue there:

Error when trying to connect (cURL error 60: SSL certificate problem: self signed certificate (see https://curl.haxx.se/libcurl/c/libcurl-errors.html))

I tried with both “” and the url of the actual app path https://mydomain.com/index.php/apps/documentserver_community/

and get the same SSL error.

this is the log message i get:

{"reqId":"jEzu0WsEE4xK4j9XfifL","level":3,"time":"2020-08-03T09:50:10+00:00","remoteAddr":"193.183.116.34","user":"mskontakt","app":"onlyoffice","method":"PUT","url":"/apps/onlyoffice/ajax/settings/address","message":{"Exception":"GuzzleHttp\\Exception\\RequestException","Message":"cURL error 60: SSL certificate problem: self signed certificate (see https://curl.haxx.se/libcurl/c/libcurl-errors.html)","Code":0,"Trace":[{"file":"/var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Handler/CurlFactory.php","line":155,"function":"createRejection","class":"GuzzleHttp\\Handler\\CurlFactory","type":"::","args":[{"sink":{"__class__":"GuzzleHttp\\Psr7\\Stream"},"headers":[],"response":null,"request":{"__class__":"GuzzleHttp\\Psr7\\Request"},"options":{"verify":"/nextdata01/files_external/rootcerts.crt","timeout":60,"synchronous":true,"handler":{"__class__":"GuzzleHttp\\HandlerStack"},"allow_redirects":{"max":5,"protocols":["http","https"],"strict":false,"referer":false,"track_redirects":false},"http_errors":true,"decode_content":true,"cookies":false,"idn_conversion":true},"errno":60,"onHeadersException":null,"__class__":"GuzzleHttp\\Handler\\EasyHandle"},{"errno":60,"error":"SSL certificate problem: self signed certificate","appconnect_time":0,"url":"https://fs1.mspot.nu/index.php/apps/documentserver_community/healthcheck","content_type":null,"http_code":0,"header_size":0,"request_size":0,"filetime":-1,"ssl_verify_result":18,"redirect_count":0,"total_time":0.016126,"namelookup_time":0.004171,"connect_time":0.004573,"pretransfer_time":0,"size_upload":0,"size_download":0,"speed_download":0,"speed_upload":0,"download_content_length":-1,"upload_content_length":-1,"starttransfer_time":0,"redirect_time":0,"redirect_url":"","primary_ip":"193.183.116.36","certinfo":[],"primary_port":443,"local_ip":"10.5.25.61","local_port":54844,"http_version":0,"protocol":2,"ssl_verifyresult":0,"scheme":"HTTPS","curl_version":"7.58.0"}]},{"file":"/var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Handler/CurlFactory.php","line":105,"function":"finishError","class":"GuzzleHttp\\Handler\\CurlFactory","type":"::","args":[{"__class__":"GuzzleHttp\\Handler\\CurlHandler"},{"sink":{"__class__":"GuzzleHttp\\Psr7\\Stream"},"headers":[],"response":null,"request":{"__class__":"GuzzleHttp\\Psr7\\Request"},"options":{"verify":"/nextdata01/files_external/rootcerts.crt","timeout":60,"synchronous":true,"handler":{"__class__":"GuzzleHttp\\HandlerStack"},"allow_redirects":{"max":5,"protocols":["http","https"],"strict":false,"referer":false,"track_redirects":false},"http_errors":true,"decode_content":true,"cookies":false,"idn_conversion":true},"errno":60,"onHeadersException":null,"__class__":"GuzzleHttp\\Handler\\EasyHandle"},{"__class__":"GuzzleHttp\\Handler\\CurlFactory"}]},{"file":"/var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Handler/CurlHandler.php","line":43,"function":"finish","class":"GuzzleHttp\\Handler\\CurlFactory","type":"::","args":[{"__class__":"GuzzleHttp\\Handler\\CurlHandler"},{"sink":{"__class__":"GuzzleHttp\\Psr7\\Stream"},"headers":[],"response":null,"request":{"__class__":"GuzzleHttp\\Psr7\\Request"},"options":{"verify":"/nextdata01/files_external/rootcerts.crt","timeout":60,"synchronous":true,"handler":{"__class__":"GuzzleHttp\\HandlerStack"},"allow_redirects":{"max":5,"protocols":["http","https"],"strict":false,"referer":false,"track_redirects":false},"http_errors":true,"decode_content":true,"cookies":false,"idn_conversion":true},"errno":60,"onHeadersException":null,"__class__":"GuzzleHttp\\Handler\\EasyHandle"},{"__class__":"GuzzleHttp\\Handler\\CurlFactory"}]},{"file":"/var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Handler/Proxy.php","line":28,"function":"__invoke","class":"GuzzleHttp\\Handler\\CurlHandler","type":"->","args":["*** sensitive parameter replaced ***","*** sensitive parameter replaced ***"]},{"file":"/var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Handler/Proxy.php","line":51,"function":"GuzzleHttp\\Handler\\{closure}","class":"GuzzleHttp\\Handler\\Proxy","type":"::","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/PrepareBodyMiddleware.php","line":37,"function":"GuzzleHttp\\Handler\\{closure}","class":"GuzzleHttp\\Handler\\Proxy","type":"::","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Middleware.php","line":29,"function":"__invoke","class":"GuzzleHttp\\PrepareBodyMiddleware","type":"->","args":["*** sensitive parameter replaced ***","*** sensitive parameter replaced ***"]},{"file":"/var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/RedirectMiddleware.php","line":70,"function":"GuzzleHttp\\{closure}","class":"GuzzleHttp\\Middleware","type":"::","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Middleware.php","line":59,"function":"__invoke","class":"GuzzleHttp\\RedirectMiddleware","type":"->","args":["*** sensitive parameter replaced ***","*** sensitive parameter replaced ***"]},{"file":"/var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/HandlerStack.php","line":71,"function":"GuzzleHttp\\{closure}","class":"GuzzleHttp\\Middleware","type":"::","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Client.php","line":361,"function":"__invoke","class":"GuzzleHttp\\HandlerStack","type":"->","args":["*** sensitive parameter replaced ***","*** sensitive parameter replaced ***"]},{"file":"/var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Client.php","line":163,"function":"transfer","class":"GuzzleHttp\\Client","type":"->","args":["*** sensitive parameter replaced ***","*** sensitive parameter replaced ***"]},{"file":"/var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Client.php","line":183,"function":"requestAsync","class":"GuzzleHttp\\Client","type":"->","args":["get",{"__class__":"GuzzleHttp\\Psr7\\Uri"},{"verify":"/nextdata01/files_external/rootcerts.crt","timeout":60,"synchronous":true,"handler":{"__class__":"GuzzleHttp\\HandlerStack"},"allow_redirects":{"max":5,"protocols":["http","https"],"strict":false,"referer":false,"track_redirects":false},"http_errors":true,"decode_content":true,"cookies":false,"idn_conversion":true,"_conditional":{"User-Agent":"GuzzleHttp/6.5.1 curl/7.58.0 PHP/7.3.18-1+ubuntu18.04.1+deb.sury.org+1"}}]},{"file":"/var/www/nextcloud/lib/private/Http/Client/Client.php","line":228,"function":"request","class":"GuzzleHttp\\Client","type":"->","args":["get","https://fs1.mspot.nu/index.php/apps/documentserver_community/healthcheck",{"verify":"/nextdata01/files_external/rootcerts.crt","timeout":60,"headers":{"User-Agent":"Nextcloud Server Crawler"},"synchronous":true}]},{"file":"/var/www/nextcloud/apps/onlyoffice/lib/documentservice.php","line":367,"function":"get","class":"OC\\Http\\Client\\Client","type":"->","args":["https://fs1.mspot.nu/index.php/apps/documentserver_community/healthcheck",{"timeout":60}]},{"file":"/var/www/nextcloud/apps/onlyoffice/lib/documentservice.php","line":256,"function":"Request","class":"OCA\\Onlyoffice\\DocumentService","type":"->","args":["https://fs1.mspot.nu/index.php/apps/documentserver_community/healthcheck"]},{"file":"/var/www/nextcloud/apps/onlyoffice/controller/settingscontroller.php","line":292,"function":"HealthcheckRequest","class":"OCA\\Onlyoffice\\DocumentService","type":"->","args":[]},{"file":"/var/www/nextcloud/apps/onlyoffice/controller/settingscontroller.php","line":171,"function":"checkDocServiceUrl","class":"OCA\\Onlyoffice\\Controller\\SettingsController","type":"->","args":[]},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":170,"function":"SaveAddress","class":"OCA\\Onlyoffice\\Controller\\SettingsController","type":"->","args":["https://fs1.mspot.nu/index.php/apps/documentserver_community/","https://fs1.mspot.nu/index.php/apps/documentserver_community/","https://fs1.mspot.nu/index.php/apps/documentserver_community/","",false]},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":100,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\Onlyoffice\\Controller\\SettingsController"},"saveAddress"]},{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":137,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\Onlyoffice\\Controller\\SettingsController"},"saveAddress"]},{"file":"/var/www/nextcloud/lib/private/AppFramework/Routing/RouteActionHandler.php","line":47,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["SettingsController","saveAddress",{"__class__":"OC\\AppFramework\\DependencyInjection\\DIContainer"},{"_route":"onlyoffice.settings.save_address"}]},{"function":"__invoke","class":"OC\\AppFramework\\Routing\\RouteActionHandler","type":"->","args":[{"_route":"onlyoffice.settings.save_address"}]},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":297,"function":"call_user_func","args":[{"__class__":"OC\\AppFramework\\Routing\\RouteActionHandler"},{"_route":"onlyoffice.settings.save_address"}]},{"file":"/var/www/nextcloud/lib/base.php","line":1007,"function":"match","class":"OC\\Route\\Router","type":"->","args":["/apps/onlyoffice/ajax/settings/address"]},{"file":"/var/www/nextcloud/index.php","line":37,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Handler/CurlFactory.php","Line":201,"CustomMessage":"--"},"userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.105 Safari/537.36 Edg/84.0.522.49","version":"19.0.1.1","id":"5f27de6cbc5bb"}

and as you can tell, i have no idea what’s gone wrong or where it’s gone wrong.

Anything that could help is appreciated as our office relies on a lot of collaboration editing. (i tried switching to a CRM but some just thought it was confusing).