DOWNLOAD_SOURCE Failed AWS CodeBuild

Mithun Biswas picture Mithun Biswas · Aug 27, 2018 · Viewed 9.7k times · Source

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

Answer

Kush Vyas picture Kush Vyas · Aug 27, 2018

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!