Unexpected Exception occurred at xx: Could not delete unclaimed file <File(371, b01b4557-828f-422d-9cef-24809bae9cfb, application/zip): "material-package.zip">

Hi community,

i ran into disk problems (nodiskspace) recently and after delete some tmp files i get this loggermails every single morning. I am afraid to have no solution for it but hope you can tell me how to fix it

2025-01-03 06:00:00,709 0000000000000000 - indico.files - ERROR tasks.py:45 – Could not delete unclaimed file <File(354, d1f9e5e5-8c69-4f60-8fdf-eaf12a2759a0, application/zip): “material-package.zip”>: Could not delete “event/210/attachment-package/354-material-package.zip”: [Errno 2] No such file or directory: ‘/opt/indico/archive/event/210/attachment-package/354-material-package.zip’

Just touch those files so they exist and can be deleted - then the tasks will suceed. That’s the easiest option.

Alternatively, you could delete those unclaimed files directly from the DB (via indico shell).

1 Like

Yes that works. Thank you so much. I’ved added the files by hand and now the errors are gone.

1 Like