Php occ error Error in GnuTLS initialization and Failed to connect to the database

Hi, I would like to fix missing indices, but the command bringt errors.
I have version 20.5

php occ db:add-missing-indices
Error in GnuTLS initialization: Failed to acquire random data.
An unhandled exception has been thrown:
Doctrine\DBAL\DBALException: Failed to connect to the database: An exception occurred in driver: SQLSTATE[HY000] [2002] No such file or directory in /is/htdocs/wp1188189_YSYLQ5XX0S/www/nextcloud_fzparkstadtschwabing_de/lib/private/DB/Connection.php:72

Can somebody please help me?