Mail-App: keine Anmeldung; crypto.php-Fehler

Hallo;
Beim Verbinden mit meinen E-Mail-Kontos (Gmail, Microsoft) bekomme ich die Fehlermeldung: Bei der Einrichtung Deines Kontos ist ein Fehler aufgetreten. Bitte versuche es erneut.

Im Fehlerprotokoll finde ich dann folgenden Eintrag:
Fehler mail Exception: hash_hkdf(): Argument #2 ($key) cannot be empty in file ‘/var/www/nextcloud/lib/private/Security/Crypto.php’ line 97

/var/www/nextcloud/lib/private/AppFramework/App.php - line 172:

OC\AppFramework\Http\Dispatcher->dispatch()

/var/www/nextcloud/lib/private/Route/Router.php - line 298:

OC\AppFramework\App::main()

/var/www/nextcloud/lib/base.php - line 1023:

OC\Route\Router->match()

/var/www/nextcloud/index.php - line 36:

OC::handleRequest()

Verursacht durch ValueError: hash_hkdf(): Argument #2 ($key) cannot be empty

/var/www/nextcloud/lib/private/Security/Crypto.php - line 97:

hash_hkdf()

/var/www/nextcloud/apps/mail/lib/Service/AutoConfig/ImapConnector.php - line 83:

OC\Security\Crypto->encrypt("*** sensiti ... *")

/var/www/nextcloud/apps/mail/lib/Service/AutoConfig/IspDbConfigurationDetector.php - line 168:

OCA\Mail\Service\AutoConfig\ImapConnector->connect()

/var/www/nextcloud/apps/mail/lib/Service/AutoConfig/IspDbConfigurationDetector.php - line 130:

OCA\Mail\Service\AutoConfig\IspDbConfigurationDetector->testImapConfiguration()

/var/www/nextcloud/apps/mail/lib/Service/AutoConfig/IspDbConfigurationDetector.php - line 101:

OCA\Mail\Service\AutoConfig\IspDbConfigurationDetector->detectImap()

/var/www/nextcloud/apps/mail/lib/Service/AutoConfig/AutoConfig.php - line 53:

OCA\Mail\Service\AutoConfig\IspDbConfigurationDetector->detectImapAndSmtp()

/var/www/nextcloud/apps/mail/lib/Service/SetupService.php - line 92:

OCA\Mail\Service\AutoConfig\AutoConfig->createAutoDetected()

/var/www/nextcloud/apps/mail/lib/Controller/AccountsController.php - line 320:

OCA\Mail\Service\SetupService->createNewAutoConfiguredAccount()

/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php - line 225:

OCA\Mail\Controller\AccountsController->create()

/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php - line 133:

OC\AppFramework\Http\Dispatcher->executeController()

/var/www/nextcloud/lib/private/AppFramework/App.php - line 172:

OC\AppFramework\Http\Dispatcher->dispatch()

/var/www/nextcloud/lib/private/Route/Router.php - line 298:

OC\AppFramework\App::main()

/var/www/nextcloud/lib/base.php - line 1023:

OC\Route\Router->match()

/var/www/nextcloud/index.php - line 36:

OC::handleRequest()

Was könnte ich tun?

Vielen Dank!

/var/www/nextcloud/lib/private/Security/Crypto.php’ line 97:
$keyMaterial = hash_hkdf(‘sha512’, $password);