Skip to content

filedescriptor out of range in select() #739

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Ange7 opened this issue Apr 14, 2016 · 1 comment
Closed

filedescriptor out of range in select() #739

Ange7 opened this issue Apr 14, 2016 · 1 comment

Comments

@Ange7
Copy link

Ange7 commented Apr 14, 2016

I'm using supervisor v3.2.3 on Ubuntu Server 14.04.3 LTS (GNU/Linux 3.13.0-74-generic x86_64)

supervisord -v
3.2.3

If i configure more than 200 process in configuration(s) file(s) of supervisor i have this error :

Traceback (most recent call last):
File "/usr/local/bin/supervisord", line 9, in
load_entry_point('supervisor==3.2.3', 'console_scripts', 'supervisord')()
File "/usr/local/lib/python2.7/dist-packages/supervisor/supervisord.py", line 367, in main
go(options)
File "/usr/local/lib/python2.7/dist-packages/supervisor/supervisord.py", line 377, in go
d.main()
File "/usr/local/lib/python2.7/dist-packages/supervisor/supervisord.py", line 83, in main
self.run()
File "/usr/local/lib/python2.7/dist-packages/supervisor/supervisord.py", line 100, in run
self.runforever()
File "/usr/local/lib/python2.7/dist-packages/supervisor/supervisord.py", line 220, in runforever
r, w, x = self.options.select(r, w, x, timeout)
File "/usr/local/lib/python2.7/dist-packages/supervisor/options.py", line 1227, in select
return select.select(r, w, x, timeout)
ValueError: filedescriptor out of range in select()

thank you

@mnaberez
Copy link
Member

Fixed in 9e6aa44 (PR #129).

Note from changelog:

  • supervisord will now use kqueue, poll, or select to monitor
    its file descriptors, in that order, depending on what is available on the
    system. Previous versions used select only and would crash with the error
    ValueError: filedescriptor out of range in select() when running a large
    number of subprocesses (whatever number resulted in enough file descriptors
    to exceed the fixed-size file descriptor table used by select, which is
    typically 1024). Patch by Igor Sobreira.

This change will be released in Supervisor 3.3.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants