lilydjwg / pssh

Parallel SSH Tools
Other
282 stars 64 forks source link

ValueError: filedescriptor out of range in select() #113

Closed tanev closed 4 years ago

tanev commented 4 years ago

Hello,

First thanks a lot for the great library, it is of a tremendous help with our daily activities. The below is happening with a seemingly long pytest set of tests:

src/gevent/greenlet.py:766: in gevent._greenlet.Greenlet.run
    ???
/usr/local/lib/python3.6/site-packages/pssh/clients/native/parallel.py:237: in _run_command
    raise ex
/usr/local/lib/python3.6/site-packages/pssh/clients/native/parallel.py:233: in _run_command
    use_pty=use_pty, encoding=encoding, timeout=timeout)
/usr/local/lib/python3.6/site-packages/pssh/clients/native/single.py:442: in run_command
    channel = self.execute(_command, use_pty=use_pty)
/usr/local/lib/python3.6/site-packages/pssh/clients/native/single.py:324: in execute
    channel = self.open_session() if channel is None else channel
/usr/local/lib/python3.6/site-packages/pssh/clients/native/single.py:297: in open_session
    wait_select(self.session)
pssh/native/_ssh2.pyx:171: in pssh.native._ssh2.wait_select
    ???
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

>   sel_results = _original_select(rlist, wlist, xlist, 0)
E   ValueError: filedescriptor out of range in select()

/usr/local/lib/python3.6/site-packages/gevent/select.py:145: ValueError

The above throws me in a pdb session, so I will leave this open for a while if you'd like me to share more info from it.

lilydjwg commented 4 years ago

Hi, you may have come to the wrong repo. This repo is about the pssh command line tool. You might be using this one: https://github.com/ParallelSSH/parallel-ssh.

tanev commented 4 years ago

Indeed, apologies for the stupid mistake... (me: needs more coffee)