[Loris-dev] upload_file.pl issue

Nicolas Brossard nicolasbrossard.mni at gmail.com
Tue Sep 15 16:44:04 EDT 2020


Hi Ioannis,

No worries, we're here to help!

On Unix systems, all users usually have permission to create directories in
/tmp but just to be sure it'd be good idea to test that: just try

% mkdir /tmp/hello

and see if that works. If it does, then it means there's something more
"sneaky" going on.

You can try specifying an alternate temporary directory in which the upload
script will write files: just type the following line in your environment file
(located in the LORIS-MRI root directory):

export TMPDIR=/my/alternate/temporary/dir



Let me know if that helps.



Cheers,

Nicolas



On Tue, Sep 15, 2020 at 4:23 PM Ioannis Pappas <ioannis at berkeley.edu> wrote:

> Hi Loris support.
>
> Another quick question (hopefully I don’t occupy a lot of your time during
> this pandemic).
>
> I am running the simple imaging upload pearl script like this:
>
> *sudo -i -u lorisadmin
> /data/loris-mri/bin/mri/uploadNeuroDB/imaging_upload_file.pl
> <http://imaging_upload_file.pl> -profile prod -upload_id 2
> /data/loris/incoming/BR013_243782_V1.zip -verbose*
>
> I think the script involves creating some directories because it leads to
> an error. The error is this:
>
> *mkdir /tmp/ImagingUpload-13-7-7Z_JFF/BR013_243782_V1/BIAS_12ch_22:
> Permission denied at /usr/local/share/perl5/Archive/Zip/DirectoryMember.pm *
>
> Do you guys think it has to do with my permission at /tmp or there is
> something else more sneaky? The /tmp folder doesn’t seem to have anything
> related to *ImagingUpload*[..]
>
> Thank you very much. Hopefully I don’t see more errors in the script.
>
> Best wishes,
> Ioannis
> _______________________________________________
> Loris-dev mailing list
> Loris-dev at bic.mni.mcgill.ca
> https://mailman.bic.mni.mcgill.ca/mailman/listinfo/loris-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.bic.mni.mcgill.ca/pipermail/loris-dev/attachments/20200915/29e561da/attachment.html>


More information about the Loris-dev mailing list