microsoft / AL-Go

The plug-and-play DevOps solution for Business Central app development on GitHub
MIT License
253 stars 115 forks source link

Error on deploy stage of CICD Run #1124

Closed MUR-SDP closed 18 hours ago

MUR-SDP commented 6 days ago

Good day...

As per Freddy, I am creating this as a new issue. When running the CICD action on our AL-Go environment we get the following error:

Error: Deploying to QA failed. Exception calling "GetResult" with "0" argument(s): "An error occurred while sending the request." Error: Process completed with exit code 1.

We have two apps in the repo of which one is quite big, about 1.5mb. The pipeline publishes this first (base) app but doesn't install it. It errors before or while installing the app.

I am able to install the app from the Extension Management Page as well as publish and install the second app in the repo without issues.

The first run I did, this did work correctly....

Herewith a screenshot of the action:

image

Herewith the log:

Run microsoft/AL-Go-Actions/Deploy@v5.2
  with:
    shell: powershell
    environmentName: QA
    artifactsFolder: .artifacts
    type: CD
    deploymentEnvironmentsJson: {"QA":{"companyId":"","EnvironmentType":"SaaS","ppEnvironmentUrl":"","Branches":[],"EnvironmentName":"QA","runs-on":["windows-latest"],"Projects":"*","continuousDeployment":null,"shell":"powershell","BranchesFromPolicy":[],"SyncMode":null}}
    token: ***
  env:
    workflowDepth: 1
    ALGoOrgSettings: {
      "useCompilerFolder": true,
      "doNotPublishApps": true
  }
    ALGoRepoSettings: 
    type: PTE
    powerPlatformSolutionFolder: 
    Settings: {"keyVaultCertificateUrlSecretName":"","microsoftTelemetryConnectionString":"InstrumentationKey=84bd9[2](https://github.com/MURShippingDevelopment/MUR-Business-Central/actions/runs/9708858294/job/26796939168#step:7:2)23-67d4-4[3](https://github.com/MURShippingDevelopment/MUR-Business-Central/actions/runs/9708858294/job/26796939168#step:7:3)78-8590-9e4a46023be2;IngestionEndpoint=https://westeurope-1.in.applicationinsights.azure.com/","type":"PTE","sendExtendedTelemetryToMicrosoft":false,"appBuild":[4](https://github.com/MURShippingDevelopment/MUR-Business-Central/actions/runs/9708858294/job/26796939168#step:7:4)9,"installTestApps":[],"versioningStrategy":0,"installApps":[],"installTestLibraries":false,"runNumberOffset":0,"codeSignCertificatePasswordSecretName":"codeSignCertificatePassword","vsixFile":"","country":"w1","alDoc":{"continuousDeployment":false,"deployToGitHubPages":true,"maxReleases":3,"groupByProject":true,"includeProjects":[],"excludeProjects":[],"header":"Documentation for {REPOSITORY} {VERSION}","footer":"Documentation for \u003ca href=\"https://github.com/{REPOSITORY}\"\u003e{REPOSITORY}\u003c/a\u003e made with \u003ca href=\"https://aka.ms/AL-Go\"\u003eAL-Go for GitHub\u003c/a\u003e, \u003ca href=\"https://go.microsoft.com/fwlink/?linkid=2247728\"\u003eALDoc\u003c/a\u003e and \u003ca href=\"https://dotnet.github.io/docfx\"\u003eDocFx\u003c/a\u003e","defaultIndexMD":"## Reference documentation\\n\\nThis is the generated reference documentation for [{REPOSITORY}](https://github.com/{REPOSITORY}).\\n\\nYou can use the navigation bar at the top and the table of contents to the left to navigate your documentation.\\n\\nYou can change this content by creating/editing the **{INDEXTEMPLATERELATIVEPATH}** file in your repository or use the alDoc:defaultIndexMD setting in your repository settings file (.github/AL-Go-Settings.json)\\n\\n{RELEASENOTES}","defaultReleaseMD":"## Release reference documentation\\n\\nThis is the generated reference documentation for [{REPOSITORY}](https://github.com/{REPOSITORY}).\\n\\nYou can use the navigation bar at the top and the table of contents to the left to navigate your documentation.\\n\\nYou can change this content by creating/editing the **{INDEXTEMPLATERELATIVEPATH}** file in your repository or use the alDoc:defaultReleaseMD setting in your repository settings file (.github/AL-Go-Settings.json)\\n\\n{RELEASENOTES}"},"templateSha":"a6b2e468[5](https://github.com/MURShippingDevelopment/MUR-Business-Central/actions/runs/9708858294/job/26796939168#step:7:5)79e02a31a9cc9a2ae178a1e6beadf00","partnerTelemetryConnectionString":"","doNotRunTests":false,"enableCodeAnalyzersOnTestApps":false,"runs-on":"windows-latest","generateDependencyArtifact":false,"excludeEnvironments":[],"keyVaultCertificatePasswordSecretName":"","rulesetFile":"","licenseFileUrlSecretName":"licenseFileUrl","enableExternalRulesets":false,"memoryLimit":"","keyVaultClientIdSecretName":"","testFolders":[],"githubRunner":"windows-latest","doNotBuildTests":false,"environments":[],"companyName":"","assignPremiumPlan":false,"artifact":"","ghTokenWorkflowSecretName":"ghTokenWorkflow","enableTaskScheduler":false,"enableCodeCop":false,"repoVersion":"1.2","doNotPublishApps":true,"unusedALGoSystemFiles":[],"githubRunnerShell":"powershell","appFolders":["base","MUR CRM"],"cacheKeepDays":3,"bcptTestFolders":[],"updateDependencies":false,"cacheImageName":"my","powerPlatformSolutionFolder":"","treatTestFailuresAsWarnings":false,"additionalCountries":[],"enableUICop":false,"customCodeCops":[],"appDependencies":[],"doNotRunBcptTests":false,"skipUpgrade":false,"appDependencyProbingPaths":[],"useCompilerFolder":true,"installTestFramework":false,"keyVaultCodesignCertificateName":"","keyVaultName":"","obsoleteTagMinAllowedMajorMinor":"","applicationDependency":"18.0.0.0","applicationInsightsConnectionStringSecretName":"applicationInsightsConnectionString","shell":"powershell","deliverToAppSource":{"mainAppFolder":"","productId":"","includeDependencies":[],"continuousDelivery":false},"failOn":"error","templateUrl":"https://github.com/microsoft/AL-Go-PTE@main","projects":[],"projectName":".","testDependencies":[],"appRevision":0,"codeSignCertificateUrlSecretName":"codeSignCertificateUrl","configPackages":[],"useProjectDependencies":false,"appSourceCopMandatoryAffixes":[],"buildModes":[],"templateBranch":"","installPerformanceToolkit":false,"pullRequestTrigger":"pull_request_target","doNotSignApps":false,"repoName":"MUR-Business-Central","fullBuildPatterns":[],"alwaysBuildAllProjects":false,"installOnlyReferencedApps":true,"installTestRunner":false,"adminCenterApiCredentialsSecretName":"adminCenterApiCredentials"}
    Secrets: {"AuthContext":"***","QA-AuthContext":"","QA_AuthContext":"","QA-EnvironmentName":"","QA_EnvironmentName":"","EnvironmentName":"","projects":""}
Run $errorActionPreference = "Stop"; $ProgressPreference = "SilentlyContinue"; Set-StrictMode -Version 2.0
  $errorActionPreference = "Stop"; $ProgressPreference = "SilentlyContinue"; Set-StrictMode -Version 2.0
  try {
    D:\a\_actions\microsoft\AL-Go-Actions\v5.2\Deploy/Deploy.ps1 -token $ENV:_token -environmentName $ENV:_environmentName -artifactsFolder $ENV:_artifactsFolder -type $ENV:_type -deploymentEnvironmentsJson $ENV:_deploymentEnvironmentsJson
  }
  catch {
    Write-Host "::ERROR::Unexpected error when running action. Error Message: $($_.Exception.Message.Replace("`r",'').Replace("`n",' ')), StackTrace: $($_.ScriptStackTrace.Replace("`r",'').Replace("`n",' <- '))";
    exit 1
  }
  shell: C:\Windows\System32\WindowsPowerShell\v1.0\powershell.EXE -command ". '{0}'"
  env:
    workflowDepth: 1
    ALGoOrgSettings: {
      "useCompilerFolder": true,
      "doNotPublishApps": true
  }
    ALGoRepoSettings: 
    type: PTE
    powerPlatformSolutionFolder: 
    Settings: {"keyVaultCertificateUrlSecretName":"","microsoftTelemetryConnectionString":"InstrumentationKey=84bd9223-[6](https://github.com/MURShippingDevelopment/MUR-Business-Central/actions/runs/9708858294/job/26796939168#step:7:6)7d4-4378-8590-9e4a46023be2;IngestionEndpoint=https://westeurope-1.in.applicationinsights.azure.com/","type":"PTE","sendExtendedTelemetryToMicrosoft":false,"appBuild":49,"installTestApps":[],"versioningStrategy":0,"installApps":[],"installTestLibraries":false,"runNumberOffset":0,"codeSignCertificatePasswordSecretName":"codeSignCertificatePassword","vsixFile":"","country":"w1","alDoc":{"continuousDeployment":false,"deployToGitHubPages":true,"maxReleases":3,"groupByProject":true,"includeProjects":[],"excludeProjects":[],"header":"Documentation for {REPOSITORY} {VERSION}","footer":"Documentation for \u003ca href=\"https://github.com/{REPOSITORY}\"\u003e{REPOSITORY}\u003c/a\u003e made with \u003ca href=\"https://aka.ms/AL-Go\"\u003eAL-Go for GitHub\u003c/a\u003e, \u003ca href=\"https://go.microsoft.com/fwlink/?linkid=224[7](https://github.com/MURShippingDevelopment/MUR-Business-Central/actions/runs/9708858294/job/26796939168#step:7:7)728\"\u003eALDoc\u003c/a\u003e and \u003ca href=\"https://dotnet.github.io/docfx\"\u003eDocFx\u003c/a\u003e","defaultIndexMD":"## Reference documentation\\n\\nThis is the generated reference documentation for [{REPOSITORY}](https://github.com/{REPOSITORY}).\\n\\nYou can use the navigation bar at the top and the table of contents to the left to navigate your documentation.\\n\\nYou can change this content by creating/editing the **{INDEXTEMPLATERELATIVEPATH}** file in your repository or use the alDoc:defaultIndexMD setting in your repository settings file (.github/AL-Go-Settings.json)\\n\\n{RELEASENOTES}","defaultReleaseMD":"## Release reference documentation\\n\\nThis is the generated reference documentation for [{REPOSITORY}](https://github.com/{REPOSITORY}).\\n\\nYou can use the navigation bar at the top and the table of contents to the left to navigate your documentation.\\n\\nYou can change this content by creating/editing the **{INDEXTEMPLATERELATIVEPATH}** file in your repository or use the alDoc:defaultReleaseMD setting in your repository settings file (.github/AL-Go-Settings.json)\\n\\n{RELEASENOTES}"},"templateSha":"a6b2e46[8](https://github.com/MURShippingDevelopment/MUR-Business-Central/actions/runs/9708858294/job/26796939168#step:7:8)579e02a31a9cc[9](https://github.com/MURShippingDevelopment/MUR-Business-Central/actions/runs/9708858294/job/26796939168#step:7:9)a2ae178a1e6beadf00","partnerTelemetryConnectionString":"","doNotRunTests":false,"enableCodeAnalyzersOnTestApps":false,"runs-on":"windows-latest","generateDependencyArtifact":false,"excludeEnvironments":[],"keyVaultCertificatePasswordSecretName":"","rulesetFile":"","licenseFileUrlSecretName":"licenseFileUrl","enableExternalRulesets":false,"memoryLimit":"","keyVaultClientIdSecretName":"","testFolders":[],"githubRunner":"windows-latest","doNotBuildTests":false,"environments":[],"companyName":"","assignPremiumPlan":false,"artifact":"","ghTokenWorkflowSecretName":"ghTokenWorkflow","enableTaskScheduler":false,"enableCodeCop":false,"repoVersion":"1.2","doNotPublishApps":true,"unusedALGoSystemFiles":[],"githubRunnerShell":"powershell","appFolders":["base","MUR CRM"],"cacheKeepDays":3,"bcptTestFolders":[],"updateDependencies":false,"cacheImageName":"my","powerPlatformSolutionFolder":"","treatTestFailuresAsWarnings":false,"additionalCountries":[],"enableUICop":false,"customCodeCops":[],"appDependencies":[],"doNotRunBcptTests":false,"skipUpgrade":false,"appDependencyProbingPaths":[],"useCompilerFolder":true,"installTestFramework":false,"keyVaultCodesignCertificateName":"","keyVaultName":"","obsoleteTagMinAllowedMajorMinor":"","applicationDependency":"18.0.0.0","applicationInsightsConnectionStringSecretName":"applicationInsightsConnectionString","shell":"powershell","deliverToAppSource":{"mainAppFolder":"","productId":"","includeDependencies":[],"continuousDelivery":false},"failOn":"error","templateUrl":"https://github.com/microsoft/AL-Go-PTE@main","projects":[],"projectName":".","testDependencies":[],"appRevision":0,"codeSignCertificateUrlSecretName":"codeSignCertificateUrl","configPackages":[],"useProjectDependencies":false,"appSourceCopMandatoryAffixes":[],"buildModes":[],"templateBranch":"","installPerformanceToolkit":false,"pullRequestTrigger":"pull_request_target","doNotSignApps":false,"repoName":"MUR-Business-Central","fullBuildPatterns":[],"alwaysBuildAllProjects":false,"installOnlyReferencedApps":true,"installTestRunner":false,"adminCenterApiCredentialsSecretName":"adminCenterApiCredentials"}
    Secrets: {"AuthContext":"***","QA-AuthContext":"","QA_AuthContext":"","QA-EnvironmentName":"","QA_EnvironmentName":"","EnvironmentName":"","projects":""}
    _token: ***
    _environmentName: QA
    _artifactsFolder: .artifacts
    _type: CD
    _deploymentEnvironmentsJson: {"QA":{"companyId":"","EnvironmentType":"SaaS","ppEnvironmentUrl":"","Branches":[],"EnvironmentName":"QA","runs-on":["windows-latest"],"Projects":"*","continuousDeployment":null,"shell":"powershell","BranchesFromPolicy":[],"SyncMode":null}}
Downloading BcContainerHelper latest version from Blob Storage
Import from C:\ProgramData\BcContainerHelper\6.0.19\BcContainerHelper\BcContainerHelper.ps1
BcContainerHelper version 6.0.19
BC.HelperFunctions emits usage statistics telemetry to Microsoft
Running on Windows, PowerShell 5.1.20348.2400
project '*'
Apps to deploy
D:\a\MUR-Business-Central\MUR-Business-Central\.artifacts\MUR-Business-Central-main-Apps-1.2.49.0
Attempting authentication to https://api.businesscentral.dynamics.com/user_impersonation offline_access using refresh token...
Authenticated using refresh token as user
EnvironmentUrl: 
Publishing apps using development endpoint
InstalledApps:
- a190e87b-2f59-4e14-a727-421877802768 API - Cross Environment Intercompany 24.1.18927.19633 'Global' True Microsoft
- a2cc2ef8-949f-43d4-45b8-[10](https://github.com/MURShippingDevelopment/MUR-Business-Central/actions/runs/9708858294/job/26796939168#step:7:10)bd6f8bc62c API Reports - Finance 24.1.18927.19633 'Global' True Microsoft
- c1335042-3002-4257-bf8a-75c898ccb1b8 Application 24.1.18927.19633 'Global' True Microsoft
- a41b0c3e-bf1c-4c97-ad1b-b430a3933ada Audit File Export 24.1.18927.19633 'Global' True Microsoft
- 63c9fbe6-d4f3-458c-8c25-644c90a0874a Bank Account Reconciliation With AI 24.1.18927.19633 'Global' True Microsoft
- 437dbf0e-84ff-417a-965d-ed2bb9650972 Base Application 24.1.18927.21045 'Global' True Microsoft
- 6992416f-3f39-4d3c-8242-3fff61350bea Business Central Cloud Migration - Previous Release 24.1.18927.19633 'Global' True Microsoft
- 57623bfa-0559-4bc2-ae1c-0979c29fc8d1 Business Central Cloud Migration API 24.1.18927.19633 'Global' True Microsoft
- 334ef79e-547e-4631-8ba1-7a7f18e14de6 Business Central Intelligent Cloud 24.1.18927.19633 'Global' True Microsoft
- f3552374-a1f2-4356-848e-196002525837 Business Foundation 24.1.18927.21045 'Global' True Microsoft
- 5a0b41e9-7a42-4123-d521-2265186cfb31 Contoso Coffee Demo Dataset 24.1.18927.19633 'Global' True Microsoft
- 7819d79d-feea-4f09-bbed-5bbaca4bf323 Data Archive 24.1.18927.19633 'Global' True Microsoft
- ac14293f-1eb7-4a7b-9936-b280da31970b Data Search 24.1.18927.19633 'Global' True Microsoft
- cc[11](https://github.com/MURShippingDevelopment/MUR-Business-Central/actions/runs/9708858294/job/26796939168#step:7:11)c22e-5ca3-423f-8804-88cac6d91983 Dynamics BC Excel Reports 24.1.18927.19633 'Global' True Microsoft
- e1d97edc-c239-46b4-8d84-6368bdf67c8b E-Document Core 24.1.18927.19633 'Global' True Microsoft
- de0dddf3-9917-430d-8d20-6e7679a08500 E-Document Core Demo Data 24.1.18927.19633 'Global' True Microsoft
- d852a468-263e-49e5-bfda-f09e33342b89 E-Documents Connector with External Endpoints 24.1.18927.19633 'Global' True Microsoft
- 08d69832-9231-429e-be2c-8bab2c96905b Email - Current User Connector 24.1.18927.19633 'Global' True Microsoft
- aceb66c8-472e-437c-81d3-27e6c07d0f14 Email - Microsoft 365 Connector 24.1.18927.19633 'Global' True Microsoft
- e6328152-bb29-4664-9dae-3bc7eaae1fd8 Email - Outlook REST API 24.1.18927.21045 'Global' True Microsoft
- 8fc50dfb-d338-4fd9-9499-5e44cc8cbf50 Email - SMTP API 24.1.18927.19633 'Global' True Microsoft
- 68e13fa3-217a-4be0-9141-99e5bf0ca818 Email - SMTP Connector 24.1.18927.19633 'Global' True Microsoft
- e2ae191d-8829-44c3-a373-3749a2742d4e Enforced Digital Vouchers 24.1.18927.19633 'Global' True Microsoft
- 64c9d5e2-7744-4866-bc0e-5ebc2898e651 Error Messages with Recommendations 24.1.18927.19633 'Global' True Microsoft
- 2a89f298-7ffd-44a5-a7ce-e08dac98abce Essential Business Headlines 24.1.18927.19633 'Global' True Microsoft
- 0a9a9ce1-6f98-4cf0-82e2-0b3e7cabb32a EU 3-Party Trade Purchase 24.1.18927.19633 'Global' True Microsoft
- 58623bfa-0559-4bc2-ae1c-0979c29fd9e0 Intelligent Cloud Base 24.1.18927.19633 'Global' True Microsoft
- 709[12](https://github.com/MURShippingDevelopment/MUR-Business-Central/actions/runs/9708858294/job/26796939168#step:7:12)191-3c4c-49fc-a1de-bc6ea1ac9da6 Intrastat Core 24.1.18927.19633 'Global' True Microsoft
- f5a24f0f-0e9d-41b6-a407-b3c83e4ca460 Jet Analytics for Business Central 1.23.12.3601 'Global' True Jet Global Data Technologies
- 4aadc1a9-c361-4b86-a749-[13](https://github.com/MURShippingDevelopment/MUR-Business-Central/actions/runs/9708858294/job/26796939168#step:7:13)9a492026a0 Jet Library for Business Central 1.24.2.751 'Global' True Jet Global Data Technologies
- bec4ca36-c7fb-4110-9db5-29559cc1f84c Jet Reports for Business Central 1.24.2.751 'Global' True Jet Global Data Technologies
- 862605d7-34e3-4efc-be90-225cd3bbed3c Konsolidator Financial Consolidation and Reporting 1.0.20230823.8 'Global' True Konsolidator A/S
- 3d5b2137-efeb-40[14](https://github.com/MURShippingDevelopment/MUR-Business-Central/actions/runs/9708858294/job/26796939168#step:7:14)-8489-41d37f8fd4c3 Late Payment Prediction 24.1.18927.19633 'Global' True Microsoft
- 56368753-db13-4133-8bf0-6f246bba7a4a MUR Base Application 1.2.48.0 ' Dev' True MUR Shipping
- f7df6111-b187-4725-9cf9-bde0e4e949c4 MUR CRM 1.0.43.0 ' PTE' True MUR Shipping
- 64977288-facd-4b48-aaaa-bb0e288edfb3 Payment Practices 24.1.18927.19633 'Global' True Microsoft
- a53a4bb0-aa53-8ff8-77d6-fe3388db0eb8 Recommended Apps 24.1.18927.19633 'Global' True Microsoft
- 87990[15](https://github.com/MURShippingDevelopment/MUR-Business-Central/actions/runs/9708858294/job/26796939168#step:7:15)3-0e35-4e5d-ba61-2e93077d[16](https://github.com/MURShippingDevelopment/MUR-Business-Central/actions/runs/9708858294/job/26796939168#step:7:16)99 Review General Ledger Entries 24.1.18927.19633 'Global' True Microsoft
- 4ce93371-6bd6-4027-a78f-021064ad250e SAF-T 24.1.18927.19633 'Global' True Microsoft
- c526b3e9-b8ca-4683-81ba-fcd5f6b1472a Sales and Inventory Forecast 24.1.18927.19633 'Global' True Microsoft
- dd3f226b-40bf-4b3c-9988-9b1e0f74edd8 Sales Lines Suggestions 24.1.18927.19633 'Global' True Microsoft
- e97bbbc7-16b6-470b-9428-376baa778970 Send remittance advice by email 24.1.18927.19633 'Global' True Microsoft
- 8c972578-fe72-4aa5-ae51-cc5575fef2ea Send To Email Printer 24.1.18927.19633 'Global' True Microsoft
- e2ae191d-8829-44c3-a373-3749a2742d4d Service Declaration 24.1.18927.19633 'Global' True Microsoft
- 79b1a79a-2f66-4736-bc1b-8abb3537eb51 Simplified Bank Statement Import 24.1.18927.19633 'Global' True Microsoft
- ea130081-c669-460f-a5f4-5dde14f03131 Statistical Accounts 24.1.18927.19633 'Global' True Microsoft
- b3780cd9-f8f8-4a83-a4d5-0c2ad87b28af Sustainability 24.1.18927.19633 'Global' True Microsoft
- a0673989-48a4-48a0-95[17](https://github.com/MURShippingDevelopment/MUR-Business-Central/actions/runs/9708858294/job/26796939168#step:7:17)-499c9f4037d3 Sustainability Contoso Coffee Demo Dataset 24.1.[18](https://github.com/MURShippingDevelopment/MUR-Business-Central/actions/runs/9708858294/job/26796939168#step:7:18)927.19633 'Global' True Microsoft
- 63ca2fa4-4f03-4f2b-a480-172fef340d3f System Application 24.1.18927.20170 'Global' True Microsoft
- 7961e9dc-a8e5-49b1-839b-3a78803a4cb8 Troubleshoot FA Ledger Entries 24.1.18927.19633 'Global' True Microsoft
- 2654d7e7-9afd-4947-9e02-6bb8f3e0cd04 Universal Print Integration 24.1.18927.19633 'Global' True Microsoft
- c50a4bf0-db51-4ad2-88d5-fe2287da0eb8 VAT Group Management 24.1.18927.19681 'Global' True Microsoft
Checking dependencies in C:\Users\runneradmin\AppData\Local\Temp\8ad4f676-5bf1-4c12-88a1-26a8a23624a2\MUR Shipping_MUR Base Application_1.2.49.0.app
Replacing Package ID with new GUID
Publishing MUR Shipping_MUR Base Application_1.2.49.0.app to https://api.businesscentral.dynamics.com/v2.0/QA/dev/apps?SchemaUpdateMode=synchronize
Exception calling "GetResult" with "0" argument(s): "An error occurred while sending the request."
An error occurred while sending the request.
The underlying connection was closed: An unexpected error occurred on a receive.
Publish-BcContainerApp Telemetry Correlation Id: 09f93993-a897-4114-9dd5-e476667fc986
Error: Deploying to QA failed.  Exception calling "GetResult" with "0" argument(s): "An error occurred while sending the request."
Error: Process completed with exit code 1.
0s

Thanks very much...

freddydk commented 6 days ago

Is this a very large app? How much time does it take before it throws this error? (show timestamps)

MUR-SDP commented 6 days ago

It is quite large... about 1.5mb.

Looks like the deploy step takes 5 minutes and 8 seconds.

image

freddydk commented 6 days ago

Or rather - it fails after 5 minutes and 8 seconds :-)

5 minutes = 300 seconds is a default timeout in many places.

But in this case, it should use an infiniteTimeOut during publish to dev endpoint (https://github.com/microsoft/navcontainerhelper/blob/b2410696c2c9ce68b63f3ef1a65c0c09d0c58ed1/AppHandling/Publish-NavContainerApp.ps1#L211)

If I can get the app and try this myself, I can troubleshoot and see where the timeout is - I haven't been able to repro this myself.

MUR-SDP commented 6 days ago

Yes :)

I just noticed that the app installed on the QA environment has scope of DEV. I think this might be the issue... I am going to try to uninstall it and replace it manually with the PTE app and then run the pipeline again. If this doesn't work, we can look at sending the app.

freddydk commented 6 days ago

In the preview version of AL-Go, you can specify "scope": "PTE" in the deployment settings (released yesterday)

If it works with PTE, then we know we have a bug when deploying to dev endpoint - I might not be able to fix it though.

MUR-SDP commented 6 days ago

Ok... I'll see now if it works... on another note... Does the CICD always re-install all apps or will it only install apps that were modified? So if I do dev on another app in the repo that has a dependency on this large app, but I haven't modified the large app, will it re-install all apps in the repo, or just the app that I have modified?

freddydk commented 6 days ago

When doing PTE install - it should check the version numbers before installing. But - if the app is re-built - it gets re-installed. If the app comes as a dependency from another repo (same version) - it should not be re-installed.

Hope that makes sense.

MUR-SDP commented 6 days ago

Freddy, I want to do one more test but it will only be on monday... I'll get back to you during the day on monday. Thanks for the help.

freddydk commented 6 days ago

You can mail a download link to freddyk at microsoft dot com I will contact you on email if I have further questions.

thanks

freddydk commented 6 days ago

Let me know here when you have sent something, thanks

MUR-SDP commented 3 days ago

Any suggestions on where I can upload it or can I zip and attach to the mail?

freddydk commented 3 days ago

An attachment will probably be blocked. A Onedrive link or maybe create a new private github repo, invite me (freddydk) and upload the binary (haven't tried that)

MUR-SDP commented 3 days ago

Ok thanks

MUR-SDP commented 3 days ago

Ok... I have shared two apps.... the one we are struggling with is the "Base Application". The "CRM" application is dependent on the Base. The CICD should publish both.

freddydk commented 3 days ago

Thanks - what localization/country is your sandbox environment?

MUR-SDP commented 3 days ago

Everything's W1.

freddydk commented 3 days ago

Your QA environment must be some kind of country right? you cannot install W1 in an online environment?

MUR-SDP commented 3 days ago

We are an international company and our BC team is based in South Africa. Because we have people connecting from all over the world we installed our online environment in Ireland.

Ireland has no localised version so we use W1.

freddydk commented 2 days ago

My question is really - what do I need to select here: image

W1 is not a country code.

I guess it is not GB - is it ZA?

MUR-SDP commented 2 days ago

You can select IE

freddydk commented 2 days ago

Tried this - I am unable to reproduce this problem. Furthermore - my publishing only takes 1-2 minutes and not 5 - have no idea why that can take so much time for you. Do you have a very slow internet connection?

freddydk commented 2 days ago

@MUR-SDP - FYI, I will be out on vacation for the next 15 days and won't be as responsive on this topic - I was unable to repro the problem, but will continue to look for reasons why this fails when back.

MUR-SDP commented 2 days ago

Thanks very much Freddy. I will check our internet speeds. We have a very fast connection but there has been many undersea cable issues between South Africa and the rest of the world lately that may still affect this.

I will also try different connections and let you know.

Our publish from VS Code to cloud sandbox also takes very long.

We are able to upload manually so please enjoy your holiday and thanks once again.

MUR-SDP commented 18 hours ago

Hi Freddy, I don't expect replies until you are back but will post findings here in the meantime.

I have run the CICD from an Azure VM which would take all internet speed issues out of the picture, but the time was still over 5 minutes. I then created a new QA Sandbox with Cronus data and it ran through instantly.... it seems using a copy of Production as a Sandbox contains too much data and lengthens the publishing process which then times out at 5 minutes. I suppose there's no way to increase the timeout so the only option is to scale down the database....

I'll have a look if I publish to a production environment if that changes things... anyway... I will close this one...

Thanks again for your awesome support...