Hi,
I have ownCloud Server on my Raspberry 3, and i noticed today several errors : 423 Locked.
Some research seem to suggest running cron.php to solve that problem, so i tried running php -f /var/www/owncloud/cron.php and i get these errors :
From a short look i think most where solved when installing / enabling the correct PHP database driver (e.g. it might not be enabled for the PHP command line variant used in your sudo call).
Indeed, although the answers didn’t solve my problem i tried to fiddle around with some similar stuff and managed to solve it by install php-sqlite. apt install php7.3-sqlite
Thanks !