mktemp: failed to create file via template
2 posters
Page 1 of 1
mktemp: failed to create file via template
Hi, I'm seeing this in some job (pair) log files (e.g., https://www.starexec.org/starexec/secure/details/pair.jsp?id=43489107 ) while other pairs from the same job ( https://www.starexec.org/starexec/secure/details/job.jsp?id=6592 ) went fine.
mktemp: failed to create file via template `/tmp/1561177.1.all2.q/tmp.XXXXXXXXXX': No such file or directory
/home/starexec/sge_scripts/functions.bash: line 27: $TMP: ambiguous redirect
/home/starexec/sge_scripts/functions.bash: line 30: $TMP: ambiguous redirect
/home/starexec/sge_scripts/functions.bash: line 33: $TMP: ambiguous redirect
rm: missing operand
Try `rm --help' for more information.
tomcat
STAREXEC Job Log
(C) 2015 The University of Iowa
=====================================
date: Sun Feb 8 17:29:59 CST 2015
user: #6
sge job: #1561177
pair id: 43489107
solver:
solverid: 2315
timestamp: 2015-02-08 13:03:36.0
configuration: complex.sh
benchmark:
execution host: n022.star.cs.uiowa.edu
/home/starexec/sge_scripts/functions.bash: line 162: /export/starexec/sandboxlock.active: Read-only file system
/home/starexec/sge_scripts/functions.bash: line 162: /export/starexec/sandbox2lock.active: Read-only file system
02/08/15 05:29:59 PM CST: isInteger called on -1
02/08/15 05:29:59 PM CST: sent job status 11 to starexec1.star.cs.uiowa.edu
02/08/15 05:29:59 PM CST: unable to secure any sandbox for this job!
mktemp: failed to create file via template `/tmp/1561177.1.all2.q/tmp.XXXXXXXXXX': No such file or directory
/home/starexec/sge_scripts/functions.bash: line 27: $TMP: ambiguous redirect
/home/starexec/sge_scripts/functions.bash: line 30: $TMP: ambiguous redirect
/home/starexec/sge_scripts/functions.bash: line 33: $TMP: ambiguous redirect
rm: missing operand
Try `rm --help' for more information.
tomcat
STAREXEC Job Log
(C) 2015 The University of Iowa
=====================================
date: Sun Feb 8 17:29:59 CST 2015
user: #6
sge job: #1561177
pair id: 43489107
solver:
solverid: 2315
timestamp: 2015-02-08 13:03:36.0
configuration: complex.sh
benchmark:
execution host: n022.star.cs.uiowa.edu
/home/starexec/sge_scripts/functions.bash: line 162: /export/starexec/sandboxlock.active: Read-only file system
/home/starexec/sge_scripts/functions.bash: line 162: /export/starexec/sandbox2lock.active: Read-only file system
02/08/15 05:29:59 PM CST: isInteger called on -1
02/08/15 05:29:59 PM CST: sent job status 11 to starexec1.star.cs.uiowa.edu
02/08/15 05:29:59 PM CST: unable to secure any sandbox for this job!
j.waldmann- Posts : 84
Join date : 2014-04-26
Re: mktemp: failed to create file via template
Thanks for reporting this. I have to imagine this is a transient system error, as it is reporting a problem running the mktemp command. The lines from our script that are triggering the error are:
TMP=`mktemp`
echo $SOLVER_NAME > $TMP
Not much room for a bug in our code there, although it looks like maybe somehow the TMPDIR environment variable is getting set (we are not setting it in our code), since the temporary file in question is "/tmp/1561177.1.all2.q/tmp.XXXXXXXXXX". I'll change our script so we specify /tmp explicitly to mktemp.
Thanks,
Aaron
TMP=`mktemp`
echo $SOLVER_NAME > $TMP
Not much room for a bug in our code there, although it looks like maybe somehow the TMPDIR environment variable is getting set (we are not setting it in our code), since the temporary file in question is "/tmp/1561177.1.all2.q/tmp.XXXXXXXXXX". I'll change our script so we specify /tmp explicitly to mktemp.
Thanks,
Aaron
Similar topics
» in "create job", please show configuration ids
» Memory usage in CSV file
» Create job form is broken, JS-Error
» restore file extension for renamed benchmarks
» One line record with multiple solvers' results for each benchmark in csv file
» Memory usage in CSV file
» Create job form is broken, JS-Error
» restore file extension for renamed benchmarks
» One line record with multiple solvers' results for each benchmark in csv file
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum