documentserver_community icon indicating copy to clipboard operation
documentserver_community copied to clipboard

Update or install failed

Open stramag opened this issue 3 years ago • 1 comments

Hi Guys,

Please can you help in the following case: I use your product nearly two years without any issue but now I faced with the following: If I try to update or reinstall in that case I go the following error in the log:

{"reqId":"94jUSuHXg0oeb4lWA7zP","level":3,"time":"2022-11-24T11:39:11+00:00","remoteAddr":"192.168.160.2","user":"B83966FD-AEB2-4668-BCD5-FD82D80D1312","app":"no app in context","method":"GET","url":"/index.php/settings/apps/update/documentserver_community","message":"cURL error 28: Operation timed out after 120000 milliseconds with 420504308 out of 509723866 bytes received (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://objects.githubusercontent.com/github-production-release-asset-2e65be/205429728/8ba0c938-2070-49c2-824b-ddac68551581?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20221124%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20221124T113502Z&X-Amz-Expires=300&X-Amz-Signature=cb5d1f8abd4d25d9cbd421cd754ba66d9dba929f648ba208dd5fd880840add6f&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=205429728&response-content-disposition=attachment%3B%20filename%3Ddocumentserver_community.tar.gz&response-content-type=application%2Foctet-stream","userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.1.2 Safari/605.1.15","version":"24.0.7.1","exception":{"Exception":"GuzzleHttp\Exception\ConnectException","Message":"cURL error 28: Operation timed out after 120000 milliseconds with 420504308 out of 509723866 bytes received (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://objects.githubusercontent.com/github-production-release-asset-2e65be/205429728/8ba0c938-2070-49c2-824b-ddac68551581?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20221124%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20221124T113502Z&X-Amz-Expires=300&X-Amz-Signature=cb5d1f8abd4d25d9cbd421cd754ba66d9dba929f648ba208dd5fd880840add6f&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=205429728&response-content-disposition=attachment%3B%20filename%3Ddocumentserver_community.tar.gz&response-content-type=application%2Foctet-stream","Code":0,"Trace":[{"file":"/var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Handler/CurlFactory.php","line":158,"function":"createRejection","class":"GuzzleHttp\Handler\CurlFactory","type":"::"},{"file":"/var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Handler/CurlFactory.php","line":110,"function":"finishError","class":"GuzzleHttp\Handler\CurlFactory","type":"::"},{"file":"/var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Handler/CurlHandler.php","line":47,"function":"finish","class":"GuzzleHttp\Handler\CurlFactory","type":"::"},{"file":"/var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Handler/Proxy.php","line":28,"function":"__invoke","class":"GuzzleHttp\Handler\CurlHandler","type":"->"},{"file":"/var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Handler/Proxy.php","line":48,"function":"GuzzleHttp\Handler\{closure}","class":"GuzzleHttp\Handler\Proxy","type":"::","args":["*** sensitive parameters replaced "]},{"file":"/var/www/nextcloud/lib/private/Http/Client/DnsPinMiddleware.php","line":146,"function":"GuzzleHttp\Handler\{closure}","class":"GuzzleHttp\Handler\Proxy","type":"::","args":[" sensitive parameters replaced "]},{"file":"/var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/PrepareBodyMiddleware.php","line":35,"function":"OC\Http\Client\{closure}","class":"OC\Http\Client\DnsPinMiddleware","type":"->","args":[" sensitive parameters replaced "]},{"file":"/var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Middleware.php","line":31,"function":"__invoke","class":"GuzzleHttp\PrepareBodyMiddleware","type":"->"},{"file":"/var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/RedirectMiddleware.php","line":71,"function":"GuzzleHttp\{closure}","class":"GuzzleHttp\Middleware","type":"::","args":[" sensitive parameters replaced "]},{"file":"/var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/RedirectMiddleware.php","line":107,"function":"__invoke","class":"GuzzleHttp\RedirectMiddleware","type":"->"},{"file":"/var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/RedirectMiddleware.php","line":73,"function":"checkRedirect","class":"GuzzleHttp\RedirectMiddleware","type":"->"},{"file":"/var/www/nextcloud/3rdparty/guzzlehttp/promises/src/FulfilledPromise.php","line":41,"function":"GuzzleHttp\{closure}","class":"GuzzleHttp\RedirectMiddleware","type":"->","args":[" sensitive parameters replaced "]},{"file":"/var/www/nextcloud/3rdparty/guzzlehttp/promises/src/TaskQueue.php","line":48,"function":"GuzzleHttp\Promise\{closure}","class":"GuzzleHttp\Promise\FulfilledPromise","type":"::","args":[" sensitive parameters replaced "]},{"file":"/var/www/nextcloud/3rdparty/guzzlehttp/promises/src/Promise.php","line":248,"function":"run","class":"GuzzleHttp\Promise\TaskQueue","type":"->"},{"file":"/var/www/nextcloud/3rdparty/guzzlehttp/promises/src/Promise.php","line":224,"function":"invokeWaitFn","class":"GuzzleHttp\Promise\Promise","type":"->"},{"file":"/var/www/nextcloud/3rdparty/guzzlehttp/promises/src/Promise.php","line":269,"function":"waitIfPending","class":"GuzzleHttp\Promise\Promise","type":"->"},{"file":"/var/www/nextcloud/3rdparty/guzzlehttp/promises/src/Promise.php","line":226,"function":"invokeWaitList","class":"GuzzleHttp\Promise\Promise","type":"->"},{"file":"/var/www/nextcloud/3rdparty/guzzlehttp/promises/src/Promise.php","line":62,"function":"waitIfPending","class":"GuzzleHttp\Promise\Promise","type":"->"},{"file":"/var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Client.php","line":187,"function":"wait","class":"GuzzleHttp\Promise\Promise","type":"->"},{"file":"/var/www/nextcloud/lib/private/Http/Client/Client.php","line":218,"function":"request","class":"GuzzleHttp\Client","type":"->"},{"file":"/var/www/nextcloud/lib/private/Installer.php","line":296,"function":"get","class":"OC\Http\Client\Client","type":"->"},{"file":"/var/www/nextcloud/lib/private/Installer.php","line":194,"function":"downloadApp","class":"OC\Installer","type":"->"},{"file":"/var/www/nextcloud/apps/settings/lib/Controller/AppSettingsController.php","line":535,"function":"updateAppstoreApp","class":"OC\Installer","type":"->","args":[" sensitive parameters replaced "]},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":225,"function":"updateApp","class":"OCA\Settings\Controller\AppSettingsController","type":"->","args":[" sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":133,"function":"executeController","class":"OC\AppFramework\Http\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":172,"function":"dispatch","class":"OC\AppFramework\Http\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":298,"function":"main","class":"OC\AppFramework\App","type":"::"},{"file":"/var/www/nextcloud/lib/base.php","line":1030,"function":"match","class":"OC\Route\Router","type":"->"},{"file":"/var/www/nextcloud/index.php","line":36,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Handler/CurlFactory.php","Line":210,"message":"cURL error 28: Operation timed out after 120000 milliseconds with 420504308 out of 509723866 bytes received (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://objects.githubusercontent.com/github-production-release-asset-2e65be/205429728/8ba0c938-2070-49c2-824b-ddac68551581?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20221124%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20221124T113502Z&X-Amz-Expires=300&X-Amz-Signature=cb5d1f8abd4d25d9cbd421cd754ba66d9dba929f648ba208dd5fd880840add6f&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=205429728&response-content-disposition=attachment%3B%20filename%3Ddocumentserver_community.tar.gz&response-content-type=application%2Foctet-stream","exception":[],"CustomMessage":"cURL error 28: Operation timed out after 120000 milliseconds with 420504308 out of 509723866 bytes received (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://objects.githubusercontent.com/github-production-release-asset-2e65be/205429728/8ba0c938-2070-49c2-824b-ddac68551581?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20221124%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20221124T113502Z&X-Amz-Expires=300&X-Amz-Signature=cb5d1f8abd4d25d9cbd421cd754ba66d9dba929f648ba208dd5fd880840add6f&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=205429728&response-content-disposition=attachment%3B%20filename%3Ddocumentserver_community.tar.gz&response-content-type=application%2Foctet-stream"},"id":"637f5a7947902"}

Please can you help?

Best Regards, Gábor Strama

stramag avatar Nov 24 '22 11:11 stramag

the OnlyOffice App is quite large. curl runs into a timeout when downloading it. Unfortunately, increasing the curl timeout doesn't help, because the updater would hit a timeout of the web server instead. (there are a couple of nextcloud issues and PR about this)

As a solution you can try running the update using the command line tool occ: https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/occ_command.html#apps-commands-label this method shouldn't run into the timeout problems

or, just manually download the latest release from the downloads-link at https://github.com/nextcloud/documentserver_community/tags unpack it and place the content in the subdirectory below the apps folder,then log in as admin to the backend in order to trigger the update process for the app

another hint I have seen is "just bring the server to a place with a better internet connection" - which might be feasible in a couple of use cases, but definitely not as part of a general update strategy :-)

mrbaseman avatar Nov 24 '22 20:11 mrbaseman