richdocumentscode icon indicating copy to clipboard operation
richdocumentscode copied to clipboard

Build-in CODE server doesn't respond after update to NC 21.0.4

Open Sesivany opened this issue 4 years ago • 3 comments

I try to open a document and only get a grey screen instead of the Collabora Online UI. It started with NC 21, got fixed with the update of the server, and started occuring after updating to NC 21.0.4 and prevails on NC 22. Seems like the build-in CODE server is not responding, this is what I found in logs:

GuzzleHttp\Exception\ConnectException: cURL error 52: Empty reply from server (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://www.example.com/nextcloud/apps/richdocumentscode/proxy.php?req=/lool/convert-to/png

/var/www/html/nextcloud/3rdparty/guzzlehttp/guzzle/src/Handler/CurlFactory.php - line 158:

GuzzleHttp\Handler\CurlFactory::createRejection(GuzzleHttp\H ... l}, { errno: 52, ... "})

/var/www/html/nextcloud/3rdparty/guzzlehttp/guzzle/src/Handler/CurlFactory.php - line 110:

GuzzleHttp\Handler\CurlFactory::finishError(GuzzleHttp\H ... {}, GuzzleHttp\H ... l}, GuzzleHttp\H ... {})

/var/www/html/nextcloud/3rdparty/guzzlehttp/guzzle/src/Handler/CurlHandler.php - line 47:

GuzzleHttp\Handler\CurlFactory::finish(GuzzleHttp\H ... {}, GuzzleHttp\H ... l}, GuzzleHttp\H ... {})

/var/www/html/nextcloud/lib/private/Http/Client/DnsPinMiddleware.php - line 146:

GuzzleHttp\Handler\CurlHandler->__invoke("*** sensiti ... *", "*** sensiti ... *")

/var/www/html/nextcloud/3rdparty/guzzlehttp/guzzle/src/PrepareBodyMiddleware.php - line 64:

OC\Http\Client\DnsPinMiddleware->OC\Http\Client\{closure}("*** sensiti ... *")

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

GuzzleHttp\PrepareBodyMiddleware->__invoke("*** sensiti ... *", "*** sensiti ... *")

/var/www/html/nextcloud/3rdparty/guzzlehttp/guzzle/src/RedirectMiddleware.php - line 71:

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

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

GuzzleHttp\RedirectMiddleware->__invoke("*** sensiti ... *", "*** sensiti ... *")

/var/www/html/nextcloud/3rdparty/guzzlehttp/guzzle/src/HandlerStack.php - line 75:

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

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

GuzzleHttp\HandlerStack->__invoke("*** sensiti ... *", "*** sensiti ... *")

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

GuzzleHttp\Client->transfer("*** sensiti ... *", "*** sensiti ... *")

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

GuzzleHttp\Client->requestAsync("post", GuzzleHttp\Psr7\Uri {}, { verify: fa ... }})

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

GuzzleHttp\Client->request("post", "https://vps ... g", { verify: fa ... e})

/var/www/html/nextcloud/apps/richdocuments/lib/Preview/Office.php - line 92:

OC\Http\Client\Client->post("https://vps ... g", { timeout: 1 ... ]})

/var/www/html/nextcloud/lib/private/Preview/ProviderV1Adapter.php - line 53:

OCA\Richdocuments\Preview\Office->getThumbnail("STUDIE STAV ... f", 4096, 4096, false, OC\Files\View {})

/var/www/html/nextcloud/lib/private/Preview/GeneratorHelper.php - line 62:

OC\Preview\ProviderV1Adapter->getThumbnail(OC\Files\Node\File {}, 4096, 4096)

/var/www/html/nextcloud/lib/private/Preview/Generator.php - line 244:

OC\Preview\GeneratorHelper->getThumbnail(OC\Preview\ProviderV1Adapter {}, OC\Files\Node\File {}, 4096, 4096)

/var/www/html/nextcloud/lib/private/Preview/Generator.php - line 140:

OC\Preview\Generator->getMaxPreview(OC\Files\Sim ... {}, OC\Files\Node\File {}, "application/pdf", "")

/var/www/html/nextcloud/lib/private/Preview/Generator.php - line 109:

OC\Preview\Generator->generatePreviews(OC\Files\Node\File {}, [ { width: 2 ... }], "application/pdf")

/var/www/html/nextcloud/lib/private/PreviewManager.php - line 189:

OC\Preview\Generator->getPreview(OC\Files\Node\File {}, 250, 250, true, "fill", null)

/var/www/html/nextcloud/core/Controller/PreviewController.php - line 169:

OC\PreviewManager->getPreview(OC\Files\Node\File {}, 250, 250, true, "fill")

/var/www/html/nextcloud/core/Controller/PreviewController.php - line 142:

OC\Core\Controller\PreviewController->fetchPreview(OC\Files\Node\File {}, 250, 250, false, false, "fill")

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

OC\Core\Controller\PreviewController->getPreviewByFileId(81332, 250, 250, false, false, "fill")

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

OC\AppFramework\Http\Dispatcher->executeController(OC\Core\Cont ... {}, "getPreviewByFileId")

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

OC\AppFramework\Http\Dispatcher->dispatch(OC\Core\Cont ... {}, "getPreviewByFileId")

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

OC\AppFramework\App::main("OC\\Core\\C ... r", "getPreviewByFileId", OC\AppFramew ... {}, { _route: "c ... "})

/var/www/html/nextcloud/lib/base.php - line 1000:

OC\Route\Router->match("/core/preview")

/var/www/html/nextcloud/index.php - line 36:

OC::handleRequest()

Sesivany avatar Aug 23 '21 17:08 Sesivany

A while ago the urls in the nginx and apache config changed, see https://sdk.collaboraonline.com/docs/installation/Proxy_settings.html#reverse-proxy-with-apache-2-webserver

Also recently the docker parameters changs, if you use those check those too, see https://sdk.collaboraonline.com/docs/installation/CODE_Docker_image.html

sebastiaanveld avatar May 05 '22 13:05 sebastiaanveld

Is this really necessary for the built-in CODE server? I don't think so. That's what I'm running.

Sesivany avatar May 06 '22 17:05 Sesivany

Hi, this was reported long ago, did you resolved it?

timur-g avatar Mar 29 '23 08:03 timur-g