xrm-ci-framework
xrm-ci-framework copied to clipboard
Apply solution upgrade sometimes hangs
Hi Wael, Tried setting to Async & increasing timeout
Thanks, Jeremy
@JezNorton do you see the same behaviour from the UI?
How long does it hang for and does it fail eventually?
@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 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 will try system.debug = true for the next release. The upgrade solution completes in CRM, but doesn't feedback to DevOps
@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: 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 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