I had no access to any terminal prompt / ssh with my provider so far, so I couldn’t run any occ commands. I’ve enabled it now and managed to change the collabora endpoint via the CLI.
I don’t have an external collabora endpoint set up, since I don’t have the capabilities of installing it with my hosting provider. So I opted for using the built-in CODE. But when doing so, I’m hitting issues too:
occ config:app:get richdocuments wopi_url https://my-domain/apps/richdocumentscode/proxy.php?req=
Error displayed on GUI:
Could not establish connection to the Collabora Online server. This might be due to a missing configuration of your web server. For more information, please visit: Connecting Collabora Online Single Click with Nginx
I followed the suggested link, which leads to a discussion on collaboraoffice.com, containing various suggestions. I would have hoped that this works out of the box, also when not using a docker-based installation. Also now, nextcloud is immensely slow and not usable at all. Am I expecting too much here? Shouldn’t this be treated as a (serious) bug?
Error in logs (there are also other ones, but looking pretty similar):
{"reqId":"sxF43r55t0RKi3jR5Wuw","level":3,"time":"2024-02-18 20:02:16","remoteAddr":"81.221.194.98","user":"nextcloud_admin","app":"richdocuments","method":"GET","url":"/index.php/apps/richdocuments/settings/fonts/Spectral-Regular.ttf/overview","message":"Failed to fetch the Collabora capabilities endpoint: cURL error 28: Operation timed out after 45001 milliseconds with 0 out of -1 bytes received (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://mydomain/apps/richdocumentscode/proxy.php?req=/hosting/capabilities","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:122.0) Gecko/20100101 Firefox/122.0","version":"28.0.2.5","exception":{"Exception":"GuzzleHttp\\Exception\\ConnectException","Message":"cURL error 28: Operation timed out after 45001 milliseconds with 0 out of -1 bytes received (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://mydomain/apps/richdocumentscode/proxy.php?req=/hosting/capabilities","Code":0,"Trace":[{"file":"/var/www/vhosts/mydomain/httpdocs/3rdparty/guzzlehttp/guzzle/src/Handler/CurlFactory.php","line":158,"function":"createRejection","class":"GuzzleHttp\\Handler\\CurlFactory","type":"::","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/vhosts/mydomain/httpdocs/3rdparty/guzzlehttp/guzzle/src/Handler/CurlFactory.php","line":110,"function":"finishError","class":"GuzzleHttp\\Handler\\CurlFactory","type":"::"},{"file":"/var/www/vhosts/mydomain/httpdocs/3rdparty/guzzlehttp/guzzle/src/Handler/CurlHandler.php","line":47,"function":"finish","class":"GuzzleHttp\\Handler\\CurlFactory","type":"::"},{"file":"/var/www/vhosts/mydomain/httpdocs/3rdparty/guzzlehttp/guzzle/src/Middleware.php","line":137,"function":"__invoke","class":"GuzzleHttp\\Handler\\CurlHandler","type":"->"},{"file":"/var/www/vhosts/mydomain/httpdocs/lib/private/Http/Client/DnsPinMiddleware.php","line":121,"function":"GuzzleHttp\\{closure}","class":"GuzzleHttp\\Middleware","type":"::","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/vhosts/mydomain/httpdocs/3rdparty/guzzlehttp/guzzle/src/PrepareBodyMiddleware.php","line":35,"function":"OC\\Http\\Client\\{closure}","class":"OC\\Http\\Client\\DnsPinMiddleware","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/vhosts/mydomain/httpdocs/3rdparty/guzzlehttp/guzzle/src/Middleware.php","line":31,"function":"__invoke","class":"GuzzleHttp\\PrepareBodyMiddleware","type":"->"},{"file":"/var/www/vhosts/mydomain/httpdocs/3rdparty/guzzlehttp/guzzle/src/RedirectMiddleware.php","line":71,"function":"GuzzleHttp\\{closure}","class":"GuzzleHttp\\Middleware","type":"::","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/vhosts/mydomain/httpdocs/3rdparty/guzzlehttp/guzzle/src/Middleware.php","line":63,"function":"__invoke","class":"GuzzleHttp\\RedirectMiddleware","type":"->"},{"file":"/var/www/vhosts/mydomain/httpdocs/3rdparty/guzzlehttp/guzzle/src/HandlerStack.php","line":75,"function":"GuzzleHttp\\{closure}","class":"GuzzleHttp\\Middleware","type":"::","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/vhosts/mydomain/httpdocs/3rdparty/guzzlehttp/guzzle/src/Client.php","line":331,"function":"__invoke","class":"GuzzleHttp\\HandlerStack","type":"->"},{"file":"/var/www/vhosts/mydomain/httpdocs/3rdparty/guzzlehttp/guzzle/src/Client.php","line":168,"function":"transfer","class":"GuzzleHttp\\Client","type":"->"},{"file":"/var/www/vhosts/mydomain/httpdocs/3rdparty/guzzlehttp/guzzle/src/Client.php","line":187,"function":"requestAsync","class":"GuzzleHttp\\Client","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/vhosts/mydomain/httpdocs/lib/private/Http/Client/Client.php","line":230,"function":"request","class":"GuzzleHttp\\Client","type":"->"},{"file":"/var/www/vhosts/mydomain/httpdocs/apps/richdocuments/lib/Service/CapabilitiesService.php","line":165,"function":"get","class":"OC\\Http\\Client\\Client","type":"->"},{"file":"/var/www/vhosts/provelo-sh-cloud.ch/httpdocs/apps/richdocuments/lib/Service/CapabilitiesService.php","line":73,"function":"fetchFromRemote","class":"OCA\\Richdocuments\\Service\\CapabilitiesService","type":"->"},{"file":"/var/www/vhosts/provelo-sh-cloud.ch/httpdocs/apps/richdocuments/lib/AppInfo/Application.php","line":96,"function":"getCapabilities","class":"OCA\\Richdocuments\\Service\\CapabilitiesService","type":"->"},{"file":"/var/www/vhosts/provelo-sh-cloud.ch/httpdocs/lib/private/AppFramework/Bootstrap/FunctionInjector.php","line":45,"function":"OCA\\Richdocuments\\AppInfo\\{closure}","class":"OCA\\Richdocuments\\AppInfo\\Application","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/vhosts/provelo-sh-cloud.ch/httpdocs/lib/private/AppFramework/Bootstrap/BootContext.php","line":50,"function":"injectFn","class":"OC\\AppFramework\\Bootstrap\\FunctionInjector","type":"->"},{"file":"/var/www/vhosts/provelo-sh-cloud.ch/httpdocs/apps/richdocuments/lib/AppInfo/Application.php","line":95,"function":"injectFn","class":"OC\\AppFramework\\Bootstrap\\BootContext","type":"->"},{"file":"/var/www/vhosts/provelo-sh-cloud.ch/httpdocs/lib/private/AppFramework/Bootstrap/Coordinator.php","line":200,"function":"boot","class":"OCA\\Richdocuments\\AppInfo\\Application","type":"->"},{"file":"/var/www/vhosts/provelo-sh-cloud.ch/httpdocs/lib/private/App/AppManager.php","line":434,"function":"bootApp","class":"OC\\AppFramework\\Bootstrap\\Coordinator","type":"->"},{"file":"/var/www/vhosts/provelo-sh-cloud.ch/httpdocs/lib/private/App/AppManager.php","line":213,"function":"loadApp","class":"OC\\App\\AppManager","type":"->"},{"file":"/var/www/vhosts/provelo-sh-cloud.ch/httpdocs/lib/private/legacy/OC_App.php","line":125,"function":"loadApps","class":"OC\\App\\AppManager","type":"->"},{"file":"/var/www/vhosts/provelo-sh-cloud.ch/httpdocs/lib/base.php","line":1049,"function":"loadApps","class":"OC_App","type":"::"},{"file":"/var/www/vhosts/provelo-sh-cloud.ch/httpdocs/index.php","line":39,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/vhosts/provelo-sh-cloud.ch/httpdocs/3rdparty/guzzlehttp/guzzle/src/Handler/CurlFactory.php","Line":210,"message":"Failed to fetch the Collabora capabilities endpoint: cURL error 28: Operation timed out after 45001 milliseconds with 0 out of -1 bytes received (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://provelo-sh-cloud.ch/apps/richdocumentscode/proxy.php?req=/hosting/capabilities","exception":{},"CustomMessage":"Failed to fetch the Collabora capabilities endpoint: cURL error 28: Operation timed out after 45001 milliseconds with 0 out of -1 bytes received (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://provelo-sh-cloud.ch/apps/richdocumentscode/proxy.php?req=/hosting/capabilities"}}
Thanks for any ideas!
Richard