Anomalie #24640
Erreur sur le cron owncloud
Start date:
08/23/2018
Due date:
% Done:
0%
Distribution:
Description
PHP Fatal error: Call to a member function file_exists() on a non-object in /var/www/html/owncloud/lib/private/files/filesystem.php on line 696
Ayant cette erreur aléatoirement mais régulièrement, nous avons décidé de contourner le problème en patchant le fichier filesystem.php
--- filesystem.php 2018-04-19 10:23:10.090973474 0200
++ filesystem.php.modif 2018-03-07 13:24:09.000000000 +0100@ -693,6 +693,10
@
}
static public function file_exists($path) {
+ // BESAC-POWNCLOUD{erreur_cron_php}-1.0
+ if(is_null(self::$defaultInstance)){
+ return file_exists($path);
+ }
return self::$defaultInstance->file_exists($path);
}
Par ailleurs nous avons allongé le cycle du cron, les gros étabs arrivaient à en déclencher un nouveau quand l'ancien n'était pas fini.../etc/cron.d/owncloud
- Regular cron jobs for the owncloud package
*/30 * * * * www-data php -f /var/www/html/owncloud/cron.php
cordialement
Pascal
History
#1 Updated by Arnaud FORNEROT over 4 years ago
- Status changed from Nouveau to Résolu
#2 Updated by Arnaud FORNEROT over 4 years ago
- Status changed from Résolu to Fermé