Search Unity

Cloud build randomly failing to checkout from github.

Discussion in 'Unity Build Automation' started by RosieGarden, Apr 4, 2017.

  1. RosieGarden

    RosieGarden

    Joined:
    May 4, 2013
    Posts:
    33
    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.
     
  2. SophiaC

    SophiaC

    Joined:
    Sep 6, 2016
    Posts:
    238
    PM me a link to your project and I'll look into this

    - Sophia
     
  3. RosieGarden

    RosieGarden

    Joined:
    May 4, 2013
    Posts:
    33
    Increasing the pull timeout worked, thanks!
     
  4. pesahov

    pesahov

    Joined:
    May 24, 2017
    Posts:
    12
    Where did you do it and how?
     
  5. domdev

    domdev

    Joined:
    Feb 2, 2015
    Posts:
    375
    how did you do it?
     
  6. DennisNissen

    DennisNissen

    Joined:
    Apr 17, 2013
    Posts:
    1
    I am running into the same issue - how was that one fixed?
     
  7. nykwil

    nykwil

    Joined:
    Feb 28, 2015
    Posts:
    49
    Also running into this issue, what's the fix?