Cronjob not working

Hi, I’m running owncloud as follows:

Operating system: Raspian

Web server: Apache2

Database: MariaDB

PHP version: 7.1

ownCloud version: 10.4.04

Updated from an older ownCloud or fresh install: Update from older

Where did you install ownCloud from: I think apt

If I log into my “Adminpanel” the cronjobs are described like, last cronjob was done 11 hours before, there might be a problem.

crontab -u www-data -e


*/15 * * * * /usr/bin/php -f /var/www/html/cron.php

The path is correct.

Doing this:

sudo -u www-data php occ background:cron

leads to this:

An unhandled exception has been thrown:
Error: Call to undefined function simplexml_load_file() in /var/www/html/lib/private/App/InfoParser.php:48
Stack trace:
#0 /var/www/html/lib/private/App/AppManager.php(482): OC\App\InfoParser->parse(’/var/www/html/a…’)
#1 /var/www/html/lib/private/App/AppManager.php(771): OC\App\AppManager->getAppInfoByPath(’/var/www/html/a…’)
#2 /var/www/html/lib/private/App/AppManager.php(712): OC\App\AppManager->getAppVersionByPath(’/var/www/html/a…’)
#3 /var/www/html/lib/private/App/AppManager.php(654): OC\App\AppManager->findAppInDirectories(‘files’)
#4 /var/www/html/lib/private/legacy/app.php(548): OC\App\AppManager->getAppPath(‘files’)
#5 /var/www/html/lib/private/legacy/app.php(114): OC_App::getAppPath(‘files’)
#6 /var/www/html/lib/base.php(585): OC_App::loadApps(Array)
#7 /var/www/html/lib/base.php(1058): OC::init()
#8 /var/www/html/console.php(74): require_once(’/var/www/html/l…’)
#9 /var/www/html/occ(11): require_once(’/var/www/html/c…’)

Does anybody have any idea how to solve this?


i put a few seconds effort into a search with the search function of the forums on the top right and found quite a lot posts about the same message like e.g.:

If i’m understanding the message correctly your PHP which is running the cron job is missing a mandatory PHP module.

1 Like