tags:

views:

412

answers:

2

I'm not sure why I'm getting this error that's terminating my connection. I updated paramiko-1.7.6 from 1.7.5 via easy_install.

I'm trying to setup Fabric to upload my Django app to my server. The error seems to be happening when I attempt to make a backup of the existing app 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 set:

env.hosts  
env.password

In the fabfile and I'm not sure how to navigate this handler error.

A: 

If it's not causing a problem, you can safely ignore this message.

(Configuring Logging for a Library) In this case, the library (paramiko), expects the application to handle the logging. The application programmer however probably expected the library to not have any side effects, and handle logging properly.

JimB
the error is terminating the connection
BryanWheelock
It's more likely the other way around - your connection is being terminated, and paramiko is attempting to log the error. That message is printed to the console, but there isn't any exception raised.
JimB
+2  A: 

It turns out that this error was a result of me not configuring env.password as a simple string.

Both env.user and env.password should be simple strings, not Lists. Documentation

BryanWheelock