xrm-ci-framework icon indicating copy to clipboard operation
xrm-ci-framework copied to clipboard

Apply solution upgrade sometimes hangs

Open JezNorton opened this issue 5 years ago • 7 comments

Hi Wael, Tried setting to Async & increasing timeout

Thanks, Jeremy

JezNorton avatar Nov 20 '19 19:11 JezNorton

@JezNorton do you see the same behaviour from the UI?

How long does it hang for and does it fail eventually?

WaelHamze avatar Dec 06 '19 07:12 WaelHamze

@WaelHamze I've been cancelling the releases, I haven't let it fail yet, but it has gone on for hours. Upgrade works OK in CRM, but the release is broken.

JezNorton avatar Dec 06 '19 14:12 JezNorton

@JezNorton if you set the system.debug = true in the release, where does the upgrade solution get to in the logs and what is the state of the environment/solutions after hours?

WaelHamze avatar Dec 07 '19 15:12 WaelHamze

@WaelHamze will try system.debug = true for the next release. The upgrade solution completes in CRM, but doesn't feedback to DevOps

JezNorton avatar Dec 10 '19 15:12 JezNorton

@JezNorton: I have experienced similar issues, although using our own tooling and not this. - However, do you have a big solution? Have you checked for how long a standard solution import (with publish) takes either in UI or by API directly (via XrmToolbox plugin for example)?

If your solution is too big, the proxy might time out. - it is actually not thaaat uncommon to see projects with solutions taking a loooong time (1hr+) to import.

Also, if you are using this via Azure Pipelines, please check the timeout limit on your agent. - Build pipelines have default 60 minutes timeout, while I cannot remember Release pipelines timeout if any.

bo-stig-christensen avatar Jan 07 '20 13:01 bo-stig-christensen

@bo-stig-christensen: thanks for this, I'm helping this client with CRM DevOps, first thing was to trim down the solution , it now takes around 20 minutes to import and doesn't timeout when run manually

JezNorton avatar Jan 14 '20 13:01 JezNorton

@JezNorton have you tried to apply the solution in async mode?

By the way you using the PS or the task?

There is a chance the timeout is happening at the proxy as well and not from Dynamics if the connection timeout is long enough

WaelHamze avatar Jan 15 '20 21:01 WaelHamze