nextcloud / richdocuments

📑 Collabora Online for Nextcloud
https://nextcloud.com/collaboraonline
349 stars 115 forks source link

After Nextcloud 26.0.5 update, both demo server and built-in CODE give "Could not establish connection to the Collabora Online server" #3108

Closed siccovansas closed 1 year ago

siccovansas commented 1 year ago

Describe the bug I use the built-in CODE server for Nextcloud Office, but after updating Nextcloud from 26.0.4 to 26.0.5 I noticed that Nextcloud Office not longer works and my logs are spammed with a GuzzleHTTP error. Switching to the demo server also gives the same error, but only when I try to open a document. See the logs for both below. Maybe it is (also) related to recent updates of Nextcloud Office and/or CODE?

Server details

Operating system: Ubuntu 20.04

Web server: Nginx

Database: Postgres

PHP version: 8.2.8

Nextcloud version: 26.0.5

Version of the richdocuments app: 8.0.3

Version of Collabora Online: 23.5.202

Logs:

#### Nextcloud log (data/nextcloud.log) When using built-in CODE: ``` [richdocuments] Error: GuzzleHttp\Exception\ConnectException: cURL error 6: getaddrinfo() thread failed to start (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://nextcloud.openstate.eu/custom_apps/richdocumentscode/proxy.php?req=/hosting/capabilities at <> 0. /var/www/html/3rdparty/guzzlehttp/guzzle/src/Handler/CurlFactory.php line 158 GuzzleHttp\Handler\CurlFactory::createRejection("*** sensitive parameters replaced ***") 1. /var/www/html/3rdparty/guzzlehttp/guzzle/src/Handler/CurlFactory.php line 110 GuzzleHttp\Handler\CurlFactory::finishError(["GuzzleHttp\\Handler\\CurlHandler"], "*** sensitive parameters replaced ***", ["GuzzleHttp\\Handler\\CurlFactory"]) 2. /var/www/html/3rdparty/guzzlehttp/guzzle/src/Handler/CurlHandler.php line 47 GuzzleHttp\Handler\CurlFactory::finish(["GuzzleHttp\\Handler\\CurlHandler"], "*** sensitive parameters replaced ***", ["GuzzleHttp\\Handler\\CurlFactory"]) 3. /var/www/html/lib/private/Http/Client/DnsPinMiddleware.php line 114 GuzzleHttp\Handler\CurlHandler->__invoke("*** sensitive parameters replaced ***", "*** sensitive parameters replaced ***") 4. /var/www/html/3rdparty/guzzlehttp/guzzle/src/PrepareBodyMiddleware.php line 35 OC\Http\Client\DnsPinMiddleware->OC\Http\Client\{closure}("*** sensitive parameters replaced ***") 5. /var/www/html/3rdparty/guzzlehttp/guzzle/src/Middleware.php line 31 GuzzleHttp\PrepareBodyMiddleware->__invoke("*** sensitive parameters replaced ***", "*** sensitive parameters replaced ***") 6. /var/www/html/3rdparty/guzzlehttp/guzzle/src/RedirectMiddleware.php line 71 GuzzleHttp\Middleware::GuzzleHttp\{closure}("*** sensitive parameters replaced ***") 7. /var/www/html/3rdparty/guzzlehttp/guzzle/src/Middleware.php line 63 GuzzleHttp\RedirectMiddleware->__invoke("*** sensitive parameters replaced ***", "*** sensitive parameters replaced ***") 8. /var/www/html/3rdparty/guzzlehttp/guzzle/src/HandlerStack.php line 75 GuzzleHttp\Middleware::GuzzleHttp\{closure}("*** sensitive parameters replaced ***") 9. /var/www/html/3rdparty/guzzlehttp/guzzle/src/Client.php line 331 GuzzleHttp\HandlerStack->__invoke("*** sensitive parameters replaced ***", "*** sensitive parameters replaced ***") 10. /var/www/html/3rdparty/guzzlehttp/guzzle/src/Client.php line 168 GuzzleHttp\Client->transfer("*** sensitive parameters replaced ***", "*** sensitive parameters replaced ***") 11. /var/www/html/3rdparty/guzzlehttp/guzzle/src/Client.php line 187 GuzzleHttp\Client->requestAsync("*** sensitive parameters replaced ***") 12. /var/www/html/lib/private/Http/Client/Client.php line 226 GuzzleHttp\Client->request("*** sensitive parameters replaced ***", "https://nextclo ... s", [false,45,[true] ... e]) 13. /var/www/html/custom_apps/richdocuments/lib/Service/CapabilitiesService.php line 135 OC\Http\Client\Client->get("https://nextclo ... s", [45,[true],false]) 14. /var/www/html/custom_apps/richdocuments/lib/Service/CapabilitiesService.php line 73 OCA\Richdocuments\Service\CapabilitiesService->refetch() 15. /var/www/html/custom_apps/richdocuments/lib/AppInfo/Application.php line 80 OCA\Richdocuments\Service\CapabilitiesService->getCapabilities() 16. /var/www/html/lib/private/AppFramework/Bootstrap/FunctionInjector.php line 45 OCA\Richdocuments\AppInfo\Application->OCA\Richdocuments\AppInfo\{closure}("*** sensitive parameters replaced ***") 17. /var/www/html/lib/private/AppFramework/Bootstrap/BootContext.php line 50 OC\AppFramework\Bootstrap\FunctionInjector->injectFn(["Closure"]) 18. /var/www/html/custom_apps/richdocuments/lib/AppInfo/Application.php line 79 OC\AppFramework\Bootstrap\BootContext->injectFn(["Closure"]) 19. /var/www/html/lib/private/AppFramework/Bootstrap/Coordinator.php line 200 OCA\Richdocuments\AppInfo\Application->boot(["OC\\AppFramewo ... "]) 20. /var/www/html/lib/private/legacy/OC_App.php line 213 OC\AppFramework\Bootstrap\Coordinator->bootApp("richdocuments") 21. /var/www/html/lib/private/legacy/OC_App.php line 141 OC_App::loadApp("richdocuments") 22. /var/www/html/lib/base.php line 1045 OC_App::loadApps() 23. /var/www/html/index.php line 36 OC::handleRequest() GET /apps/logreader/get?offset=0&count=50&levels=11111 from 185.61.53.208 by sicco at 2023-08-14T10:57:29+00:00 ``` When using a demo server: ``` [richdocuments] Error: GuzzleHttp\Exception\ConnectException: cURL error 6: getaddrinfo() thread failed to start (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://demo.eu.collaboraonline.com/hosting/discovery at <> 0. /var/www/html/3rdparty/guzzlehttp/guzzle/src/Handler/CurlFactory.php line 158 GuzzleHttp\Handler\CurlFactory::createRejection("*** sensitive parameters replaced ***") 1. /var/www/html/3rdparty/guzzlehttp/guzzle/src/Handler/CurlFactory.php line 110 GuzzleHttp\Handler\CurlFactory::finishError(["GuzzleHttp\\Handler\\CurlHandler"], "*** sensitive parameters replaced ***", ["GuzzleHttp\\Handler\\CurlFactory"]) 2. /var/www/html/3rdparty/guzzlehttp/guzzle/src/Handler/CurlHandler.php line 47 GuzzleHttp\Handler\CurlFactory::finish(["GuzzleHttp\\Handler\\CurlHandler"], "*** sensitive parameters replaced ***", ["GuzzleHttp\\Handler\\CurlFactory"]) 3. /var/www/html/lib/private/Http/Client/DnsPinMiddleware.php line 114 GuzzleHttp\Handler\CurlHandler->__invoke("*** sensitive parameters replaced ***", "*** sensitive parameters replaced ***") 4. /var/www/html/3rdparty/guzzlehttp/guzzle/src/PrepareBodyMiddleware.php line 35 OC\Http\Client\DnsPinMiddleware->OC\Http\Client\{closure}("*** sensitive parameters replaced ***") 5. /var/www/html/3rdparty/guzzlehttp/guzzle/src/Middleware.php line 31 GuzzleHttp\PrepareBodyMiddleware->__invoke("*** sensitive parameters replaced ***", "*** sensitive parameters replaced ***") 6. /var/www/html/3rdparty/guzzlehttp/guzzle/src/RedirectMiddleware.php line 71 GuzzleHttp\Middleware::GuzzleHttp\{closure}("*** sensitive parameters replaced ***") 7. /var/www/html/3rdparty/guzzlehttp/guzzle/src/Middleware.php line 63 GuzzleHttp\RedirectMiddleware->__invoke("*** sensitive parameters replaced ***", "*** sensitive parameters replaced ***") 8. /var/www/html/3rdparty/guzzlehttp/guzzle/src/HandlerStack.php line 75 GuzzleHttp\Middleware::GuzzleHttp\{closure}("*** sensitive parameters replaced ***") 9. /var/www/html/3rdparty/guzzlehttp/guzzle/src/Client.php line 331 GuzzleHttp\HandlerStack->__invoke("*** sensitive parameters replaced ***", "*** sensitive parameters replaced ***") 10. /var/www/html/3rdparty/guzzlehttp/guzzle/src/Client.php line 168 GuzzleHttp\Client->transfer("*** sensitive parameters replaced ***", "*** sensitive parameters replaced ***") 11. /var/www/html/3rdparty/guzzlehttp/guzzle/src/Client.php line 187 GuzzleHttp\Client->requestAsync("*** sensitive parameters replaced ***") 12. /var/www/html/lib/private/Http/Client/Client.php line 226 GuzzleHttp\Client->request("*** sensitive parameters replaced ***", "https://demo.eu ... y", ["/var/www/html/ ... e]) 13. /var/www/html/custom_apps/richdocuments/lib/WOPI/DiscoveryManager.php line 89 OC\Http\Client\Client->get("https://demo.eu ... y", [45,[true]]) 14. /var/www/html/custom_apps/richdocuments/lib/WOPI/DiscoveryManager.php line 61 OCA\Richdocuments\WOPI\DiscoveryManager->fetchFromRemote() 15. /var/www/html/custom_apps/richdocuments/lib/WOPI/Parser.php line 41 OCA\Richdocuments\WOPI\DiscoveryManager->get() 16. /var/www/html/custom_apps/richdocuments/lib/TokenManager.php line 207 OCA\Richdocuments\WOPI\Parser->getUrlSrc("application/vnd ... n") 17. /var/www/html/custom_apps/richdocuments/lib/Controller/DocumentController.php line 172 OCA\Richdocuments\TokenManager->getToken("*** sensitive parameters replaced ***") 18. /var/www/html/lib/private/AppFramework/Http/Dispatcher.php line 230 OCA\Richdocuments\Controller\DocumentController->index("*** sensitive parameters replaced ***", "/test-slide-drag.odp") 19. /var/www/html/lib/private/AppFramework/Http/Dispatcher.php line 137 OC\AppFramework\Http\Dispatcher->executeController(["OCA\\Richdocum ... "], "index") 20. /var/www/html/lib/private/AppFramework/App.php line 183 OC\AppFramework\Http\Dispatcher->dispatch(["OCA\\Richdocum ... "], "index") 21. /var/www/html/lib/private/Route/Router.php line 315 OC\AppFramework\App::main("OCA\\Richdocume ... r", "index", ["OC\\AppFramewo ... "], ["richdocuments.document.index"]) 22. /var/www/html/lib/base.php line 1065 OC\Route\Router->match("/apps/richdocuments/index") 23. /var/www/html/index.php line 36 OC::handleRequest() GET /apps/richdocuments/index?fileId=43141&requesttoken=NPfvVGOAnoBZbx09EFoKS0Nss3tvMFReXU%2F05pKJlZw%3D%3AR7SGNRKy%2FdoIAkcPIyk7EQxUnB0Xei1nHBWkovq48v8%3D&path=%2Ftest-slide-drag.odp from 185.61.53.208 by sicco at 2023-08-14T11:04:09+00:00 ``` #### Browser log ``` Insert your browser log here, this could for example include: a) The javascript console log b) The network log c) ... ```
siccovansas commented 1 year ago

Just updated to Nextcloud 27.0.2 and the problem remains.

siccovansas commented 1 year ago

Something else is going on; even just running curl from within the Nextcloud container will give this error. Ignore this issue.

My issue seems to be related to using an older Docker version and the newer Nextcloud images.