Submitting on my laptop fails

Create issue
Issue #251 closed
Erik Schnetter created an issue

I created and submitted a simulation on my laptop. Stdout is:

DEBUG: Simfactory command: /Users/eschnett/EinsteinToolkit-hg-vanilla/simfactory/bin/../lib/ "run" "empty-redshift-2011.01.29-17.55.42" "--machine=redshift" "--restart-id=0" DEBUG: Version 1176M The Simulation Factory: Manage Cactus simulations

Info: defs: /Users/eschnett/EinsteinToolkit-hg-vanilla/simfactory/etc/defs.ini Info: defs.local: /Users/eschnett/EinsteinToolkit-hg-vanilla/simfactory/etc/defs.local.ini

Stderr is:

Traceback (most recent call last): File "/Users/eschnett/EinsteinToolkit-hg-vanilla/simfactory/bin/../lib/", line 141, in <module> File "/Users/eschnett/EinsteinToolkit-hg-vanilla/simfactory/bin/../lib/", line 130, in main File "/Users/eschnett/EinsteinToolkit-hg-vanilla/simfactory/lib/", line 228, in CleanupRestarts File "/Users/eschnett/EinsteinToolkit-hg-vanilla/simfactory/lib/", line 399, in GetActiveRestartId File "/Users/eschnett/EinsteinToolkit-hg-vanilla/simfactory/lib/", line 387, in GetRestartIds OSError: [Errno 24] Too many open files: '/Users/eschnett/simulations/ml-mclachlan-rhs-i0000'


Comments (2)

  1. anonymous
    • changed status to resolved
    • removed comment

    I don't really know what to do about this -- it's erroring with too many open files, which is an OS problem, and something simfactory can't control. The function that is failing is os.listdir(simulationDir), which is necessary to get the list of restarts inside of a simulation. I could switch to using ls and parse the output myself, but that isn't cross platform. I'll do some auditing in simfactory to make sure it closes files that it opens, but os.listdir internally opens and closes the directory file handle. Nothing that can be controlled.

    I'm open to suggestions?

  2. Log in to comment