microsoft / AL-Go

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

Log more details about error of failed deploys #585

Open StefanMaron opened 1 year ago

StefanMaron commented 1 year ago

I currently have some problems iwht my deploys. It deployed successfull the first time, but now it keeps failing. No information in the Instatallation Status in BC, No info in Telemetry.

Would it be possible to give some more details in the pipeline output directly? image

StefanMaron commented 1 year ago

I also tested to deploy through postman. Interestingly, I do not get a 400, but the extension still doesn't get deployed somehow

StefanMaron commented 1 year ago

I was able to trace it down further. The actuall error message that should be shown here would be:

{"error":{"code":"Unknown","message":"The specified file is not an extension file. (Parameter 'stream')  CorrelationId:  6851a81b-c3c3-4986-9978-d8a953dbda9b."}}

I was able to reproduce this with postman.

But I still dont understand what the issue behind this is. I have a dependency to this app:

{
  "id": "c42f2379-d7b5-4378-8ce4-9bca293c6189",
  "publisher": "Theta Systems Limited",
  "name": "OpenFeature",
  "version": "3.0.0.0"
}

and when ever I unstall that app "clean", so with removing all data that belongs to it. It will get pulled and installed from appsource automatically and my publish will work again. Otherwise I get the error stated above.

Let me also pull @vody in, as he is the main dev of that extension.

To me this looks like some really weird issue in the deployment process, since I can publish the app without any problems though the UI and also via DEV endpoint

StefanMaron commented 1 year ago

Alright, next Update. Even if I remove the dependency, the install still fails. I would say this makes it a bug in the open feature extension.

But I would still say the error message could be printed in the action log.

freddydk commented 1 year ago

Could you share the full output of the deploy step with me? Need to see some other information earlier in the log.

StefanMaron commented 1 year ago

Sure!

Deploy Log ``` 2023-06-28T15:39:18.2109278Z ##[group]Run microsoft/AL-Go-Actions/Deploy@v3.1 2023-06-28T15:39:18.2109597Z with: 2023-06-28T15:39:18.2109847Z shell: pwsh 2023-06-28T15:39:18.2110090Z type: CD 2023-06-28T15:39:18.2110346Z projects: * 2023-06-28T15:39:18.2110604Z environmentName: REVW 2023-06-28T15:39:18.2110887Z artifacts: .artifacts 2023-06-28T15:39:18.2111147Z actor: StefanMaron 2023-06-28T15:39:18.2111601Z token: *** 2023-06-28T15:39:18.2111880Z parentTelemetryScopeJson: 7b7d 2023-06-28T15:39:18.2112172Z env: 2023-06-28T15:39:18.2112408Z workflowDepth: 1 2023-06-28T15:39:18.2113638Z ALGoOrgSettings: { "runs-on": "ubuntu-latest", "enableCodeCop": true, "enableUICop": true, "enableAppSourceCop": true, "UpdateGitHubGoSystemFilesSchedule": "1 1 * * SAT", "cacheKeepDays": 8, "artifact": "////weekly", "customCodeCops": [ "https://github.com/StefanMaron/BusinessCentral.LinterCop/releases/download/v0.29.2/BusinessCentral.LinterCop.current.dll" ], "installApps": [ "https://github.com/SpareBrainedIdeas/Spare-Brained-Licensing/releases/download/v2.0.202319.200/Spare.Brained.Ideas.AB_Spare.Brained.Licensing_2.0.202319.200_runtime.app.zip" ] } 2023-06-28T15:39:18.2114823Z ALGoRepoSettings: 2023-06-28T15:39:18.2115088Z type: PTE 2023-06-28T15:39:18.2115371Z unusedALGoSystemFiles: 2023-06-28T15:39:18.2115645Z projects: 2023-06-28T15:39:18.2115899Z country: us 2023-06-28T15:39:18.2116146Z artifact: ////weekly 2023-06-28T15:39:18.2116417Z companyName: 2023-06-28T15:39:18.2116668Z repoVersion: 1.0 2023-06-28T15:39:18.2116954Z repoName: MinesAndAssociates 2023-06-28T15:39:18.2117246Z versioningStrategy: 0 2023-06-28T15:39:18.2117534Z runNumberOffset: 0 2023-06-28T15:39:18.2117790Z appBuild: 20 2023-06-28T15:39:18.2118251Z appRevision: 0 2023-06-28T15:39:18.2118506Z keyVaultName: 2023-06-28T15:39:18.2118825Z licenseFileUrlSecretName: licenseFileUrl 2023-06-28T15:39:18.2119196Z insiderSasTokenSecretName: insiderSasToken 2023-06-28T15:39:18.2119583Z ghTokenWorkflowSecretName: ghTokenWorkflow 2023-06-28T15:39:18.2120010Z adminCenterApiCredentialsSecretName: adminCenterApiCredentials 2023-06-28T15:39:18.2120579Z applicationInsightsConnectionStringSecretName: applicationInsightsConnectionString 2023-06-28T15:39:18.2121259Z keyVaultCertificateUrlSecretName: 2023-06-28T15:39:18.2121662Z keyVaultCertificatePasswordSecretName: 2023-06-28T15:39:18.2122018Z keyVaultClientIdSecretName: 2023-06-28T15:39:18.2122423Z codeSignCertificateUrlSecretName: codeSignCertificateUrl 2023-06-28T15:39:18.2122901Z codeSignCertificatePasswordSecretName: codeSignCertificatePassword 2023-06-28T15:39:18.2123310Z additionalCountries: 2023-06-28T15:39:18.2123594Z appDependencies: 2023-06-28T15:39:18.2123871Z appFolders: 2023-06-28T15:39:18.2124124Z testDependencies: 2023-06-28T15:39:18.2124394Z testFolders: 2023-06-28T15:39:18.2124644Z bcptTestFolders: 2023-06-28T15:39:18.2125297Z installApps: https://github.com/SpareBrainedIdeas/Spare-Brained-Licensing/releases/download/v2.0.202319.200/Spare.Brained.Ideas.AB_Spare.Brained.Licensing_2.0.202319.200_runtime.app.zip dependencies/Theta Systems Limited_OpenFeature_3.2.0.0.app 2023-06-28T15:39:18.2125899Z installTestApps: 2023-06-28T15:39:18.2126206Z installOnlyReferencedApps: True 2023-06-28T15:39:18.2126541Z generateDependencyArtifact: False 2023-06-28T15:39:18.2126859Z skipUpgrade: False 2023-06-28T15:39:18.2127147Z applicationDependency: 18.0.0.0 2023-06-28T15:39:18.2127460Z updateDependencies: False 2023-06-28T15:39:18.2127752Z installTestRunner: False 2023-06-28T15:39:18.2128061Z installTestFramework: False 2023-06-28T15:39:18.2128355Z installTestLibraries: False 2023-06-28T15:39:18.2128680Z installPerformanceToolkit: False 2023-06-28T15:39:18.2128984Z enableCodeCop: True 2023-06-28T15:39:18.2129260Z enableUICop: True 2023-06-28T15:39:18.2129932Z customCodeCops: https://github.com/StefanMaron/BusinessCentral.LinterCop/releases/download/v0.29.2/BusinessCentral.LinterCop.current.dll 2023-06-28T15:39:18.2130426Z failOn: error 2023-06-28T15:39:18.2130720Z treatTestFailuresAsWarnings: False 2023-06-28T15:39:18.2131065Z rulesetFile: custom.ruleset.json 2023-06-28T15:39:18.2131343Z vsixFile: 2023-06-28T15:39:18.2131623Z assignPremiumPlan: False 2023-06-28T15:39:18.2131920Z enableTaskScheduler: False 2023-06-28T15:39:18.2132226Z doNotBuildTests: False 2023-06-28T15:39:18.2132548Z doNotRunTests: False 2023-06-28T15:39:18.2132838Z doNotRunBcptTests: False 2023-06-28T15:39:18.2133125Z doNotPublishApps: False 2023-06-28T15:39:18.2133417Z doNotSignApps: False 2023-06-28T15:39:18.2133682Z configPackages: 2023-06-28T15:39:18.2133988Z appSourceCopMandatoryAffixes: 2023-06-28T15:39:18.2134335Z obsoleteTagMinAllowedMajorMinor: 2023-06-28T15:39:18.2134648Z memoryLimit: 2023-06-28T15:39:18.2134982Z templateUrl: https://github.com/microsoft/AL-Go-PTE@main 2023-06-28T15:39:18.2135323Z templateBranch: 2023-06-28T15:39:18.2135614Z appDependencyProbingPaths: 2023-06-28T15:39:18.2135944Z useProjectDependencies: False 2023-06-28T15:39:18.2136241Z runs-on: ubuntu-latest 2023-06-28T15:39:18.2136517Z shell: pwsh 2023-06-28T15:39:18.2136778Z githubRunner: windows-latest 2023-06-28T15:39:18.2137077Z githubRunnerShell: pwsh 2023-06-28T15:39:18.2137358Z cacheImageName: my 2023-06-28T15:39:18.2137626Z cacheKeepDays: 8 2023-06-28T15:39:18.2137910Z alwaysBuildAllProjects: False 2023-06-28T15:39:18.2138508Z microsoftTelemetryConnectionString: InstrumentationKey=84bd9223-67d4-4378-8590-9e4a46023be2;IngestionEndpoint=https://westeurope-1.in.applicationinsights.azure.com/ 2023-06-28T15:39:18.2139097Z partnerTelemetryConnectionString: 2023-06-28T15:39:18.2139479Z sendExtendedTelemetryToMicrosoft: False 2023-06-28T15:39:18.2139923Z environments: 2023-06-28T15:39:18.2140187Z buildModes: 2023-06-28T15:39:18.2140451Z useCompilerFolder: False 2023-06-28T15:39:18.2140778Z enableAppSourceCop: True 2023-06-28T15:39:18.2141129Z UpdateGitHubGoSystemFilesSchedule: 1 1 * * SAT 2023-06-28T15:39:18.2146366Z Settings: {"environments":[],"failOn":"error","customCodeCops":["https://github.com/StefanMaron/BusinessCentral.LinterCop/releases/download/v0.29.2/BusinessCentral.LinterCop.current.dll"],"repoName":"MinesAndAssociates","installPerformanceToolkit":false,"partnerTelemetryConnectionString":"","applicationDependency":"18.0.0.0","installTestRunner":false,"doNotSignApps":false,"insiderSasTokenSecretName":"insiderSasToken","enableUICop":true,"installTestLibraries":false,"licenseFileUrlSecretName":"licenseFileUrl","githubRunner":"windows-latest","doNotBuildTests":false,"keyVaultCertificatePasswordSecretName":"","microsoftTelemetryConnectionString":"InstrumentationKey=84bd9223-67d4-4378-8590-9e4a46023be2;IngestionEndpoint=https://westeurope-1.in.applicationinsights.azure.com/","runs-on":"ubuntu-latest","assignPremiumPlan":false,"testFolders":[],"versioningStrategy":0,"type":"PTE","useProjectDependencies":false,"artifact":"////weekly","appSourceCopMandatoryAffixes":[],"generateDependencyArtifact":false,"country":"us","codeSignCertificatePasswordSecretName":"codeSignCertificatePassword","companyName":"","enableAppSourceCop":true,"appDependencyProbingPaths":[],"vsixFile":"","keyVaultClientIdSecretName":"","rulesetFile":"custom.ruleset.json","UpdateGitHubGoSystemFilesSchedule":"1 1 * * SAT","buildModes":[],"adminCenterApiCredentialsSecretName":"adminCenterApiCredentials","ghTokenWorkflowSecretName":"ghTokenWorkflow","applicationInsightsConnectionStringSecretName":"applicationInsightsConnectionString","cacheImageName":"my","projects":[],"unusedALGoSystemFiles":[],"sendExtendedTelemetryToMicrosoft":false,"githubRunnerShell":"pwsh","repoVersion":"1.0","installTestApps":[],"appDependencies":[],"keyVaultName":"","doNotPublishApps":false,"configPackages":[],"treatTestFailuresAsWarnings":false,"runNumberOffset":0,"bcptTestFolders":[],"additionalCountries":[],"shell":"pwsh","appFolders":[],"appBuild":20,"doNotRunBcptTests":false,"doNotRunTests":false,"testDependencies":[],"cacheKeepDays":8,"keyVaultCertificateUrlSecretName":"","appRevision":0,"skipUpgrade":false,"enableTaskScheduler":false,"installApps":["https://github.com/SpareBrainedIdeas/Spare-Brained-Licensing/releases/download/v2.0.202319.200/Spare.Brained.Ideas.AB_Spare.Brained.Licensing_2.0.202319.200_runtime.app.zip","dependencies/Theta Systems Limited_OpenFeature_3.2.0.0.app"],"memoryLimit":"","templateUrl":"https://github.com/microsoft/AL-Go-PTE@main","templateBranch":"","codeSignCertificateUrlSecretName":"codeSignCertificateUrl","useCompilerFolder":false,"installOnlyReferencedApps":true,"alwaysBuildAllProjects":false,"updateDependencies":false,"enableCodeCop":true,"obsoleteTagMinAllowedMajorMinor":"","installTestFramework":false} 2023-06-28T15:39:18.2153845Z AuthContext: *** 2023-06-28T15:39:18.2156471Z RepoSecrets: {"AuthContext":"***","Dev-AuthContext":"","Dev_AuthContext":"","Dev-EnvironmentName":"","Dev_EnvironmentName":"","EnvironmentName":"","projects":""} 2023-06-28T15:39:18.2156930Z ##[endgroup] 2023-06-28T15:39:18.2176408Z ##[group]Run try { /home/runner/work/_actions/microsoft/AL-Go-Actions/v3.1/Deploy/Deploy.ps1 -actor $ENV:_actor -token $ENV:_token -parentTelemetryScopeJson $ENV:_parentTelemetryScopeJson -projects $ENV:_projects -environmentName $ENV:_environmentName -artifacts $ENV:_artifacts -type $ENV:_type } catch { Write-Host "::Error::Unexpected error when running action ($($_.Exception.Message.Replace("`r",'').Replace("`n",' ')))"; exit 1 } 2023-06-28T15:39:18.2177918Z try { /home/runner/work/_actions/microsoft/AL-Go-Actions/v3.1/Deploy/Deploy.ps1 -actor $ENV:_actor -token $ENV:_token -parentTelemetryScopeJson $ENV:_parentTelemetryScopeJson -projects $ENV:_projects -environmentName $ENV:_environmentName -artifacts $ENV:_artifacts -type $ENV:_type } catch { Write-Host "::Error::Unexpected error when running action ($($_.Exception.Message.Replace("`r",'').Replace("`n",' ')))"; exit 1 } 2023-06-28T15:39:18.2230039Z shell: /usr/bin/pwsh -command ". '{0}'" 2023-06-28T15:39:18.2230328Z env: 2023-06-28T15:39:18.2230581Z workflowDepth: 1 2023-06-28T15:39:18.2231759Z ALGoOrgSettings: { "runs-on": "ubuntu-latest", "enableCodeCop": true, "enableUICop": true, "enableAppSourceCop": true, "UpdateGitHubGoSystemFilesSchedule": "1 1 * * SAT", "cacheKeepDays": 8, "artifact": "////weekly", "customCodeCops": [ "https://github.com/StefanMaron/BusinessCentral.LinterCop/releases/download/v0.29.2/BusinessCentral.LinterCop.current.dll" ], "installApps": [ "https://github.com/SpareBrainedIdeas/Spare-Brained-Licensing/releases/download/v2.0.202319.200/Spare.Brained.Ideas.AB_Spare.Brained.Licensing_2.0.202319.200_runtime.app.zip" ] } 2023-06-28T15:39:18.2232915Z ALGoRepoSettings: 2023-06-28T15:39:18.2233204Z type: PTE 2023-06-28T15:39:18.2233467Z unusedALGoSystemFiles: 2023-06-28T15:39:18.2233753Z projects: 2023-06-28T15:39:18.2233989Z country: us 2023-06-28T15:39:18.2234251Z artifact: ////weekly 2023-06-28T15:39:18.2234508Z companyName: 2023-06-28T15:39:18.2234773Z repoVersion: 1.0 2023-06-28T15:39:18.2235048Z repoName: MinesAndAssociates 2023-06-28T15:39:18.2235349Z versioningStrategy: 0 2023-06-28T15:39:18.2235622Z runNumberOffset: 0 2023-06-28T15:39:18.2235878Z appBuild: 20 2023-06-28T15:39:18.2236130Z appRevision: 0 2023-06-28T15:39:18.2236381Z keyVaultName: 2023-06-28T15:39:18.2236689Z licenseFileUrlSecretName: licenseFileUrl 2023-06-28T15:39:18.2237048Z insiderSasTokenSecretName: insiderSasToken 2023-06-28T15:39:18.2237429Z ghTokenWorkflowSecretName: ghTokenWorkflow 2023-06-28T15:39:18.2237866Z adminCenterApiCredentialsSecretName: adminCenterApiCredentials 2023-06-28T15:39:18.2238412Z applicationInsightsConnectionStringSecretName: applicationInsightsConnectionString 2023-06-28T15:39:18.2238908Z keyVaultCertificateUrlSecretName: 2023-06-28T15:39:18.2239282Z keyVaultCertificatePasswordSecretName: 2023-06-28T15:39:18.2239817Z keyVaultClientIdSecretName: 2023-06-28T15:39:18.2240209Z codeSignCertificateUrlSecretName: codeSignCertificateUrl 2023-06-28T15:39:18.2240696Z codeSignCertificatePasswordSecretName: codeSignCertificatePassword 2023-06-28T15:39:18.2241266Z additionalCountries: 2023-06-28T15:39:18.2241556Z appDependencies: 2023-06-28T15:39:18.2241813Z appFolders: 2023-06-28T15:39:18.2242068Z testDependencies: 2023-06-28T15:39:18.2242327Z testFolders: 2023-06-28T15:39:18.2242591Z bcptTestFolders: 2023-06-28T15:39:18.2243227Z installApps: https://github.com/SpareBrainedIdeas/Spare-Brained-Licensing/releases/download/v2.0.202319.200/Spare.Brained.Ideas.AB_Spare.Brained.Licensing_2.0.202319.200_runtime.app.zip dependencies/Theta Systems Limited_OpenFeature_3.2.0.0.app 2023-06-28T15:39:18.2243850Z installTestApps: 2023-06-28T15:39:18.2244151Z installOnlyReferencedApps: True 2023-06-28T15:39:18.2244497Z generateDependencyArtifact: False 2023-06-28T15:39:18.2244801Z skipUpgrade: False 2023-06-28T15:39:18.2245108Z applicationDependency: 18.0.0.0 2023-06-28T15:39:18.2245410Z updateDependencies: False 2023-06-28T15:39:18.2245715Z installTestRunner: False 2023-06-28T15:39:18.2246009Z installTestFramework: False 2023-06-28T15:39:18.2246322Z installTestLibraries: False 2023-06-28T15:39:18.2246632Z installPerformanceToolkit: False 2023-06-28T15:39:18.2246949Z enableCodeCop: True 2023-06-28T15:39:18.2247213Z enableUICop: True 2023-06-28T15:39:18.2247716Z customCodeCops: https://github.com/StefanMaron/BusinessCentral.LinterCop/releases/download/v0.29.2/BusinessCentral.LinterCop.current.dll 2023-06-28T15:39:18.2248187Z failOn: error 2023-06-28T15:39:18.2248491Z treatTestFailuresAsWarnings: False 2023-06-28T15:39:18.2248819Z rulesetFile: custom.ruleset.json 2023-06-28T15:39:18.2249108Z vsixFile: 2023-06-28T15:39:18.2249509Z assignPremiumPlan: False 2023-06-28T15:39:18.2249808Z enableTaskScheduler: False 2023-06-28T15:39:18.2250095Z doNotBuildTests: False 2023-06-28T15:39:18.2250383Z doNotRunTests: False 2023-06-28T15:39:18.2250667Z doNotRunBcptTests: False 2023-06-28T15:39:18.2250966Z doNotPublishApps: False 2023-06-28T15:39:18.2251246Z doNotSignApps: False 2023-06-28T15:39:18.2251526Z configPackages: 2023-06-28T15:39:18.2251827Z appSourceCopMandatoryAffixes: 2023-06-28T15:39:18.2252180Z obsoleteTagMinAllowedMajorMinor: 2023-06-28T15:39:18.2252479Z memoryLimit: 2023-06-28T15:39:18.2252826Z templateUrl: https://github.com/microsoft/AL-Go-PTE@main 2023-06-28T15:39:18.2253157Z templateBranch: 2023-06-28T15:39:18.2253452Z appDependencyProbingPaths: 2023-06-28T15:39:18.2253773Z useProjectDependencies: False 2023-06-28T15:39:18.2254087Z runs-on: ubuntu-latest 2023-06-28T15:39:18.2254347Z shell: pwsh 2023-06-28T15:39:18.2254630Z githubRunner: windows-latest 2023-06-28T15:39:18.2254926Z githubRunnerShell: pwsh 2023-06-28T15:39:18.2255213Z cacheImageName: my 2023-06-28T15:39:18.2255470Z cacheKeepDays: 8 2023-06-28T15:39:18.2255840Z alwaysBuildAllProjects: False 2023-06-28T15:39:18.2256439Z microsoftTelemetryConnectionString: InstrumentationKey=84bd9223-67d4-4378-8590-9e4a46023be2;IngestionEndpoint=https://westeurope-1.in.applicationinsights.azure.com/ 2023-06-28T15:39:18.2257050Z partnerTelemetryConnectionString: 2023-06-28T15:39:18.2257418Z sendExtendedTelemetryToMicrosoft: False 2023-06-28T15:39:18.2257742Z environments: 2023-06-28T15:39:18.2257988Z buildModes: 2023-06-28T15:39:18.2258263Z useCompilerFolder: False 2023-06-28T15:39:18.2258554Z enableAppSourceCop: True 2023-06-28T15:39:18.2258916Z UpdateGitHubGoSystemFilesSchedule: 1 1 * * SAT 2023-06-28T15:39:18.2264166Z Settings: {"environments":[],"failOn":"error","customCodeCops":["https://github.com/StefanMaron/BusinessCentral.LinterCop/releases/download/v0.29.2/BusinessCentral.LinterCop.current.dll"],"repoName":"MinesAndAssociates","installPerformanceToolkit":false,"partnerTelemetryConnectionString":"","applicationDependency":"18.0.0.0","installTestRunner":false,"doNotSignApps":false,"insiderSasTokenSecretName":"insiderSasToken","enableUICop":true,"installTestLibraries":false,"licenseFileUrlSecretName":"licenseFileUrl","githubRunner":"windows-latest","doNotBuildTests":false,"keyVaultCertificatePasswordSecretName":"","microsoftTelemetryConnectionString":"InstrumentationKey=84bd9223-67d4-4378-8590-9e4a46023be2;IngestionEndpoint=https://westeurope-1.in.applicationinsights.azure.com/","runs-on":"ubuntu-latest","assignPremiumPlan":false,"testFolders":[],"versioningStrategy":0,"type":"PTE","useProjectDependencies":false,"artifact":"////weekly","appSourceCopMandatoryAffixes":[],"generateDependencyArtifact":false,"country":"us","codeSignCertificatePasswordSecretName":"codeSignCertificatePassword","companyName":"","enableAppSourceCop":true,"appDependencyProbingPaths":[],"vsixFile":"","keyVaultClientIdSecretName":"","rulesetFile":"custom.ruleset.json","UpdateGitHubGoSystemFilesSchedule":"1 1 * * SAT","buildModes":[],"adminCenterApiCredentialsSecretName":"adminCenterApiCredentials","ghTokenWorkflowSecretName":"ghTokenWorkflow","applicationInsightsConnectionStringSecretName":"applicationInsightsConnectionString","cacheImageName":"my","projects":[],"unusedALGoSystemFiles":[],"sendExtendedTelemetryToMicrosoft":false,"githubRunnerShell":"pwsh","repoVersion":"1.0","installTestApps":[],"appDependencies":[],"keyVaultName":"","doNotPublishApps":false,"configPackages":[],"treatTestFailuresAsWarnings":false,"runNumberOffset":0,"bcptTestFolders":[],"additionalCountries":[],"shell":"pwsh","appFolders":[],"appBuild":20,"doNotRunBcptTests":false,"doNotRunTests":false,"testDependencies":[],"cacheKeepDays":8,"keyVaultCertificateUrlSecretName":"","appRevision":0,"skipUpgrade":false,"enableTaskScheduler":false,"installApps":["https://github.com/SpareBrainedIdeas/Spare-Brained-Licensing/releases/download/v2.0.202319.200/Spare.Brained.Ideas.AB_Spare.Brained.Licensing_2.0.202319.200_runtime.app.zip","dependencies/Theta Systems Limited_OpenFeature_3.2.0.0.app"],"memoryLimit":"","templateUrl":"https://github.com/microsoft/AL-Go-PTE@main","templateBranch":"","codeSignCertificateUrlSecretName":"codeSignCertificateUrl","useCompilerFolder":false,"installOnlyReferencedApps":true,"alwaysBuildAllProjects":false,"updateDependencies":false,"enableCodeCop":true,"obsoleteTagMinAllowedMajorMinor":"","installTestFramework":false} 2023-06-28T15:39:18.2271791Z AuthContext: *** 2023-06-28T15:39:18.2274430Z RepoSecrets: {"AuthContext":"***","Dev-AuthContext":"","Dev_AuthContext":"","Dev-EnvironmentName":"","Dev_EnvironmentName":"","EnvironmentName":"","projects":""} 2023-06-28T15:39:18.2274904Z _actor: StefanMaron 2023-06-28T15:39:18.2275270Z _token: *** 2023-06-28T15:39:18.2275562Z _parentTelemetryScopeJson: 7b7d 2023-06-28T15:39:18.2275848Z _projects: * 2023-06-28T15:39:18.2276120Z _environmentName: REVW 2023-06-28T15:39:18.2276401Z _artifacts: .artifacts 2023-06-28T15:39:18.2276670Z _type: CD 2023-06-28T15:39:18.2276909Z ##[endgroup] 2023-06-28T15:39:19.3860748Z Downloading BcContainerHelper latest version from CDN 2023-06-28T15:39:20.6311507Z BcContainerHelper version 5.0.3 2023-06-28T15:39:20.6886673Z BC.HelperFunctions emits usage statistics telemetry to Microsoft 2023-06-28T15:39:20.7261929Z Running on Linux 2023-06-28T15:39:21.6782391Z project '*' 2023-06-28T15:39:21.6841886Z Apps to deploy 2023-06-28T15:39:21.6890468Z /home/runner/work/MinesAndAssociates/MinesAndAssociates/.artifacts/MinesAndAssociates-main-Apps-1.0.20.0 2023-06-28T15:39:21.7574242Z Attempting authentication to https://api.businesscentral.dynamics.com/.default using clientCredentials... 2023-06-28T15:39:21.9820802Z Authenticated as app *** 2023-06-28T15:39:22.0148364Z https://businesscentral.dynamics.com/616d5a35-db82-429c-aee9-f1596d3128f5/DEV/deployment/url 2023-06-28T15:39:22.4882050Z Using S2S, publishing apps using automation API 2023-06-28T15:39:22.5273777Z https://api.businesscentral.dynamics.com/v2.0/DEV/api/microsoft/automation/v2.0/companies 2023-06-28T15:39:23.0410462Z Company '' has id 603dc054-130f-ee11-8f6e-002248a4ad93 2023-06-28T15:39:23.0417148Z https://api.businesscentral.dynamics.com/v2.0/DEV/api/microsoft/automation/v2.0/companies(603dc054-130f-ee11-8f6e-002248a4ad93)/extensions 2023-06-28T15:39:23.8480490Z Extensions before: 2023-06-28T15:39:23.8539390Z - AMC Banking 365 Fundamentals, Version 22.2.56969.57617, Installed=True 2023-06-28T15:39:23.8540385Z - API Reports - Finance, Version 22.2.56969.57617, Installed=True 2023-06-28T15:39:23.8543272Z - Application, Version 22.2.56969.57617, Installed=True 2023-06-28T15:39:23.8709833Z - Audit File Export, Version 22.2.56969.57617, Installed=True 2023-06-28T15:39:23.8710335Z - Base Application, Version 22.2.56969.58271, Installed=True 2023-06-28T15:39:23.8710842Z - Binary Stream Inc License Management, Version 1.1.29.0, Installed=True 2023-06-28T15:39:23.8711401Z - Business Central Cloud Migration - Previous Release, Version 22.2.56969.57617, Installed=True 2023-06-28T15:39:23.8712027Z - Business Central Cloud Migration - Previous Release (US), Version 22.2.56969.57617, Installed=True 2023-06-28T15:39:23.8712590Z - Business Central Cloud Migration API, Version 22.2.56969.57617, Installed=True 2023-06-28T15:39:23.8713110Z - Business Central Intelligent Cloud, Version 22.2.56969.57617, Installed=True 2023-06-28T15:39:23.8713572Z - Ceridian Payroll, Version 22.2.56969.57617, Installed=True 2023-06-28T15:39:23.8714011Z - Company Hub, Version 22.2.56969.57617, Installed=True 2023-06-28T15:39:23.8714459Z - Contoso Coffee Demo Dataset, Version 22.2.56969.57617, Installed=True 2023-06-28T15:39:23.8714955Z - Contoso Coffee Demo Dataset (US), Version 22.2.56969.57617, Installed=True 2023-06-28T15:39:23.8715390Z - Customizations, Version 1.0.19.0, Installed=True 2023-06-28T15:39:23.8715827Z - Data Archive, Version 22.2.56969.57617, Installed=True 2023-06-28T15:39:23.8716241Z - Data Search, Version 22.2.56969.57617, Installed=True 2023-06-28T15:39:23.8716991Z - DIOT - Localization for Mexico, Version 22.2.56969.57617, Installed=True 2023-06-28T15:39:23.8717481Z - Dynamics GP Historical Data, Version 22.2.56969.57617, Installed=True 2023-06-28T15:39:23.8717983Z - Dynamics GP Intelligent Cloud, Version 22.2.56969.57617, Installed=True 2023-06-28T15:39:23.8718485Z - Dynamics GP Intelligent Cloud - US, Version 22.2.56969.57617, Installed=True 2023-06-28T15:39:23.8719021Z - Email - Current User Connector, Version 22.2.56969.57617, Installed=True 2023-06-28T15:39:23.8719509Z - Email - Microsoft 365 Connector, Version 22.2.56969.57617, Installed=True 2023-06-28T15:39:23.8719993Z - Email - Outlook REST API, Version 22.2.56969.57617, Installed=True 2023-06-28T15:39:23.8720440Z - Email - SMTP API, Version 22.2.56969.57617, Installed=True 2023-06-28T15:39:23.8720900Z - Email - SMTP Connector, Version 22.2.56969.57617, Installed=True 2023-06-28T15:39:23.8721499Z - Envestnet Yodlee Bank Feeds, Version 22.2.56969.57617, Installed=True 2023-06-28T15:39:23.8722000Z - Essential Business Headlines, Version 22.2.56969.57617, Installed=True 2023-06-28T15:39:23.8722466Z - Image Analyzer, Version 22.2.56969.57617, Installed=True 2023-06-28T15:39:23.8722941Z - Import of QuickBooks Payroll Files, Version 22.2.56969.57617, Installed=True 2023-06-28T15:39:23.8723432Z - Intelligent Cloud Base, Version 22.2.56969.57617, Installed=True 2023-06-28T15:39:23.8723854Z - IRS 1096, Version 22.2.56969.57617, Installed=True 2023-06-28T15:39:23.8724310Z - Jet Library for Business Central, Version 1.0.16.26, Installed=True 2023-06-28T15:39:23.8724788Z - Jet Reports for Business Central, Version 1.0.16.26, Installed=True 2023-06-28T15:39:23.8725260Z - KTC License Management, Version 2.2.9.4355, Installed=True 2023-06-28T15:39:23.8725725Z - Late Payment Prediction, Version 22.2.56969.57617, Installed=True 2023-06-28T15:39:23.8726217Z - Migration of QuickBooks Data, Version 22.2.56969.57617, Installed=True 2023-06-28T15:39:23.8726647Z - OpenFeature, Version 3.2.1.0, Installed=True 2023-06-28T15:39:23.8727105Z - Payment Links to PayPal, Version 22.2.56969.57617, Installed=True 2023-06-28T15:39:23.8727698Z - Recommended Apps, Version 22.2.56969.57617, Installed=True 2023-06-28T15:39:23.8728183Z - Sales and Inventory Forecast, Version 22.2.56969.57630, Installed=True 2023-06-28T15:39:23.8728668Z - Send remittance advice by email, Version 22.2.56969.57617, Installed=True 2023-06-28T15:39:23.8729157Z - Send To Email Printer, Version 22.2.56969.57617, Installed=True 2023-06-28T15:39:23.8729601Z - Shopify Connector, Version 22.2.56969.57946, Installed=True 2023-06-28T15:39:23.8730091Z - Simplified Bank Statement Import, Version 22.2.56969.57617, Installed=True 2023-06-28T15:39:23.8730557Z - Statistical Accounts, Version 22.2.56969.57617, Installed=True 2023-06-28T15:39:23.8731020Z - Subscription Billing Suite, Version 1.1.39.9, Installed=True 2023-06-28T15:39:23.8731469Z - System Application, Version 22.2.56969.57630, Installed=True 2023-06-28T15:39:23.8731961Z - Troubleshoot FA Ledger Entries, Version 22.2.56969.57617, Installed=True 2023-06-28T15:39:23.8732447Z - Universal Print Integration, Version 22.2.56969.57617, Installed=True 2023-06-28T15:39:23.8732694Z 2023-06-28T15:39:26.5962931Z A BC Consulting_Customizations_1.0.20.0.app - upgrading... 2023-06-28T15:39:26.5964486Z Extensions after: 2023-06-28T15:39:26.5974820Z - AMC Banking 365 Fundamentals, Version 22.2.56969.57617, Installed=True 2023-06-28T15:39:26.5977271Z - API Reports - Finance, Version 22.2.56969.57617, Installed=True 2023-06-28T15:39:26.5979375Z - Application, Version 22.2.56969.57617, Installed=True 2023-06-28T15:39:26.5982237Z - Audit File Export, Version 22.2.56969.57617, Installed=True 2023-06-28T15:39:26.5984245Z - Base Application, Version 22.2.56969.58271, Installed=True 2023-06-28T15:39:26.5987068Z - Binary Stream Inc License Management, Version 1.1.29.0, Installed=True 2023-06-28T15:39:26.5989090Z - Business Central Cloud Migration - Previous Release, Version 22.2.56969.57617, Installed=True 2023-06-28T15:39:26.5991101Z - Business Central Cloud Migration - Previous Release (US), Version 22.2.56969.57617, Installed=True 2023-06-28T15:39:26.5993078Z - Business Central Cloud Migration API, Version 22.2.56969.57617, Installed=True 2023-06-28T15:39:26.5996041Z - Business Central Intelligent Cloud, Version 22.2.56969.57617, Installed=True 2023-06-28T15:39:26.5997933Z - Ceridian Payroll, Version 22.2.56969.57617, Installed=True 2023-06-28T15:39:26.5999859Z - Company Hub, Version 22.2.56969.57617, Installed=True 2023-06-28T15:39:26.6002107Z - Contoso Coffee Demo Dataset, Version 22.2.56969.57617, Installed=True 2023-06-28T15:39:26.6004075Z - Contoso Coffee Demo Dataset (US), Version 22.2.56969.57617, Installed=True 2023-06-28T15:39:26.6005950Z - Customizations, Version 1.0.19.0, Installed=True 2023-06-28T15:39:26.6007877Z - Data Archive, Version 22.2.56969.57617, Installed=True 2023-06-28T15:39:26.6009794Z - Data Search, Version 22.2.56969.57617, Installed=True 2023-06-28T15:39:26.6011748Z - DIOT - Localization for Mexico, Version 22.2.56969.57617, Installed=True 2023-06-28T15:39:26.6013596Z - Dynamics GP Historical Data, Version 22.2.56969.57617, Installed=True 2023-06-28T15:39:26.6015505Z - Dynamics GP Intelligent Cloud, Version 22.2.56969.57617, Installed=True 2023-06-28T15:39:26.6017437Z - Dynamics GP Intelligent Cloud - US, Version 22.2.56969.57617, Installed=True 2023-06-28T15:39:26.6019355Z - Email - Current User Connector, Version 22.2.56969.57617, Installed=True 2023-06-28T15:39:26.6021288Z - Email - Microsoft 365 Connector, Version 22.2.56969.57617, Installed=True 2023-06-28T15:39:26.6023188Z - Email - Outlook REST API, Version 22.2.56969.57617, Installed=True 2023-06-28T15:39:26.6025069Z - Email - SMTP API, Version 22.2.56969.57617, Installed=True 2023-06-28T15:39:26.6026962Z - Email - SMTP Connector, Version 22.2.56969.57617, Installed=True 2023-06-28T15:39:26.6028891Z - Envestnet Yodlee Bank Feeds, Version 22.2.56969.57617, Installed=True 2023-06-28T15:39:26.6030772Z - Essential Business Headlines, Version 22.2.56969.57617, Installed=True 2023-06-28T15:39:26.6032684Z - Image Analyzer, Version 22.2.56969.57617, Installed=True 2023-06-28T15:39:26.6034795Z - Import of QuickBooks Payroll Files, Version 22.2.56969.57617, Installed=True 2023-06-28T15:39:26.6036452Z - Intelligent Cloud Base, Version 22.2.56969.57617, Installed=True 2023-06-28T15:39:26.6038363Z - IRS 1096, Version 22.2.56969.57617, Installed=True 2023-06-28T15:39:26.6085718Z - Jet Library for Business Central, Version 1.0.16.26, Installed=True 2023-06-28T15:39:26.6086465Z - Jet Reports for Business Central, Version 1.0.16.26, Installed=True 2023-06-28T15:39:26.6087043Z - KTC License Management, Version 2.2.9.4355, Installed=True 2023-06-28T15:39:26.6087615Z - Late Payment Prediction, Version 22.2.56969.57617, Installed=True 2023-06-28T15:39:26.6088206Z - Migration of QuickBooks Data, Version 22.2.56969.57617, Installed=True 2023-06-28T15:39:26.6088737Z - OpenFeature, Version 3.2.1.0, Installed=True 2023-06-28T15:39:26.6089286Z - Payment Links to PayPal, Version 22.2.56969.57617, Installed=True 2023-06-28T15:39:26.6089837Z - Recommended Apps, Version 22.2.56969.57617, Installed=True 2023-06-28T15:39:26.6090401Z - Sales and Inventory Forecast, Version 22.2.56969.57630, Installed=True 2023-06-28T15:39:26.6090989Z - Send remittance advice by email, Version 22.2.56969.57617, Installed=True 2023-06-28T15:39:26.6091546Z - Send To Email Printer, Version 22.2.56969.57617, Installed=True 2023-06-28T15:39:26.6092091Z - Shopify Connector, Version 22.2.56969.57946, Installed=True 2023-06-28T15:39:26.6092655Z - Simplified Bank Statement Import, Version 22.2.56969.57617, Installed=True 2023-06-28T15:39:26.6093214Z - Statistical Accounts, Version 22.2.56969.57617, Installed=True 2023-06-28T15:39:26.6093749Z - Subscription Billing Suite, Version 1.1.39.9, Installed=True 2023-06-28T15:39:26.6094296Z - System Application, Version 22.2.56969.57630, Installed=True 2023-06-28T15:39:26.6095085Z - Troubleshoot FA Ledger Entries, Version 22.2.56969.57617, Installed=True 2023-06-28T15:39:26.6095656Z - Universal Print Integration, Version 22.2.56969.57617, Installed=True 2023-06-28T15:39:26.8792141Z Publish-PerTenantExtensionApps Telemetry Correlation Id: c4d556bf-c4bc-4f5f-8e73-43a2ff1070f4 2023-06-28T15:39:26.8875917Z ##[error]Deploying to DEV failed. Response status code does not indicate success: 400 (Bad Request). 2023-06-28T15:39:26.8877476Z Removing BcContainerHelper 2023-06-28T15:39:27.0710187Z ##[error]Process completed with exit code 1. 2023-06-28T15:39:27.0765192Z Post job cleanup. 2023-06-28T15:39:27.1785736Z [command]/usr/bin/git version 2023-06-28T15:39:27.1834443Z git version 2.41.0 2023-06-28T15:39:27.1930676Z Temporarily overriding HOME='/home/runner/work/_temp/3b649360-5e67-495c-9c03-60cc6d13af1e' before making global git config changes 2023-06-28T15:39:27.1936185Z Adding repository directory to the temporary git global config as a safe directory 2023-06-28T15:39:27.1939849Z [command]/usr/bin/git config --global --add safe.directory /home/runner/work/MinesAndAssociates/MinesAndAssociates 2023-06-28T15:39:27.1986585Z [command]/usr/bin/git config --local --name-only --get-regexp core\.sshCommand 2023-06-28T15:39:27.2029506Z [command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core\.sshCommand' && git config --local --unset-all 'core.sshCommand' || :" 2023-06-28T15:39:27.2292035Z [command]/usr/bin/git config --local --name-only --get-regexp http\.https\:\/\/github\.com\/\.extraheader 2023-06-28T15:39:27.2318475Z http.https://github.com/.extraheader 2023-06-28T15:39:27.2332118Z [command]/usr/bin/git config --local --unset-all http.https://github.com/.extraheader 2023-06-28T15:39:27.2396219Z [command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http\.https\:\/\/github\.com\/\.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :" 2023-06-28T15:39:27.2802707Z Cleaning up orphan processes ```
freddydk commented 1 year ago

In ContainerHelper, I catch WebExceptions and print out extended information: image

I wonder if the exception type is different on Linux?

freddydk commented 1 year ago

I will make a pre-release version of ContainerHelper, which does this: image

If your AL-Go repo is running on microsoft/AL-Go-PTE@preview - then you will get this behavior in 1-2 hours - and you can tell me what Exception type is thrown.

StefanMaron commented 1 year ago

BTW: I found the issue that made my deploy fail. Its not within your scope, but I am not sure if this would not be of interest of the application team. If you add an Application Area OnAfterLogin and do NOT set it with a trailing comma, it seems to break all kind of deployment via API https://github.com/thetanz/OpenFeature-al/pull/19/files

freddydk commented 1 year ago

If you can re-run the failing deploy script (using containerhelper preview), then I should be able to see which error is happening and next time show a better error message.

StefanMaron commented 1 year ago

This is the new output, it doesnt look to me like anything changed:

Click ``` 2023-06-30T04:46:47.8319008Z ##[group]Run microsoft/AL-Go-Actions/Deploy@preview 2023-06-30T04:46:47.8319339Z with: 2023-06-30T04:46:47.8319576Z shell: pwsh 2023-06-30T04:46:47.8319850Z type: CD 2023-06-30T04:46:47.8320083Z projects: * 2023-06-30T04:46:47.8320355Z environmentName: REVNTw== 2023-06-30T04:46:47.8320638Z artifacts: .artifacts 2023-06-30T04:46:47.8320902Z actor: StefanMaron 2023-06-30T04:46:47.8321260Z token: *** 2023-06-30T04:46:47.8321536Z parentTelemetryScopeJson: 7b7d 2023-06-30T04:46:47.8321801Z env: 2023-06-30T04:46:47.8322025Z workflowDepth: 1 2023-06-30T04:46:47.8323168Z ALGoOrgSettings: { "runs-on": "ubuntu-latest", "enableCodeCop": true, "enableUICop": true, "enableAppSourceCop": true, "UpdateGitHubGoSystemFilesSchedule": "1 1 * * SAT", "cacheKeepDays": 8, "artifact": "////weekly", "customCodeCops": [ "https://github.com/StefanMaron/BusinessCentral.LinterCop/releases/download/v0.29.2/BusinessCentral.LinterCop.current.dll" ], "installApps": [ "https://github.com/SpareBrainedIdeas/Spare-Brained-Licensing/releases/download/v2.0.202319.200/Spare.Brained.Ideas.AB_Spare.Brained.Licensing_2.0.202319.200_runtime.app.zip" ] } 2023-06-30T04:46:47.8324385Z ALGoRepoSettings: 2023-06-30T04:46:47.8324640Z type: PTE 2023-06-30T04:46:47.8324897Z unusedALGoSystemFiles: 2023-06-30T04:46:47.8325169Z projects: 2023-06-30T04:46:47.8325393Z country: us 2023-06-30T04:46:47.8325646Z artifact: ////weekly 2023-06-30T04:46:47.8325904Z companyName: 2023-06-30T04:46:47.8326163Z repoVersion: 1.0 2023-06-30T04:46:47.8326434Z repoName: MinesAndAssociates 2023-06-30T04:46:47.8326731Z versioningStrategy: 0 2023-06-30T04:46:47.8326993Z runNumberOffset: 0 2023-06-30T04:46:47.8327242Z appBuild: 21 2023-06-30T04:46:47.8327476Z appRevision: 0 2023-06-30T04:46:47.8327736Z keyVaultName: 2023-06-30T04:46:47.8328024Z licenseFileUrlSecretName: licenseFileUrl 2023-06-30T04:46:47.8328382Z insiderSasTokenSecretName: insiderSasToken 2023-06-30T04:46:47.8328736Z ghTokenWorkflowSecretName: ghTokenWorkflow 2023-06-30T04:46:47.8329156Z adminCenterApiCredentialsSecretName: adminCenterApiCredentials 2023-06-30T04:46:47.8329684Z applicationInsightsConnectionStringSecretName: applicationInsightsConnectionString 2023-06-30T04:46:47.8330141Z keyVaultCertificateUrlSecretName: 2023-06-30T04:46:47.8330505Z keyVaultCertificatePasswordSecretName: 2023-06-30T04:46:47.8330849Z keyVaultClientIdSecretName: 2023-06-30T04:46:47.8331173Z keyVaultCodesignCertificateName: 2023-06-30T04:46:47.8331581Z codeSignCertificateUrlSecretName: codeSignCertificateUrl 2023-06-30T04:46:47.8332056Z codeSignCertificatePasswordSecretName: codeSignCertificatePassword 2023-06-30T04:46:47.8332438Z additionalCountries: 2023-06-30T04:46:47.8332724Z appDependencies: 2023-06-30T04:46:47.8332977Z appFolders: 2023-06-30T04:46:47.8333222Z testDependencies: 2023-06-30T04:46:47.8333494Z testFolders: 2023-06-30T04:46:47.8333756Z bcptTestFolders: 2023-06-30T04:46:47.8334390Z installApps: https://github.com/SpareBrainedIdeas/Spare-Brained-Licensing/releases/download/v2.0.202319.200/Spare.Brained.Ideas.AB_Spare.Brained.Licensing_2.0.202319.200_runtime.app.zip dependencies/Theta Systems Limited_OpenFeature_3.2.0.0.app 2023-06-30T04:46:47.8334978Z installTestApps: 2023-06-30T04:46:47.8335266Z installOnlyReferencedApps: True 2023-06-30T04:46:47.8335607Z generateDependencyArtifact: False 2023-06-30T04:46:47.8335895Z skipUpgrade: False 2023-06-30T04:46:47.8336193Z applicationDependency: 18.0.0.0 2023-06-30T04:46:47.8336496Z updateDependencies: False 2023-06-30T04:46:47.8336802Z installTestRunner: False 2023-06-30T04:46:47.8337094Z installTestFramework: False 2023-06-30T04:46:47.8337389Z installTestLibraries: False 2023-06-30T04:46:47.8337682Z installPerformanceToolkit: False 2023-06-30T04:46:47.8337990Z enableCodeCop: True 2023-06-30T04:46:47.8338253Z enableUICop: True 2023-06-30T04:46:47.8338911Z customCodeCops: https://github.com/StefanMaron/BusinessCentral.LinterCop/releases/download/v0.29.2/BusinessCentral.LinterCop.current.dll 2023-06-30T04:46:47.8339375Z failOn: error 2023-06-30T04:46:47.8339687Z treatTestFailuresAsWarnings: False 2023-06-30T04:46:47.8340014Z rulesetFile: custom.ruleset.json 2023-06-30T04:46:47.8340310Z vsixFile: 2023-06-30T04:46:47.8340575Z assignPremiumPlan: False 2023-06-30T04:46:47.8340893Z enableTaskScheduler: False 2023-06-30T04:46:47.8341184Z doNotBuildTests: False 2023-06-30T04:46:47.8341481Z doNotRunTests: False 2023-06-30T04:46:47.8341769Z doNotRunBcptTests: False 2023-06-30T04:46:47.8342064Z doNotPublishApps: False 2023-06-30T04:46:47.8342344Z doNotSignApps: False 2023-06-30T04:46:47.8342625Z configPackages: 2023-06-30T04:46:47.8342914Z appSourceCopMandatoryAffixes: 2023-06-30T04:46:47.8343260Z obsoleteTagMinAllowedMajorMinor: 2023-06-30T04:46:47.8343556Z memoryLimit: 2023-06-30T04:46:47.8343900Z templateUrl: https://github.com/microsoft/AL-Go-PTE@preview 2023-06-30T04:46:47.8344227Z templateBranch: 2023-06-30T04:46:47.8344513Z appDependencyProbingPaths: 2023-06-30T04:46:47.8344823Z useProjectDependencies: False 2023-06-30T04:46:47.8345253Z runs-on: ubuntu-latest 2023-06-30T04:46:47.8345520Z shell: pwsh 2023-06-30T04:46:47.8345794Z githubRunner: windows-latest 2023-06-30T04:46:47.8346076Z githubRunnerShell: pwsh 2023-06-30T04:46:47.8346357Z cacheImageName: my 2023-06-30T04:46:47.8346618Z cacheKeepDays: 8 2023-06-30T04:46:47.8346911Z alwaysBuildAllProjects: False 2023-06-30T04:46:47.8347477Z microsoftTelemetryConnectionString: InstrumentationKey=84bd9223-67d4-4378-8590-9e4a46023be2;IngestionEndpoint=https://westeurope-1.in.applicationinsights.azure.com/ 2023-06-30T04:46:47.8348063Z partnerTelemetryConnectionString: 2023-06-30T04:46:47.8348431Z sendExtendedTelemetryToMicrosoft: False 2023-06-30T04:46:47.8348739Z environments: 2023-06-30T04:46:47.8348976Z buildModes: 2023-06-30T04:46:47.8349255Z useCompilerFolder: False 2023-06-30T04:46:47.8349541Z enableAppSourceCop: True 2023-06-30T04:46:47.8349884Z UpdateGitHubGoSystemFilesSchedule: 1 1 * * SAT 2023-06-30T04:46:47.8354983Z Settings: {"cacheImageName":"my","shell":"pwsh","licenseFileUrlSecretName":"licenseFileUrl","templateBranch":"","enableUICop":true,"memoryLimit":"","codeSignCertificateUrlSecretName":"codeSignCertificateUrl","generateDependencyArtifact":false,"sendExtendedTelemetryToMicrosoft":false,"installTestLibraries":false,"codeSignCertificatePasswordSecretName":"codeSignCertificatePassword","environments":[],"repoName":"MinesAndAssociates","doNotRunTests":false,"ghTokenWorkflowSecretName":"ghTokenWorkflow","installTestFramework":false,"artifact":"////weekly","UpdateGitHubGoSystemFilesSchedule":"1 1 * * SAT","enableTaskScheduler":false,"applicationDependency":"18.0.0.0","projects":[],"obsoleteTagMinAllowedMajorMinor":"","doNotRunBcptTests":false,"appDependencies":[],"updateDependencies":false,"country":"us","appDependencyProbingPaths":[],"runs-on":"ubuntu-latest","keyVaultCodesignCertificateName":"","failOn":"error","buildModes":[],"enableAppSourceCop":true,"useProjectDependencies":false,"repoVersion":"1.0","unusedALGoSystemFiles":[],"configPackages":[],"cacheKeepDays":8,"keyVaultName":"","assignPremiumPlan":false,"installTestApps":[],"doNotSignApps":false,"appFolders":[],"alwaysBuildAllProjects":false,"additionalCountries":[],"templateUrl":"https://github.com/microsoft/AL-Go-PTE@preview","keyVaultCertificatePasswordSecretName":"","versioningStrategy":0,"installOnlyReferencedApps":true,"testDependencies":[],"githubRunnerShell":"pwsh","insiderSasTokenSecretName":"insiderSasToken","doNotBuildTests":false,"rulesetFile":"custom.ruleset.json","runNumberOffset":0,"appRevision":0,"applicationInsightsConnectionStringSecretName":"applicationInsightsConnectionString","keyVaultClientIdSecretName":"","testFolders":[],"appSourceCopMandatoryAffixes":[],"githubRunner":"windows-latest","installPerformanceToolkit":false,"adminCenterApiCredentialsSecretName":"adminCenterApiCredentials","treatTestFailuresAsWarnings":false,"useCompilerFolder":false,"enableCodeCop":true,"doNotPublishApps":false,"partnerTelemetryConnectionString":"","keyVaultCertificateUrlSecretName":"","type":"PTE","bcptTestFolders":[],"vsixFile":"","installApps":["https://github.com/SpareBrainedIdeas/Spare-Brained-Licensing/releases/download/v2.0.202319.200/Spare.Brained.Ideas.AB_Spare.Brained.Licensing_2.0.202319.200_runtime.app.zip","dependencies/Theta Systems Limited_OpenFeature_3.2.0.0.app"],"microsoftTelemetryConnectionString":"InstrumentationKey=84bd9223-67d4-4378-8590-9e4a46023be2;IngestionEndpoint=https://westeurope-1.in.applicationinsights.azure.com/","companyName":"","installTestRunner":false,"skipUpgrade":false,"customCodeCops":["https://github.com/StefanMaron/BusinessCentral.LinterCop/releases/download/v0.29.2/BusinessCentral.LinterCop.current.dll"],"appBuild":21} 2023-06-30T04:46:47.8361541Z AuthContext: *** 2023-06-30T04:46:47.8363701Z RepoSecrets: {"AuthContext":"***","Demo-AuthContext":"","Demo_AuthContext":"","Demo-EnvironmentName":"","Demo_EnvironmentName":"","EnvironmentName":"","projects":""} 2023-06-30T04:46:47.8364148Z ##[endgroup] 2023-06-30T04:46:47.8383428Z ##[group]Run try { /home/runner/work/_actions/microsoft/AL-Go-Actions/preview/Deploy/Deploy.ps1 -actor $ENV:_actor -token $ENV:_token -parentTelemetryScopeJson $ENV:_parentTelemetryScopeJson -projects $ENV:_projects -environmentName $ENV:_environmentName -artifacts $ENV:_artifacts -type $ENV:_type } catch { Write-Host "::Error::Unexpected error when running action ($($_.Exception.Message.Replace("`r",'').Replace("`n",' ')))"; exit 1 } 2023-06-30T04:46:47.8384884Z try { /home/runner/work/_actions/microsoft/AL-Go-Actions/preview/Deploy/Deploy.ps1 -actor $ENV:_actor -token $ENV:_token -parentTelemetryScopeJson $ENV:_parentTelemetryScopeJson -projects $ENV:_projects -environmentName $ENV:_environmentName -artifacts $ENV:_artifacts -type $ENV:_type } catch { Write-Host "::Error::Unexpected error when running action ($($_.Exception.Message.Replace("`r",'').Replace("`n",' ')))"; exit 1 } 2023-06-30T04:46:47.8440262Z shell: /usr/bin/pwsh -command ". '{0}'" 2023-06-30T04:46:47.8440551Z env: 2023-06-30T04:46:47.8440804Z workflowDepth: 1 2023-06-30T04:46:47.8441942Z ALGoOrgSettings: { "runs-on": "ubuntu-latest", "enableCodeCop": true, "enableUICop": true, "enableAppSourceCop": true, "UpdateGitHubGoSystemFilesSchedule": "1 1 * * SAT", "cacheKeepDays": 8, "artifact": "////weekly", "customCodeCops": [ "https://github.com/StefanMaron/BusinessCentral.LinterCop/releases/download/v0.29.2/BusinessCentral.LinterCop.current.dll" ], "installApps": [ "https://github.com/SpareBrainedIdeas/Spare-Brained-Licensing/releases/download/v2.0.202319.200/Spare.Brained.Ideas.AB_Spare.Brained.Licensing_2.0.202319.200_runtime.app.zip" ] } 2023-06-30T04:46:47.8443022Z ALGoRepoSettings: 2023-06-30T04:46:47.8443285Z type: PTE 2023-06-30T04:46:47.8443549Z unusedALGoSystemFiles: 2023-06-30T04:46:47.8443833Z projects: 2023-06-30T04:46:47.8444062Z country: us 2023-06-30T04:46:47.8444318Z artifact: ////weekly 2023-06-30T04:46:47.8444578Z companyName: 2023-06-30T04:46:47.8444826Z repoVersion: 1.0 2023-06-30T04:46:47.8445112Z repoName: MinesAndAssociates 2023-06-30T04:46:47.8445398Z versioningStrategy: 0 2023-06-30T04:46:47.8445678Z runNumberOffset: 0 2023-06-30T04:46:47.8445933Z appBuild: 21 2023-06-30T04:46:47.8446190Z appRevision: 0 2023-06-30T04:46:47.8446438Z keyVaultName: 2023-06-30T04:46:47.8446742Z licenseFileUrlSecretName: licenseFileUrl 2023-06-30T04:46:47.8447098Z insiderSasTokenSecretName: insiderSasToken 2023-06-30T04:46:47.8447476Z ghTokenWorkflowSecretName: ghTokenWorkflow 2023-06-30T04:46:47.8447894Z adminCenterApiCredentialsSecretName: adminCenterApiCredentials 2023-06-30T04:46:47.8448440Z applicationInsightsConnectionStringSecretName: applicationInsightsConnectionString 2023-06-30T04:46:47.8448907Z keyVaultCertificateUrlSecretName: 2023-06-30T04:46:47.8449415Z keyVaultCertificatePasswordSecretName: 2023-06-30T04:46:47.8449763Z keyVaultClientIdSecretName: 2023-06-30T04:46:47.8450079Z keyVaultCodesignCertificateName: 2023-06-30T04:46:47.8450484Z codeSignCertificateUrlSecretName: codeSignCertificateUrl 2023-06-30T04:46:47.8450945Z codeSignCertificatePasswordSecretName: codeSignCertificatePassword 2023-06-30T04:46:47.8451332Z additionalCountries: 2023-06-30T04:46:47.8451607Z appDependencies: 2023-06-30T04:46:47.8451863Z appFolders: 2023-06-30T04:46:47.8452107Z testDependencies: 2023-06-30T04:46:47.8452376Z testFolders: 2023-06-30T04:46:47.8452622Z bcptTestFolders: 2023-06-30T04:46:47.8453250Z installApps: https://github.com/SpareBrainedIdeas/Spare-Brained-Licensing/releases/download/v2.0.202319.200/Spare.Brained.Ideas.AB_Spare.Brained.Licensing_2.0.202319.200_runtime.app.zip dependencies/Theta Systems Limited_OpenFeature_3.2.0.0.app 2023-06-30T04:46:47.8453838Z installTestApps: 2023-06-30T04:46:47.8454129Z installOnlyReferencedApps: True 2023-06-30T04:46:47.8454454Z generateDependencyArtifact: False 2023-06-30T04:46:47.8454745Z skipUpgrade: False 2023-06-30T04:46:47.8455134Z applicationDependency: 18.0.0.0 2023-06-30T04:46:47.8455437Z updateDependencies: False 2023-06-30T04:46:47.8455718Z installTestRunner: False 2023-06-30T04:46:47.8456005Z installTestFramework: False 2023-06-30T04:46:47.8456285Z installTestLibraries: False 2023-06-30T04:46:47.8456590Z installPerformanceToolkit: False 2023-06-30T04:46:47.8456879Z enableCodeCop: True 2023-06-30T04:46:47.8457142Z enableUICop: True 2023-06-30T04:46:47.8457621Z customCodeCops: https://github.com/StefanMaron/BusinessCentral.LinterCop/releases/download/v0.29.2/BusinessCentral.LinterCop.current.dll 2023-06-30T04:46:47.8458082Z failOn: error 2023-06-30T04:46:47.8458365Z treatTestFailuresAsWarnings: False 2023-06-30T04:46:47.8458688Z rulesetFile: custom.ruleset.json 2023-06-30T04:46:47.8458960Z vsixFile: 2023-06-30T04:46:47.8459224Z assignPremiumPlan: False 2023-06-30T04:46:47.8459503Z enableTaskScheduler: False 2023-06-30T04:46:47.8459791Z doNotBuildTests: False 2023-06-30T04:46:47.8460059Z doNotRunTests: False 2023-06-30T04:46:47.8460340Z doNotRunBcptTests: False 2023-06-30T04:46:47.8460614Z doNotPublishApps: False 2023-06-30T04:46:47.8460899Z doNotSignApps: False 2023-06-30T04:46:47.8461154Z configPackages: 2023-06-30T04:46:47.8461445Z appSourceCopMandatoryAffixes: 2023-06-30T04:46:47.8461776Z obsoleteTagMinAllowedMajorMinor: 2023-06-30T04:46:47.8462081Z memoryLimit: 2023-06-30T04:46:47.8462408Z templateUrl: https://github.com/microsoft/AL-Go-PTE@preview 2023-06-30T04:46:47.8462738Z templateBranch: 2023-06-30T04:46:47.8463015Z appDependencyProbingPaths: 2023-06-30T04:46:47.8463323Z useProjectDependencies: False 2023-06-30T04:46:47.8463615Z runs-on: ubuntu-latest 2023-06-30T04:46:47.8463888Z shell: pwsh 2023-06-30T04:46:47.8464147Z githubRunner: windows-latest 2023-06-30T04:46:47.8464446Z githubRunnerShell: pwsh 2023-06-30T04:46:47.8464711Z cacheImageName: my 2023-06-30T04:46:47.8465128Z cacheKeepDays: 8 2023-06-30T04:46:47.8465407Z alwaysBuildAllProjects: False 2023-06-30T04:46:47.8465982Z microsoftTelemetryConnectionString: InstrumentationKey=84bd9223-67d4-4378-8590-9e4a46023be2;IngestionEndpoint=https://westeurope-1.in.applicationinsights.azure.com/ 2023-06-30T04:46:47.8466536Z partnerTelemetryConnectionString: 2023-06-30T04:46:47.8466897Z sendExtendedTelemetryToMicrosoft: False 2023-06-30T04:46:47.8467202Z environments: 2023-06-30T04:46:47.8467451Z buildModes: 2023-06-30T04:46:47.8467701Z useCompilerFolder: False 2023-06-30T04:46:47.8467984Z enableAppSourceCop: True 2023-06-30T04:46:47.8468308Z UpdateGitHubGoSystemFilesSchedule: 1 1 * * SAT 2023-06-30T04:46:47.8474739Z Settings: {"cacheImageName":"my","shell":"pwsh","licenseFileUrlSecretName":"licenseFileUrl","templateBranch":"","enableUICop":true,"memoryLimit":"","codeSignCertificateUrlSecretName":"codeSignCertificateUrl","generateDependencyArtifact":false,"sendExtendedTelemetryToMicrosoft":false,"installTestLibraries":false,"codeSignCertificatePasswordSecretName":"codeSignCertificatePassword","environments":[],"repoName":"MinesAndAssociates","doNotRunTests":false,"ghTokenWorkflowSecretName":"ghTokenWorkflow","installTestFramework":false,"artifact":"////weekly","UpdateGitHubGoSystemFilesSchedule":"1 1 * * SAT","enableTaskScheduler":false,"applicationDependency":"18.0.0.0","projects":[],"obsoleteTagMinAllowedMajorMinor":"","doNotRunBcptTests":false,"appDependencies":[],"updateDependencies":false,"country":"us","appDependencyProbingPaths":[],"runs-on":"ubuntu-latest","keyVaultCodesignCertificateName":"","failOn":"error","buildModes":[],"enableAppSourceCop":true,"useProjectDependencies":false,"repoVersion":"1.0","unusedALGoSystemFiles":[],"configPackages":[],"cacheKeepDays":8,"keyVaultName":"","assignPremiumPlan":false,"installTestApps":[],"doNotSignApps":false,"appFolders":[],"alwaysBuildAllProjects":false,"additionalCountries":[],"templateUrl":"https://github.com/microsoft/AL-Go-PTE@preview","keyVaultCertificatePasswordSecretName":"","versioningStrategy":0,"installOnlyReferencedApps":true,"testDependencies":[],"githubRunnerShell":"pwsh","insiderSasTokenSecretName":"insiderSasToken","doNotBuildTests":false,"rulesetFile":"custom.ruleset.json","runNumberOffset":0,"appRevision":0,"applicationInsightsConnectionStringSecretName":"applicationInsightsConnectionString","keyVaultClientIdSecretName":"","testFolders":[],"appSourceCopMandatoryAffixes":[],"githubRunner":"windows-latest","installPerformanceToolkit":false,"adminCenterApiCredentialsSecretName":"adminCenterApiCredentials","treatTestFailuresAsWarnings":false,"useCompilerFolder":false,"enableCodeCop":true,"doNotPublishApps":false,"partnerTelemetryConnectionString":"","keyVaultCertificateUrlSecretName":"","type":"PTE","bcptTestFolders":[],"vsixFile":"","installApps":["https://github.com/SpareBrainedIdeas/Spare-Brained-Licensing/releases/download/v2.0.202319.200/Spare.Brained.Ideas.AB_Spare.Brained.Licensing_2.0.202319.200_runtime.app.zip","dependencies/Theta Systems Limited_OpenFeature_3.2.0.0.app"],"microsoftTelemetryConnectionString":"InstrumentationKey=84bd9223-67d4-4378-8590-9e4a46023be2;IngestionEndpoint=https://westeurope-1.in.applicationinsights.azure.com/","companyName":"","installTestRunner":false,"skipUpgrade":false,"customCodeCops":["https://github.com/StefanMaron/BusinessCentral.LinterCop/releases/download/v0.29.2/BusinessCentral.LinterCop.current.dll"],"appBuild":21} 2023-06-30T04:46:47.8481198Z AuthContext: *** 2023-06-30T04:46:47.8483472Z RepoSecrets: {"AuthContext":"***","Demo-AuthContext":"","Demo_AuthContext":"","Demo-EnvironmentName":"","Demo_EnvironmentName":"","EnvironmentName":"","projects":""} 2023-06-30T04:46:47.8483917Z _actor: StefanMaron 2023-06-30T04:46:47.8484265Z _token: *** 2023-06-30T04:46:47.8484538Z _parentTelemetryScopeJson: 7b7d 2023-06-30T04:46:47.8484829Z _projects: * 2023-06-30T04:46:47.8485088Z _environmentName: REVNTw== 2023-06-30T04:46:47.8485372Z _artifacts: .artifacts 2023-06-30T04:46:47.8485619Z _type: CD 2023-06-30T04:46:47.8485859Z ##[endgroup] 2023-06-30T04:46:49.0137133Z Downloading BcContainerHelper preview version from Blob Storage 2023-06-30T04:46:51.9788259Z BcContainerHelper version 5.0.4-preview1043 2023-06-30T04:46:52.5373813Z BC.HelperFunctions emits usage statistics telemetry to Microsoft 2023-06-30T04:46:52.5764238Z Running on Linux 2023-06-30T04:46:53.5993646Z project '*' 2023-06-30T04:46:53.6053447Z Apps to deploy 2023-06-30T04:46:53.6101139Z /home/runner/work/MinesAndAssociates/MinesAndAssociates/.artifacts/MinesAndAssociates-main-Apps-1.0.21.0 2023-06-30T04:46:53.7392736Z Attempting authentication to https://api.businesscentral.dynamics.com/.default using clientCredentials... 2023-06-30T04:46:54.6739713Z Authenticated as app *** 2023-06-30T04:46:54.6849298Z https://businesscentral.dynamics.com/4a8e15d4-f2a0-4e26-b0c5-a8215c9b5fc0/DEMO/deployment/url 2023-06-30T04:46:55.3938649Z Using S2S, publishing apps using automation API 2023-06-30T04:46:55.4331232Z https://api.businesscentral.dynamics.com/v2.0/DEMO/api/microsoft/automation/v2.0/companies 2023-06-30T04:47:00.7825513Z Company '' has id 1536b51a-7d00-ee11-8f75-6045bdacccd6 2023-06-30T04:47:00.7826264Z https://api.businesscentral.dynamics.com/v2.0/DEMO/api/microsoft/automation/v2.0/companies(1536b51a-7d00-ee11-8f75-6045bdacccd6)/extensions 2023-06-30T04:47:04.0074416Z Extensions before: 2023-06-30T04:47:04.0123561Z - ALProject1, Version 1.0.0.0, Installed=True 2023-06-30T04:47:04.0157797Z - ALProject2, Version 1.0.0.0, Installed=True 2023-06-30T04:47:04.0161186Z - AMC Banking 365 Fundamentals, Version 22.2.56969.57617, Installed=True 2023-06-30T04:47:04.0164004Z - API Reports - Finance, Version 22.2.56969.57617, Installed=True 2023-06-30T04:47:04.0166551Z - Application, Version 22.2.56969.57617, Installed=True 2023-06-30T04:47:04.0169008Z - Audit File Export, Version 22.2.56969.57617, Installed=True 2023-06-30T04:47:04.0171572Z - Base Application, Version 22.2.56969.58155, Installed=True 2023-06-30T04:47:04.0174110Z - Business Central Cloud Migration - Previous Release, Version 22.2.56969.57617, Installed=True 2023-06-30T04:47:04.0194487Z - Business Central Cloud Migration - Previous Release (US), Version 22.2.56969.57617, Installed=True 2023-06-30T04:47:04.0195911Z - Business Central Cloud Migration API, Version 22.2.56969.57617, Installed=True 2023-06-30T04:47:04.0196440Z - Business Central Intelligent Cloud, Version 22.2.56969.57617, Installed=True 2023-06-30T04:47:04.0196915Z - Ceridian Payroll, Version 22.2.56969.57617, Installed=True 2023-06-30T04:47:04.0197336Z - Company Hub, Version 22.2.56969.57617, Installed=True 2023-06-30T04:47:04.0197783Z - Contoso Coffee Demo Dataset, Version 22.2.56969.57617, Installed=True 2023-06-30T04:47:04.0198247Z - Contoso Coffee Demo Dataset (US), Version 22.2.56969.57617, Installed=True 2023-06-30T04:47:04.0198695Z - Customizations, Version 1.0.20.0, Installed=False 2023-06-30T04:47:04.0199120Z - Customizations, Version 1.0.20.1, Installed=False 2023-06-30T04:47:04.0199527Z - Customizations, Version 1.0.20.3, Installed=False 2023-06-30T04:47:04.0199916Z - Customizations, Version 1.0.20.2, Installed=False 2023-06-30T04:47:04.0200323Z - Customizations, Version 1.0.20.4, Installed=False 2023-06-30T04:47:04.0200711Z - Customizations, Version 1.0.20.5, Installed=True 2023-06-30T04:47:04.0201148Z - Data Archive, Version 22.2.56969.57617, Installed=True 2023-06-30T04:47:04.0201561Z - Data Search, Version 22.2.56969.57617, Installed=True 2023-06-30T04:47:04.0202014Z - DIOT - Localization for Mexico, Version 22.2.56969.57617, Installed=True 2023-06-30T04:47:04.0202495Z - Dynamics GP Historical Data, Version 22.2.56969.57617, Installed=True 2023-06-30T04:47:04.0202970Z - Dynamics GP Intelligent Cloud, Version 22.2.56969.57617, Installed=True 2023-06-30T04:47:04.0203458Z - Dynamics GP Intelligent Cloud - US, Version 22.2.56969.57617, Installed=True 2023-06-30T04:47:04.0203939Z - Email - Current User Connector, Version 22.2.56969.57617, Installed=True 2023-06-30T04:47:04.0204429Z - Email - Microsoft 365 Connector, Version 22.2.56969.57617, Installed=True 2023-06-30T04:47:04.0204892Z - Email - Outlook REST API, Version 22.2.56969.57617, Installed=True 2023-06-30T04:47:04.0205338Z - Email - SMTP API, Version 22.2.56969.57617, Installed=True 2023-06-30T04:47:04.0205774Z - Email - SMTP Connector, Version 22.2.56969.57617, Installed=True 2023-06-30T04:47:04.0206231Z - Envestnet Yodlee Bank Feeds, Version 22.2.56969.57617, Installed=True 2023-06-30T04:47:04.0206694Z - Essential Business Headlines, Version 22.2.56969.57617, Installed=True 2023-06-30T04:47:04.0207134Z - Image Analyzer, Version 22.2.56969.57617, Installed=True 2023-06-30T04:47:04.0207594Z - Import of QuickBooks Payroll Files, Version 22.2.56969.57617, Installed=True 2023-06-30T04:47:04.0208066Z - Intelligent Cloud Base, Version 22.2.56969.57617, Installed=True 2023-06-30T04:47:04.0208471Z - IRS 1096, Version 22.2.56969.57617, Installed=True 2023-06-30T04:47:04.0209123Z - Late Payment Prediction, Version 22.2.56969.57617, Installed=True 2023-06-30T04:47:04.0209593Z - Migration of QuickBooks Data, Version 22.2.56969.57617, Installed=True 2023-06-30T04:47:04.0210031Z - OpenFeature, Version 3.2.1.1, Installed=True 2023-06-30T04:47:04.0210463Z - Payment Links to PayPal, Version 22.2.56969.57617, Installed=True 2023-06-30T04:47:04.0210914Z - Recommended Apps, Version 22.2.56969.57617, Installed=True 2023-06-30T04:47:04.0211368Z - Sales and Inventory Forecast, Version 22.2.56969.57630, Installed=True 2023-06-30T04:47:04.0211848Z - Send remittance advice by email, Version 22.2.56969.57617, Installed=True 2023-06-30T04:47:04.0264872Z - Send To Email Printer, Version 22.2.56969.57617, Installed=True 2023-06-30T04:47:04.0408573Z - Shopify Connector, Version 22.2.56969.57946, Installed=True 2023-06-30T04:47:04.0409126Z - Simplified Bank Statement Import, Version 22.2.56969.57617, Installed=True 2023-06-30T04:47:04.0409637Z - Statistical Accounts, Version 22.2.56969.57617, Installed=True 2023-06-30T04:47:04.0410119Z - System Application, Version 22.2.56969.57630, Installed=True 2023-06-30T04:47:04.0410589Z - Troubleshoot FA Ledger Entries, Version 22.2.56969.57617, Installed=True 2023-06-30T04:47:04.0411438Z - Universal Print Integration, Version 22.2.56969.57617, Installed=True 2023-06-30T04:47:04.0411672Z 2023-06-30T04:47:08.3272905Z A BC Consulting_Customizations_1.0.21.0.app - upgrading...ERROR: Response status code does not indicate success: 400 (Bad Request). [Microsoft.PowerShell.Commands.HttpResponseException] 2023-06-30T04:47:08.6714667Z 2023-06-30T04:47:08.6718725Z Extensions after: 2023-06-30T04:47:08.6730531Z - ALProject1, Version 1.0.0.0, Installed=True 2023-06-30T04:47:08.6734557Z - ALProject2, Version 1.0.0.0, Installed=True 2023-06-30T04:47:08.6738365Z - AMC Banking 365 Fundamentals, Version 22.2.56969.57617, Installed=True 2023-06-30T04:47:08.6740720Z - API Reports - Finance, Version 22.2.56969.57617, Installed=True 2023-06-30T04:47:08.6743365Z - Application, Version 22.2.56969.57617, Installed=True 2023-06-30T04:47:08.6745969Z - Audit File Export, Version 22.2.56969.57617, Installed=True 2023-06-30T04:47:08.6748736Z - Base Application, Version 22.2.56969.58155, Installed=True 2023-06-30T04:47:08.6751542Z - Business Central Cloud Migration - Previous Release, Version 22.2.56969.57617, Installed=True 2023-06-30T04:47:08.6754646Z - Business Central Cloud Migration - Previous Release (US), Version 22.2.56969.57617, Installed=True 2023-06-30T04:47:08.6756922Z - Business Central Cloud Migration API, Version 22.2.56969.57617, Installed=True 2023-06-30T04:47:08.6760427Z - Business Central Intelligent Cloud, Version 22.2.56969.57617, Installed=True 2023-06-30T04:47:08.6764848Z - Ceridian Payroll, Version 22.2.56969.57617, Installed=True 2023-06-30T04:47:08.6768518Z - Company Hub, Version 22.2.56969.57617, Installed=True 2023-06-30T04:47:08.6772417Z - Contoso Coffee Demo Dataset, Version 22.2.56969.57617, Installed=True 2023-06-30T04:47:08.6776142Z - Contoso Coffee Demo Dataset (US), Version 22.2.56969.57617, Installed=True 2023-06-30T04:47:08.6780675Z - Customizations, Version 1.0.20.0, Installed=False 2023-06-30T04:47:08.6785239Z - Customizations, Version 1.0.20.1, Installed=False 2023-06-30T04:47:08.6789167Z - Customizations, Version 1.0.20.3, Installed=False 2023-06-30T04:47:08.6793183Z - Customizations, Version 1.0.20.2, Installed=False 2023-06-30T04:47:08.6797693Z - Customizations, Version 1.0.20.4, Installed=False 2023-06-30T04:47:08.6798557Z - Customizations, Version 1.0.20.5, Installed=True 2023-06-30T04:47:08.6820472Z - Data Archive, Version 22.2.56969.57617, Installed=True 2023-06-30T04:47:08.6822258Z - Data Search, Version 22.2.56969.57617, Installed=True 2023-06-30T04:47:08.6825017Z - DIOT - Localization for Mexico, Version 22.2.56969.57617, Installed=True 2023-06-30T04:47:08.6827856Z - Dynamics GP Historical Data, Version 22.2.56969.57617, Installed=True 2023-06-30T04:47:08.6830656Z - Dynamics GP Intelligent Cloud, Version 22.2.56969.57617, Installed=True 2023-06-30T04:47:08.6833301Z - Dynamics GP Intelligent Cloud - US, Version 22.2.56969.57617, Installed=True 2023-06-30T04:47:08.6835991Z - Email - Current User Connector, Version 22.2.56969.57617, Installed=True 2023-06-30T04:47:08.6838413Z - Email - Microsoft 365 Connector, Version 22.2.56969.57617, Installed=True 2023-06-30T04:47:08.6840972Z - Email - Outlook REST API, Version 22.2.56969.57617, Installed=True 2023-06-30T04:47:08.6843506Z - Email - SMTP API, Version 22.2.56969.57617, Installed=True 2023-06-30T04:47:08.6904350Z - Email - SMTP Connector, Version 22.2.56969.57617, Installed=True 2023-06-30T04:47:08.6904874Z - Envestnet Yodlee Bank Feeds, Version 22.2.56969.57617, Installed=True 2023-06-30T04:47:08.6905368Z - Essential Business Headlines, Version 22.2.56969.57617, Installed=True 2023-06-30T04:47:08.6905829Z - Image Analyzer, Version 22.2.56969.57617, Installed=True 2023-06-30T04:47:08.6906342Z - Import of QuickBooks Payroll Files, Version 22.2.56969.57617, Installed=True 2023-06-30T04:47:08.6906815Z - Intelligent Cloud Base, Version 22.2.56969.57617, Installed=True 2023-06-30T04:47:08.6907262Z - IRS 1096, Version 22.2.56969.57617, Installed=True 2023-06-30T04:47:08.6907903Z - Late Payment Prediction, Version 22.2.56969.57617, Installed=True 2023-06-30T04:47:08.6908379Z - Migration of QuickBooks Data, Version 22.2.56969.57617, Installed=True 2023-06-30T04:47:08.6908817Z - OpenFeature, Version 3.2.1.1, Installed=True 2023-06-30T04:47:08.6909259Z - Payment Links to PayPal, Version 22.2.56969.57617, Installed=True 2023-06-30T04:47:08.6909719Z - Recommended Apps, Version 22.2.56969.57617, Installed=True 2023-06-30T04:47:08.6910183Z - Sales and Inventory Forecast, Version 22.2.56969.57630, Installed=True 2023-06-30T04:47:08.6910678Z - Send remittance advice by email, Version 22.2.56969.57617, Installed=True 2023-06-30T04:47:08.6911144Z - Send To Email Printer, Version 22.2.56969.57617, Installed=True 2023-06-30T04:47:08.6911753Z - Shopify Connector, Version 22.2.56969.57946, Installed=True 2023-06-30T04:47:08.6912220Z - Simplified Bank Statement Import, Version 22.2.56969.57617, Installed=True 2023-06-30T04:47:08.6912710Z - Statistical Accounts, Version 22.2.56969.57617, Installed=True 2023-06-30T04:47:08.6913158Z - System Application, Version 22.2.56969.57630, Installed=True 2023-06-30T04:47:08.6913647Z - Troubleshoot FA Ledger Entries, Version 22.2.56969.57617, Installed=True 2023-06-30T04:47:08.6914125Z - Universal Print Integration, Version 22.2.56969.57617, Installed=True 2023-06-30T04:47:08.8843952Z Publish-PerTenantExtensionApps Telemetry Correlation Id: c3645fe3-8021-47be-830b-57795c31a17b 2023-06-30T04:47:08.8918245Z ##[error]Deploying to DEMO failed. Response status code does not indicate success: 400 (Bad Request). 2023-06-30T04:47:08.8953253Z Removing BcContainerHelper 2023-06-30T04:47:09.0952249Z ##[error]Process completed with exit code 1. 2023-06-30T04:47:09.1004408Z Post job cleanup. 2023-06-30T04:47:09.2069385Z [command]/usr/bin/git version 2023-06-30T04:47:09.2117809Z git version 2.41.0 2023-06-30T04:47:09.2165126Z Temporarily overriding HOME='/home/runner/work/_temp/3fb273c6-d959-44ac-bfef-e180ffd55330' before making global git config changes 2023-06-30T04:47:09.2167073Z Adding repository directory to the temporary git global config as a safe directory 2023-06-30T04:47:09.2175392Z [command]/usr/bin/git config --global --add safe.directory /home/runner/work/MinesAndAssociates/MinesAndAssociates 2023-06-30T04:47:09.2218930Z [command]/usr/bin/git config --local --name-only --get-regexp core\.sshCommand 2023-06-30T04:47:09.2257606Z [command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core\.sshCommand' && git config --local --unset-all 'core.sshCommand' || :" 2023-06-30T04:47:09.2494987Z [command]/usr/bin/git config --local --name-only --get-regexp http\.https\:\/\/github\.com\/\.extraheader 2023-06-30T04:47:09.2524468Z http.https://github.com/.extraheader 2023-06-30T04:47:09.2539054Z [command]/usr/bin/git config --local --unset-all http.https://github.com/.extraheader 2023-06-30T04:47:09.2585049Z [command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http\.https\:\/\/github\.com\/\.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :" 2023-06-30T04:47:09.3010788Z Cleaning up orphan processes ```
freddydk commented 1 year ago

It did show me the exception: 2023-06-30T04:47:08.3272905Z A BC Consulting_Customizations_1.0.21.0.app - upgrading...ERROR: Response status code does not indicate success: 400 (Bad Request). [Microsoft.PowerShell.Commands.HttpResponseException]

And currently, everything beside WebException is just handled by default exception handling - will add a handler for HttpResponseException as well.

freddydk commented 1 year ago

Problem is that this exception type is not always accessible - and it holds a response message, which is what i need to get a hold of. If I am to do this - I would need to be able to run some tests for a few hours on a repo, which consistently reports an error like this. Can I get the apps you are publishing and see if I can make a repro?

StefanMaron commented 1 year ago

I think I can reproduce this in a sample extension. I will let your know

freddydk commented 1 year ago

Any chance that you could provide me with a repro? Thanks

StefanMaron commented 1 year ago

I thought it would be just this event subscriber:

[EventSubscriber(ObjectType::Codeunit, Codeunit::"System Initialization", 'OnAfterLogin', '', true, true)]
local procedure OnAfterLogin()
var
    ApplicationAreaMgmtFacade: Codeunit "Application Area Mgmt. Facade";
    AppAreas: Text;
begin
    AppAreas := ApplicationAreaMgmtFacade.GetApplicationAreaSetup();
    if AppAreas <> '' then
        AppAreas += ',';
    AppAreas += '#MyAppArea';
    ApplicationArea(AppAreas);
end;

Since Background sessions do not have any application areas set, the session somehow breaks if they get set. I discussed this in this issue: https://github.com/thetanz/OpenFeature-al/issues/18

But somehow, I am not able to break it anymore using the code above. Maybe there is something in the app that I missed. Otherwise you should be able to reproduce this, by installing this version of the OpenFeature app: https://github.com/thetanz/OpenFeature-al/releases/tag/v3.2.1.0 As of right now, this is also the latest release on AppSource, but thats about to change soon AFAIK

freddydk commented 1 year ago

I downloaded the source for that, but that is an AppSource App??? The sample above uses Publish-PerTenantExtensionApps, which cannot be used to publish AppSource Apps.

Maybe I misunderstood things totally???

If I am to log more details (like the issue mentions), I will need a repro, which doesn't log sufficient details - i.e. some .app file which I can publish using Publish-PerTenantExtensionApps and see the failure.