Nextcloud version : 27.1.2.1
Operating system and version: Docker on Unraid
Nextcloud-AIO: Nextcloud Hub 6
Iām having issue setting up the email notification system in Nextcloud-AIO containers after a reinstallation. In particular I want to use a gmail account with an application password specifically generated by my Google Account Management page, but when I click on the āSend emailā button to test and verify the email settings it doesnāt work.
The output of my Nextcloud log in Admin > Logging page doesnāt report anything about the email issue. I also enabled the āmail_smtpdebugā => true in my config file and restarted the nextcloud-aio-nextcloud container but nothing changged. I cannot find a log which describe be what is the problem.
In my config.php, which is almost the default, except for the mail_smtpdebug option I added to it, looks like this in the mail configuration part:
'mail_smtpsecure' => 'ssl',
'mail_sendmailmode' => 'smtp',
'mail_from_address' => 'myusername',
'mail_domain' => 'gmail.com',
'mail_smtphost' => 'smtp.google.com',
'mail_smtpport' => '465',
'mail_smtpauth' => 1,
'mail_smtpdebug' => true,
'mail_smtpname' => 'myusername@gmail.com',
'mail_smtppassword' => 'aaaa bbbb cccc dddd',
The last line of output in my nextcloud.log was written yesterday evening and as I reported above itās not even related to the email settings (keep in mind that I did the email verification test right now, so I should expect some error reported in the log, but itās not happening)
{
"app": "core",
"data": {
"app": "core",
"exception": "{\"class\":\"ValueError\",\"message\":\"hash_hkdf(): Argument #2 ($key) cannot be empty\",\"code\":0,\"file\":\"/var/www/html/lib/private/Security/Crypto.php:160\",\"trace\":\"#0 /var/www/html/lib/private/Security/Crypto.php(160): hash_hkdf('sha512', '')\\n#1 /var/www/html/lib/private/Security/Crypto.php(134): OC\\Security\\Crypto->decryptWithoutSecret('17e2f0c78b6e3a2...', '')\\n#2 /var/www/html/lib/private/Security/IdentityProof/Manager.php(128): OC\\Security\\Crypto->decrypt('17e2f0c78b6e3a2...')\\n#3 /var/www/html/lib/private/Security/IdentityProof/Manager.php(146): OC\\Security\\IdentityProof\\Manager->retrieveKey('user-admin')\\n#4 /var/www/html/lib/private/Security/IdentityProof/Signer.php(64): OC\\Security\\IdentityProof\\Manager->getKey(Object(OC\\User\\User))\\n#5 /var/www/html/apps/lookup_server_connector/lib/BackgroundJobs/RetryJob.php(137): OC\\Security\\IdentityProof\\Signer->sign('lookupserver', Array, Object(OC\\User\\User))\\n#6 /var/www/html/lib/public/BackgroundJob/Job.php(81): OCA\\LookupServerConnector\\BackgroundJobs\\RetryJob->run(Array)\\n#7 /var/www/html/apps/lookup_server_connector/lib/BackgroundJobs/RetryJob.php(102): OCP\\BackgroundJob\\Job->start(Object(OC\\BackgroundJob\\JobList))\\n#8 /var/www/html/lib/public/BackgroundJob/Job.php(67): OCA\\LookupServerConnector\\BackgroundJobs\\RetryJob->start(Object(OC\\BackgroundJob\\JobList))\\n#9 /var/www/html/cron.php(152): OCP\\BackgroundJob\\Job->execute(Object(OC\\BackgroundJob\\JobList), Object(OC\\Log))\\n#10 {main}\"}"
},
"level": 3,
"message": "Error while running background job (class: OCA\\LookupServerConnector\\BackgroundJobs\\RetryJob, arguments: Array\n(\n [userId] => admin\n)\n)",
"method": "",
"remoteAddr": "",
"reqId": "YCR3GzpWwLiqxNUApKK5",
"time": "2023-10-18T21:29:43+00:00",
"url": "--",
"user": "--",
"userAgent": "--",
"version": "27.1.2.1"
}
so how can I troubleshoot this issue if I donāt have any clue on whatās the problem? Where am I supposed to find the logs related to the email settings? Am I doing something wrong in the email setup?
Thanks in advance