Nextcloud version: 18.0.2
Operating system and version: Debian 10.3
The issue you are facing:
I canāt get Collabora to work with Nextcloud. I have my Letās Encrypt, nginx, Nextcloud, and Collabora images all setup with docker-compose.
Steps to replicate it:
- Setup Collabora server with docker-compose
- Add its URL to the Collabora Online settings URL field
The output of your Nextcloud log in Admin > Logging:
[richdocuments] Error: GuzzleHttp\Exception\ConnectException: cURL error 6: Could not resolve host: collabora (see http://curl.haxx.se/libcurl/c/libcurl-errors.html) at <<closure>>
0. /config/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Handler/CurlFactory.php line 149
GuzzleHttp\Handler\CurlFactory::createRejection(GuzzleHttp\Handl ... l}, {errno: 6,error: ... 8})
1. /config/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Handler/CurlFactory.php line 102
GuzzleHttp\Handler\CurlFactory::finishError(GuzzleHttp\Handler\CurlHandler {}, GuzzleHttp\Handl ... l}, GuzzleHttp\Handler\CurlFactory {})
2. /config/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Handler/CurlHandler.php line 43
GuzzleHttp\Handler\CurlFactory::finish(GuzzleHttp\Handler\CurlHandler {}, GuzzleHttp\Handl ... l}, GuzzleHttp\Handler\CurlFactory {})
3. /config/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Handler/Proxy.php line 28
GuzzleHttp\Handler\CurlHandler->__invoke("*** sensitive parameter replaced ***", "*** sensitive parameter replaced ***")
4. /config/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Handler/Proxy.php line 51
GuzzleHttp\Handler\Proxy::GuzzleHttp\Handler\{closure}("*** sensitive parameters replaced ***")
5. /config/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/PrepareBodyMiddleware.php line 37
GuzzleHttp\Handler\Proxy::GuzzleHttp\Handler\{closure}("*** sensitive parameters replaced ***")
6. /config/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Middleware.php line 30
GuzzleHttp\PrepareBodyMiddleware->__invoke("*** sensitive parameter replaced ***", "*** sensitive parameter replaced ***")
7. /config/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/RedirectMiddleware.php line 70
GuzzleHttp\Middleware::GuzzleHttp\{closure}("*** sensitive parameters replaced ***")
8. /config/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Middleware.php line 60
GuzzleHttp\RedirectMiddleware->__invoke("*** sensitive parameter replaced ***", "*** sensitive parameter replaced ***")
9. /config/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/HandlerStack.php line 67
GuzzleHttp\Middleware::GuzzleHttp\{closure}("*** sensitive parameters replaced ***")
10. /config/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Client.php line 277
GuzzleHttp\HandlerStack->__invoke("*** sensitive parameter replaced ***", "*** sensitive parameter replaced ***")
11. /config/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Client.php line 125
GuzzleHttp\Client->transfer("*** sensitive parameter replaced ***", "*** sensitive parameter replaced ***")
12. /config/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Client.php line 131
GuzzleHttp\Client->requestAsync("get", GuzzleHttp\Psr7\Uri {}, {verify: "/data/ ... }})
13. /config/www/nextcloud/lib/private/Http/Client/Client.php line 149
GuzzleHttp\Client->request("get", "collabora:9980/hosting/discovery", {proxy: null,ver ... e})
14. /config/www/nextcloud/apps/richdocuments/lib/WOPI/DiscoveryManager.php line 106
OC\Http\Client\Client->get("collabora:9980/hosting/discovery", {timeout: 5})
15. /config/www/nextcloud/apps/richdocuments/lib/WOPI/DiscoveryManager.php line 78
OCA\Richdocuments\WOPI\DiscoveryManager->fetchFromRemote()
16. /config/www/nextcloud/apps/richdocuments/lib/WOPI/Parser.php line 41
OCA\Richdocuments\WOPI\DiscoveryManager->get()
17. /config/www/nextcloud/apps/richdocuments/lib/TokenManager.php line 196
OCA\Richdocuments\WOPI\Parser->getUrlSrc("application/vnd.oasis.opendocument.text")
18. /config/www/nextcloud/apps/richdocuments/lib/Controller/DocumentController.php line 236
OCA\Richdocuments\TokenManager->getToken("*** sensitive parameters replaced ***")
19. /config/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php line 170
OCA\Richdocuments\Controller\DocumentController->index("*** sensitive parameter replaced ***")
20. /config/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php line 99
OC\AppFramework\Http\Dispatcher->executeController(OCA\Richdocument ... {}, "index")
21. /config/www/nextcloud/lib/private/AppFramework/App.php line 125
OC\AppFramework\Http\Dispatcher->dispatch(OCA\Richdocument ... {}, "index")
22. /config/www/nextcloud/lib/private/AppFramework/Routing/RouteActionHandler.php line 47
OC\AppFramework\App::main("OCA\\Richdocume ... r", "index", OC\AppFramework\ ... {}, {_route: "richdocuments.document.index"})
23. <<closure>>
OC\AppFramework\Routing\RouteActionHandler->__invoke({_route: "richdocuments.document.index"})
24. /config/www/nextcloud/lib/private/Route/Router.php line 299
call_user_func(OC\AppFramework\ ... {}, {_route: "richdocuments.document.index"})
25. /config/www/nextcloud/lib/base.php line 1008
OC\Route\Router->match("/apps/richdocuments/index")
26. /config/www/nextcloud/index.php line 38
OC::handleRequest()
GET /apps/richdocuments/index?fileId=6131&requesttoken=Mdot1veJNNUIPkBJjmpRcWBDzCiI5V27rkYBN0%2FRgRM%3D%3ACJx%2B49jdQOdsTiV8xFghCFJsv2W9oRnWlyppGCuhzHc%3D
from 172.18.0.8 by cassidy at 2020-03-19T19:05:36+00:00
The output of your config.php file in /path/to/nextcloud
(make sure you remove any identifiable information!):
<?php
$CONFIG = array (
'memcache.local' => '\\OC\\Memcache\\APCu',
'datadirectory' => '/data',
'trusted_proxies' =>
array (
0 => 'letsencrypt',
),
'overwrite.cli.url' => 'https://cloud.mydomain.com/',
'overwritehost' => 'cloud.mydomain.com',
'overwriteprotocol' => 'https',
'trusted_domains' =>
array (
0 => 'cloud.mydomain.com',
),
'instanceid' => 'ocgiijrqfwz6',
'passwordsalt' => 'NXw7h7IPFgy2GGFSm7gE2wE3KNh3S7',
'secret' => 'EzZ/ttfZAEezIh3A5M7KNAnIWBC4bZBsLjj/I0VfqoP8ERPh',
'dbtype' => 'mysql',
'version' => '18.0.2.2',
'dbname' => 'nextcloud',
'dbhost' => 'mariadb:3306',
'dbport' => '',
'dbtableprefix' => 'oc_',
'dbuser' => 'nextcloud',
'dbpassword' => 'nextcloud',
'mysql.utf8mb4' => true,
'installed' => true,
'mail_from_address' => 'mail',
'mail_smtpmode' => 'smtp',
'mail_sendmailmode' => 'pipe',
'mail_domain' => 'mydomain.com',
'twofactor_enforced' => 'false',
'twofactor_enforced_groups' =>
array (
0 => 'admin',
),
'twofactor_enforced_excluded_groups' =>
array (
),
'maintenance' => false,
'theme' => '',
'loglevel' => 2,
'mail_smtpport' => '587',
'mail_smtphost' => 'postfix',
);