Cloud build randomly failing to checkout from github.

I’ve been using cloud build with my project hosted on github for some time now, but as of last week, it’s been intermittently failing to pull the project from github. (Almost every second build attempt fails, while the rest are fine)

This is a log from a failed cloud build.

1: Running Prebuild steps
2: In quiet period, build will start momentarily…
3: Agent pid 1306
4: All identities removed.
5: Removing bvr
6: Successfully uninstalled bvr-1.2.12
7: done.
8: bvr 1.5.24
9: bvr-api 0.3.3
10: prebuildstatus finished successfully.
11: All identities removed.
12: Agent pid 1776
13: BVR: SCM Checkout
14: GIT: Checkout project…
15: GIT: Checking out git://github.com/JapaMala/armok-vision.git/master
16: [05:30:34] [ INFO] clone(): git lfs clone
17: [05:30:34] [ INFO] Cloning into ‘/BUILD_PATH/japa.armok-vision.armok-vision’…
18: [05:31:04] [ INFO]
19: fatal: Unable to look up github.com (port 9418) (nodename nor servname provided, or not known)
20: [05:31:04] [ INFO]
21: Error(s) during clone:
22: [05:31:04] [ INFO]
23: git clone failed: exit status 128
24: [05:31:04] [ INFO]
25: GIT: Error during clone: git lfs clone ‘–branch’ ‘master’ ‘–recursive’ ‘–’ ‘git://github.com/JapaMala/armok-vision.git’ ‘/BUILD_PATH/japa.armok-vision.armok-vision’ 2>&1:
26: ! checkout failed. git lfs clone ‘–branch’ ‘master’ ‘–recursive’ ‘–’ ‘git://github.com/JapaMala/armok-vision.git’ ‘/BUILD_PATH/japa.armok-vision.armok-vision’ 2>&1:
27: Build step ‘Execute shell’ marked build as failure
28: FATAL: command execution failed
29: java.io.IOException: Cannot run program “/bin/bash” (in directory “/BUILD_PATH/japa.armok-vision.armok-vision”): error=2, No such file or directory
30: Caused by: java.io.IOException: error=2, No such file or directory
31: at java.lang.UNIXProcess.forkAndExec(Native Method)
32: Build step ‘Execute shell’ marked build as failure
33: postbuildstatus finished successfully.
34: Finished: FAILURE

No settings are changed between builds.

PM me a link to your project and I’ll look into this

  • Sophia

Increasing the pull timeout worked, thanks!

Where did you do it and how?

how did you do it?

I am running into the same issue - how was that one fixed?

Also running into this issue, what’s the fix?