Search code examples
flaskfabricpycrypto

No handlers could be found for logger "paramiko.transport"


I am running some fabric tasks inside of flask. Flask is running inside of wsgi in apache. Once in a while I get this error in the apache logs:

No handlers could be found for logger "paramiko.transport"

I then have to restart apache for the fabric tasks that are called via flask to work again.

Any ideas here... I'm running Ubuntu 12.04

Fabric==1.5.3

paramiko==1.9.0

pycrypto==2.6

Flask==0.9

Solution

  • Seems like the answer was to add disconnect_all() to all of my fabric functions. Now the problem seems to have gone away.