[Loris-dev] Errors when using delete_imaging_upload.pl

Morales Pinzon, Alfredo AMORALESPINZON at bwh.harvard.edu
Mon Apr 6 17:44:09 EDT 2020


Dear LorisDev team,

I successfully deleted 90% of the MRIs for a study using the script “delete_imaging_upload.pl”. Now I am dealing with the 10% missing. Here are the 4 types errors that I am getting, could you help me figure out how to delete these entries:

Error type 1:
===
Error! File /ABC/data/pic/979907/IPMSA_979907_m00_NA_001_182_check.jpg exists in the database but was not found on the file system.
Aborting.
===

Error type 2:
===
Error! File /ABC/data/assembly/677803/m12/mri/native/IPMSA_677803_m12_NA_002.nii exists in the database but was not found on the file system.
Aborting.
===

Error type 3:
===
/ABC/data/pic/819059/IPMSA_819059_m12_NA_006_3098_check.jpg
/ABC/data/pic/819059/IPMSA_819059_m12_NA_007_3099_check.jpg
/ABC/data/pic/819059/IPMSA_819059_m12_NA_008_3100_check.jpg
/ABCdata/pic/819059/IPMSA_819059_m12_NA_009_3101_check.jpg
/ABC/data/pic/819059/IPMSA_819059_m12_t1_001_3091_check.jpg
/ABC/data/pic/819059/IPMSA_819059_m12_t1_002_3092_check.jpg
/ABC/data/tarchive/2009/DCM_2009-12-10_ImagingUpload-7-57-r0hk9h.tar

DBD::mysql::db do failed: Cannot delete or update a parent row: a foreign key constraint fails (`IPMSA_LORIS`.`mri_upload`, CONSTRAINT `FK_mriupload_TarchiveID` FOREIGN KEY (`TarchiveID`) REFERENCES `tarchive` (`TarchiveID`)) at /data_/ipmsa/loris_data/IPMSA/bin/mri/tools//delete_imaging_upload.pl line 1612.
Issuing rollback() due to DESTROY without explicit disconnect() of DBD::mysql::db handle database=IPMSA_LORIS;host=132.216.133.50;port=3306; at /data_/ipmsa/loris_data/IPMSA/bin/mri/tools//delete_imaging_upload.pl line 1612.
===

Error type 4:
===
Cannot delete upload 1543: the MRI pipeline is currently processing it.
===

Looking forward to hearing from you.

Regards,
Alfredo.



More information about the Loris-dev mailing list