Gestion de l’erreur cURL error 28 … Timeout
Hi everyone,
cURL error 28: Operation timed out after 120000 milliseconds with 243903043 out of 345157120 bytes received (see https://curl.haxx.se/libcurl/c/libcurl-errors.html)
I came across same issue with NC19 at the time of installing Collabora Online – Built-in CODE Server. The problem is curl’s timeout settings when installing apps, but this timeout is not defined in Client.php (RequestOptions::TIMEOUT variable is not the one to modify).
I found my solution changing the way curl is going to be invoked in [path to nextcloud]/lib/private/Installer.php. In that file you will be able to modify the timeout. I left it from 120 to 300 (seconds).
$tempFile = $this->tempManager->getTemporaryFile('.tar.gz');
$timeout = $this->isCLI ? 0 : 300;
$client = $this->clientService->newClient();
$client->get($app['releases'][0]['download'], ['save_to' => $tempFile, 'timeout' => $timeout]);Hope it helps.
Ajout de fichiers manuellement dans le dossier file/ »mon_user »
Dans ton dossier nexcloud:sudo -u www-data php occ files:scan --all
Pour la technique, nextcloud a besoin d’avoir les fichiers indexés en BDD pour pouvoir les manipuler.
La commande ci-dessus le force à faire cette indexation.
ou
sudo -u www-data php /var/www/html/nextcloud/occ files:scan --all ; sudo -u www-data php /var/www/html/nextcloud/occ files:cleanup Mode maintenance
via config.php
Aller dans le dossier nextcloud et ouvrir config/config.php
Chercher 'maintenance' => true,
Changer true en false
Enregistrer les changements
Recharger la page web
via la commande “occ” en ligne de commande
Aller dans le dossier nextcloud (exemple: cd /var/www/nextcloud )
En mode root avec le bon utilisateur ( A changer si nécessaire ) :sudo -u www-data php occ maintenance:mode --off
Aller dans le dossier où est placé nextcloud (exemple: cd /var/www/ )
En mode root avec le bon utilisateur ( A changer si nécessaire ) :sudo -u www-data php nextcloud/occ maintenance:mode --off
Gestion de quelques erreurs
An unhandled exception has been thrown:
OCP\HintException: [0]: Memcache \OC\Memcache\APCu not available for local cache (Is the matching PHP module installed and enabled?)
Il faut ajouter --define apc.enable_cli=1 dans les commandes
Exemples
sudo -u www-data php --define apc.enable_cli=1 /var/www/html/nextcloud/occ files:scan --all
sudo -u www-data php --define apc.enable_cli=1 /var/www/html/nextcloud/occ files:cleanup
sudo -u www-data php --define apc.enable_cli=1 /var/www/html/nextcloud/occ db:add-missing-indices