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

Export/Import gets stuck

Open 01xOfFoo opened this issue 4 years ago • 3 comments

Hi there,

Since 2 weeks it happens that export/imports getting stuck. We're using the script on a lot of projects but it only happens to some but the numbers of reported issue are growing. The type (Sandbox/Trial) of the instance doesn't matter.

Example log for a stuck export: 2020-05-26T07:39:35.0278134Z $ & "D:\a\tools\MSCRMBuildTools\9.1.3\xRMCIFramework\9.0.0\PublishCustomizations.ps1" -CrmConnectionString "" -Timeout 1200 2020-05-26T07:39:35.0425909Z VERBOSE: Entering PublishCustomizations.ps1 2020-05-26T07:39:35.0519174Z Script Path: D:\a\tools\MSCRMBuildTools\9.1.3\xRMCIFramework\9.0.0 2020-05-26T07:39:35.0554738Z Publishing Customizations 2020-05-26T07:39:59.5729210Z Publishing Customizations Completed 2020-05-26T07:39:59.5750324Z VERBOSE: Leaving PublishCustomizations.ps1 2020-05-26T07:39:59.5773418Z ##[debug]Processed: ##vso[task.setprogress value=8;][Packaging] Published 2020-05-26T07:40:00.4434363Z SolutionName: XYZWebResources, InstalledVersion: 1.0.259, VersionBase: 1.0, NewVersion: 1.0.260 2020-05-26T07:40:00.4472818Z $ & "D:\a\tools\MSCRMBuildTools\9.1.3\xRMCIFramework\9.0.0\UpdateSolutionVersionInCRM.ps1" -CrmConnectionString "***" -SolutionName XYZWebResources -VersionNumber 1.0.260 2020-05-26T07:40:00.4570548Z VERBOSE: Entering UpdateSolutionVersionInCRM.ps1 2020-05-26T07:40:00.4613823Z Updating Solution Version to 1.0.260 2020-05-26T07:40:00.9618873Z Solution Version Updated 2020-05-26T07:40:00.9638367Z VERBOSE: Leaving UpdateSolutionVersionInCRM.ps1 2020-05-26T07:40:00.9665973Z ##[debug]Processed: ##vso[task.setprogress value=16;][Packaging] Updated SolutionVersion: XYZWebResources to 1.0.260 2020-05-26T07:40:00.9733114Z $ & "D:\a\tools\MSCRMBuildTools\9.1.3\xRMCIFramework\9.0.0\ExportSolution.ps1" -CrmConnectionString "" -SolutionName XYZWebResources -ExportManaged 1 -ExportUnmanaged 1 -ExportGeneralSettings 1 -ExportSolutionOutputPath D:\a\r1\a\CRM_Solutions -Timeout 1200 2020-05-26T07:40:01.0267582Z Exporting Unmanaged Solution 2020-05-26T10:42:48.2342952Z ##[debug]Re-evaluate condition on job cancellation for step: 'Export and Unpack Solutions'. 2020-05-26T10:42:58.4909332Z ##[error]The operation was canceled. 2020-05-26T10:42:58.4934379Z ##[debug]System.OperationCanceledException: The operation was canceled.

Thanks for your help!

01xOfFoo avatar Jun 04 '20 12:06 01xOfFoo

@mkellenbenz are you using hosted or private agents?

WaelHamze avatar Jun 09 '20 05:06 WaelHamze

The projects where we got feedback are all using hosted pipelines.

But something else is strange. I've created a simple CMD to just execute a ExportSolutionRequest. 4 hours ago I got an error which says "Invalid solution name" or something. I've just tested the same CMD locally again and it seems to work now.

Just out of curiosity I've increased the timeout to 3600 (from 1200) in the AzDO tasks and strangely it started working again. Funnily the export takes less than 5 minutes so I don't know what's happening right now.

Let's see if the timeout increase works for others as well. Something's fishy.

01xOfFoo avatar Jun 09 '20 21:06 01xOfFoo

I think this is similar to the issue: https://github.com/WaelHamze/dyn365-ce-vsts-tasks/issues/183

It seems the operation is taking longer than expected on the back end.

WaelHamze avatar Jul 10 '20 06:07 WaelHamze