microsoft / navcontainerhelper

Official Microsoft repository for BcContainerHelper, a PowerShell module, which makes it easier to work with Business Central Containers on Docker.
MIT License
384 stars 247 forks source link

Run-AlValidation: AlValidation Success but won't finish #3045

Closed kpipic closed 1 year ago

kpipic commented 1 year ago

PLEASE DO NOT INCLUDE ANY PASSWORDS OR TOKENS IN YOUR ISSUE!!!

Describe the issue I have an DevOps agent, that build app and after that running AlValidation. The process is successfully passing through all points but hangs when the AlValidation is finished. After 46 minutes of waiting the operation was canceled.

Scripts used to run al validation and cause the issue

$app = (Get-Content "app.json" -Encoding UTF8 | ConvertFrom-Json)
$settings = (Get-Content -Path (Join-Path $env:Build_SourcesDirectory -ChildPath("Build and Release\Config\" + $env:ConfigFile)) -Encoding UTF8 | ConvertFrom-Json)
$settings = $settings.Apps | Where-Object { $_.id -eq $app.id }
$base64AuthInfo = [System.Convert]::ToBase64String([System.Text.Encoding]::ASCII.GetBytes(("{0}:{1}" -f $env:USERNAME, $env:PASSWORD)))

$RepositoryDirectory = Get-Location 

$installApps = ""
foreach ($Dependency in $App.dependencies) {
    if ($Dependency.publisher -ne "Microsoft") {
        $AppFile = Join-Path $RepositoryDirectory  -ChildPath($Dependency.publisher + "_" + $Dependency.name + "_" + $Dependency.version + ".app")
        $installApps += $AppFile + ","
    }
}

$previousApp = ""
$AppUrl = '{0}:{1}/{2}/dev/packages?publisher={3}&appName={4}' -f $settings.SymbolServer, $settings.SymbolPort, $settings.SymbolServerInstance, $app.Publisher, $app.Name
$AppFile = Join-Path $RepositoryDirectory  -ChildPath($app.publisher + "_" + $app.name + ".app")
Invoke-WebRequest $AppUrl -OutFile $AppFile -Headers @{Authorization = ("Basic {0}" -f $base64AuthInfo) }
$previousApp = $AppFile

$appFile = (Join-Path $env:Build_StagingDirectory -ChildPath($app.publisher + "_" + $app.Name + "_" + $app.Version + ".app"))

Set-Location 'C:\Program Files\Docker\Docker'
& '.\Docker Desktop.exe'

if ($installApps -eq "") {
    Run-AlValidation -previousApps @($previousApp) -apps @( $appFile ) -validateCurrent -countries "hr" -affixes "eve" -supportedCountries "hr"
}
else {
    $installApps = $installApps.Remove($installApps.Length - 1, 1)
    Run-AlValidation -installApps @($installApps) -previousApps @($previousApp) -apps @( $appFile ) -validateCurrent -countries "hr" -affixes "eve" -supportedCountries "hr"    
}

Full output of scripts

2023-05-10T06:12:05.5094684Z ##[section]Starting: Run AL Validation
2023-05-10T06:12:05.5241863Z ==============================================================================
2023-05-10T06:12:05.5242166Z Task         : PowerShell
2023-05-10T06:12:05.5242416Z Description  : Run a PowerShell script on Linux, macOS, or Windows
2023-05-10T06:12:05.5242652Z Version      : 2.220.0
2023-05-10T06:12:05.5242833Z Author       : Microsoft Corporation
2023-05-10T06:12:05.5243113Z Help         : https://docs.microsoft.com/azure/devops/pipelines/tasks/utility/powershell
2023-05-10T06:12:05.5243466Z ==============================================================================
2023-05-10T06:12:06.5852637Z Generating script.
2023-05-10T06:12:06.5911252Z Formatted command: . 'C:\agent\_work\74\s\Build and Release\ALValidation.ps1'
2023-05-10T06:12:06.6274682Z ========================== Starting Command Output ===========================
2023-05-10T06:12:06.6515232Z ##[command]"C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -NoLogo -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -Command ". 'C:\agent\_work\_temp\ca1ec300-3176-47e1-b89e-6c6738089ef6.ps1'"
2023-05-10T06:12:07.4803310Z BcContainerHelper version 5.0.1
2023-05-10T06:12:07.8083536Z BC.HelperFunctions emits usage statistics telemetry to Microsoft
2023-05-10T06:12:17.2404460Z   _____                               _                
2023-05-10T06:12:17.2412688Z  |  __ \                             | |               
2023-05-10T06:12:17.2421009Z  | |__) |_ _ _ __ __ _ _ __ ___   ___| |_ ___ _ __ ___ 
2023-05-10T06:12:17.2429294Z  |  ___/ _` | '__/ _` | '_ ` _ \ / _ \ __/ _ \ '__/ __|
2023-05-10T06:12:17.2436813Z  | |  | (_| | | | (_| | | | | | |  __/ |_  __/ |  \__ \
2023-05-10T06:12:17.2444182Z  |_|   \__,_|_|  \__,_|_| |_| |_|\___|\__\___|_|  |___/
2023-05-10T06:12:17.2448203Z 
2023-05-10T06:12:17.2455970Z Container name                  bcserver
2023-05-10T06:12:17.2558055Z Credential                      admin/Cade3038
2023-05-10T06:12:17.2977389Z MemoryLimit                     8G
2023-05-10T06:12:17.2988693Z validateVersion                 
2023-05-10T06:12:17.3003405Z validateCurrent                 True
2023-05-10T06:12:17.3018535Z validateNextMinor               False
2023-05-10T06:12:17.3033449Z validateNextMajor               False
2023-05-10T06:12:17.3061110Z SasToken                        Not Specified
2023-05-10T06:12:17.3099158Z countries                       hr
2023-05-10T06:12:17.3114555Z validateCountries               hr
2023-05-10T06:12:17.3128621Z affixes                         eve
2023-05-10T06:12:17.3143525Z supportedCountries              hr
2023-05-10T06:12:17.3156441Z ObsoleteTagMinAllowedMajorMinor 
2023-05-10T06:12:17.3168028Z vsixFile                        
2023-05-10T06:12:17.3176118Z Install Apps
2023-05-10T06:12:17.3183492Z - None
2023-05-10T06:12:17.3191373Z Previous Apps
2023-05-10T06:12:17.3282735Z - C:\agent\_work\74\s\Localization CRO v22\NavBiz d.o.o._NavBiz Localization for Croatia.app
2023-05-10T06:12:17.3290944Z Apps
2023-05-10T06:12:17.3308073Z - C:\agent\_work\74\a\NavBiz d.o.o._NavBiz Localization for Croatia_22.0.20230510.81148.app
2023-05-10T06:12:17.3472956Z 
2023-05-10T06:12:17.3481883Z   _____       _ _ _                                          _        _                            
2023-05-10T06:12:17.3489241Z  |  __ \     | | (_)                                        (_)      (_)                           
2023-05-10T06:12:17.3497561Z  | |__) |   _| | |_ _ __   __ _    __ _  ___ _ __   ___ _ __ _  ___   _ _ __ ___   __ _  __ _  ___ 
2023-05-10T06:12:17.3504900Z  |  ___/ | | | | | | '_ \ / _` |  / _` |/ _ \ '_ \ / _ \ '__| |/ __| | | '_ ` _ \ / _` |/ _` |/ _ \
2023-05-10T06:12:17.3512451Z  | |   | |_| | | | | | | | (_| | | (_| |  __/ | | |  __/ |  | | (__  | | | | | | | (_| | (_| |  __/
2023-05-10T06:12:17.3519927Z  |_|    \__,_|_|_|_|_| |_|\__, |  \__, |\___|_| |_|\___|_|  |_|\___| |_|_| |_| |_|\__,_|\__, |\___|
2023-05-10T06:12:17.3527793Z                            __/ |   __/ |                                                 __/ |     
2023-05-10T06:12:17.3535763Z                           |___/   |___/                                                 |___/      
2023-05-10T06:12:17.4223503Z 
2023-05-10T06:12:17.4233023Z Pulling mcr.microsoft.com/businesscentral:10.0.20348.1668-filesonly
2023-05-10T06:12:22.3631080Z 
2023-05-10T06:12:22.3642756Z Pulling generic image took 5 seconds
2023-05-10T06:12:22.3980468Z   _____       _                      _                         _   _  __           _       
2023-05-10T06:12:22.3987786Z  |  __ \     | |                    (_)                       | | (_)/ _|         | |      
2023-05-10T06:12:22.3996569Z  | |  | | ___| |_ ___ _ __ _ __ ___  _ _ __   ___    __ _ _ __| |_ _| |_ __ _  ___| |_ ___ 
2023-05-10T06:12:22.4003411Z  | |  | |/ _ \ __/ _ \ '__| '_ ` _ \| | '_ \ / _ \  / _` | '__| __| |  _/ _` |/ __| __/ __|
2023-05-10T06:12:22.4010674Z  | |__| |  __/ |_  __/ |  | | | | | | | | | |  __/ | (_| | |  | |_| | || (_| | (__| |_\__ \
2023-05-10T06:12:22.4018028Z  |_____/ \___|\__\___|_|  |_| |_| |_|_|_| |_|\___|  \__,_|_|   \__|_|_| \__,_|\___|\__|___/
2023-05-10T06:12:22.4025346Z                                                                                            
2023-05-10T06:12:33.3911932Z Found https://bcartifacts.azureedge.net/sandbox/22.0.54157.56396/hr
2023-05-10T06:12:33.4166454Z Using https://bcartifacts.azureedge.net/sandbox/22.0.54157.56396/hr
2023-05-10T06:12:33.4324720Z 
2023-05-10T06:12:33.4332874Z    _____                _   _                               _        _                 
2023-05-10T06:12:33.4341971Z   / ____|              | | (_)                             | |      (_)                
2023-05-10T06:12:33.4349331Z  | |     _ __ ___  __ _| |_ _ _ __   __ _    ___ ___  _ __ | |_ __ _ _ _ __   ___ _ __ 
2023-05-10T06:12:33.4357536Z  | |    | '__/ _ \/ _` | __| | '_ \ / _` |  / __/ _ \| '_ \| __/ _` | | '_ \ / _ \ '__|
2023-05-10T06:12:33.4368011Z  | |____| | |  __/ (_| | |_| | | | | (_| | | (__ (_) | | | | |_ (_| | | | | |  __/ |   
2023-05-10T06:12:33.4375835Z   \_____|_|  \___|\__,_|\__|_|_| |_|\__, |  \___\___/|_| |_|\__\__,_|_|_| |_|\___|_|   
2023-05-10T06:12:33.4383907Z                                      __/ |                                             
2023-05-10T06:12:33.4391253Z                                     |___/                                              
2023-05-10T06:12:33.4395202Z 
2023-05-10T06:12:33.4446320Z Creating container for country hr
2023-05-10T06:12:33.8389681Z BcContainerHelper is version 5.0.1
2023-05-10T06:12:33.8398316Z BcContainerHelper is running as administrator
2023-05-10T06:12:35.6500974Z HyperV is Enabled
2023-05-10T06:12:35.6525491Z UsePsSession is True
2023-05-10T06:12:35.6557957Z Host is Microsoft Windows Server 2022 Datacenter Azure Edition - 10.0.20348.1668
2023-05-10T06:12:35.8029210Z Docker Client Version is 20.10.24
2023-05-10T06:12:35.8039123Z Docker Server Version is 20.10.24
2023-05-10T06:12:36.2564688Z Removing Desktop shortcuts
2023-05-10T06:12:37.3833941Z Fetching all docker images
2023-05-10T06:12:37.5195764Z Fetching all docker volumes
2023-05-10T06:12:37.8278819Z Using image mcr.microsoft.com/businesscentral:10.0.20348.1668-filesonly
2023-05-10T06:12:38.4119563Z Creating Container bcserver
2023-05-10T06:12:38.4127256Z Style: sandbox
2023-05-10T06:12:38.4136216Z Multitenant: Yes
2023-05-10T06:12:38.4144125Z Version: 22.0.54157.56396
2023-05-10T06:12:38.4150717Z Platform: 22.0.56380.0
2023-05-10T06:12:38.4161790Z Generic Tag: 1.0.2.14
2023-05-10T06:12:38.4203281Z Container OS Version: 10.0.20348.1668 (ltsc2022)
2023-05-10T06:12:38.4210989Z Host OS Version: 10.0.20348.1668 (ltsc2022)
2023-05-10T06:12:38.4283375Z Using process isolation
2023-05-10T06:12:38.4332456Z Using locale 
2023-05-10T06:12:38.4366742Z Disabling the standard eventlog dump to container log every 2 seconds (use -dumpEventLog to enable)
2023-05-10T06:12:38.4643294Z Downloading C:\ProgramData\BcContainerHelper\Extensions\bcserver\Microsoft.VisualStudio.Services.VSIXPackage.vsix
2023-05-10T06:12:38.4779037Z Downloading using WebClient
2023-05-10T06:12:39.1295352Z Additional Parameters:
2023-05-10T06:12:39.1380578Z --env customNavSettings=EnableTaskScheduler=True
2023-05-10T06:12:39.1387138Z Files in C:\ProgramData\BcContainerHelper\Extensions\bcserver\my:
2023-05-10T06:12:39.1493458Z - AdditionalOutput.ps1
2023-05-10T06:12:39.1501107Z - MainLoop.ps1
2023-05-10T06:12:39.1510609Z - SetupVariables.ps1
2023-05-10T06:12:39.1519628Z - updatehosts.ps1
2023-05-10T06:12:39.1527337Z Creating container bcserver from image mcr.microsoft.com/businesscentral:10.0.20348.1668-filesonly
2023-05-10T06:12:39.4282060Z c6a4356909ff132532a5571e32fe0cd414ad7bf30ee90bc7312107f4c0ca5216
2023-05-10T06:12:46.1179129Z Waiting for container bcserver to be ready
2023-05-10T06:12:57.6908633Z Using artifactUrl https://bcartifacts.azureedge.net/sandbox/22.0.54157.56396/hr
2023-05-10T06:12:57.6915963Z Using installer from C:\Run\210-new
2023-05-10T06:12:57.6923738Z Installing Business Central
2023-05-10T06:12:57.6931119Z Installing from artifacts
2023-05-10T06:12:57.6938340Z Copying Service Tier Files
2023-05-10T06:13:02.4122163Z c:\dl\sandbox\22.0.54157.56396\platform\ServiceTier\Program Files
2023-05-10T06:13:02.4130567Z c:\dl\sandbox\22.0.54157.56396\platform\ServiceTier\System64Folder
2023-05-10T06:13:02.4138299Z Copying PowerShell Scripts
2023-05-10T06:13:02.4146269Z c:\dl\sandbox\22.0.54157.56396\platform\WindowsPowerShellScripts\Cloud\NAVAdministration
2023-05-10T06:13:02.4153803Z c:\dl\sandbox\22.0.54157.56396\platform\WindowsPowerShellScripts\WebSearch
2023-05-10T06:13:02.4161306Z Copying Web Client Files
2023-05-10T06:13:08.3551221Z c:\dl\sandbox\22.0.54157.56396\platform\WebClient\Microsoft Dynamics NAV
2023-05-10T06:13:08.3558870Z Copying ModernDev Files
2023-05-10T06:13:08.3567033Z c:\dl\sandbox\22.0.54157.56396\platform
2023-05-10T06:13:09.5112207Z c:\dl\sandbox\22.0.54157.56396\platform\ModernDev\program files\Microsoft Dynamics NAV
2023-05-10T06:13:09.5119315Z Copying additional files
2023-05-10T06:13:09.5126422Z Copying ConfigurationPackages
2023-05-10T06:13:09.5133774Z C:\dl\sandbox\22.0.54157.56396\platform\ConfigurationPackages
2023-05-10T06:13:09.5141415Z Copying Test Assemblies
2023-05-10T06:13:09.5149178Z C:\dl\sandbox\22.0.54157.56396\platform\Test Assemblies
2023-05-10T06:13:09.5156290Z Copying Extensions
2023-05-10T06:13:12.9817449Z C:\dl\sandbox\22.0.54157.56396\hr\Extensions
2023-05-10T06:13:12.9824850Z Copying Applications
2023-05-10T06:13:18.8420996Z C:\dl\sandbox\22.0.54157.56396\platform\Applications
2023-05-10T06:13:18.8428790Z Copying dependencies
2023-05-10T06:13:30.6215426Z Copying ReportBuilder
2023-05-10T06:13:30.6222990Z Importing PowerShell Modules
2023-05-10T06:13:30.6230490Z Skipping restore of Cronus database
2023-05-10T06:13:30.6237870Z Modifying Business Central Service Tier Config File for Docker
2023-05-10T06:13:30.6245165Z Installing SIP crypto provider: 'C:\Windows\System32\NavSip.dll'
2023-05-10T06:13:30.6252787Z Installation took 33 seconds
2023-05-10T06:13:30.6260530Z Installation complete
2023-05-10T06:13:32.8693817Z Ready for connections!
2023-05-10T06:13:34.2180757Z Reading CustomSettings.config from bcserver
2023-05-10T06:13:34.4573832Z Cleanup old dotnet core assemblies
2023-05-10T06:13:35.7294027Z 
2023-05-10T06:13:35.7302084Z Creating container took 62 seconds
2023-05-10T06:13:35.7309518Z   _____                   _                                    _____                           _____            
2023-05-10T06:13:35.7316676Z  |  __ \                 (_)                 /\               / ____|                         / ____|           
2023-05-10T06:13:35.7323767Z  | |__) |   _ _ __  _ __  _ _ __   __ _     /  \   _ __  _ __| (___   ___  _   _ _ __ ___ ___| |     ___  _ __  
2023-05-10T06:13:35.7330870Z  |  _  / | | | '_ \| '_ \| | '_ \ / _` |   / /\ \ | '_ \| '_ \\___ \ / _ \| | | | '__/ __/ _ \ |    / _ \| '_ \ 
2023-05-10T06:13:35.7338040Z  | | \ \ |_| | | | | | | | | | | | (_| |  / ____ \| |_) | |_) |___) | (_) | |_| | | | (__  __/ |____ (_) | |_) |
2023-05-10T06:13:35.7345288Z  |_|  \_\__,_|_| |_|_| |_|_|_| |_|\__, | /_/    \_\ .__/| .__/_____/ \___/ \__,_|_|  \___\___|\_____\___/| .__/ 
2023-05-10T06:13:35.7352581Z                                    __/ |          | |   | |                                              | |    
2023-05-10T06:13:35.7359634Z                                   |___/           |_|   |_|                                              |_|    
2023-05-10T06:13:38.1061035Z Copying previous apps to packages folder
2023-05-10T06:13:38.5939800Z Extracting C:\ProgramData\BcContainerHelper\0311f534-e0ab-463e-a444-8e9b2d36530d\NavBiz d.o.o._NavBiz Localization for Croatia.app
2023-05-10T06:13:40.3612021Z NavBiz d.o.o._NavBiz Localization for Croatia = 22.0.20230427.103806
2023-05-10T06:13:59.0339179Z Latest Supported Runtime Version: 11.0
2023-05-10T06:13:59.9400429Z NavBiz d.o.o._NavBiz Localization for Croatia_22.0.20230510.81148.app is Signed with Authenticode certificate: CN=Evello d.o.o., O=Evello d.o.o., STREET=Avenija Veceslava Holjevca 39, L=Zagreb, PostalCode=10000, C=HR
2023-05-10T06:13:59.9651525Z Extracting C:\ProgramData\BcContainerHelper\425f08a3-10a2-48bb-8c3c-f3e05e55c7da\NavBiz d.o.o._NavBiz Localization for Croatia_22.0.20230510.81148.app
2023-05-10T06:14:02.0868068Z App Runtime Version is '11.0'
2023-05-10T06:14:02.0875731Z Excluding Runtime Version from app.json
2023-05-10T06:14:02.1875824Z Analyzing: NavBiz d.o.o._NavBiz Localization for Croatia_22.0.20230510.81148.app
2023-05-10T06:14:02.1883169Z Using affixes: eve
2023-05-10T06:14:02.1907690Z Using supportedCountries: hr
2023-05-10T06:14:02.1946268Z Using previous app: NavBiz d.o.o._NavBiz Localization for Croatia_22.0.20230427.103806.app
2023-05-10T06:14:02.1992932Z Downloading C:\ProgramData\BcContainerHelper\de04c3bb-4e05-401c-892a-d155aaadb40a\appsource.default.ruleset.json
2023-05-10T06:14:02.2001302Z Downloading using WebClient
2023-05-10T06:14:02.3955260Z AppSourceCop.json content:
2023-05-10T06:14:02.3981456Z {
2023-05-10T06:14:02.3988508Z     "Publisher":  "NavBiz d.o.o.",
2023-05-10T06:14:02.3995874Z     "Version":  "22.0.20230427.103806",
2023-05-10T06:14:02.4003584Z     "Name":  "NavBiz Localization for Croatia",
2023-05-10T06:14:02.4011721Z     "mandatoryAffixes":  [
2023-05-10T06:14:02.4021555Z                              "eve"
2023-05-10T06:14:02.4026105Z                          ],
2023-05-10T06:14:02.4032814Z     "supportedCountries":  [
2023-05-10T06:14:02.4039379Z                                "hr"
2023-05-10T06:14:02.4046836Z                            ]
2023-05-10T06:14:02.4053579Z }
2023-05-10T06:14:02.4088101Z Ruleset.json content:
2023-05-10T06:14:02.4179150Z {
2023-05-10T06:14:02.4188252Z     "name":  "Run-AlCops RuleSet",
2023-05-10T06:14:02.4196109Z     "description":  "Generated by Run-AlCops",
2023-05-10T06:14:02.4203081Z     "includedRuleSets":  [
2023-05-10T06:14:02.4210972Z                              {
2023-05-10T06:14:02.4219035Z                                  "path":  "C:\\ProgramData\\BcContainerHelper\\de04c3bb-4e05-401c-892a-d155aaadb40a\\appsource.default.ruleset.json",
2023-05-10T06:14:02.4226288Z                                  "action":  "Default"
2023-05-10T06:14:02.4233493Z                              }
2023-05-10T06:14:02.4240599Z                          ]
2023-05-10T06:14:02.4247792Z }
2023-05-10T06:14:02.9469584Z Copying DLLs from C:\Program Files\Microsoft Dynamics NAV\220\Service to assemblyProbingPath
2023-05-10T06:16:21.4822567Z Removing dotnet Framework Assemblies
2023-05-10T06:16:22.0365801Z Using Symbols Folder: C:\ProgramData\BcContainerHelper\0311f534-e0ab-463e-a444-8e9b2d36530d
2023-05-10T06:16:22.0687731Z Copying System.app from Container
2023-05-10T06:16:22.0931342Z Copying Microsoft_Any_22.0.54157.56396.app from Container
2023-05-10T06:16:22.1058910Z Copying Microsoft_API Reports - Finance_22.0.54157.56396.app from Container
2023-05-10T06:16:22.1176554Z Copying Microsoft_Application_22.0.54157.56396.app from Container
2023-05-10T06:16:22.1291363Z Copying Microsoft_Audit File Export_22.0.54157.56396.app from Container
2023-05-10T06:16:22.1414791Z Copying Microsoft_Base Application_22.0.54157.56396.app from Container
2023-05-10T06:16:22.1712427Z Copying Microsoft_Business Central Cloud Migration - Previous Release_22.0.54157.56396.app from Container
2023-05-10T06:16:22.1890253Z Copying Microsoft_Business Central Cloud Migration API_22.0.54157.56396.app from Container
2023-05-10T06:16:22.2016124Z Copying Microsoft_Business Central Intelligent Cloud_22.0.54157.56396.app from Container
2023-05-10T06:16:22.2130639Z Copying Microsoft_Company Hub_22.0.54157.56396.app from Container
2023-05-10T06:16:22.2249884Z Copying Microsoft_Contoso Coffee Demo Dataset_22.0.54157.56396.app from Container
2023-05-10T06:16:22.2381139Z Copying Microsoft_Czech language (Czechia)_22.0.54157.56396.app from Container
2023-05-10T06:16:22.2543921Z Copying Microsoft_Danish language (Denmark)_22.0.54157.56396.app from Container
2023-05-10T06:16:22.2693011Z Copying Microsoft_Data Archive_22.0.54157.56396.app from Container
2023-05-10T06:16:22.2809193Z Copying Microsoft_Data Search_22.0.54157.56396.app from Container
2023-05-10T06:16:22.2926105Z Copying Microsoft_Dutch language (Belgium)_22.0.54157.56396.app from Container
2023-05-10T06:16:22.3083100Z Copying Microsoft_Dutch language (Netherlands)_22.0.54157.56396.app from Container
2023-05-10T06:16:22.3327872Z Copying Microsoft_Email - Current User Connector_22.0.54157.56396.app from Container
2023-05-10T06:16:22.3460580Z Copying Microsoft_Email - Microsoft 365 Connector_22.0.54157.56396.app from Container
2023-05-10T06:16:22.3580982Z Copying Microsoft_Email - Outlook REST API_22.0.54157.56396.app from Container
2023-05-10T06:16:22.3696539Z Copying Microsoft_Email - SMTP API_22.0.54157.56396.app from Container
2023-05-10T06:16:22.3807023Z Copying Microsoft_Email - SMTP Connector_22.0.54157.56396.app from Container
2023-05-10T06:16:22.3917081Z Copying Microsoft_English language (Australia)_22.0.54157.56396.app from Container
2023-05-10T06:16:22.4071966Z Copying Microsoft_English language (Canada)_22.0.54157.56396.app from Container
2023-05-10T06:16:22.4221808Z Copying Microsoft_English language (New Zealand)_22.0.54157.56396.app from Container
2023-05-10T06:16:22.4370505Z Copying Microsoft_English language (United Kingdom)_22.0.54157.56396.app from Container
2023-05-10T06:16:22.4516833Z Copying Microsoft_English language (United States)_22.0.54157.56396.app from Container
2023-05-10T06:16:22.4660361Z Copying Microsoft_Essential Business Headlines_22.0.54157.56396.app from Container
2023-05-10T06:16:22.4783206Z Copying Microsoft_Finnish language (Finland)_22.0.54157.56396.app from Container
2023-05-10T06:16:22.4952864Z Copying Microsoft_French language (Belgium)_22.0.54157.56396.app from Container
2023-05-10T06:16:22.5112780Z Copying Microsoft_French language (Canada)_22.0.54157.56396.app from Container
2023-05-10T06:16:22.5269455Z Copying Microsoft_French language (France)_22.0.54157.56396.app from Container
2023-05-10T06:16:22.5425678Z Copying Microsoft_French language (Switzerland)_22.0.54157.56396.app from Container
2023-05-10T06:16:22.5596258Z Copying Microsoft_German language (Austria)_22.0.54157.56396.app from Container
2023-05-10T06:16:22.5761811Z Copying Microsoft_German language (Germany)_22.0.54157.56396.app from Container
2023-05-10T06:16:22.5924414Z Copying Microsoft_German language (Switzerland)_22.0.54157.56396.app from Container
2023-05-10T06:16:22.6084763Z Copying Microsoft_Icelandic language (Iceland)_22.0.54157.56396.app from Container
2023-05-10T06:16:22.6245917Z Copying Microsoft_Intelligent Cloud Base_22.0.54157.56396.app from Container
2023-05-10T06:16:22.6378708Z Copying Microsoft_Intrastat Core_22.0.54157.56396.app from Container
2023-05-10T06:16:22.6492647Z Copying Microsoft_Italian language (Italy)_22.0.54157.56396.app from Container
2023-05-10T06:16:22.6641735Z Copying Microsoft_Italian language (Switzerland)_22.0.54157.56396.app from Container
2023-05-10T06:16:22.6795970Z Copying Microsoft_Late Payment Prediction_22.0.54157.56396.app from Container
2023-05-10T06:16:22.6924587Z Copying Microsoft_Library Assert_22.0.54157.56396.app from Container
2023-05-10T06:16:22.7035099Z Copying Microsoft_Library Variable Storage_22.0.54157.56396.app from Container
2023-05-10T06:16:22.7162237Z Copying Microsoft_Microsoft Pay Payments_22.0.54157.56396.app from Container
2023-05-10T06:16:22.7291722Z Copying Microsoft_Norwegian language (Norway)_22.0.54157.56396.app from Container
2023-05-10T06:16:22.7458861Z Copying Microsoft_Payment Links to PayPal_22.0.54157.56396.app from Container
2023-05-10T06:16:22.7929661Z Copying Microsoft_Performance Toolkit_22.0.54157.56396.app from Container
2023-05-10T06:16:22.8053715Z Copying Microsoft_Permissions Mock_22.0.54157.56396.app from Container
2023-05-10T06:16:22.8167192Z Copying Microsoft_Recommended Apps_22.0.54157.56396.app from Container
2023-05-10T06:16:22.8297423Z Copying Microsoft_Russian language (Russia)_22.0.54157.56396.app from Container
2023-05-10T06:16:22.8468712Z Copying Microsoft_Sales and Inventory Forecast_22.0.54157.56396.app from Container
2023-05-10T06:16:22.8593565Z Copying Microsoft_Send remittance advice by email_22.0.54157.56396.app from Container
2023-05-10T06:16:22.8713968Z Copying Microsoft_Send To Email Printer_22.0.54157.56396.app from Container
2023-05-10T06:16:22.8830354Z Copying Microsoft_Service Declaration_22.0.54157.56396.app from Container
2023-05-10T06:16:22.8967398Z Copying Microsoft_Shopify Connector_22.0.54157.56396.app from Container
2023-05-10T06:16:22.9101523Z Copying Microsoft_Simplified Bank Statement Import_22.0.54157.56396.app from Container
2023-05-10T06:16:22.9220923Z Copying Microsoft_Spanish language (Mexico)_22.0.54157.56396.app from Container
2023-05-10T06:16:22.9382672Z Copying Microsoft_Spanish language (Spain)_22.0.54157.56396.app from Container
2023-05-10T06:16:22.9545248Z Copying Microsoft_Statistical Accounts_22.0.54157.56396.app from Container
2023-05-10T06:16:22.9674298Z Copying Microsoft_Swedish language (Sweden)_22.0.54157.56396.app from Container
2023-05-10T06:16:22.9842732Z Copying Microsoft_System Application_22.0.54157.56396.app from Container
2023-05-10T06:16:23.0018711Z Copying Microsoft_Test Runner_22.0.54157.56396.app from Container
2023-05-10T06:16:23.0139318Z Copying Microsoft_Troubleshoot FA Ledger Entries_22.0.54157.56396.app from Container
2023-05-10T06:16:23.0256461Z Copying Microsoft_Universal Print Integration_22.0.54157.56396.app from Container
2023-05-10T06:16:23.0382096Z Copying Microsoft_VAT Group Management_22.0.54157.56396.app from Container
2023-05-10T06:16:23.0547082Z Copying Microsoft__Exclude_AnonymizedDataSharing__22.0.54157.56396.app from Container
2023-05-10T06:16:23.0708756Z Copying Microsoft__Exclude_APIV1__22.0.54157.56396.app from Container
2023-05-10T06:16:23.0898090Z Copying Microsoft__Exclude_APIV2__22.0.54157.56396.app from Container
2023-05-10T06:16:23.0969067Z Copying Microsoft__Exclude_Bank Deposits_22.0.54157.56396.app from Container
2023-05-10T06:16:23.1087445Z Copying Microsoft__Exclude_ClientAddIns__22.0.54157.56396.app from Container
2023-05-10T06:16:23.1204537Z Copying Microsoft__Exclude_Connectivity Apps_22.0.54157.56396.app from Container
2023-05-10T06:16:23.1325710Z Copying Microsoft__Exclude_Email Logging Using Graph API_22.0.54157.56396.app from Container
2023-05-10T06:16:23.1453759Z Copying Microsoft__Exclude_Master_Data_Management_22.0.54157.56396.app from Container
2023-05-10T06:16:23.1580037Z Copying Microsoft__Exclude_Microsoft Dynamics 365 - SmartList_22.0.54157.56396.app from Container
2023-05-10T06:16:23.1703008Z Copying Microsoft__Exclude_Onboarding Signals_22.0.54157.56396.app from Container
2023-05-10T06:16:23.1816188Z Copying Microsoft__Exclude_PlanConfiguration__22.0.54157.56396.app from Container
2023-05-10T06:16:23.1926195Z Copying Microsoft__Exclude_ReportLayouts_22.0.54157.56396.app from Container
2023-05-10T06:16:23.2037759Z Copying Microsoft__Exclude_Review_General_Ledger_Entries_22.0.54157.56396.app from Container
2023-05-10T06:16:23.2153511Z Copying Microsoft__Exclude_SyncBaseApp__22.0.54157.56396.app from Container
2023-05-10T06:16:23.8758101Z INFO: You have to specify AuthContext and Environment if you are compiling in a filesOnly container in order to download dependencies
2023-05-10T06:16:23.8837917Z Processing dependency Microsoft_Application_22.0.0.0 ()
2023-05-10T06:16:23.9026635Z Dependency App exists
2023-05-10T06:16:23.9058389Z Processing dependency Microsoft_System_1.0.0.0 ()
2023-05-10T06:16:23.9182081Z Dependency App exists
2023-05-10T06:16:23.9191417Z Processing dependency Microsoft_Intrastat Core_21.0.46256.46853 (70912191-3c4c-49fc-a1de-bc6ea1ac9da6)
2023-05-10T06:16:23.9236679Z Dependency App exists
2023-05-10T06:16:23.9460872Z Compiling...
2023-05-10T06:16:23.9729208Z .\alc.exe /project:"C:\ProgramData\BcContainerHelper\de04c3bb-4e05-401c-892a-d155aaadb40a" /packagecachepath:"C:\ProgramData\BcContainerHelper\0311f534-e0ab-463e-a444-8e9b2d36530d" /out:"C:\ProgramData\BcContainerHelper\de04c3bb-4e05-401c-892a-d155aaadb40a\NavBiz d.o.o._NavBiz Localization for Croatia_22.0.20230510.81148.app" /GenerateReportLayout- /analyzer:C:\build\vsix\extension\bin\Analyzers\Microsoft.Dynamics.Nav.AppSourceCop.dll /ruleset:C:\ProgramData\BcContainerHelper\de04c3bb-4e05-401c-892a-d155aaadb40a\ruleset.json /reportsuppresseddiagnostics /assemblyprobingpaths:"C:\Program Files\dotnet\shared","C:\ProgramData\BcContainerHelper\Extensions\bcserver\.netPackages\Service"
2023-05-10T06:16:40.1980172Z Microsoft (R) AL Compiler version 11.0.12.1490
2023-05-10T06:16:40.2003628Z Copyright (C) Microsoft Corporation. All rights reserved
2023-05-10T06:16:40.2003968Z 
2023-05-10T06:16:40.2021311Z Compilation started for project 'NavBiz Localization for Croatia' containing '422' files at '08:16:26.583'.
2023-05-10T06:16:40.5449717Z 
2023-05-10T06:16:40.5459385Z Compilation ended at '08:16:39.984'.
2023-05-10T06:16:40.5463345Z 
2023-05-10T06:16:40.5736482Z C:\ProgramData\BcContainerHelper\de04c3bb-4e05-401c-892a-d155aaadb40a\NavBiz d.o.o._NavBiz Localization for Croatia_22.0.20230510.81148.app successfully created in 158 seconds
2023-05-10T06:16:41.3659481Z Ignoring warnings
2023-05-10T06:16:41.3855126Z Ignoring infos
2023-05-10T06:16:41.6633965Z Copy C:\ProgramData\BcContainerHelper\425f08a3-10a2-48bb-8c3c-f3e05e55c7da\NavBiz d.o.o._NavBiz Localization for Croatia_22.0.20230510.81148.app to C:\ProgramData\BcContainerHelper\0311f534-e0ab-463e-a444-8e9b2d36530d
2023-05-10T06:16:42.2645532Z 
2023-05-10T06:16:42.2653272Z Running AppSourceCop took 187 seconds
2023-05-10T06:16:42.3160744Z 
2023-05-10T06:16:42.3168714Z   _____                           _                _____            _        _                 
2023-05-10T06:16:42.3175651Z  |  __ \                         (_)              / ____|          | |      (_)                
2023-05-10T06:16:42.3182772Z  | |__) |___ _ __ ___   _____   ___ _ __   __ _  | |     ___  _ __ | |_ __ _ _ _ __   ___ _ __ 
2023-05-10T06:16:42.3189442Z  |  _  // _ \ '_ ` _ \ / _ \ \ / / | '_ \ / _` | | |    / _ \| '_ \| __/ _` | | '_ \ / _ \ '__|
2023-05-10T06:16:42.3196561Z  | | \ \  __/ | | | | | (_) \ V /| | | | | (_| | | |____ (_) | | | | |_ (_| | | | | |  __/ |   
2023-05-10T06:16:42.3203399Z  |_|  \_\___|_| |_| |_|\___/ \_/ |_|_| |_|\__, |  \_____\___/|_| |_|\__\__,_|_|_| |_|\___|_|   
2023-05-10T06:16:42.3210062Z                                            __/ |                                               
2023-05-10T06:16:42.3216776Z                                           |___/                                                
2023-05-10T06:16:42.3220599Z 
2023-05-10T06:16:42.8486508Z Removing Session bcserver
2023-05-10T06:16:43.0325335Z Removing container bcserver
2023-05-10T06:16:44.1931518Z Removing entries from hosts
2023-05-10T06:16:44.2241646Z Removing bcserver from container hosts file
2023-05-10T06:16:44.2919040Z Removing bcserver-* from container hosts file
2023-05-10T06:16:44.2973388Z Removing Desktop shortcuts
2023-05-10T06:16:44.3189887Z Removing C:\ProgramData\BcContainerHelper\Extensions\bcserver
2023-05-10T06:16:45.3533893Z 
2023-05-10T06:16:45.3543261Z Removing container took 3 seconds
2023-05-10T06:16:45.3619044Z 
2023-05-10T06:16:45.3627514Z AL Validation finished in 263 seconds
2023-05-10T06:16:45.3635010Z   _____                          ___      __   _ _     _       _   _                _____                            
2023-05-10T06:16:45.3642618Z  |  __ \                   /\   | \ \    / /  | (_)   | |     | | (_)              / ____|                           
2023-05-10T06:16:45.3650168Z  | |__) |   _ _ __ ______ /  \  | |\ \  / /_ _| |_  __| | __ _| |_ _  ___  _ __   | (___  _   _  ___ ___ ___ ___ ___ 
2023-05-10T06:16:45.3657371Z  |  _  / | | | '_ \______/ /\ \ | | \ \/ / _` | | |/ _` |/ _` | __| |/ _ \| '_ \   \___ \| | | |/ __/ __/ _ \ __/ __|
2023-05-10T06:16:45.3664475Z  | | \ \ |_| | | | |    / ____ \| |  \  / (_| | | | (_| | (_| | |_| | (_) | | | |  ____) | |_| | (__ (__  __\__ \__ \
2023-05-10T06:16:45.3671566Z  |_|  \_\__,_|_| |_|   /_/    \_\_|   \/ \__,_|_|_|\__,_|\__,_|\__|_|\___/|_| |_| |_____/ \__,_|\___\___\___|___/___/
2023-05-10T06:16:45.3678533Z                                                                                                   
2023-05-10T06:59:03.9316304Z ##[error]The operation was canceled.
2023-05-10T06:59:03.9377688Z ##[section]Finishing: Run AL Validation
...

Screenshots image

Additional context

similar problem solved here: https://github.com/microsoft/navcontainerhelper/issues/2617

image

but there is no config file described here: These settings can be changed in code or in "C:\ProgramData\BcContainerHelper\BcContainerHelper.config.json"

image

freddydk commented 1 year ago

Create it. If it isn't there, then all your settings are default.

freddydk commented 1 year ago
@{ "KillPsSessionProcess" = $true } | ConvertTo-Json | Set-Content -Endcoding UTF8 'c:\programdata\bccontainerhelper\BcContainerHelper.config.json'
kpipic commented 1 year ago

Tried both things image

but still won't finish the validation image image

image image

kpipic commented 1 year ago

Restart always fix all problems :) after machine restart:

image

with: Setting usePsSession = False

freddydk commented 1 year ago

Yeah - it is likely not anything I can repro or do something about.