Server change, Failed to load Collabora Online - please try again later

Hi,

I have change my server and I have transfered my nextcloud to the new server. The Problem is now, that I cant open documents with collabora office.

In Nextcloud I get the error:

 Failed to load Collabora Online - please try again later

In the Nextcloud Error Logs:

{"reqId":"cBPbjb0W0WeNpKb2KTz9","level":3,"time":"2019-02-15T08:54:47+00:00","remoteAddr":"89.XXX.XXX.49","user":"admin","app":"richdocuments","method":"GET","url":"\/index.php\/apps\/richdocuments\/index?fileId=74171&requesttoken=ADIHA7Vw5N3iu%2BawkaFKuGUHDEgmfScV8zhUjSvmGyw%3D%3AYwE%2FTc0HtamO2a7K%2FNgC%2BRxNZT9NDF5MpHoFxHGBTmI%3D","message":{"Exception":"GuzzleHttp\\Exception\\ConnectException","Message":"cURL error 35: error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol (see http:\/\/curl.haxx.se\/libcurl\/c\/libcurl-errors.html)","Code":0,"Trace":[{"file":"\/var\/customers\/webs\/XXXX\/nextcloud\/3rdparty\/guzzlehttp\/guzzle\/src\/Handler\/CurlFactory.php","line":149,"function":"createRejection","class":"GuzzleHttp\\Handler\\CurlFactory","type":"::","args":[{"sink":{"__class__":"GuzzleHttp\\Psr7\\Stream"},"headers":[],"response":null,"request":{"__class__":"GuzzleHttp\\Psr7\\Request"},"options":{"verify":"\/var\/customers\/webs\/XXXX\/nc_data\/files_external\/rootcerts.crt","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},"errno":35,"onHeadersException":null,"__class__":"GuzzleHttp\\Handler\\EasyHandle"},{"errno":35,"error":"error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol","url":"https:\/\/my.cloud.xyz\/hosting\/discovery","content_type":null,"http_code":0,"header_size":0,"request_size":0,"filetime":-1,"ssl_verify_result":1,"redirect_count":0,"total_time":0.011393,"namelookup_time":0.00419,"connect_time":0.004259,"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":"2001:41d0:403:13c::4","certinfo":[],"primary_port":443,"local_ip":"2001:41d0:403:13c::4","local_port":35234}]},{"file":"\/var\/customers\/webs\/XXXX\/nextcloud\/3rdparty\/guzzlehttp\/guzzle\/src\/Handler\/CurlFactory.php","line":102,"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":"\/var\/customers\/webs\/XXXX\/nc_data\/files_external\/rootcerts.crt","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},"errno":35,"onHeadersException":null,"__class__":"GuzzleHttp\\Handler\\EasyHandle"},{"__class__":"GuzzleHttp\\Handler\\CurlFactory"}]},{"file":"\/var\/customers\/webs\/XXXX\/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":"\/var\/customers\/webs\/XXXX\/nc_data\/files_external\/rootcerts.crt","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},"errno":35,"onHeadersException":null,"__class__":"GuzzleHttp\\Handler\\EasyHandle"},{"__class__":"GuzzleHttp\\Handler\\CurlFactory"}]},{"file":"\/var\/customers\/webs\/XXXX\/nextcloud\/3rdparty\/guzzlehttp\/guzzle\/src\/PrepareBodyMiddleware.php","line":37,"function":"__invoke","class":"GuzzleHttp\\Handler\\CurlHandler","type":"->","args":["*** sensitive parameter replaced ***","*** sensitive parameter replaced ***"]},{"file":"\/var\/customers\/webs\/XXXX\/nextcloud\/3rdparty\/guzzlehttp\/guzzle\/src\/Middleware.php","line":30,"function":"__invoke","class":"GuzzleHttp\\PrepareBodyMiddleware","type":"->","args":["*** sensitive parameter replaced ***","*** sensitive parameter replaced ***"]},{"file":"\/var\/customers\/webs\/XXXX\/nextcloud\/3rdparty\/guzzlehttp\/guzzle\/src\/RedirectMiddleware.php","line":70,"function":"GuzzleHttp\\{closure}","class":"GuzzleHttp\\Middleware","type":"::","args":["*** sensitive parameters replaced ***"]},{"file":"\/var\/customers\/webs\/XXXX\/nextcloud\/3rdparty\/guzzlehttp\/guzzle\/src\/Middleware.php","line":60,"function":"__invoke","class":"GuzzleHttp\\RedirectMiddleware","type":"->","args":["*** sensitive parameter replaced ***","*** sensitive parameter replaced ***"]},{"file":"\/var\/customers\/webs\/XXXX\/nextcloud\/3rdparty\/guzzlehttp\/guzzle\/src\/HandlerStack.php","line":67,"function":"GuzzleHttp\\{closure}","class":"GuzzleHttp\\Middleware","type":"::","args":["*** sensitive parameters replaced ***"]},{"file":"\/var\/customers\/webs\/XXXX\/nextcloud\/3rdparty\/guzzlehttp\/guzzle\/src\/Client.php","line":277,"function":"__invoke","class":"GuzzleHttp\\HandlerStack","type":"->","args":["*** sensitive parameter replaced ***","*** sensitive parameter replaced ***"]},{"file":"\/var\/customers\/webs\/XXXX\/nextcloud\/3rdparty\/guzzlehttp\/guzzle\/src\/Client.php","line":125,"function":"transfer","class":"GuzzleHttp\\Client","type":"->","args":["*** sensitive parameter replaced ***","*** sensitive parameter replaced ***"]},{"file":"\/var\/customers\/webs\/XXXX\/nextcloud\/3rdparty\/guzzlehttp\/guzzle\/src\/Client.php","line":131,"function":"requestAsync","class":"GuzzleHttp\\Client","type":"->","args":["get",{"__class__":"GuzzleHttp\\Psr7\\Uri"},{"verify":"\/var\/customers\/webs\/XXXX\/nc_data\/files_external\/rootcerts.crt","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,"_conditional":{"User-Agent":"GuzzleHttp\/6.3.3 curl\/7.52.1 PHP\/7.2.15-1+0~20190209065123.16+stretch~1.gbp3ad8c0"}}]},{"file":"\/var\/customers\/webs\/XXXX\/nextcloud\/lib\/private\/Http\/Client\/Client.php","line":161,"function":"request","class":"GuzzleHttp\\Client","type":"->","args":["get","https:\/\/my.cloud.xyz\/hosting\/discovery",{"verify":"\/var\/customers\/webs\/XXXX\/nc_data\/files_external\/rootcerts.crt","synchronous":true}]},{"file":"\/var\/customers\/webs\/XXXX\/nextcloud\/apps\/richdocuments\/lib\/WOPI\/DiscoveryManager.php","line":84,"function":"get","class":"OC\\Http\\Client\\Client","type":"->","args":["https:\/\/my.cloud.xyz\/hosting\/discovery"]},{"file":"\/var\/customers\/webs\/XXXX\/nextcloud\/apps\/richdocuments\/lib\/WOPI\/Parser.php","line":41,"function":"get","class":"OCA\\Richdocuments\\WOPI\\DiscoveryManager","type":"->","args":[]},{"file":"\/var\/customers\/webs\/XXXX\/nextcloud\/apps\/richdocuments\/lib\/TokenManager.php","line":155,"function":"getUrlSrc","class":"OCA\\Richdocuments\\WOPI\\Parser","type":"->","args":["application\/vnd.oasis.opendocument.text"]},{"file":"\/var\/customers\/webs\/XXXX\/nextcloud\/apps\/richdocuments\/lib\/Controller\/DocumentController.php","line":184,"function":"getToken","class":"OCA\\Richdocuments\\TokenManager","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"\/var\/customers\/webs\/XXXX\/nextcloud\/lib\/private\/AppFramework\/Http\/Dispatcher.php","line":166,"function":"index","class":"OCA\\Richdocuments\\Controller\\DocumentController","type":"->","args":["*** sensitive parameter replaced ***"]},{"file":"\/var\/customers\/webs\/XXXX\/nextcloud\/lib\/private\/AppFramework\/Http\/Dispatcher.php","line":99,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\Richdocuments\\Controller\\DocumentController"},"index"]},{"file":"\/var\/customers\/webs\/XXXX\/nextcloud\/lib\/private\/AppFramework\/App.php","line":118,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\Richdocuments\\Controller\\DocumentController"},"index"]},{"file":"\/var\/customers\/webs\/XXXX\/nextcloud\/lib\/private\/AppFramework\/Routing\/RouteActionHandler.php","line":47,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OCA\\Richdocuments\\Controller\\DocumentController","index",{"__class__":"OC\\AppFramework\\DependencyInjection\\DIContainer"},{"_route":"richdocuments.document.index"}]},{"function":"__invoke","class":"OC\\AppFramework\\Routing\\RouteActionHandler","type":"->","args":[{"_route":"richdocuments.document.index"}]},{"file":"\/var\/customers\/webs\/XXXX\/nextcloud\/lib\/private\/Route\/Router.php","line":297,"function":"call_user_func","args":[{"__class__":"OC\\AppFramework\\Routing\\RouteActionHandler"},{"_route":"richdocuments.document.index"}]},{"file":"\/var\/customers\/webs\/XXXX\/nextcloud\/lib\/base.php","line":987,"function":"match","class":"OC\\Route\\Router","type":"->","args":["\/apps\/richdocuments\/index"]},{"file":"\/var\/customers\/webs\/XXXX\/nextcloud\/index.php","line":42,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"\/var\/customers\/webs\/XXXX\/nextcloud\/3rdparty\/guzzlehttp\/guzzle\/src\/Handler\/CurlFactory.php","Line":185,"CustomMessage":"--"},"userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/71.0.3578.98 Safari\/537.36","version":"15.0.4.0"}

{“reqId”:“cBPbjb0W0WeNpKb2KTz9”,“level”:3,“time”:“2019-02-15T08:54:47+00:00”,“remoteAddr”:“89.XXX.XXX.49”,“user”:“admin”,“app”:“PHP”,“method”:“GET”,“url”:"/index.php/apps/richdocuments/index?fileId=74171&requesttoken=ADIHA7Vw5N3iu%2BawkaFKuGUHDEgmfScV8zhUjSvmGyw%3D%3AYwE%2FTc0HtamO2a7K%2FNgC%2BRxNZT9NDF5MpHoFxHGBTmI%3D",“message”:“Cannot declare class GuzzleHttp\Handler\CurlFactory, because the name is already in use at /var/customers/webs/XXXX/nextcloud/3rdparty/guzzlehttp/guzzle/src/Handler/CurlFactory.php#15”,“userAgent”:“Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36”,“version”:“15.0.4.0”}

And in the error logs:

 AH01071: Got error 'PHP message: PHP Fatal error:  Cannot declare class GuzzleHttp\\Handler\\CurlFactory, because the name is already in use in /var/customers/webs/web44/nextcloud/3rdparty/guzzlehttp/guzzle/src/Handler/CurlFactory.php on line 15\n'

The Problem is the Collabora Online Server URL in https://my.cloud.xyz/index.php/settings/admin/richdocuments

If I change this URL to another Domain, then it works fine.

Where I can reset this Domain/settings, to use my domain again?

Crazy … Now it works … I dont know why … Magic?

Did you do anything to fix this? I have exactly the same problem :frowning:

I had do some things …

  • Collabora App reinstall
  • Collabora App deactivate/activate
  • debugging the logs …

Then I had change the Collabora URL in the admin settings and it works … After a hour a had change the URL back to the old one and it works again.

I am not sure what is the solution …

Can you tell me what errors in the logs you had to fix and what fixed them?
Im having the same issue.
Thank you