<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>Thanks for confirming the issue. <br>
</p>
<p>I found the source of the problem with the help of SchedMD
support. 18.08.4 has this bugfix to prevent commands in the cwd
from taking precedence over commands in your PATH:<br>
</p>
<p><a class="moz-txt-link-freetext" href="https://github.com/SchedMD/slurm/commit/ccafaf7b60090155639edcbdbf4a3ab5e36967c6">https://github.com/SchedMD/slurm/commit/ccafaf7b60090155639edcbdbf4a3ab5e36967c6</a></p>
<p>There is a command /usr/bin/batch which is part of the at
package:</p>
<p>$ which batch<br>
/usr/bin/batch<br>
</p>
<p>$ rpm -qf /usr/bin/batch<br>
at-3.1.10-49.el6.x86_64</p>
<p>I'm sure just about every Linux system has at installed. As a
result, <br>
</p>
<p>sbatch batch</p>
<p>becomes <br>
</p>
<p>sbatch /usr/bin/batch</p>
<p>The fix is to use a relative or absolute path to your batch file,
like this: <br>
</p>
<p>sbatch ./batch</p>
<p>SchedMD support told me to send them the output of sbatch -v
batch, when I ran that command, I saw this in the output:</p>
<pre class="bz_comment_text" id="comment_text_14">sbatch: remote command : `/usr/bin/batch'
</pre>
Once I saw that, I understood what was going on, and SchedMD support
confirmed that was caused by a bugfix in 18.08.4 <br>
<pre class="moz-signature" cols="72">Prentice</pre>
<div class="moz-cite-prefix">On 12/19/18 2:43 PM, mercan wrote:<br>
</div>
<blockquote type="cite"
cite="mid:7532310a-a81d-ef96-e4fb-4faa25c4c811@uhem.itu.edu.tr">Hi;
<br>
<br>
We upgraded from 18.08.3 to 18.08.4 and there is a job_submit.lua
script also. And nearly same issue at our cluster:
<br>
<br>
$ sbatch batch
<br>
sbatch: error: Batch job submission failed: Unspecified error
<br>
$ mv batch nobatchy
<br>
$ sbatch nobatchy
<br>
Submitted batch job 172174
<br>
<br>
I hope this helps.
<br>
<br>
Ahmet M.
<br>
<br>
<br>
19.12.2018 21:54 tarihinde Prentice Bisbal yazdı:
<br>
<pre class="bz_comment_text" id="comment_text_14">Once I saw that, I understood what the problem was, </pre>
<blockquote type="cite">Yesterday I upgraded from 18.08.3 to
18.08.4. After the upgrade, I found that batch scripts named
"batch" are being rejected. Simply changing the script name
fixes the problem. For example:
<br>
<br>
$ sbatch batch
<br>
sbatch: error: ERROR: A time limit must be specified
<br>
sbatch: error: Batch job submission failed: Time limit
specification required, but not provided
<br>
<br>
$ mv batch different_name
<br>
<br>
$ sbatch different_name
<br>
Submitted batch job 398507
<br>
<br>
Not sure if this is a bug in sbatch, my job_submit.lua file, or
the lua plugin. My job_submit.lua script hasn't been modified
since 10/16/2018. I was using 18.08.3 since 11/20, and the user
that reported this has used the same batch script to submit jobs
prior to the update w/o any issues.
<br>
<br>
Has anyone else upgraded to 18.08.4? If so, can you replicate
this issue? I have already reported this to SchedMD. This BugID
is 6271.
<br>
<br>
<br>
</blockquote>
</blockquote>
</body>
</html>