aces / Loris-MRI

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

[dicomLoader] Confusing error for already converted upload #1124

Open MaximeMulder opened 1 month ago

MaximeMulder commented 1 month ago

I got a confusing error when I ran dicomLoader.pl on an already converted DICOM. First, I got the error after the whole conversion was done, and second, no useful information was printed into the console.

(loris-mri-python) lorisadmin@mmulder-test-26:/data/testing$ /opt/Loris-MRI/bin/mri/uploadNeuroDB/tarchiveLoader.pl -profile prod -uploadID 131 2008/DCM_2008-07-31_DCC090_587630_V2.tar
...
 ProjectID is:
PSCID is: DCC090
 CandID id: 587630
 visit_label is: V2

 ProjectID is:
PSCID is: DCC090
 CandID id: 587630
 visit_label is: V2

 ProjectID is:

  --> The minc file cannot be registered since unknown does not exist in prod or it did not pass the extra_file_checks
Use of uninitialized value $mail_user in concatenation (.) or string at /opt/Loris-MRI/bin/mri/uploadNeuroDB/tarchiveLoader.pl line 643.
mail: Cannot open mailbox /var/mail/lorisadmin: No such file or directory
No mail for lorisadmin

 No Mincs inserted

(loris-mri-python) lorisadmin@mmulder-test-26:/data/testing$ 

Obviously my mailbox is not well configured, but having a better error message in the console would be nice. However, I think it is a pretty minor bug and should not be a blocker.