Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Strange Vagrant / SSH Connection Behaviour

I'm running some Capistrano & Chef tasks on some local vagrant VM's. I can SSH into these boxes normally from the command line.

When I try to run some Capistrano tasks, I will always get the following error the first time I run the Cap task:

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!

like image 588
Brandon Avatar asked Feb 26 '13 12:02

Brandon


1 Answers

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.

like image 138
Pradeep Thimmireddy Avatar answered Oct 06 '22 00:10

Pradeep Thimmireddy