简体   繁体   English

奇怪的流浪/ SSH连接行为

[英]Strange Vagrant / SSH Connection Behaviour

I'm running some Capistrano & Chef tasks on some local vagrant VM's. 我在一些当地的流浪汉VM上运行一些Capistrano和Chef任务。 I can SSH into these boxes normally from the command line. 我可以通常从命令行SSH到这些框。

When I try to run some Capistrano tasks, I will always get the following error the first time I run the Cap task: 当我尝试运行一些Capistrano任务时,我将在一次运行Cap任务时遇到以下错误:

connection failed for: 192.168.0.220 (Errno::ECONNRESET: Connection reset by peer)

It will occasionally fail a second time too. 它偶尔会失败第二次。 But then when I run it again, it works! 但是当我再次运行它时,它的工作原理! This behaviour makes no sense to me and I haven't the slightest idea how to troubleshoot. 这种行为对我没有任何意义,我对如何进行故障排除没有任何想法。

Any help you could provide would be appreciated! 您可以提供的任何帮助将不胜感激!

I faced the same issue before, The Problem is faced was the machine didn't have enough resources to execute tasks. 我之前遇到过同样的问题,问题是机器没有足够的资源来执行任务。

I increased ram to the machine, everything started working again. 我增加了ram到机器,一切都开始工作了。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM