Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Build Fail Error: Caused by java.net.SocketException: Operation Timed Out

Discussion in 'Unity Build Automation' started by AdamKane, Aug 1, 2016.

  1. AdamKane

    AdamKane

    Joined:
    Dec 3, 2012
    Posts:
    134
    Hello ,

    Seeing this error:

     
  2. sachin-mohite

    sachin-mohite

    Joined:
    Apr 10, 2016
    Posts:
    4
    We are also facing this quit often. Have you got it resolved?
     
  3. sachin-mohite

    sachin-mohite

    Joined:
    Apr 10, 2016
    Posts:
    4
    We are also facing this quit often. Its very random. I don't have any solution to it.

    I am using SVN on Assembla. Can this be reason for the same?
     
  4. jtate5

    jtate5

    Joined:
    Jan 13, 2014
    Posts:
    24
    I'm having the same issues as well with Assembla.
     
  5. AdamKane

    AdamKane

    Joined:
    Dec 3, 2012
    Posts:
    134
    Seeing build fails increasingly often from:
    Build Fail Error: Caused by java.net.SocketException: Operation Timed Out

     
  6. tonemcbride

    tonemcbride

    Joined:
    Sep 7, 2010
    Posts:
    1,083
    I have a similar issue with assembla too - it was working in the past but I tried a build yesterday and it failed 3 times.

    The first fail managed to get some files but then failed like this:

    Code (CSharp):
    1. 1: Running Prebuild steps
    2. 2: Removing bvr
    3. 3: Successfully uninstalled bvr-1.2.12
    4. 4: 1 gem installed
    5. 5: done.
    6. 6: bvr 1.2.15
    7. 7: bvr-api 0.2.4
    8. 8: Checking out a fresh workspace because there's no workspace at /BUILD_PATH/my-company-ltd.mkk.ios_mkk
    9. 9: Cleaning local Directory .
    10. 10: Checking out https://subversion.assembla.com/svn/mycompany/MKK at revision '2016-08-11T12:58:26.040 -0500'
    11. 11: A         Assets
    12. 12: A         Assets/Scenes
    13. 13: AU        Assets/Scenes/Game_Demo.unity
    14. ..... (REMOVED FOR VERBOSITY)
    15. 2229: AU        Assets/Resources/Prefabs/Buildings/Upgrade_GUI/Soldiers.png
    16. 2230: svn: E175002: REPORT request failed on '/svn/mycompany/!svn/vcc/default'
    17. 2231: Caused by: java.net.SocketException: Operation timed out
    18. 2232:     at java.net.SocketInputStream.socketRead0(Native Method)
    19. 2233: Caused by: java.io.IOException: Failed to check out https://subversion.assembla.com/svn/mycompany/MKK
    20. 2234: svn: E175002: REPORT request failed on '/svn/mycompany/!svn/vcc/default'
    21. 2235: Caused by: java.net.SocketException: Operation timed out
    22. 2236:     at java.net.SocketInputStream.socketRead0(Native Method)
    23. 2237: postbuildstatus finished successfully.
    24. 2238: Finished: FAILURE
    25. 2239:
    26.  
    The second fail had a completely different error:

    Code (CSharp):
    1. Running Prebuild steps
    2. 2: Removing bvr
    3. 3: Successfully uninstalled bvr-1.2.12
    4. 4: 1 gem installed
    5. 5: done.
    6. 6: bvr 1.2.15
    7. 7: bvr-api 0.2.4
    8. 8: Checking out a fresh workspace because there's no workspace at /BUILD_PATH/my-company-ltd.mkk.ios_mkk
    9. 9: Cleaning local Directory .
    10. 10: Checking out https://subversion.assembla.com/svn/mycompany/MKK at revision '2016-08-11T14:22:29.555 -0500'
    11. 11: ERROR: Failed to check out https://subversion.assembla.com/svn/mycompany/MKK
    12. 12: org.tmatesoft.svn.core.SVNCancelException: svn: E200015: authentication cancelled
    13. 13: FATAL: null
    14. 14: postbuildstatus finished successfully.
    15. 15: Finished: FAILURE
    16. 16:  
     
  7. cogofhate

    cogofhate

    Joined:
    Feb 8, 2016
    Posts:
    2
    I see this almost every second build. It's quite annoying. I have access to my perforce from multiple computers and have had 0 problems. Something seems up with the cloud build. Would love if this is resolved. I hate having to start another build because of timeout failure.
     
  8. tonemcbride

    tonemcbride

    Joined:
    Sep 7, 2010
    Posts:
    1,083
    I get this every build now too, it's very frustrating and ends up making me feel the cloud build is unreliable - I've gone back to local builds now as I'm not sure whether the cloud build will work or not :(
     
  9. AdamKane

    AdamKane

    Joined:
    Dec 3, 2012
    Posts:
    134
    Still seeing mostly build fails. Not a huge issue for us at the time, but wanted to give the update in case it's useful.

     
  10. andyz

    andyz

    Joined:
    Jan 5, 2010
    Posts:
    2,251
    Tried assembla with SVN - gave the same timeout error part way through checking out - also "svn: E175002: REPORT request failed on...".

    Is the fault with the cloud build system or the source hosts?
     
  11. Marzipan

    Marzipan

    Joined:
    Feb 21, 2013
    Posts:
    7
    We are seeing this as well, and we host our SVN repository locally. It seems to have problem with large files, say over 10 MB or so. Sometimes it synchs them successfully, sometimes it doesn't. Would very much like to see a solution to this before we commit to one of the paid Cloud Build plans.
     
  12. andyz

    andyz

    Joined:
    Jan 5, 2010
    Posts:
    2,251
    I have seen a couple of errors with building in Unity cloud build but plenty of times it suceeds as well now so just seems a little bit beta right now...
     
  13. Pix10

    Pix10

    Joined:
    Jul 21, 2012
    Posts:
    850
    Perforce:

    and
    and
    90% of our (hundreds of) builds are just this over and over. I recall the java exception was mentioned back in June and billed as being looked into, but it's still happening.
     
    Last edited: Sep 20, 2016
  14. goble

    goble

    Joined:
    Jun 30, 2016
    Posts:
    8
    I get the first Perforce timeout error you listed (below) about 20% of the time. It's very annoying since it counts a build failure and I have to wait through cool-down to get another build started.

     
  15. Pix10

    Pix10

    Joined:
    Jul 21, 2012
    Posts:
    850
    I moved the project I was working on to git, no problems since. We do have projects still on p4, and they continue to have the issues... last I checked one of our lot was getting the javaexception over and over and over trying to get an OS X build out. I told him to just build locally from now on... it's not time saving.
     
  16. drolak

    drolak

    Joined:
    Jan 21, 2014
    Posts:
    49
    Same here, we're using SVN and getting java.net.SocketException: Operation timed out 50% of the time for one project, 100% of the time for another. Really annoying, it makes this service practically useless.
     
  17. AdamKane

    AdamKane

    Joined:
    Dec 3, 2012
    Posts:
    134
    Any update on this 4-month-old issue? We cannot currently use Cloud Build with SVN (hosted by http://www.cloudforge.com/). This means we're working without automatic testing for team-member commits that break our build. This has cost our team a lot of lost development time. Should we give up on using SVN with Cloud Build or will this be addressed? Thanks.

     
    Last edited: Dec 28, 2016
  18. unitychrism

    unitychrism

    Joined:
    Sep 16, 2015
    Posts:
    122
    Hi all,

    Please direct message me links to projects in Cloud Build that are experiencing these issues. I have created an improved SVN checkout flow that *should* resolve most of these problems, that is currently in a pre-release per-project mode while we iron out any remaining edge cases.

    Thanks,
    -Chris
     
    AdamKane likes this.
  19. AdamKane

    AdamKane

    Joined:
    Dec 3, 2012
    Posts:
    134
    Chris,

    The improved SVN checkout flow is working flawlessly. Thanks!

     
    SophiaC likes this.
  20. tonemcbride

    tonemcbride

    Joined:
    Sep 7, 2010
    Posts:
    1,083
    Can anyone tell me how to send a direct message to @unitychrism so I can get our project on the test SVN checkout flow? I've tried starting a 'conversation' but not sure if that's the same as a direct message?

    Thanks
     
  21. SophiaC

    SophiaC

    Joined:
    Sep 6, 2016
    Posts:
    238
    tonemcbride likes this.
  22. unitychrism

    unitychrism

    Joined:
    Sep 16, 2015
    Posts:
    122
    @tonemcbride I've updated your project accordingly based on your direct message. @AdamKane thanks for the feedback and your patience while we've taken the time to knock this out. :)
     
    AdamKane likes this.
  23. tonemcbride

    tonemcbride

    Joined:
    Sep 7, 2010
    Posts:
    1,083
    Great, thanks @unitychrism - I'll try a build and let you know if it works ok.
     
  24. Jodyo

    Jodyo

    Joined:
    Jan 9, 2017
    Posts:
    7
    We had the same problem @unitychrism fix is working perfectly for us.
     
  25. msklywenn

    msklywenn

    Joined:
    Nov 28, 2014
    Posts:
    67
    Just did a full reset because we had a different error that never got fix. Now we get this one after a random amount of files being downloaded :(
     
  26. SophiaC

    SophiaC

    Joined:
    Sep 6, 2016
    Posts:
    238
    Hi @msklywenn PM me your project link and I'll take a look for you

    - Sophia
     
  27. msklywenn

    msklywenn

    Joined:
    Nov 28, 2014
    Posts:
    67
    Thanks to SophiaC, the issue is now fixed. Reaction time was way faster that last time, way to go unity cloud team :)