Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with Collabora (Guzzlehttp) #5

Closed
kromsam opened this issue Apr 29, 2019 · 2 comments
Closed

Problem with Collabora (Guzzlehttp) #5

kromsam opened this issue Apr 29, 2019 · 2 comments

Comments

@kromsam
Copy link
Contributor

kromsam commented Apr 29, 2019

I succesfully installed Nextcloud using this playbook. But somehow Collabora still doesn't work. When I try to op en a document I get a notification. In the logs the following errors appear:

There is an error with the rich documents app:

GuzzleHttp\Exception\ServerException: Server error: `GET https://nextcloud.domain.tld/hosting/discovery` resulted in a `502 Bad Gateway` response: <html> <head><title>502 Bad Gateway</title></head> <body> <center><h1>502 Bad Gateway</h1></center> <hr><center>ngin (truncated...)

    /var/www/html/3rdparty/guzzlehttp/guzzle/src/Middleware.php - line 66:

    GuzzleHttp\Exception\RequestException::create(GuzzleHttp\Psr7\Request {}, "*** sensiti ... *")

    /var/www/html/3rdparty/guzzlehttp/promises/src/Promise.php - line 203:

    GuzzleHttp\Middleware::GuzzleHttp\{closure}("*** sensiti ... *")

    /var/www/html/3rdparty/guzzlehttp/promises/src/Promise.php - line 156:

    GuzzleHttp\Promise\Promise::callHandler(1, "*** sensiti ... *", [ GuzzleHttp ... l])

    /var/www/html/3rdparty/guzzlehttp/promises/src/TaskQueue.php - line 47:

    GuzzleHttp\Promise\Promise::GuzzleHttp\Promise\{closure}("*** sensiti ... *")

    /var/www/html/3rdparty/guzzlehttp/promises/src/Promise.php - line 246:

    GuzzleHttp\Promise\TaskQueue->run(true)

    /var/www/html/3rdparty/guzzlehttp/promises/src/Promise.php - line 223:

    GuzzleHttp\Promise\Promise->invokeWaitFn()

    /var/www/html/3rdparty/guzzlehttp/promises/src/Promise.php - line 267:

    GuzzleHttp\Promise\Promise->waitIfPending()

    /var/www/html/3rdparty/guzzlehttp/promises/src/Promise.php - line 225:

    GuzzleHttp\Promise\Promise->invokeWaitList()

    /var/www/html/3rdparty/guzzlehttp/promises/src/Promise.php - line 62:

    GuzzleHttp\Promise\Promise->waitIfPending()

    /var/www/html/3rdparty/guzzlehttp/guzzle/src/Client.php - line 131:

    GuzzleHttp\Promise\Promise->wait()

    /var/www/html/lib/private/Http/Client/Client.php - line 161:

    GuzzleHttp\Client->request("get", "https://lie ... y", { verify: "/ ... e})

    /var/www/html/apps/richdocuments/lib/WOPI/DiscoveryManager.php - line 106:

    OC\Http\Client\Client->get("https://lie ... y", { timeout: 5})

    /var/www/html/apps/richdocuments/lib/WOPI/DiscoveryManager.php - line 78:

    OCA\Richdocuments\WOPI\DiscoveryManager->fetchFromRemote()

    /var/www/html/apps/richdocuments/lib/WOPI/Parser.php - line 41:

    OCA\Richdocuments\WOPI\DiscoveryManager->get()

    /var/www/html/apps/richdocuments/lib/TokenManager.php - line 155:

    OCA\Richdocuments\WOPI\Parser->getUrlSrc("application ... t")

    /var/www/html/apps/richdocuments/lib/Controller/DocumentController.php - line 184:

    OCA\Richdocuments\TokenManager->getToken("*** sensiti ... *")

    /var/www/html/lib/private/AppFramework/Http/Dispatcher.php - line 166:

    OCA\Richdocuments\Controller\DocumentController->index("*** sensiti ... *")

    /var/www/html/lib/private/AppFramework/Http/Dispatcher.php - line 99:

    OC\AppFramework\Http\Dispatcher->executeController(OCA\Richdocu ... {}, "index")

    /var/www/html/lib/private/AppFramework/App.php - line 118:

    OC\AppFramework\Http\Dispatcher->dispatch(OCA\Richdocu ... {}, "index")

    /var/www/html/lib/private/AppFramework/Routing/RouteActionHandler.php - line 47:

    OC\AppFramework\App::main("OCA\\Richdo ... r", "index", OC\AppFramew ... {}, { _route: "r ... "})

    <<closure>>

    OC\AppFramework\Routing\RouteActionHandler->__invoke({ _route: "r ... "})

    /var/www/html/lib/private/Route/Router.php - line 297:

    call_user_func(OC\AppFramew ... {}, { _route: "r ... "})

    /var/www/html/lib/base.php - line 987:

    OC\Route\Router->match("/apps/richdocuments/index")

    /var/www/html/index.php - line 42:

    OC::handleRequest()

And there also is an error with 'PHP':

Cannot declare class GuzzleHttp\Exception\RequestException, because the name is already in use at /var/www/html/3rdparty/guzzlehttp/guzzle/src/Exception/RequestException.php#0

Maybe this is not a problem of this playbook, maybe it is a problem with one of its components. But I hope there are some thoughts on this!

@ReinerNippes
Copy link
Owner

Should be fixed.

proxy_pass https://collabora_online:9980;

@kromsam
Copy link
Contributor Author

kromsam commented May 1, 2019

It worked! Thanks a lot.

@kromsam kromsam closed this as completed May 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants