Downloading Document Server Community

Hey,

I got problems to download the “Document Server Community” app.

I still get the curl 28 error. I already changed the RequestOptions::TIMEOUT option but it didn’t help.

https://www.c-rieger.de/nextcloud-alert/

Please install log reader app and check log to get some more details.

How many data is loaded before curl error occures?
Are you near the end?

Here is the log.

cURL error 28: Operation timed out after 120000 milliseconds with 283958844 out of 315849196 bytes received (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)

Nearly 91% :slight_smile:

Are you already at v18.0.1?

yes I am already on 18.0.1.

You can download release manually and place it inside your apps folder. See

Just enable the app afterwards.

Just a workaround.

1 Like

This worked for me now.

Is there a solution to get rid of the curl error for the next time I want download a app?

1 Like

From my understanding is is about download speed.
Had that with v18.0.0, with v18.0.1 it has been gone.

This app is the biggest by far, never had trouble with other ones.

1 Like

Ah I get it. So the fix should have worked with version 18.0.0.

How i install this in terminal ??

cd /locaties-nextcloud/app
wget https://github.com/nextcloud/documentserver_community/releases/download/v0.1.5/documentserver_community.tar.gz
tar -zxvf documentserver_community.tar.gz
rm documentserver_community.tar.gz
cd ..
occ app:enable documentserver_community
2 Likes

thanks a lot bro

Thnx for your answers @rakekniven and @thijssie85 :+1:
I have had a problem with my OO-installation where I wasn’t able to coerce NC into up updating the Document Server Community (DSC). The problem, according to this log-line was
"
{“reqId”:“jPQf7f4bmzqYY7t0vwL7”,“level”:3,“time”:“2021-02-25T09:29:00+00:00”,“remoteAddr”:"",“user”:"–",“app”:“core”,“method”:"",“url”:"–",“message”:{“Exception”:“GuzzleHttp\Exception\RequestException”,“Message”:“cURL error 23: Failed writing body (13201 != 16384) (see https://curl.haxx.se/libcurl/c/libcurl-errors.html)”,“Code”:200,“Trace”:[{“file”:"<PATH/TO/NC>/3rdparty/guzzlehttp/guzzle/src/Handler/CurlFactory.php",“line”:155,“function”:“createRejection”,“class”:“GuzzleHttp\Handler\CurlFactory”,“type”:"::"},{“file”:"<PATH/TO/NC>/3rdparty/guzzlehttp/guzzle/src/Handler/CurlFactory.php",“line”:105,“function”:“finishError”,“class”:“GuzzleHttp\Handler\CurlFactory”,“type”:"::"},{“file”:"<PATH/TO/NC>/3rdparty/guzzlehttp/guzzle/src/Handler/CurlHandler.php",“line”:43,“function”:“finish”,“class”:“GuzzleHttp\Handler\CurlFactory”,“type”:"::"},{“file”:"<PATH/TO/NC>/3rdparty/guzzlehttp/guzzle/src/Handler/Proxy.php",“line”:28,“function”:"__invoke",“class”:“GuzzleHttp\Handler\CurlHandler”,“type”:"->"},{“file”:"<PATH/TO/NC>/3rdparty/guzzlehttp/guzzle/src/Handler/Proxy.php",“line”:51,“function”:“GuzzleHttp\Handler\{closure}”,“class”:“GuzzleHttp\Handler\Proxy”,“type”:"::",“args”:["*** sensitive parameters replaced "]},{“file”:"<PATH/TO/NC>/3rdparty/guzzlehttp/guzzle/src/PrepareBodyMiddleware.php",“line”:37,“function”:“GuzzleHttp\Handler\{closure}”,“class”:“GuzzleHttp\Handler\Proxy”,“type”:"::",“args”:[" sensitive parameters replaced "]},{“file”:"<PATH/TO/NC>/3rdparty/guzzlehttp/guzzle/src/Middleware.php",“line”:29,“function”:"__invoke",“class”:“GuzzleHttp\PrepareBodyMiddleware”,“type”:"->"},{“file”:"<PATH/TO/NC>/3rdparty/guzzlehttp/guzzle/src/RedirectMiddleware.php",“line”:70,“function”:“GuzzleHttp\{closure}”,“class”:“GuzzleHttp\Middleware”,“type”:"::",“args”:[" sensitive parameters replaced "]},{“file”:"<PATH/TO/NC>/3rdparty/guzzlehttp/guzzle/src/RedirectMiddleware.php",“line”:107,“function”:"__invoke",“class”:“GuzzleHttp\RedirectMiddleware”,“type”:"->"},{“file”:"<PATH/TO/NC>/3rdparty/guzzlehttp/guzzle/src/RedirectMiddleware.php",“line”:72,“function”:“checkRedirect”,“class”:“GuzzleHttp\RedirectMiddleware”,“type”:"->"},{“file”:"<PATH/TO/NC>/3rdparty/guzzlehttp/promises/src/FulfilledPromise.php",“line”:39,“function”:“GuzzleHttp\{closure}”,“class”:“GuzzleHttp\RedirectMiddleware”,“type”:"->",“args”:[" sensitive parameters replaced "]},{“file”:"<PATH/TO/NC>/3rdparty/guzzlehttp/promises/src/TaskQueue.php",“line”:47,“function”:“GuzzleHttp\Promise\{closure}”,“class”:“GuzzleHttp\Promise\FulfilledPromise”,“type”:"::",“args”:[" sensitive parameters replaced "]},{“file”:"<PATH/TO/NC>/3rdparty/guzzlehttp/promises/src/Promise.php",“line”:246,“function”:“run”,“class”:“GuzzleHttp\Promise\TaskQueue”,“type”:"->"},{“file”:"<PATH/TO/NC>/3rdparty/guzzlehttp/promises/src/Promise.php",“line”:223,“function”:“invokeWaitFn”,“class”:“GuzzleHttp\Promise\Promise”,“type”:"->"},{“file”:"<PATH/TO/NC>/3rdparty/guzzlehttp/promises/src/Promise.php",“line”:267,“function”:“waitIfPending”,“class”:“GuzzleHttp\Promise\Promise”,“type”:"->"},{“file”:"<PATH/TO/NC>/3rdparty/guzzlehttp/promises/src/Promise.php",“line”:225,“function”:“invokeWaitList”,“class”:“GuzzleHttp\Promise\Promise”,“type”:"->"},{“file”:"<PATH/TO/NC>/3rdparty/guzzlehttp/promises/src/Promise.php",“line”:62,“function”:“waitIfPending”,“class”:“GuzzleHttp\Promise\Promise”,“type”:"->"},{“file”:"<PATH/TO/NC>/3rdparty/guzzlehttp/guzzle/src/Client.php",“line”:183,“function”:“wait”,“class”:“GuzzleHttp\Promise\Promise”,“type”:"->"},{“file”:"<PATH/TO/NC>/lib/private/Http/Client/Client.php",“line”:233,“function”:“request”,“class”:“GuzzleHttp\Client”,“type”:"->"},{“file”:"<PATH/TO/NC>/lib/private/Installer.php",“line”:283,“function”:“get”,“class”:“OC\Http\Client\Client”,“type”:"->"},{“file”:"<PATH/TO/NC>/lib/private/Installer.php",“line”:198,“function”:“downloadApp”,“class”:“OC\Installer”,“type”:"->"},{“file”:"<PATH/TO/NC>/core/Command/App/Update.php",“line”:116,“function”:“updateAppstoreApp”,“class”:“OC\Installer”,“type”:"->",“args”:[" sensitive parameters replaced ***"]},{“file”:"<PATH/TO/NC>/3rdparty/symfony/console/Command/Command.php",“line”:255,“function”:“execute”,“class”:“OC\Core\Command\App\Update”,“type”:"->"},{“file”:"<PATH/TO/NC>/3rdparty/symfony/console/Application.php",“line”:1000,“function”:“run”,“class”:“Symfony\Component\Console\Command\Command”,“type”:"->"},{“file”:"<PATH/TO/NC>/3rdparty/symfony/console/Application.php",“line”:271,“function”:“doRunCommand”,“class”:“Symfony\Component\Console\Application”,“type”:"->"},{“file”:"<PATH/TO/NC>/3rdparty/symfony/console/Application.php",“line”:147,“function”:“doRun”,“class”:“Symfony\Component\Console\Application”,“type”:"->"},{“file”:"<PATH/TO/NC>/lib/private/Console/Application.php",“line”:215,“function”:“run”,“class”:“Symfony\Component\Console\Application”,“type”:"->"},{“file”:"<PATH/TO/NC>/console.php",“line”:100,“function”:“run”,“class”:“OC\Console\Application”,“type”:"->"},{“file”:"<PATH/TO/NC>/occ",“line”:11,“args”:["<PATH/TO/NC>/console.php"],“function”:“require_once”}],“File”:"<PATH/TO/NC>/3rdparty/guzzlehttp/guzzle/src/Handler/CurlFactory.php",“Line”:201,“CustomMessage”:"–"},“userAgent”:"–",“version”:“20.0.7.1”}
"
My PHP is configured to allow large, as well as long-running uploads as per
Uploading big files > 512MB — Nextcloud latest Administration Manual latest documentation

I have had this problem with the versions 0.1.8 and 0.1.9 of OO-DSC.
Neither updating the DSC through NC directly, nor running “sudo -u www-data php /<PATH/TO/NC>/occ app:update documentserver_community” worked, but resulted in the same cURL error 23.

Seeing as I was not doing an installation, but an update I have adapted the answer from @thijssie85 in Post#10 accordingly

"
sudo -u www-data php /<PATH/TO/NC>/occ maintenance:mode --on
sudo -u www-data php /<PATH/TO/NC>/occ app:disable documentserver_community
sudo -u www-data wget -P https://github.com/nextcloud/documentserver_community/releases/download/v0.1.9/documentserver_community.tar.gz /<PATH/TO/NC>/apps/
sudo -u www-data tar -zxvf documentserver_community.tar.gz
sudo -u www-data rm documentserver_community.tar.gz
sudo -u www-data php /<PATH/TO/NC>/occ app:enable documentserver_community
sudo -u www-data php /<PATH/TO/NC>/occ maintenance:mode --off
"