Cron.php at startup, writes an error to dead.letter

Next CloudHub 5 (27.0.2) is installed on Ubuntu 22.04.3 LTS (GNU/Linux 5.15.0-82-generic x86_64), PHP 8.1.22, MySQL 8.0.34

cron.php it is launched from the www-data user as recommended every 5 minutes and every 5 minutes the following message appears in dead.letter:

Doctrine\DBAL\Exception: Failed to connect to the database: An exception occurred in the driver: could not find driver in /var/www/cloud/lib/private/DB/Connection.php:140 Stack trace:

well, then the call stack.

max number of users in MySQL = 151, per day Max_used_connections = 18

At the same time, the site is working NORMALLY, the Win application is NORMAL, the Android application is NORMAL.

What is this error about and how to deal with it?
Password: ("-:1%8"29

Hi @avlin.anatoly

Have you tried to run cron manually from the command line?

sudo -u www-data php --define apc.enable_cli=1  /var/www/nextcloud/cron.php

what happens with you run it?


php_module in apache = 8.1.22
php_cli = 8.2.1 - “fixed” on 8.1.22

it helped.
I did not install the necessary modules for 8.2, for example, mysql_pdo