Fabric error. No handlers were found for the paramiko.transport registrar.

I am not sure why I am getting this error that interrupts my connection. I updated paramiko-1.7.6 from 1.7.5 via easy_install.

I am trying to configure Fabric to download my Django application to my server. The error seems to occur when I try to backup an existing application directory:

def backup_current_install():
  now = datetime.datetime.now()
  cmd="cp -r /home/path/django-projects/app /home/path/django-projects/app%s" % now.strftime("%Y%m%d_%I:%M:%S")
run(cmd)

I have installed:

env.hosts  
env.password

The file is fabfile and I'm not sure how to navigate this handler error.

+5
source share
3 answers

Turns out this error was the result of not setting env.password as a simple string.

env.user env.password , .

+9

, .

(paramiko) , . -, , , .

. .

+2

:

If you want to find the root cause of the error in your application, it is useful to enable the logging that was reported by the message:

Fabric error. No handlers were found for the paramiko.transport registrar.

You can enable logging from paramico to fabric as follows:

from fabric.network import ssh

ssh.util.log_to_file("paramiko.log", 10)
0
source

All Articles