Dear StataList Users,
I have the following problem.
I'm running multiple parallel Stata sessions in a server, using commands such as nohup stata -b dofile.do &. Each dofile.do is a standalone piece of code, so I run many at the same time calling multiple Stata sessions in multiple cores.
However, the programs eventually crash throwing errors such as "file /tmp/St14980.000003 already exists" or "file /tmp/St22536.000002 could not be opened". It does not happen every time in the same place, and sometimes it doesn't happen at all. But it does happen with probability >0. For instance, later, if I run the same dofile.do that crashed, it runs smoothly.
Is there a good solution for this? Is there a correct way to run parallel Stata instances?
It's hard to fix it since errors are unpredictable; they depend on some way that Stata has in creating temporary files, naming and deleting them. I've read this but still couldn't figure it out.
Thanks a lot!
I have the following problem.
I'm running multiple parallel Stata sessions in a server, using commands such as nohup stata -b dofile.do &. Each dofile.do is a standalone piece of code, so I run many at the same time calling multiple Stata sessions in multiple cores.
However, the programs eventually crash throwing errors such as "file /tmp/St14980.000003 already exists" or "file /tmp/St22536.000002 could not be opened". It does not happen every time in the same place, and sometimes it doesn't happen at all. But it does happen with probability >0. For instance, later, if I run the same dofile.do that crashed, it runs smoothly.
Is there a good solution for this? Is there a correct way to run parallel Stata instances?
It's hard to fix it since errors are unpredictable; they depend on some way that Stata has in creating temporary files, naming and deleting them. I've read this but still couldn't figure it out.
Thanks a lot!
Comment