WaelHamze / dyn365-ce-vsts-tasks

VSTS Extension for Dynamics 365 Customer Engagement
https://marketplace.visualstudio.com/items?itemName=WaelHamze.xrm-ci-framework-build-tasks
GNU General Public License v3.0
115 stars 54 forks source link

PowerDevOps Apply Solution Timeout/Fail #191

Closed frick-brian closed 4 years ago

frick-brian commented 4 years ago

I am not sure this is the right spot to post this - but I couldn't find a specific repo for the PowerDevOps tooling.

Basically, the apply solution upgrade step never finishes in my release pipelines. The solution gets updated (verified in UI - old version deleted, new version in solution list). But this will hang for 30, 40, 50 minutes without failing, timing out, or anything - it just spins until I cancel it.

Any idea whats going on with this?

Note: I am still using the old Power Apps steps in some of my releases, I do not think that is related, but I haven't had time to update the releases yet. I do have some other releases that use only the new PowerDevOps tasks, and nothing that is EOL - so I am hopeful to run those pipes today and see if I have any better results.

Here is the version of Apply Solution Upgrade I am using:

2020-07-01T14:24:33.8937083Z ##[section]Starting: Apply Solution: XYZ 2020-07-01T14:24:33.9074913Z ============================================================================== 2020-07-01T14:24:33.9075260Z Task : Apply Solution Upgrade 2020-07-01T14:24:33.9075654Z Description : Applies a solution upgrade after solution is import using stage for upgrade option 2020-07-01T14:24:33.9076000Z Version : 12.0.1 2020-07-01T14:24:33.9076266Z Author : Wael Hamze 2020-07-01T14:24:33.9076550Z Help : This task invokes DeleteAndPromoteRequest 2020-07-01T14:24:33.9076922Z ============================================================================== 2020-07-01T14:24:34.6758294Z Solution Upgrade Starting. 2020-07-01T14:56:55.6371674Z ##[error]The operation was canceled. 2020-07-01T14:56:55.6377818Z ##[section]Finishing: Apply Solution: XYZ

Here is the build pipe: image

Here is the import options for the managed solution: image

And here is the Apply Solution Task config image

WaelHamze commented 4 years ago

@frick-brian I suggest you tick "USe Async" in the apply task. You may also want to increase the async wait timeout depending on how long this normally takes.

frick-brian commented 4 years ago

@WaelHamze thanks for the tip. I will give it a whirl. Timeout is 900 - 15 mins, it usually completes the solution upgrade in about 10 minutes, but then times out (returns a failure in CICD) sometime between 30-60 mins.

I will report back after my next round of pushes with Async ticked. Thanks again.

frick-brian commented 4 years ago

First attempt worked for me. Now, strangely enough, the Import step continues to timeout, but I will tinker with increasing the timeout and using async there as well (it's a big solution).

Appreciate the input, I will keep an eye on this and post another issue if there is anything going wrong. Thanks!