StarExec
Would you like to react to this message? Create an account in a few clicks or log in to continue.

mktemp: failed to create file via template

2 posters

Go down

mktemp: failed to create file via template Empty mktemp: failed to create file via template

Post by j.waldmann Mon Feb 09, 2015 5:55 am

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!

j.waldmann

Posts : 84
Join date : 2014-04-26

Back to top Go down

mktemp: failed to create file via template Empty Re: mktemp: failed to create file via template

Post by Admin Wed Feb 11, 2015 10:04 pm

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

Admin
Admin

Posts : 162
Join date : 2014-04-22

http://www.cs.uiowa.edu/~astump/

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum