Files_versions tries periodically to expire non-existing document

Hi,

I’ve retired (deleted) a local external storage which was connected to my NC. I did a rescan of all files to get rid of orphaned database entries, but however from that point on I’m periodically getting error messages in my log from files_versions which permanently tries to expire the versions of a file which was residing on the deleted external sotorage:

[core] Fehler: OCP\Files\NotFoundException: /marco/files/JayDoc FlairNet/Dokumente/MyDocument.pdf at <<closure>>

 0. /var/www/nextcloud/lib/private/Files/Node/Folder.php line 139
    OC\Files\Node\Root->get()
 1. /var/www/nextcloud/apps/files_versions/lib/Storage.php line 595
    OC\Files\Node\Folder->get()
 2. <<closure>>
    OCA\Files_Versions\Storage::OCA\Files_Versions\{closure}("*** sensitive parameters replaced ***")
 3. /var/www/nextcloud/apps/files_versions/lib/Storage.php line 610
    array_filter()
 4. /var/www/nextcloud/apps/files_versions/lib/BackgroundJob/ExpireVersions.php line 69
    OCA\Files_Versions\Storage::expireOlderThanMaxForUser()
 5. /var/www/nextcloud/lib/private/User/Manager.php line 639
    OCA\Files_Versions\BackgroundJob\ExpireVersions->OCA\Files_Versions\BackgroundJob\{closure}("*** sensitive parameters replaced ***")
 6. /var/www/nextcloud/apps/files_versions/lib/BackgroundJob/ExpireVersions.php line 70
    OC\User\Manager->callForSeenUsers()
 7. /var/www/nextcloud/lib/public/BackgroundJob/Job.php line 78
    OCA\Files_Versions\BackgroundJob\ExpireVersions->run()
 8. /var/www/nextcloud/lib/public/BackgroundJob/TimedJob.php line 103
    OCP\BackgroundJob\Job->start()
 9. /var/www/nextcloud/lib/public/BackgroundJob/TimedJob.php line 93
    OCP\BackgroundJob\TimedJob->start()
10. /var/www/nextcloud/cron.php line 152
    OCP\BackgroundJob\TimedJob->execute()

at 2023-03-28T02:55:03+02:00

I did not find a way yet to “tell” files_versions that this file simply does not exist anymore.

Any ideas?