Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ALM Accelerator - BUG]: exportAndDeleteUnmanaged pipeline fails if delete takes more than 4 minutes #5693

Closed
sefa-phaag opened this issue May 31, 2023 · 4 comments
Assignees
Labels
alm-accelerator ALM Accelerator Components and Apps bug Something isn't working

Comments

@sefa-phaag
Copy link

Describe the issue

If deleting the managed solution takes longer than 4 minutes, the pipeline fails even if the delete ultimately succeeds. This is because the default timeout for pac solution delete is 4 minutes and it doesn't appear to have a timeout or async option like other pac solution methods, although perhaps there is a workaround similar to the one outlined here.

Expected Behavior

The pipeline should only fail if the solution truly fails to delete.

What component are you experiencing the issue with?

ALM Accelerator Pipelines

What solution version are you using?

May 2023

Steps To Reproduce

  1. In the canvas app, attempt to delete a moderately complex solution

Anything else?

Full log:

[ '' ]
##[error]error: 1
##[error]failed: Connected to... SEFA Dev 3
Connected as ***

Deleting Dataverse Solution...
Microsoft PowerPlatform CLI
Version: 1.23.3+ga05f0df

Error: The request channel timed out while waiting for a reply after 00:04:00. Increase the timeout value passed to the call to Request or increase the SendTimeout value on the Binding. The time allotted to this operation may have been a portion of a longer timeout.
    The HTTP request to 'https://sefa-dev-3.crm.dynamics.com/XRMServices/2011/Organization.svc/web?SDKClientVersion=9.2.49.3165' has exceeded the allotted timeout of 00:04:00. The time allotted to this operation may have been a portion of a longer timeout.
        The operation has timed out


Usage: pac solution delete --solution-name

  --solution-name             Name of the solution (alias: -sn)

[ 'Authentication profiles and token cache removed' ]
[ 'The Clear Authentication Result: Authentication profiles and token cache removed' ]
##[error]Error: Connected to... SEFA Dev 3
Connected as ***

Deleting Dataverse Solution...
Microsoft PowerPlatform CLI
Version: 1.23.3+ga05f0df

Error: The request channel timed out while waiting for a reply after 00:04:00. Increase the timeout value passed to the call to Request or increase the SendTimeout value on the Binding. The time allotted to this operation may have been a portion of a longer timeout.
    The HTTP request to 'https://sefa-dev-3.crm.dynamics.com/XRMServices/2011/Organization.svc/web?SDKClientVersion=9.2.49.3165' has exceeded the allotted timeout of 00:04:00. The time allotted to this operation may have been a portion of a longer timeout.
        The operation has timed out


Usage: pac solution delete --solution-name

  --solution-name             Name of the solution (alias: -sn)

Finishing: Power Platform Delete Managed Solution
@sefa-phaag sefa-phaag added alm-accelerator ALM Accelerator Components and Apps bug Something isn't working labels May 31, 2023
@mikefactorial
Copy link
Collaborator

@sefa-phaag pardon the delayed response. Will look into a possible solution here.

@RajeevPentyala
Copy link
Collaborator

@sefa-phaag The error was thrown by the pac CLI. I have logged an issue to address this error.

@RajeevPentyala
Copy link
Collaborator

RajeevPentyala commented Jul 26, 2023

@sefa-phaag n the latest pac version, the default timeout has been increased from 4 minutes to 30. For more details, refer microsoft/powerplatform-vscode#608 .Please feel free to reopen the issue if any further questions.

@CoEStarterKitBot
Copy link
Collaborator

@sefa-phaag This has been fixed in the latest release. Please install the latest version of the toolkit following the instructions for installing updates. Note that if you do not remove the unmanaged layers as described there you will not receive updates from us.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
alm-accelerator ALM Accelerator Components and Apps bug Something isn't working
Projects
Status: Done
Development

No branches or pull requests

4 participants