19

Whenever I start AWS CodeBuild I get this type of error every time. please help.

DOWNLOAD_SOURCE Failed 3 mins, 2 secs

Get https://github.com/themithunbiswas/test-repo.git/info/refs?service=git-upload-pack: dial tcp 192.30.253.113:443: i/o timeout

Mithun Biswas
  • 803
  • 1
  • 6
  • 12

1 Answers1

30

The error message indicates that your build doesn't have internet connectivity. If you are setting up a project with VPC config, please check your VPC settings. You can refer to this documentation .Troubleshooting Your VPC Setup section to verify your VPC settings. You may also click the Validate VPC Settings button in CodeBuild's console to check your VPC settings.

Another most likely scenario is your codebuild does not have appropriate permission for accessing code which is either in codecommit,git or s3, if you use wizard to create this it will automatically grant appropriate permission to it.

Hope this helps!

Kush Vyas
  • 4,805
  • 2
  • 17
  • 32
  • 2
    To see "Validate VPC Settings" button you have to start editing the Build Project, the button will be at the bottom of the "VPC" section. – Putnik Nov 12 '18 at 15:13
  • 1
    This button is only available in the old console – Ryan Williams Nov 28 '18 at 04:56
  • 4
    I was forced to do the following to get it working 1) Create a new subnet (for private use only) 2) Create a "NAT Gateway" in that subnet 3) Add a "0.0.0.0/0" route via the NAT Gateway in my "Main" route table 4) Associate the private subnet with the "Main" route table 5) Associate my mixed private/public subnets with an alternate route table 6) Add a "0.0.0.0/0" route via an "Internet Gateway" to my alternate route table – Ryan Williams Nov 28 '18 at 04:57
  • super helpful. changing vpc settings solved it - thank you! – Tamas Kalman Jan 26 '19 at 01:34
  • 1
    The button is now back in the new console – WattsInABox Sep 17 '19 at 17:15