Im using the fab script from here . fab deploy
throws an error at right after creating the application. The error is:
Fatal error: Low level socket error connecting to host username.webfactional.com: Connection refused (tried 1 time)
Underlying exception:
Connection refused
I have seen this answer , but I have ssh running on my machine.
I had a similar connection problem with recently started EC2 instances from AWS. Apparently, the instances may not yet be accessible via ssh even though their status has switched to running already.
There seems to be no proper solution, this is the most elegant I got:
while True:
try:
run('whoami')
break
except Exception, e:
print "instance not yet reachable, wait a little bit", e
time.sleep(10)
通过降级到Fabric 1.3.4而不是1.4来解决问题
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.