python - No handlers could be found for logger “paramiko.transport” with lost connection -


use fabric sudo() , meet error message !

"no handlers found logger paramiko" file "/usr/local/lib/python2.7/dist-packages/fabric/network.py", line 603, in connect raise networkerror(msg, e)

i meet same issue, think network not connect issue , use try syntax wait network ok.

the following code retry send sudo() command , not show error when network connection normally.

 loop = 10  in range(0,loop)   try:     sudo("ls -al")   except exception, exc :     print "exception %s, exc %s"(exception, exc)     print "i: %s in %s"%(i,loop) 


Comments

Popular posts from this blog

php - How to add and update images or image url in Volusion using Volusion API -

Laravel mail error `Swift_TransportException in StreamBuffer.php line 269: Connection could not be established with host smtp.gmail.com [ #0]` -

C#.NET Oracle.ManagedDataAccess ConfigSchema.xsd -