Server Information
osTicket Version v1.16.1 (b42ddc7)
Web Server Software Apache/2.4.53 (Debian)
MySQL Version 10.5.15
PHP Version 8.1.4
I've had a problem recently where the database got too large to contain any more attachments. Whilst the tickets came through the attachments failed. I've moved the attachments out of the database into a separate directory and migrated the files over into this folder.
However, with the ones that are missing the database still seems to think they are there. I ran sudo -u www-data php manage.php file migrate --backend D --to F and get IOErrors as it can't find the files. I've gone through the tickets, removing some of the corrupt attachments manually and this appears to have reduced the amount of IO errors. There's just two left which give "Unable to read from file".
Is there an easy way to purge these from the database or am I stuck to going through all the tickets?