https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38352 Bug ID: 38352 Summary: cleanup_database.pl is not deleting the upload file from the server Change sponsored?: --- Product: Koha Version: 24.05 Hardware: All OS: All Status: NEW Severity: normal Priority: P5 - low Component: Command-line Utilities Assignee: koha-bugs@lists.koha-community.org Reporter: aleisha@catalyst.net.nz QA Contact: testopia@bugs.koha-community.org CC: robin@catalyst.net.nz When running cleanup_database.pl with --temp-uploads it should delete the associated file from the server when it clears the record from the uploaded_files table in the database. This works as expected in main/upstream. It does not appear to work in 24.05.x Severity = normal because this could cause the disk to fill up and break uploads of all types including staging MARC files. To reproduce: 1. Check out origin/main 2. Go to Tools -> Upload and upload a temporary file (not using an upload category) 3. In your KTD, look at the files in /var/lib/koha/kohadev/tmp/koha_kohadev_upload/ and notice your upload is there 4. Run cleanup_database.pl like koha-foreach --chdir --enabled /usr/share/koha/bin/cronjobs/cleanup_database.pl --confirm --temp-uploads --verbose 5. Confirm your uploaded file is gone from the Uploads interface in Koha, and from /var/lib/koha/kohadev/tmp/koha_kohadev_upload/ 6. Repeat the above plan with 24.05.x checked out and notice the file is still in /var/lib/koha/kohadev/tmp/koha_kohadev_upload/ -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.