naos 2018/03/10 17:21

Résolution de problèmes avec Owncloud


Erreur 1 sur debian 8.5 owncloud 9.1.0

Message d'erreur:

Error	PHP	Undefined index: two-factor-providers at /var/www/owncloud/lib/private/Authentication/TwoFactorAuth/Manager.php#111
Error	PHP	Invalid argument supplied for foreach() at /var/www/owncloud/lib/private/Authentication/TwoFactorAuth/Manager.php#112

Solution:

sudo -u www-data php occ twofactor:disable utilisateur




Erreur 2 sur debian 8.5 owncloud 9.1.0

Message d'erreur:

{"reqId":"9GiqjzJcFJaNBltYKg68","remoteAddr":"","app":"files","message":"Exception: {\"Exception\":\"BadMethodCallException\",\"Message\":\"Not in batch\",\"Code\":0,\"Trace\":\"#0 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/Files\\\/Utils\\\/Scanner.php(143): OC\\\\Files\\\\Cache\\\\Propagator->commitBatch()\\n#1 \\\/var\\\/www\\\/owncloud\\\/apps\\\/files\\\/lib\\\/BackgroundJob\\\/ScanFiles.php(87): OC\\\\Files\\\\Utils\\\\Scanner->backgroundScan('')\\n#2 \\\/var\\\/www\\\/owncloud\\\/apps\\\/files\\\/lib\\\/BackgroundJob\\\/ScanFiles.php(111): OCA\\\\Files\\\\BackgroundJob\\\\ScanFiles->runScanner(Object(OC\\\\User\\\\User))\\n#3 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/BackgroundJob\\\/Job.php(52): OCA\\\\Files\\\\BackgroundJob\\\\ScanFiles->run(NULL)\\n#4 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/BackgroundJob\\\/TimedJob.php(53): OC\\\\BackgroundJob\\\\Job->execute(Object(OC\\\\BackgroundJob\\\\JobList), Object(OC\\\\Log))\\n#5 \\\/var\\\/www\\\/owncloud\\\/cron.php(122): OC\\\\BackgroundJob\\\\TimedJob->execute(Object(OC\\\\BackgroundJob\\\\JobList), Object(OC\\\\Log))\\n#6 {main}\",\"File\":\"\\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/Files\\\/Cache\\\/Propagator.php\",\"Line\":145}","level":3,"time":"2016-08-24T18:15:02+02:00","method":"--","url":"--","user":"--"}

Solution:

# cd /var/www/owncloud/apps/files_sharing/lib
# cp sharedstorage.php sharedstorage.php.SAVE
# wget https://raw.githubusercontent.com/owncloud/core/master/apps/files_sharing/lib/sharedstorage.php
# chown -R www-data:www-data sharedstorage.php
# chmod 750 sharedstorage.php
# cd /var/www/owncloud/lib/private/Files/Utils
# cp Scanner.php Scanner.php.SAVE
# wget https://raw.githubusercontent.com/owncloud/core/master/lib/private/Files/Utils/Scanner.php
# chown -R root:www-data Scanner.php
# chmod 750 Scanner.php
  • problemes_owncloud.txt
  • Dernière modification: 2018/03/10 17:27
  • par naos