autonose icon indicating copy to clipboard operation
autonose copied to clipboard

autonose failing with "Too many open files"

Open cro opened this issue 13 years ago • 2 comments

I used autonose successfully for the better part of a day, and now when I start it up it runs the first set of tests and then fails with "Too many open files." I've tried resetting the allowed number of open files by adding

resource.setrlimit(resource.RLIMIT_NOFILE, (1000, -1))

to the autonose startup script, but it hasn't helped. Mac OS 10.7.1 (Lion), stock Python 2.7.1 in a virtualenv.

My kern.maxfiles is set to 12288. 'limit' in zsh says the number of descriptors is unlimited.

cro avatar Aug 19 '11 17:08 cro

Same for me, on 10.7.1 with Python 2.5.6 in virtualenv

ghost avatar Aug 26 '11 18:08 ghost

autonose uses watchdog for the file watching stuff: https://github.com/gorakhargosh/watchdog. I'm afraid I don't use a mac, so can't reproduce. I presume "ulimit -n 1024" (from the watchdog readme) affects the same settingas the rlimit command in the initial report?

timbertson avatar Aug 30 '11 08:08 timbertson