marius-wieschollek / passwords

A simple, yet feature rich password manager for Nextcloud
GNU Affero General Public License v3.0
202 stars 40 forks source link

[BUG]: Could not update breached passwords database #600

Closed pabloeisenhut closed 11 months ago

pabloeisenhut commented 11 months ago

⚠️ This issue respects the following points: ⚠️

Server Information

TrueNAS Scale

Client Information

Client independent

Bug description

For some time now, the following message appears at regular intervals.

Could not update breached passwords database 1

Steps to reproduce

After a migration of the cloud, this problem appeared for the first time. Unfortunately, I can not explain how this problem came about.

Expected behavior

No error message and the database breached passwords database updated.

Nextcloud Logs

[passwords] Fatal: Exception: Breached password database update failed at <>

  1. /var/www/html/custom_apps/passwords/lib/Cron/CheckPasswordsJob.php line 89 OCA\Passwords\Cron\CheckPasswordsJob->registerUpdateAttempt()
  2. /var/www/html/custom_apps/passwords/lib/Cron/AbstractTimedJob.php line 59 OCA\Passwords\Cron\CheckPasswordsJob->runJob(null)
  3. /var/www/html/lib/public/BackgroundJob/Job.php line 86 OCA\Passwords\Cron\AbstractTimedJob->run(null)
  4. /var/www/html/lib/public/BackgroundJob/TimedJob.php line 103 OCP\BackgroundJob\Job->start(["OC\BackgroundJob\JobList"])
  5. /var/www/html/lib/public/BackgroundJob/TimedJob.php line 93 OCP\BackgroundJob\TimedJob->start(["OC\BackgroundJob\JobList"])
  6. /var/www/html/cron.php line 152 OCP\BackgroundJob\TimedJob->execute(["OC\BackgroundJob\JobList"], ["OC\Log"])

at 2023-07-29T10:21:54+00:00

Browser Logs

No response

marius-wieschollek commented 11 months ago

Can you please add the missing information to this bug report. Just posting the notification isn't helpful.

marius-wieschollek commented 11 months ago

The reason none means that the update was aborted due to the previous failures. You should have gotten an error message in the first three notifications. If you don't have these any more, you can reset the attempts with this command:

./occ config:app:set passwords passwords/db/attempts --value=0;
pabloeisenhut commented 11 months ago

[passwords] Fatal: Exception: Breached password database update failed at <>

  1. /var/www/html/custom_apps/passwords/lib/Cron/CheckPasswordsJob.php line 89 OCA\Passwords\Cron\CheckPasswordsJob->registerUpdateAttempt()
  2. /var/www/html/custom_apps/passwords/lib/Cron/AbstractTimedJob.php line 59 OCA\Passwords\Cron\CheckPasswordsJob->runJob(null)
  3. /var/www/html/lib/public/BackgroundJob/Job.php line 86 OCA\Passwords\Cron\AbstractTimedJob->run(null)
  4. /var/www/html/lib/public/BackgroundJob/TimedJob.php line 103 OCP\BackgroundJob\Job->start(["OC\BackgroundJob\JobList"])
  5. /var/www/html/lib/public/BackgroundJob/TimedJob.php line 93 OCP\BackgroundJob\TimedJob->start(["OC\BackgroundJob\JobList"])
  6. /var/www/html/cron.php line 152 OCP\BackgroundJob\TimedJob->execute(["OC\BackgroundJob\JobList"], ["OC\Log"])

at 2023-07-29T10:21:54+00:00

pabloeisenhut commented 11 months ago

I have filled in all the information to the best of my knowledge. @marius-wieschollek is there any way to fix the problem?

marius-wieschollek commented 11 months ago

The exception you found in the logs is just the one that shows up once the maximum attempts have been reached. I have improved the wording in the exception and notifications in relation to this. You can try the command i wrote in my earlier comment to reset the attempts and see if that resolves the issue or at least brings back the original error messages. Or you can check this article in the wiki: https://git.mdns.eu/nextcloud/passwords/-/wikis/Administrators/Notifications/Breached-Passwords-Update-Failure-Notification

pabloeisenhut commented 11 months ago

Thanks, it actually seems to have been due to the opcache.memory_consumption setting.