iOS Build Timeouts

6 posts, 0 answers
  1. Brad
    Brad avatar
    2 posts
    Member since:
    Nov 2013

    Posted 03 Feb 2015 Link to this post

    I've been geeting build timeouts when trying to build for iOS intermittently for the past few weeks. This seems to happen arbitrarily and doesn't matter if I'm trying to build using the web client or the Visual Studio extension. Every once in a while it will work, but the vast majority of attempts fail with a message like this:

    Error 136 Build failed: One or more errors occurred..
    System.AggregateException: One or more errors occurred. ---> System.TimeoutException: The operation has timed out.

    Server stack trace: 
       at Telerik.BlackDragon.Client.ServerClient.HttpServiceContext.TimeoutHandler.<SendAsync>d__1b.MoveNext()

    Exception rethrown at [0]: 
       at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccess(Task task)
       at Telerik.BlackDragon.Client.ServerClient.HttpServiceContext.<ProcessRequestAsync>d__11.MoveNext()

    Exception rethrown at [1]: 
       at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccess(Task task)
       at Telerik.BlackDragon.Client.Build.Services.MultipartUploadService.<RequestAndThrowOnExceptionAsync>d__1a.MoveNext()

    Exception rethrown at [2]: 
       at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccess(Task task)
       at Telerik.BlackDragon.Client.Build.Services.MultipartUploadService.<>c__DisplayClassf.<<CreateUploadChunkTask>b__b>d__13.MoveNext()

    Exception rethrown at [3]: 
       at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccess(Task task)
       at Telerik.BlackDragon.Client.Build.Services.MultipartUploadService.<UploadFile>d__4.MoveNext()

    Exception rethrown at [4]: 
       at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccess(Task task)
       at Telerik.BlackDragon.Client.Build.Services.BuildService.<UploadProjectAsync>d__2a.MoveNext()

    Exception rethrown at [5]: 
       at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccess(Task task)
       at Telerik.BlackDragon.Client.Build.Services.BuildService.<UploadAndConfigurePackageAsync>d__1f.MoveNext()

    Exception rethrown at [6]: 
       at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccess(Task task)
       at Telerik.BlackDragon.Client.Build.Services.BuildService.<SyncProjectFilesAsync>d__3a.MoveNext()
       --- End of inner exception stack trace ---
       at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
       at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)
       at System.Threading.Tasks.Task`1.get_Result()
       at Telerik.BlackDragon.Client.Build.CloudSync.ExecuteCore(IHttpServiceContext httpServiceContext, LogHelper logger)
       at Telerik.BlackDragon.Client.Build.CloudTaskBase.Execute()
    ---> (Inner Exception #0) System.TimeoutException: The operation has timed out.

    Server stack trace: 
       at Telerik.BlackDragon.Client.ServerClient.HttpServiceContext.TimeoutHandler.<SendAsync>d__1b.MoveNext()

    Exception rethrown at [0]: 
       at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccess(Task task)
       at Telerik.BlackDragon.Client.ServerClient.HttpServiceContext.<ProcessRequestAsync>d__11.MoveNext()

    Exception rethrown at [1]: 
       at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccess(Task task)
       at Telerik.BlackDragon.Client.Build.Services.MultipartUploadService.<RequestAndThrowOnExceptionAsync>d__1a.MoveNext()

    Exception rethrown at [2]: 
       at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccess(Task task)
       at Telerik.BlackDragon.Client.Build.Services.MultipartUploadService.<>c__DisplayClassf.<<CreateUploadChunkTask>b__b>d__13.MoveNext()

    Exception rethrown at [3]: 
       at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccess(Task task)
       at Telerik.BlackDragon.Client.Build.Services.MultipartUploadService.<UploadFile>d__4.MoveNext()

    Exception rethrown at [4]: 
       at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccess(Task task)
       at Telerik.BlackDragon.Client.Build.Services.BuildService.<UploadProjectAsync>d__2a.MoveNext()

    Exception rethrown at [5]: 
       at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccess(Task task)
       at Telerik.BlackDragon.Client.Build.Services.BuildService.<UploadAndConfigurePackageAsync>d__1f.MoveNext()

    Exception rethrown at [6]: 
       at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccess(Task task)
       at Telerik.BlackDragon.Client.Build.Services.BuildService.<SyncProjectFilesAsync>d__3a.MoveNext()<---
    C:\Users\bradw_000\AppData\Local\Microsoft\VisualStudio\12.0\Extensions\cg3ftrxr.euh\Targets\Build.targets 158 4 App

  2. Kaloyan
    Admin
    Kaloyan avatar
    872 posts

    Posted 06 Feb 2015 Link to this post

    Hello Brad,

    As I have answered in your support ticket on the same matter, the build error message means that the AppBuilder has timed out while building your project. There are few known scenarios for this to happen:
    • Your project is bigger than 100mb. If this is so, it is possible that the upload and then the apk download take too much time and the 10 minutes timeout range in our clients is not enough for the build to complete. In such case, I would suggest you to export any possible resources (like images, videos, etc.) from the app and download the dynamically while it is running on device. For example, a possible approach is to use Backend Services and their Responsive Images support for this purpose.
    • Your internet connection is slow and so, it takes too much time for the sync process to complete, before the actual build starts on our servers. This also slows the apk download, after the build has completed. Please, let me know if you think this might be the cause of the issue.

    I would suggest you continuing our conversation in the support ticket until the cause of the issue is found. Then, if you wish, I can update this forum thread with all the useful for our community information.

    Regards,
    Kaloyan
    Telerik
     

    Visit the Telerik Verified Plugins Marketplace and get the custom Cordova plugin you need, already tweaked to work seamlessly with AppBuilder.

     
  3. Jason
    Jason avatar
    1 posts
    Member since:
    Jan 2014

    Posted 12 Mar 2015 in reply to Kaloyan Link to this post

    I was curious if you ever found a resolution.  I have been having the same problem... only starting a couple weeks ago.  I know my project is under 100mbs, and my internet connection is quite fast.

  4. Kaloyan
    Admin
    Kaloyan avatar
    872 posts

    Posted 17 Mar 2015 Link to this post

    Hi Jason,

    Normally, this should not be happening if your application is under 100mb and you rely on a good network connection.

    In order to assist you, I would kindly ask you to gather a Fiddler logs about the failing build and send it over in a private support ticket. To get the log, you can follow the next steps:

    1.     Download Fiddler from here and install it.
    2.    
    Run Fiddler and go to Tools -> Fiddler Options.
    3.    
    On the HTTPS page, verify that Capture HTTPS Connects is enabled.
    4.    
    Verify that Decrypt HTTPS traffic is enabled with the ...from all processes option and minimize Fiddler to tray.
    5.    
    Try to build your project in the preferred AppBuilder client and when it fails, continue to the next step.
    6.    
    In Fiddler, go to File -> Save -> All Sessions, save the archive to disk. This will produce a SAZ file.
    7.    
    Zip the .saz file and attach it in the ticket


    I hope this is doable for you and I am looking forward to your reply.

    Regards,
    Kaloyan
    Telerik
     

    Visit the Telerik Verified Plugins Marketplace and get the custom Cordova plugin you need, already tweaked to work seamlessly with AppBuilder.

     
  5. Ramon
    Ramon avatar
    1 posts
    Member since:
    Feb 2015

    Posted 03 Sep 2015 in reply to Kaloyan Link to this post

    I also experience the same issue.  Attache is my fiddler session

     

  6. Kaloyan
    Admin
    Kaloyan avatar
    872 posts

    Posted 07 Sep 2015 Link to this post

    Hi Ramon,

    As this is a public thread, I don't recommend sharing/exposing such information here. Instead, I suggest you opening a support ticket on the matter and attaching the Fiddler trace there.

    I am looking forward to it.

    Regards,
    Kaloyan
    Telerik
     

    Visit the Telerik Verified Plugins Marketplace and get the custom Cordova plugin you need, already tweaked to work seamlessly with AppBuilder.

     
Back to Top