Page 1 of 1

Unable to access file --file is locked (SDDS_InitializeOutput)

Posted: 31 Jan 2021, 22:27
by duanz
Hi Michael,

I'm using SLURM to submit elegant/Pelegant jobs on a cluster, inside the bash script there is a sddsprocess command that generate a new file out of an old file. But when the script is executed, sometimes( not always ) there is the following error message:

Error for sddsprocess:

Unable to access file "the filename" --file is locked (SDDS_InitializeOutput).

I wonder what is the cause for such an error, and what I could do to avoid it.


I just saw a possibly related question by Hexin "elegant file locked on centos7 server" , the following is the information of the file system I use, I installed elegant and sddstoolkit 2020.5.0 by compiling the source files.

(base) -bash-4.2$ mount | grep /sharefs | grep lustre
192.168.50.77@tcp:/sharefs on /sharefs type lustre (rw,flock,lazystatfs)


Thanks and best regards,

Zhe

Re: Unable to access file --file is locked (SDDS_InitializeOutput)

Posted: 01 Feb 2021, 10:08
by soliday
Are you sure that two jobs are not writing to the same file? Is there something in your bash script that would keep the output file names different from each other when you launch multiple jobs at the same time?

Re: Unable to access file --file is locked (SDDS_InitializeOutput)

Posted: 01 Feb 2021, 16:51
by duanz
Hi Soliday,

Thanks for your reply! I now put the sdds commands into a separate bash script, executed before the slurm script which only now submit the Pelegant job. In this way the above-mentioned issue is solved.

Best,

Zhe