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
Build commands run as root by default Cause: By default, CodeBuild runs all build commands as the root user.
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.
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.
Artifacts is a property of the AWS::CodeBuild::Project resource that specifies output settings for artifacts generated by an AWS CodeBuild build.
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!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With