Closed coreyhartley closed 1 year ago
I suspect this particular server has a connection limit per user which you are surpassing. If possible you can ask them to bump the number of MaxSessions in sshd_config or at least find out what the limit is to try and avoid it. There maybe a feature request here, perhaps passing in a parameter that sets # of threads on the ThreadPoolExecutor()
to try minimize connections.
I should add this is the perfect use-case for the retry decorator. I would start with generous delay and backoff values and slowly work them back down.
We had been using version
1.0.6
for a few weeks in our repo, as well as what is inroot
for the last few days, and started to notice this exception consistently happening when attempting to useget_r
. Most files we tried to get came through, but we would not be able to grab the last few every time. Here is the traceback:Not sure if this was something being currently worked on or not, just wanted to shed some light on a potential issue. I was able to get
pysftp
working again on our repo and I can confirm that it did not happen using that dependency, with the same code.We also noticed
ChannelException(1, 'Administratively prohibited')
in some instances as well.