Estoy tratando de utilizar tela para implementar un proyecto de Django y me sale este error cuando corro hg pull
:hg trago de bitbucket con tela
[myusername.webfactional.com] run: hg pull
[myusername.webfactional.com] out: remote: Warning: Permanently added the RSA host key for IP address '207.223.240.181' to the list of known hosts.
[myusername.webfactional.com] out: remote: Permission denied (publickey,gssapi-keyex,gssapi-with-mic).
[myusername.webfactional.com] err: abort: no suitable response from remote hg!
Fatal error: run() encountered an error (return code 255) while executing 'hg pull'
que se puede ejecutar otros comandos mercuriales como hg status
, y simplemente hg log
bien desde mi archivo fab.
He generado una clave SSH en el servidor y la he agregado a mi cuenta de bitbucket. Esto funciona como puedo SSH y ejecutar hg pull
y funciona bien, es solo cuando se usa tela.
Esta es mi fabfile:
from __future__ import with_statement
from fabric.api import *
env.hosts = ['myusername.webfactional.com']
env.user = "myusername"
def development():
# Update files
local("hg push")
with cd("~/webapps/mysite/mysite"):
run("hg pull")
# Update database
with cd("~/webapps/mysite/mysite"):
run("python2.6 manage.py syncdb")
run("python2.6 manage.py migrate")
# Reload apache
run("~/webapps/mysite/apache2/bin/restart")
¿Alguna idea?
EDIT:
conseguí este trabajo usando https
lo que en lugar de
hg pull
estoy usando
hg pull https://[email protected]/myusername/mysite
tengo el mismo problema aquí. Esto resuelve: http://lincolnloop.com/blog/2009/sep/22/easy-fabric-deployment-part-1-gitmercurial-and-ssh/ – semente