Note: This discussion is about an older version of the COMSOL Multiphysics® software. The information provided may be out of date.

Discussion Closed This discussion was created more than 6 months ago and has been closed. To start a new discussion with a link back to this one, click here.

error message: "Made 5 attempts creating a temp. file. Giving up!"

Please login with a confirmed email address before reporting spam

Dear all,

when I run a Comsol model from a Matlab model script on my local machine, it runs without a problem.
At the end the scripts generates some Comsol data sets and exports results along some 3D cut lines.
These files are created during a script run on my local machine without problems as well..

BUT: When I run the same script on my local machine, when it is connected to a comsol server, the exported result files will not be written.
The error message attached below appears in the Matlab command prompt.
To me it first seemed to be a read/write permission error. So I changed the directories on the Comsol server machine so that I have now write access as well.

I also tried using the -tmpdir swith with the comsolserver command and redirected Comsol's temporary files into a directory, where I have write access as well.
There are some temporary files created during the model run in this directory. So the redirection seems to work.
But still Comsol complains, that temporary files cannot be written.

Did anyone experience the same problem and has found a solution to this?
Is it a Java issue on the server machine?

Thanks a lot,
Juergen


??? Java exception occurred:
Exception:
java.lang.RuntimeException: Made 5 attempts creating a temp. file. Giving up!
(rethrown as com.comsol.util.exceptions.FlException)
Messages:
Made 5 attempts creating a temp. file. Giving up!

Stack trace:
at com.comsol.systemutils.SystemUtil.a(Unknown Source)
at com.comsol.systemutils.SystemUtil.a(Unknown Source)
at com.comsol.systemutils.SystemUtil.a(Unknown Source)
at com.comsol.systemutils.SystemUtil.a(Unknown Source)
at com.comsol.systemutils.SystemUtil.a(Unknown Source)
at com.comsol.systemutils.SystemUtil.a(Unknown Source)
at com.comsol.systemutils.SystemUtil.createTempFile(Unknown Source)
at com.comsol.systemutils.SystemUtil.createTempFile(Unknown Source)
at com.comsol.server.internal.f.createFile(Unknown Source)
at com.comsol.model.util.ModelUtil.createFile(Unknown Source)
at com.comsol.post.a.j.a(Unknown Source)
at com.comsol.post.a.h.execute(Unknown Source)
at com.comsol.model.impl.ExportFeatureImpl.n(Unknown Source)
at com.comsol.model.impl.ExportFeatureImpl.serverRun(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.comsol.clientserver.impl.JobImpl.run(Unknown Source)
at com.comsol.server.internal.b.a(Unknown Source)
at com.comsol.server.internal.b.a(Unknown Source)
at com.comsol.server.internal.b$h.a(Unknown Source)
at com.comsol.server.internal.b$h.a(Unknown Source)
at com.comsol.server.internal.b$h$a.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

Error in ==> script_run_automatic at 662
model.result.export('data1').run;

0 Replies Last Post Mar 15, 2011, 4:01 a.m. EDT
COMSOL Moderator

Hello Juergen Hansmann

Your Discussion has gone 30 days without a reply. If you still need help with COMSOL and have an on-subscription license, please visit our Support Center for help.

If you do not hold an on-subscription license, you may find an answer in another Discussion or in the Knowledge Base.

Note that while COMSOL employees may participate in the discussion forum, COMSOL® software users who are on-subscription should submit their questions via the Support Center for a more comprehensive response from the Technical Support team.