Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

DOWNLOAD_SOURCE Failed AWS CodeBuild

Tags:

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

like image 730
Mithun Biswas Avatar asked Aug 27 '18 06:08

Mithun Biswas


People also ask

Does CodeBuild run as root?

Build commands run as root by default Cause: By default, CodeBuild runs all build commands as the root user.

How do I find CodeBuild logs?

To see the entire build log in CloudWatch Logs, choose the View entire log link. In the CloudWatch Logs log stream, you can browse the log events. By default, only the last set of log events is displayed. To see earlier log events, scroll to the beginning of the list.

How do I create a Buildspec Yml file?

Create this file, name it buildspec. yml , and then save it in the root (top level) directory. Because a build spec declaration must be valid YAML, the spacing in a build spec declaration is important. If the number of spaces in your build spec declaration does not match this one, the build might fail immediately.

What are CodeBuild artifacts?

Artifacts is a property of the AWS::CodeBuild::Project resource that specifies output settings for artifacts generated by an AWS CodeBuild build.


1 Answers

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!

like image 82
Kush Vyas Avatar answered Oct 14 '22 22:10

Kush Vyas