aces / Loris-MRI

The set of scripts that preprocess and insert MRI data into the database.
10 stars 50 forks source link

[tarchiveLoader] Obscure error message displayed when config setting get_dicom_info is invalid #1011

Closed nicolasbrossard closed 1 year ago

nicolasbrossard commented 1 year ago

I modified config setting get_dicom_info and specified an invalid path (i.e script does not exists). I ran tarchiveLoader and got this output:

uploadNeuroDB/tarchiveLoader.pl -v -profile prod -uploadID 62 2018/DCM_2018-04-20_ImagingUpload-13-42-zcoZR0.tar
md5sum /data-raisinbread/tarchive/2018/DCM_2018-04-20_ImagingUpload-13-42-zcoZR0.tar
PSCID is: DCC090
 CandID id: 587630
 visit_label is: V1
PSCID is: DCC090
 CandID id: 587630
 visit_label is: V1
PSCID is: DCC090
 CandID id: 587630
 visit_label is: V1
PSCID is: DCC090
 CandID id: 587630
 visit_label is: V1
sh: 1: /tata/coco/p.pl: not found
find: ‘standard output’: Broken pipe
find: write error

Number of MINC files that will be considered for inserting into the database: 0

No data could be converted into valid MINC files.
localizer, scout will not be considered! 

It should be more obvious that tarchiveLoader failed because config setting get_dicom_info is invalid.