microsoft / navcontainerhelper

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

Next Major Pipeline fails when publishing Microsoft_Tests-TestLibraries #3081

Closed achim-t closed 1 year ago

achim-t commented 1 year ago

For a few weeks now, some of our next major pipelines fail when publishing the test libraries. At the same time, next major pipelines for some other repositories run just fine. I couldn't spot a difference.

Relevant part:

Publishing C:\ProgramData\BcContainerHelper\Extensions\lvserver19-lebit365schnittstellenframework-nextmajor\b33c3925-a0b3-472e-a100-52bb88b1d5f3\Microsoft_Tests-TestLibraries_23.0.11020.0.app
Extension compilation failed
LibraryReportValidation.Codeunit.al(612,23): error AL0122: Cannot implicitly convert type 'DotNet "System.String[]"' to 'DotNet "System.Array"'

Exception Script Stack Trace:
at <ScriptBlock>, <No file>: line 41

PowerShell Call Stack:
bei Invoke-ScriptInBcContainer, C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\5.0.3\ContainerHandling\Invoke-ScriptInNavContainer.ps1: Zeile 71
bei <ScriptBlock>, C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\5.0.3\AppHandling\Publish-NavContainerApp.ps1: Zeile 299
bei Publish-BcContainerApp, C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\5.0.3\AppHandling\Publish-NavContainerApp.ps1: Zeile 146
bei <ScriptBlock>, C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\5.0.3\ObjectHandling\Import-TestToolkitToNavContainer.ps1: Zeile 217
bei Import-TestToolkitToBcContainer, C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\5.0.3\ObjectHandling\Import-TestToolkitToNavContainer.ps1: Zeile 180
bei New-BcContainer, C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\5.0.3\ContainerHandling\New-NavContainer.ps1: Zeile 2135
bei <ScriptBlock>, C:\agent\_work\448\s\scripts\DevOps-Pipeline.ps1: Zeile 117
bei <ScriptBlock>, C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\5.0.3\AppHandling\Run-AlPipeline.ps1: Zeile 915
bei <ScriptBlock>, C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\5.0.3\AppHandling\Run-AlPipeline.ps1: Zeile 845
bei <ScriptBlock>, C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\5.0.3\AppHandling\Run-AlPipeline.ps1: Zeile 827
bei Run-AlPipeline, C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\5.0.3\AppHandling\Run-AlPipeline.ps1: Zeile 789
bei <ScriptBlock>, C:\agent\_work\448\s\scripts\DevOps-Pipeline.ps1: Zeile 135
bei <ScriptBlock>, C:\agent\_work\_temp\9f1da238-4d68-4b9c-a7c0-3c2ca13357e8.ps1: Zeile 4
bei <ScriptBlock>, <Keine Datei>: Zeile 1

Full output of scripts

full output ``` ##[section]Starting: Run Pipeline ============================================================================== Task : PowerShell Description : Run a PowerShell script on Linux, macOS, or Windows Version : 2.220.0 Author : Microsoft Corporation Help : https://docs.microsoft.com/azure/devops/pipelines/tasks/utility/powershell ============================================================================== Generating script. Formatted command: . 'C:\agent\_work\448\s\scripts\DevOps-Pipeline.ps1' -environment "AzureDevOps" -version "nextmajor" -appBuild 40189 -appRevision 0 ========================== Starting Command Output =========================== ##[command]"C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -NoLogo -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -Command ". 'C:\agent\_work\_temp\533e8d96-e82c-46d7-9f76-d85ace0b3cd2.ps1'" Set artifact = ///de/NextMajor/{INSIDERSASTOKEN} Set pipelineName = LeBit365 SchnittstellenFramework-nextmajor Set containerName = lvserver19-lebit365schnittstellenframework-nextmajor Set installApps = '' Set installTestApps = '' Set previousApps = '\\192.168.244.16\Software_Business\apps\product\SchnittstellenFramework\latest.zip' Set appSourceCopMandatoryAffixes = '' Set appSourceCopSupportedCountries = '' Set appFolders = 'app' Set testFolders = '' Set memoryLimit = '' Set additionalCountries = '' Set genericImageName = '' Set vaultNameForLocal = '' Set bcContainerHelperVersion = '' Set licenseFile = '' Set rulesetFile = '' Searching \\192.168.244.16\Software_Business\apps\product\SchnittstellenFramework\latest.zip Found \\192.168.244.16\Software_Business\apps\product\SchnittstellenFramework\latest.zip Set installTestRunner = False Set installTestFramework = False Set installTestLibraries = False Set installPerformanceToolkit = False Set enableCodeCop = True Set enableAppSourceCop = False Set enablePerTenantExtensionCop = False Set enableUICop = True Set enableBcLntrCop = False Set doNotSignApps = False Set doNotRunTests = False Set cacheImage = False Set CreateRuntimePackages = False BcContainerHelper version 5.0.3 Setting bcartifactsCacheFolder = c:\bcartifacts.cache Setting genericImageName = mcr.microsoft.com/businesscentral:{0} Setting hostHelperFolder = C:\ProgramData\BcContainerHelper BC.HelperFunctions emits usage statistics telemetry to Microsoft Determining artifacts to use _____ _ | __ \ | | | |__) |_ _ _ __ __ _ _ __ ___ ___| |_ ___ _ __ ___ | ___/ _` | '__/ _` | '_ ` _ \ / _ \ __/ _ \ '__/ __| | | | (_| | | | (_| | | | | | | __/ |_ __/ | \__ \ |_| \__,_|_| \__,_|_| |_| |_|\___|\__\___|_| |___/ Pipeline name LeBit365 SchnittstellenFramework-nextmajor Container name lvserver19-lebit365schnittstellenframework-nextmajor Image name bcimage ArtifactUrl https://bcinsider.azureedge.net/sandbox/23.0.11020.0/de SasToken Specified BcAuthContext Not Specified Environment ReUseContainer False KeepContainer False useCompilerFolder False artifactCachePath useDevEndpoint False Auth UserPassword Credential ***/Pafa0789 CompanyName MemoryLimit 8G FailOn error TreatTestFailuresAsWarnings False Enable Task Scheduler False Assign Premium Plan False Install Test Runner True Install Test Framework True Install Test Libraries True Install Perf. Toolkit False InstallOnlyReferencedApps False generateDependencyArtifact False CopySymbolsFromContainer False enableCodeCop True enableAppSourceCop False enableUICop True enablePerTenantExtensionCop False doNotPerformUpgrade False doNotPublishApps False uninstallRemovedApps False escapeFromCops False doNotBuildTests False doNotRunTests False doNotRunBcptTests False useDefaultAppSourceRuleSet False rulesetFile azureDevOps True gitLab False gitHubActions False vsixFile License file Specified CodeSignCertPfxFile Specified CodeSignCertPfxPassword Specified CodeSignCertIsSelfSigned False KeyVaultCertPfxFile Not specified KeyVaultCertPfxPassword Not specified KeyVaultClientId BuildOutputFile ContainerEventLogFile TestResultsFile C:\agent\_work\448\s\TestResults.xml BcptTestResultsFile C:\agent\_work\448\s\bcptTestResults.json TestResultsFormat JUnit AdditionalCountries PackagesFolder C:\agent\_work\448\s\.packages OutputFolder C:\agent\_work\448\s\.output BuildArtifactFolder C:\agent\_work\448\a CreateRuntimePackages False AppVersion AppBuild 40189 AppRevision 0 Install Apps - None Install Test Apps - None Previous Apps - \\192.168.244.16\Software_Business\apps\product\SchnittstellenFramework\latest.zip Application folders - C:\agent\_work\448\s\app Test application folders - None BCPT Test application folders - None BCPT Test suites - None Custom CodeCops - None NewBccontainer override Param([Hashtable]$parameters) $items = Get-ChildItem -Path $baseFolder -Recurse -Filter "*.dll" $dllFolder = Join-Path $ENV:AGENT_HOMEDIRECTORY "dlls" if (-not (Test-Path $dllFolder)) { New-Item -ItemType Directory -Path $dllFolder } if ($items.Count -gt 0) { $items | ForEach-Object { if (-not (Test-Path (Join-Path $dllFolder $_.Name) -PathType Leaf)) { Copy-Item $_.FullName -Destination $dllFolder } } $parameters.additionalParameters += @("--volume $($dllFolder):c:\run\Add-Ins\mydlls") } $parameters.additionalParameters += @("--env customWebSettings=AuthenticateServer=false") $parameters += @{ "includeTestToolkit" = $true "includeTestLibrariesOnly" = $true } New-BcContainer @parameters Invoke-ScriptInBcContainer $parameters.ContainerName -scriptblock { $progressPreference = 'SilentlyContinue' } CompileAppInBcContainer override Param([Hashtable]$parameters) $appJsonFile = Join-Path $parameters.appProjectFolder "app.json" $appJson = Get-Content $appJsonFile | ConvertFrom-Json if ($appJson.preprocessorSymbols) { $appJson.preprocessorSymbols = @() $appJson | ConvertTo-Json -Depth 99 | Set-Content $appJsonFile } Compile-AppInBcContainer @parameters _____ _ _ _ _ _ | __ \ | | (_) (_) (_) | |__) | _| | |_ _ __ __ _ __ _ ___ _ __ ___ _ __ _ ___ _ _ __ ___ __ _ __ _ ___ | ___/ | | | | | | '_ \ / _` | / _` |/ _ \ '_ \ / _ \ '__| |/ __| | | '_ ` _ \ / _` |/ _` |/ _ \ | | | |_| | | | | | | | (_| | | (_| | __/ | | | __/ | | | (__ | | | | | | | (_| | (_| | __/ |_| \__,_|_|_|_|_| |_|\__, | \__, |\___|_| |_|\___|_| |_|\___| |_|_| |_| |_|\__,_|\__, |\___| __/ | __/ | __/ | |___/ |___/ |___/ Pulling mcr.microsoft.com/businesscentral:10.0.17763.2686 Pulling generic image took 3 seconds _____ _ _ _ _ / ____| | | (_) | | (_) | | _ __ ___ __ _| |_ _ _ __ __ _ ___ ___ _ __ | |_ __ _ _ _ __ ___ _ __ | | | '__/ _ \/ _` | __| | '_ \ / _` | / __/ _ \| '_ \| __/ _` | | '_ \ / _ \ '__| | |____| | | __/ (_| | |_| | | | | (_| | | (__ (_) | | | | |_ (_| | | | | | __/ | \_____|_| \___|\__,_|\__|_|_| |_|\__, | \___\___/|_| |_|\__\__,_|_|_| |_|\___|_| __/ | |___/ Creaing docker container WARNING: Container name should not exceed 15 characters BcContainerHelper is version 5.0.3 BcContainerHelper is running as ***istrator HyperV is Disabled UsePsSession is True Host is Microsoft Windows Server 2019 Standard - 10.0.17763.2686 Docker Client Version is 19.03.4 Docker Server Version is 19.03.4 Removing Desktop shortcuts Fetching all docker images Fetching all docker volumes ArtifactUrl and ImageName specified Building multitenant image bcimage:sandbox-23.0.11020.0-de-mt based on mcr.microsoft.com/businesscentral:10.0.17763.2686 with https://bcinsider.azureedge.net/sandbox/23.0.11020.0/de Pulling latest image mcr.microsoft.com/businesscentral:10.0.17763.2686 10.0.17763.2686: Pulling from businesscentral Generic Tag: 1.0.2.14 Container OS Version: 10.0.17763.2686 (ltsc2019) Host OS Version: 10.0.17763.2686 (ltsc2019) Using process isolation Using license file https://devlbstorage.blob.core.windows.net/files/4804634%20LeBit%20Dev%2022%20BC%20on%20premises%20DE%20610%20ISV%2024.04.23.bclicense Downloading c:\bcartifacts.cache\wek44y0h.uuw\my\license.bclicense Downloading using WebClient Files in c:\bcartifacts.cache\wek44y0h.uuw\my: - license.bclicense Copying Platform Artifacts c:\bcartifacts.cache\sandbox\23.0.11020.0\platform Copying Database Copying Licensefile Copying ConfigurationPackages C:\bcartifacts.cache\sandbox\23.0.11020.0\de\ConfigurationPackages Copying Extensions C:\bcartifacts.cache\sandbox\23.0.11020.0\de\Extensions Copying Applications.DE C:\bcartifacts.cache\sandbox\23.0.11020.0\de\Applications.DE c:\bcartifacts.cache\wek44y0h.uuw Sending build context to Docker daemon 2.432GB Step 1/6 : FROM mcr.microsoft.com/businesscentral:10.0.17763.2686 ---> 105cd2ca66b7 Step 2/6 : ENV DatabaseServer=localhost DatabaseInstance=SQLEXPRESS DatabaseName=CRONUS IsBcSandbox=Y artifactUrl=https://bcinsider.azureedge.net/sandbox/23.0.11020.0/de*** filesOnly=False ---> Running in afede80d32ea Removing intermediate container afede80d32ea ---> 19d67b96e69a Step 3/6 : COPY my /run/ ---> f4a1c932f2ba Step 4/6 : COPY NAVDVD /NAVDVD/ ---> c975d188c045 Step 5/6 : RUN \Run\start.ps1 -installOnly -multitenant -includeTestToolkit -includeTestLibrariesOnly ---> Running in d30a0318f423 c:\run\my folder doesn't exist, creating it Using installer from C:\Run\210-new Installing Business Central Installing from DVD Starting Local SQL Server Starting Internet Information Server Copying Service Tier Files C:\NAVDVD\ServiceTier\Program Files C:\NAVDVD\ServiceTier\System64Folder Copying PowerShell Scripts C:\NAVDVD\WindowsPowerShellScripts\Cloud\NAVAdministration C:\NAVDVD\WindowsPowerShellScripts\WebSearch Copying Web Client Files C:\NAVDVD\WebClient\Microsoft Dynamics NAV Copying ModernDev Files C:\NAVDVD C:\NAVDVD\ModernDev\program files\Microsoft Dynamics NAV Copying additional files Copying ConfigurationPackages C:\NAVDVD\ConfigurationPackages Copying Test Assemblies C:\NAVDVD\Test Assemblies Copying Extensions C:\NAVDVD\Extensions Copying Applications C:\NAVDVD\Applications Copying Applications.DE C:\NAVDVD\Applications.DE Copying dependencies Copying ReportBuilder Importing PowerShell Modules Restoring CRONUS Demo Database Setting CompatibilityLevel for tenant on localhost\SQLEXPRESS Exporting Application to CRONUS Removing Application from tenant Modifying Business Central Service Tier Config File for Docker Creating Business Central Service Tier Installing SIP crypto provider: 'C:\Windows\System32\NavSip.dll' Starting Business Central Service Tier Importing CRONUS license file Copying Database on localhost\SQLEXPRESS from tenant to default Taking database tenant offline Copying database files Attaching files as new Database default Putting database tenant back online Mounting tenant database Mounting Database for default on server localhost\SQLEXPRESS with AllowAppDatabaseWrite = False Sync'ing Tenant Tenant is Operational Stopping Business Central Service Tier Installation took 544 seconds Installation complete Removing intermediate container d30a0318f423 ---> 7fa92810cd49 Step 6/6 : LABEL legal="http://go.microsoft.com/fwlink/?LinkId=837447" created="202306051058" nav="" cu="" multitenant="Y" country="DE" version="23.0.11020.0" platform="23.0.11005.0" ---> Running in a04a94e98eb3 Removing intermediate container a04a94e98eb3 ---> ab4ff1f45d93 Successfully built ab4ff1f45d93 Successfully tagged bcimage:sandbox-23.0.11020.0-de-mt Building image took 1059 seconds Using image bcimage:sandbox-23.0.11020.0-de-mt Creating Container lvserver19-lebit365schnittstellenframework-nextmajor Style: sandbox Multitenant: Yes Version: 23.0.11020.0 Platform: 23.0.11005.0 Generic Tag: 1.0.2.14 Container OS Version: 10.0.17763.2686 (ltsc2019) Host OS Version: 10.0.17763.2686 (ltsc2019) Using process isolation Using locale de-DE Disabling the standard eventlog dump to container log every 2 seconds (use -dumpEventLog to enable) Using license file https://devlbstorage.blob.core.windows.net/files/4804634%20LeBit%20Dev%2022%20BC%20on%20premises%20DE%20610%20ISV%2024.04.23.bclicense Downloading C:\ProgramData\BcContainerHelper\Extensions\lvserver19-lebit365schnittstellenframework-nextmajor\my\license.bclicense Downloading using WebClient Additional Parameters: --volume "C:\agent\_work\448\s:c:\sources" --volume C:\agent\dlls:c:\run\Add-Ins\mydlls --env customWebSettings=AuthenticateServer=false --env customNavSettings=EnableTaskScheduler=False Files in C:\ProgramData\BcContainerHelper\Extensions\lvserver19-lebit365schnittstellenframework-nextmajor\my: - AdditionalOutput.ps1 - license.bclicense - MainLoop.ps1 - SetupVariables.ps1 - updatehosts.ps1 Creating container lvserver19-lebit365schnittstellenframework-nextmajor from image bcimage:sandbox-23.0.11020.0-de-mt b606024cc4e7b588e048cce351ef580122b0b9cb5064566d127bb5f5725a8597 Waiting for container lvserver19-lebit365schnittstellenframework-nextmajor to be ready Adding LVSERVER19-LEBI to hosts file Initializing... Setting host.containerhelper.internal to 172.19.144.1 in container hosts file Starting Container Hostname is lvserver19-lebit365schnittstellenframework-nextmajor PublicDnsName is lvserver19-lebit365schnittstellenframework-nextmajor Using NavUserPassword Authentication Starting Local SQL Server WARNING: Waiting for service 'SQL Server (SQLEXPRESS) (MSSQL$SQLEXPRESS)' to start... Starting Internet Information Server Creating Self Signed Certificate Self Signed Certificate Thumbprint E765784ACF76A849180DF2928227CC8293F5A6F8 DNS identity lvserver19-lebit365schnittstellenframework-nextmajor Modifying Service Tier Config File with Instance Specific Settings Modifying Service Tier Config File with settings from environment variable Setting EnableTaskScheduler to False Starting Service Tier Registering event sources Creating DotNetCore Web Server Instance Using application pool name: BC Using default container name: NavWebApplicationContainer Copy files to WWW root C:\inetpub\wwwroot\BC Create the application pool BC Create website: NavWebApplicationContainer without SSL Update configuration: navsettings.json Done Configuring Web Client Modifying Web Client config with settings from environment variable Setting AuthenticateServer to false Enabling Financials User Experience Using license file 'c:\run\my\license.bclicense' Import License Dismounting Tenant Mounting Tenant Mounting Database for default on server localhost\SQLEXPRESS with AllowAppDatabaseWrite = False Sync'ing Tenant Tenant is Operational Creating http download site Setting SA Password and enabling SA Creating *** as SQL User and add to sys*** WARNING: This license is not compatible with this version of Business Central. Creating SUPER user WARNING: This license is not compatible with this version of Business Central. WARNING: This license is not compatible with this version of Business Central. Container IP Address: 172.19.154.136 Container Hostname : lvserver19-lebit365schnittstellenframework-nextmajor Container Dns Name : lvserver19-lebit365schnittstellenframework-nextmajor Web Client : http://lvserver19-lebit365schnittstellenframework-nextmajor/BC/?tenant=default Dev. Server : http://lvserver19-lebit365schnittstellenframework-nextmajor Dev. ServerInstance : BC Dev. Server Tenant : default Setting lvserver19-lebit365schnittstellenframework-nextmajor to 172.19.154.136 in host hosts file Setting lvserver19-lebit365schnittstellenframework-nextmajor-default to 172.19.154.136 in host hosts file Setting lvserver19-lebit365schnittstellenframework-nextmajor-default to 172.19.154.136 in container hosts file Files: http://lvserver19-lebit365schnittstellenframework-nextmajor:8080/ALLanguage.vsix WARNING: You are running a container which is 451 days old. Microsoft recommends that you always run the latest version of our containers. Container Total Physical Memory is 28.0Gb Container Free Physical Memory is 15.4Gb Initialization took 90 seconds Ready for connections! Reading CustomSettings.config from lvserver19-lebit365schnittstellenframework-nextmajor Creating Desktop Shortcuts for lvserver19-lebit365schnittstellenframework-nextmajor Synchronizing Permissions Mock on default App successfully synchronized Installing Permissions Mock on default App successfully installed Synchronizing Test Runner on default App successfully synchronized Installing Test Runner on default App successfully installed Synchronizing Any on default App successfully synchronized Installing Any on default App successfully installed Synchronizing Library Assert on default App successfully synchronized Installing Library Assert on default App successfully installed Skipping app 'C:\Applications.DE\Microsoft_Permissions Mock_23.0.11020.0.app' as it is already installed Synchronizing Library Variable Storage on default App successfully synchronized Installing Library Variable Storage on default App successfully installed Publishing C:\ProgramData\BcContainerHelper\Extensions\lvserver19-lebit365schnittstellenframework-nextmajor\740e1ee1-33ae-4863-a838-19a1892c2b73\Microsoft_System Application Test Library_23.0.11020.0.app Synchronizing System Application Test Library on tenant default Installing System Application Test Library on tenant default App Microsoft_System Application Test Library_23.0.11020.0.app successfully published Publishing C:\ProgramData\BcContainerHelper\Extensions\lvserver19-lebit365schnittstellenframework-nextmajor\b453e7e2-68f2-45f5-aac7-a57301d9fbcd\Microsoft_Tests-TestLibraries_23.0.11020.0.app Extension compilation failed LibraryReportValidation.Codeunit.al(612,23): error AL0122: Cannot implicitly convert type 'DotNet "System.String[]"' to 'DotNet "System.Array"' Exception Script Stack Trace: at , : line 41 PowerShell Call Stack: bei Invoke-ScriptInBcContainer, C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\5.0.3\ContainerHandling\Invoke-ScriptInNavContainer.ps1: Zeile 71 bei , C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\5.0.3\AppHandling\Publish-NavContainerApp.ps1: Zeile 299 bei Publish-BcContainerApp, C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\5.0.3\AppHandling\Publish-NavContainerApp.ps1: Zeile 146 bei , C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\5.0.3\ObjectHandling\Import-TestToolkitToNavContainer.ps1: Zeile 217 bei Import-TestToolkitToBcContainer, C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\5.0.3\ObjectHandling\Import-TestToolkitToNavContainer.ps1: Zeile 180 bei New-BcContainer, C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\5.0.3\ContainerHandling\New-NavContainer.ps1: Zeile 2135 bei , C:\agent\_work\448\s\scripts\DevOps-Pipeline.ps1: Zeile 117 bei , C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\5.0.3\AppHandling\Run-AlPipeline.ps1: Zeile 915 bei , C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\5.0.3\AppHandling\Run-AlPipeline.ps1: Zeile 845 bei , C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\5.0.3\AppHandling\Run-AlPipeline.ps1: Zeile 827 bei Run-AlPipeline, C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\5.0.3\AppHandling\Run-AlPipeline.ps1: Zeile 789 bei , C:\agent\_work\448\s\scripts\DevOps-Pipeline.ps1: Zeile 135 bei , C:\agent\_work\_temp\533e8d96-e82c-46d7-9f76-d85ace0b3cd2.ps1: Zeile 4 bei , : Zeile 1 Container Free Physical Memory: 15.0Gb Services in container lvserver19-lebit365schnittstellenframework-nextmajor: - MicrosoftDynamicsNavServer$BC is Running - MSSQL$SQLEXPRESS is Running Relevant event log from container lvserver19-lebit365schnittstellenframework-nextmajor: - 20230605 01:18:50 - MicrosoftDynamicsNavServer$BC Server instance: BC Category: Extensions ClientSessionId: 00000000-0000-0000-0000-000000000000 ClientActivityId: 00000000-0000-0000-0000-000000000000 ServerSessionUniqueId: 06d31fde-0a8a-42f5-905b-b5f4becfaae6 ServerActivityId: 59089848-b378-4dc0-b637-e5499967e1ab EventTime: 06/05/2023 11:18:50 Message Extension compilation failed LibraryReportValidation.Codeunit.al(612,23): error AL0122: Cannot implicitly convert type 'DotNet "System.String[]"' to 'DotNet "System.Array"' ProcessId: 8244 Tag: 00001YW ThreadId: 15 CounterInformation: CustomParameters: { } GatewayCorrelationId: Publish-BcContainerApp Telemetry Correlation Id: 577f67cb-29a1-42fa-a48a-92860b8ee525 Import-TestToolkitToBcContainer Telemetry Correlation Id: 3d09acfe-f87c-4104-8d8d-66194956f063 New-BcContainer Telemetry Correlation Id: 37e048a5-9963-4afb-bc1f-07efc6d0412b Removing Session lvserver19-lebit365schnittstellenframework-nextmajor Removing container lvserver19-lebit365schnittstellenframework-nextmajor Removing entries from hosts Removing lvserver19-lebit365schnittstellenframework-nextmajor from container hosts file Removing lvserver19-lebit365schnittstellenframework-nextmajor-* from container hosts file Removing Desktop shortcuts Removing C:\ProgramData\BcContainerHelper\Extensions\lvserver19-lebit365schnittstellenframework-nextmajor Run-AlPipeline Telemetry Correlation Id: 8588efd2-52ef-41c1-a953-1bcc693a9b69 ##[error]Extension compilation failed LibraryReportValidation.Codeunit.al(612,23): error AL0122: Cannot implicitly convert type 'DotNet "System.String[]"' to 'DotNet "System.Array"' In C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\5.0.3\ContainerHandling\Invoke-ScriptInNavContainer.ps1:112 Zeichen:13 + throw $errorMessage + ~~~~~~~~~~~~~~~~~~~ + CategoryInfo : OperationStopped: (Extension compi..."System.Array"':String) [], RuntimeException + FullyQualifiedErrorId : Extension compilation failed LibraryReportValidation.Codeunit.al(612,23): error AL0122: Cannot implicitly convert type 'DotNet "System.String[] "' to 'DotNet "System.Array"' 2023-06-05T11:18:59.1326088Z ##[error]PowerShell exited with code '1'. 2023-06-05T11:18:59.2014613Z ##[section]Finishing: Run Pipeline ```

For comparison, the output of a nice running pipeline

full output ``` ##[section]Starting: Run Pipeline ============================================================================== Task : PowerShell Description : Run a PowerShell script on Linux, macOS, or Windows Version : 2.220.0 Author : Microsoft Corporation Help : https://docs.microsoft.com/azure/devops/pipelines/tasks/utility/powershell ============================================================================== Generating script. Formatted command: . 'C:\agent\_work\460\s\scripts\DevOps-Pipeline.ps1' -environment "AzureDevOps" -version "nextmajor" -appBuild 40065 -appRevision 0 ========================== Starting Command Output =========================== ##[command]"C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -NoLogo -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -Command ". 'C:\agent\_work\_temp\daa20f84-e0aa-4a95-abfb-4d961d380a08.ps1'" Set artifact = ///de/NextMajor/{INSIDERSASTOKEN} Set pipelineName = LeBit365 Erweiterte Belegzeilen-nextmajor Set containerName = lvserver19-lebit365erweitertebelegzeilen-nextmajor Set installApps = '' Set installTestApps = '' Set previousApps = '' Set appSourceCopMandatoryAffixes = '' Set appSourceCopSupportedCountries = '' Set appFolders = 'app' Set testFolders = 'test' Set memoryLimit = '' Set additionalCountries = '' Set genericImageName = '' Set vaultNameForLocal = '' Set bcContainerHelperVersion = '' Set licenseFile = '' Set rulesetFile = '' Set installTestRunner = True Set installTestFramework = True Set installTestLibraries = True Set installPerformanceToolkit = False Set enableCodeCop = False Set enableAppSourceCop = False Set enablePerTenantExtensionCop = False Set enableUICop = False Set enableBcLntrCop = False Set doNotSignApps = False Set doNotRunTests = False Set cacheImage = False Set CreateRuntimePackages = False BcContainerHelper version 5.0.3 Setting bcartifactsCacheFolder = c:\bcartifacts.cache Setting genericImageName = mcr.microsoft.com/businesscentral:{0} Setting hostHelperFolder = C:\ProgramData\BcContainerHelper BC.HelperFunctions emits usage statistics telemetry to Microsoft Determining artifacts to use _____ _ | __ \ | | | |__) |_ _ _ __ __ _ _ __ ___ ___| |_ ___ _ __ ___ | ___/ _` | '__/ _` | '_ ` _ \ / _ \ __/ _ \ '__/ __| | | | (_| | | | (_| | | | | | | __/ |_ __/ | \__ \ |_| \__,_|_| \__,_|_| |_| |_|\___|\__\___|_| |___/ Pipeline name LeBit365 Erweiterte Belegzeilen-nextmajor Container name lvserver19-lebit365erweitertebelegzeilen-nextmajor Image name bcimage ArtifactUrl https://bcinsider.azureedge.net/sandbox/23.0.11008.0/de SasToken Specified BcAuthContext Not Specified Environment ReUseContainer False KeepContainer False useCompilerFolder False artifactCachePath useDevEndpoint False Auth UserPassword Credential ***/Kogo1733 CompanyName MemoryLimit 8G FailOn error TreatTestFailuresAsWarnings False Enable Task Scheduler False Assign Premium Plan False Install Test Runner True Install Test Framework True Install Test Libraries True Install Perf. Toolkit False InstallOnlyReferencedApps False generateDependencyArtifact False CopySymbolsFromContainer False enableCodeCop False enableAppSourceCop False enableUICop False enablePerTenantExtensionCop False doNotPerformUpgrade False doNotPublishApps False uninstallRemovedApps False escapeFromCops False doNotBuildTests False doNotRunTests False doNotRunBcptTests False useDefaultAppSourceRuleSet False rulesetFile azureDevOps True gitLab False gitHubActions False vsixFile License file Specified CodeSignCertPfxFile Specified CodeSignCertPfxPassword Specified CodeSignCertIsSelfSigned False KeyVaultCertPfxFile Not specified KeyVaultCertPfxPassword Not specified KeyVaultClientId BuildOutputFile ContainerEventLogFile TestResultsFile C:\agent\_work\460\s\TestResults.xml BcptTestResultsFile C:\agent\_work\460\s\bcptTestResults.json TestResultsFormat JUnit AdditionalCountries PackagesFolder C:\agent\_work\460\s\.packages OutputFolder C:\agent\_work\460\s\.output BuildArtifactFolder C:\agent\_work\460\a CreateRuntimePackages False AppVersion AppBuild 40065 AppRevision 0 Install Apps - None Install Test Apps - None Previous Apps - None Application folders - C:\agent\_work\460\s\app Test application folders - None BCPT Test application folders - None BCPT Test suites - None Custom CodeCops - None NewBccontainer override Param([Hashtable]$parameters) $items = Get-ChildItem -Path $baseFolder -Recurse -Filter "*.dll" $dllFolder = Join-Path $ENV:AGENT_HOMEDIRECTORY "dlls" if (-not (Test-Path $dllFolder)) { New-Item -ItemType Directory -Path $dllFolder } if ($items.Count -gt 0) { $items | ForEach-Object { if (-not (Test-Path (Join-Path $dllFolder $_.Name) -PathType Leaf)) { Copy-Item $_.FullName -Destination $dllFolder } } $parameters.additionalParameters += @("--volume $($dllFolder):c:\run\Add-Ins\mydlls") } $parameters.additionalParameters += @("--env customWebSettings=AuthenticateServer=false") $parameters += @{ "includeTestToolkit" = $true "includeTestLibrariesOnly" = $true } New-BcContainer @parameters Invoke-ScriptInBcContainer $parameters.ContainerName -scriptblock { $progressPreference = 'SilentlyContinue' } CompileAppInBcContainer override Param([Hashtable]$parameters) $appJsonFile = Join-Path $parameters.appProjectFolder "app.json" $appJson = Get-Content $appJsonFile | ConvertFrom-Json if ($appJson.preprocessorSymbols) { $appJson.preprocessorSymbols = @() $appJson | ConvertTo-Json -Depth 99 | Set-Content $appJsonFile } Compile-AppInBcContainer @parameters _____ _ _ _ _ _ | __ \ | | (_) (_) (_) | |__) | _| | |_ _ __ __ _ __ _ ___ _ __ ___ _ __ _ ___ _ _ __ ___ __ _ __ _ ___ | ___/ | | | | | | '_ \ / _` | / _` |/ _ \ '_ \ / _ \ '__| |/ __| | | '_ ` _ \ / _` |/ _` |/ _ \ | | | |_| | | | | | | | (_| | | (_| | __/ | | | __/ | | | (__ | | | | | | | (_| | (_| | __/ |_| \__,_|_|_|_|_| |_|\__, | \__, |\___|_| |_|\___|_| |_|\___| |_|_| |_| |_|\__,_|\__, |\___| __/ | __/ | __/ | |___/ |___/ |___/ Pulling mcr.microsoft.com/businesscentral:10.0.17763.2686 Pulling generic image took 3 seconds _____ _ _ _ _ / ____| | | (_) | | (_) | | _ __ ___ __ _| |_ _ _ __ __ _ ___ ___ _ __ | |_ __ _ _ _ __ ___ _ __ | | | '__/ _ \/ _` | __| | '_ \ / _` | / __/ _ \| '_ \| __/ _` | | '_ \ / _ \ '__| | |____| | | __/ (_| | |_| | | | | (_| | | (__ (_) | | | | |_ (_| | | | | | __/ | \_____|_| \___|\__,_|\__|_|_| |_|\__, | \___\___/|_| |_|\__\__,_|_|_| |_|\___|_| __/ | |___/ Creaing docker container WARNING: Container name should not exceed 15 characters BcContainerHelper is version 5.0.3 BcContainerHelper is running as ***istrator HyperV is Disabled UsePsSession is True Host is Microsoft Windows Server 2019 Standard - 10.0.17763.2686 Docker Client Version is 19.03.4 Docker Server Version is 19.03.4 Removing Desktop shortcuts Downloading artifact /sandbox/23.0.11008.0/de Downloading C:\Users\docker\AppData\Local\Temp\0ba69e28-c5ff-4fa8-81c4-d29f4212b127.zip Downloading using WebClient Unpacking artifact to tmp folder using 7zip Downloading platform artifact /sandbox/23.0.11008.0/platform Downloading C:\Users\docker\AppData\Local\Temp\400a50a9-2bdc-466b-8beb-d29a2155e662.zip Downloading using WebClient Unpacking platform artifact to tmp folder using 7zip Downloading Prerequisite Components Downloading c:\bcartifacts.cache\sandbox\23.0.11008.0\platform\Prerequisite Components\IIS URL Rewrite Module\rewrite_2.0_rtw_x64.msi Downloading using WebClient Downloading c:\bcartifacts.cache\sandbox\23.0.11008.0\platform\Prerequisite Components\DotNetCore\DotNetCore.1.0.4_1.1.1-WindowsHosting.exe Downloading using WebClient Fetching all docker images Fetching all docker volumes ArtifactUrl and ImageName specified Building multitenant image bcimage:sandbox-23.0.11008.0-de-mt based on mcr.microsoft.com/businesscentral:10.0.17763.2686 with https://bcinsider.azureedge.net/sandbox/23.0.11008.0/de Pulling latest image mcr.microsoft.com/businesscentral:10.0.17763.2686 10.0.17763.2686: Pulling from businesscentral Generic Tag: 1.0.2.14 Container OS Version: 10.0.17763.2686 (ltsc2019) Host OS Version: 10.0.17763.2686 (ltsc2019) Using process isolation Using license file https://devlbstorage.blob.core.windows.net/files/4804634%20LeBit%20Dev%2022%20BC%20on%20premises%20DE%20610%20ISV%2024.04.23.bclicense Downloading c:\bcartifacts.cache\dqmdhg05.14c\my\license.bclicense Downloading using WebClient Files in c:\bcartifacts.cache\dqmdhg05.14c\my: - license.bclicense Copying Platform Artifacts c:\bcartifacts.cache\sandbox\23.0.11008.0\platform Copying Database Copying Licensefile Copying ConfigurationPackages C:\bcartifacts.cache\sandbox\23.0.11008.0\de\ConfigurationPackages Copying Extensions C:\bcartifacts.cache\sandbox\23.0.11008.0\de\Extensions Copying Applications.DE C:\bcartifacts.cache\sandbox\23.0.11008.0\de\Applications.DE c:\bcartifacts.cache\dqmdhg05.14c Sending build context to Docker daemon 2.443GB Step 1/6 : FROM mcr.microsoft.com/businesscentral:10.0.17763.2686 ---> 105cd2ca66b7 Step 2/6 : ENV DatabaseServer=localhost DatabaseInstance=SQLEXPRESS DatabaseName=CRONUS IsBcSandbox=Y artifactUrl=https://bcinsider.azureedge.net/sandbox/23.0.11008.0/de*** filesOnly=False ---> Running in 648ced92fb9c Removing intermediate container 648ced92fb9c ---> 9421d952e0b7 Step 3/6 : COPY my /run/ ---> 35a9cf3625b0 Step 4/6 : COPY NAVDVD /NAVDVD/ ---> a0f407cd6144 Step 5/6 : RUN \Run\start.ps1 -installOnly -multitenant -includeTestToolkit -includeTestLibrariesOnly ---> Running in 5f784f9ab4e4 c:\run\my folder doesn't exist, creating it Using installer from C:\Run\210-new Installing Business Central Installing from DVD Starting Local SQL Server Starting Internet Information Server Copying Service Tier Files C:\NAVDVD\ServiceTier\Program Files C:\NAVDVD\ServiceTier\System64Folder Copying PowerShell Scripts C:\NAVDVD\WindowsPowerShellScripts\Cloud\NAVAdministration C:\NAVDVD\WindowsPowerShellScripts\WebSearch Copying Web Client Files C:\NAVDVD\WebClient\Microsoft Dynamics NAV Copying ModernDev Files C:\NAVDVD C:\NAVDVD\ModernDev\program files\Microsoft Dynamics NAV Copying additional files Copying ConfigurationPackages C:\NAVDVD\ConfigurationPackages Copying Test Assemblies C:\NAVDVD\Test Assemblies Copying Extensions C:\NAVDVD\Extensions Copying Applications C:\NAVDVD\Applications Copying Applications.DE C:\NAVDVD\Applications.DE Copying dependencies Copying ReportBuilder Importing PowerShell Modules Restoring CRONUS Demo Database Setting CompatibilityLevel for tenant on localhost\SQLEXPRESS Exporting Application to CRONUS Removing Application from tenant Modifying Business Central Service Tier Config File for Docker Creating Business Central Service Tier Installing SIP crypto provider: 'C:\Windows\System32\NavSip.dll' Starting Business Central Service Tier Importing CRONUS license file Copying Database on localhost\SQLEXPRESS from tenant to default Taking database tenant offline Copying database files Attaching files as new Database default Putting database tenant back online Mounting tenant database Mounting Database for default on server localhost\SQLEXPRESS with AllowAppDatabaseWrite = False Sync'ing Tenant Tenant is Operational Stopping Business Central Service Tier Installation took 504 seconds Installation complete Removing intermediate container 5f784f9ab4e4 ---> bf8e06dea2af Step 6/6 : LABEL legal="http://go.microsoft.com/fwlink/?LinkId=837447" created="202306030105" nav="" cu="" multitenant="Y" country="DE" version="23.0.11008.0" platform="23.0.10992.0" ---> Running in 0e69a298fe3d Removing intermediate container 0e69a298fe3d ---> 4c5d95bed97b Successfully built 4c5d95bed97b Successfully tagged bcimage:sandbox-23.0.11008.0-de-mt Building image took 972 seconds Using image bcimage:sandbox-23.0.11008.0-de-mt Creating Container lvserver19-lebit365erweitertebelegzeilen-nextmajor Style: sandbox Multitenant: Yes Version: 23.0.11008.0 Platform: 23.0.10992.0 Generic Tag: 1.0.2.14 Container OS Version: 10.0.17763.2686 (ltsc2019) Host OS Version: 10.0.17763.2686 (ltsc2019) Using process isolation Using locale de-DE Disabling the standard eventlog dump to container log every 2 seconds (use -dumpEventLog to enable) Using license file https://devlbstorage.blob.core.windows.net/files/4804634%20LeBit%20Dev%2022%20BC%20on%20premises%20DE%20610%20ISV%2024.04.23.bclicense Downloading C:\ProgramData\BcContainerHelper\Extensions\lvserver19-lebit365erweitertebelegzeilen-nextmajor\my\license.bclicense Downloading using WebClient Additional Parameters: --volume "C:\agent\_work\460\s:c:\sources" --env customWebSettings=AuthenticateServer=false --env customNavSettings=EnableTaskScheduler=False Files in C:\ProgramData\BcContainerHelper\Extensions\lvserver19-lebit365erweitertebelegzeilen-nextmajor\my: - AdditionalOutput.ps1 - license.bclicense - MainLoop.ps1 - SetupVariables.ps1 - updatehosts.ps1 Creating container lvserver19-lebit365erweitertebelegzeilen-nextmajor from image bcimage:sandbox-23.0.11008.0-de-mt 51da97cf7198b37e4172704457ec5445ecd6c4cce964a000e5f31fa011abefe2 Waiting for container lvserver19-lebit365erweitertebelegzeilen-nextmajor to be ready Adding LVSERVER19-LEBI to hosts file Initializing... Setting host.containerhelper.internal to 172.19.144.1 in container hosts file Starting Container Hostname is lvserver19-lebit365erweitertebelegzeilen-nextmajor PublicDnsName is lvserver19-lebit365erweitertebelegzeilen-nextmajor Using NavUserPassword Authentication Starting Local SQL Server Starting Internet Information Server Creating Self Signed Certificate Self Signed Certificate Thumbprint 0DD3BFB78442BB0C6885B081E127F610E2FB7B7A DNS identity lvserver19-lebit365erweitertebelegzeilen-nextmajor Modifying Service Tier Config File with Instance Specific Settings Modifying Service Tier Config File with settings from environment variable Setting EnableTaskScheduler to False Starting Service Tier Registering event sources Creating DotNetCore Web Server Instance Using application pool name: BC Using default container name: NavWebApplicationContainer Copy files to WWW root C:\inetpub\wwwroot\BC Create the application pool BC Create website: NavWebApplicationContainer without SSL Update configuration: navsettings.json Done Configuring Web Client Modifying Web Client config with settings from environment variable Setting AuthenticateServer to false Enabling Financials User Experience Using license file 'c:\run\my\license.bclicense' Import License Dismounting Tenant Mounting Tenant Mounting Database for default on server localhost\SQLEXPRESS with AllowAppDatabaseWrite = False Sync'ing Tenant Tenant is Operational Creating http download site Setting SA Password and enabling SA Creating *** as SQL User and add to sys*** WARNING: This license is not compatible with this version of Business Central. Creating SUPER user WARNING: This license is not compatible with this version of Business Central. WARNING: This license is not compatible with this version of Business Central. Container IP Address: 172.19.145.73 Container Hostname : lvserver19-lebit365erweitertebelegzeilen-nextmajor Container Dns Name : lvserver19-lebit365erweitertebelegzeilen-nextmajor Web Client : http://lvserver19-lebit365erweitertebelegzeilen-nextmajor/BC/?tenant=default Dev. Server : http://lvserver19-lebit365erweitertebelegzeilen-nextmajor Dev. ServerInstance : BC Dev. Server Tenant : default Setting lvserver19-lebit365erweitertebelegzeilen-nextmajor to 172.19.145.73 in host hosts file Setting lvserver19-lebit365erweitertebelegzeilen-nextmajor-default to 172.19.145.73 in host hosts file Setting lvserver19-lebit365erweitertebelegzeilen-nextmajor-default to 172.19.145.73 in container hosts file Files: http://lvserver19-lebit365erweitertebelegzeilen-nextmajor:8080/ALLanguage.vsix WARNING: You are running a container which is 449 days old. Microsoft recommends that you always run the latest version of our containers. Container Total Physical Memory is 28.0Gb Container Free Physical Memory is 15.5Gb Initialization took 92 seconds Ready for connections! Reading CustomSettings.config from lvserver19-lebit365erweitertebelegzeilen-nextmajor Creating Desktop Shortcuts for lvserver19-lebit365erweitertebelegzeilen-nextmajor Synchronizing Permissions Mock on default App successfully synchronized Installing Permissions Mock on default App successfully installed Synchronizing Test Runner on default App successfully synchronized Installing Test Runner on default App successfully installed Synchronizing Any on default App successfully synchronized Installing Any on default App successfully installed Synchronizing Library Assert on default App successfully synchronized Installing Library Assert on default App successfully installed Skipping app 'C:\Applications.DE\Microsoft_Permissions Mock_23.0.11008.0.app' as it is already installed Synchronizing Library Variable Storage on default App successfully synchronized Installing Library Variable Storage on default App successfully installed Publishing C:\ProgramData\BcContainerHelper\Extensions\lvserver19-lebit365erweitertebelegzeilen-nextmajor\ee3e0512-71ef-4b2e-9ead-69de7dc76c60\Microsoft_System Application Test Library_23.0.11008.0.app Synchronizing System Application Test Library on tenant default Installing System Application Test Library on tenant default App Microsoft_System Application Test Library_23.0.11008.0.app successfully published Publishing C:\ProgramData\BcContainerHelper\Extensions\lvserver19-lebit365erweitertebelegzeilen-nextmajor\91027ba3-477e-42e6-92de-3584b4730274\Microsoft_Tests-TestLibraries_23.0.11008.0.app Synchronizing Tests-TestLibraries on tenant default Installing Tests-TestLibraries on tenant default App Microsoft_Tests-TestLibraries_23.0.11008.0.app successfully published TestToolkit successfully imported Cleanup old dotnet core assemblies Container lvserver19-lebit365erweitertebelegzeilen-nextmajor successfully created Use: Get-BcContainerEventLog -containerName lvserver19-lebit365erweitertebelegzeilen-nextmajor to retrieve a snapshot of the event log from the container Get-BcContainerDebugInfo -containerName lvserver19-lebit365erweitertebelegzeilen-nextmajor to get debug information about the container Enter-BcContainer -containerName lvserver19-lebit365erweitertebelegzeilen-nextmajor to open a PowerShell prompt inside the container Remove-BcContainer -containerName lvserver19-lebit365erweitertebelegzeilen-nextmajor to remove the container again docker logs lvserver19-lebit365erweitertebelegzeilen-nextmajor to retrieve information about URL's again Creating container took 1416 seconds _____ _ _ _ _ _ | __ \ | | (_) | | | | (_) | |__) |___ ___ ___ | |_ ___ _ __ __ _ __| | ___ _ __ ___ _ __ __| | ___ _ __ ___ _ ___ ___ | _ // _ \ __|/ _ \| \ \ / / | '_ \ / _` | / _` |/ _ \ '_ \ / _ \ '_ \ / _` |/ _ \ '_ \ / __| |/ _ \ __| | | \ \ __\__ \ (_) | |\ V /| | | | | (_| | | (_| | __/ |_) | __/ | | | (_| | __/ | | | (__| | __\__ \ |_| \_\___|___/\___/|_| \_/ |_|_| |_|\__, | \__,_|\___| .__/ \___|_| |_|\__,_|\___|_| |_|\___|_|\___|___/ __/ | | | |___/ |_| Sorted App folders - C:\agent\_work\460\s\app External dependencies - 437dbf0e-84ff-417a-965d-ed2bb9650972:Microsoft_Base Application_18.0.0.0.app - 63ca2fa4-4f03-4f2b-a480-172fef340d3f:Microsoft_System Application_18.0.0.0.app Sorted TestApp folders - None _____ _ _ _ / ____| (_) (_) | | ___ _ __ ___ _ __ _| |_ _ __ __ _ __ _ _ __ _ __ ___ | | / _ \| '_ ` _ \| '_ \| | | | '_ \ / _` | / _` | '_ \| '_ \/ __| | |____ (_) | | | | | | |_) | | | | | | | (_| | | (_| | |_) | |_) \__ \ \_____\___/|_| |_| |_| .__/|_|_|_|_| |_|\__, | \__,_| .__/| .__/|___/ | | __/ | | | | | |_| |___/ |_| |_| Using Version 1.0.40065.0 Compiling C:\agent\_work\460\s\app Copying DLLs from C:\Program Files\Microsoft Dynamics NAV\230\Service to assemblyProbingPath Removing dotnet Framework Assemblies Using Symbols Folder: C:\agent\_work\460\s\.packages Processing dependency Microsoft_Application_18.0.0.0 () Downloading symbols: Microsoft_Application_23.0.11008.0.app Url : http://172.19.145.73:7049/BC/dev/packages?publisher=Microsoft&appName=Application&versionText=18.0.0.0&tenant=default Downloading using WebClient Adding dependency to System Application from Microsoft Adding dependency to Base Application from Microsoft Processing dependency Microsoft_System_18.0.0.0 () Downloading symbols: Microsoft_System_23.0.10992.0.app Url : http://172.19.145.73:7049/BC/dev/packages?publisher=Microsoft&appName=System&versionText=18.0.0.0&tenant=default Downloading using WebClient Processing dependency Microsoft_System Application_23.0.0.0 (63ca2fa4-4f03-4f2b-a480-172fef340d3f) Downloading symbols: Microsoft_System Application_23.0.11008.0.app Url : http://172.19.145.73:7049/BC/dev/packages?appId=63ca2fa4-4f03-4f2b-a480-172fef340d3f&versionText=23.0.0.0&tenant=default Downloading using WebClient Processing dependency Microsoft_Base Application_23.0.0.0 (437dbf0e-84ff-417a-965d-ed2bb9650972) Downloading symbols: Microsoft_Base Application_23.0.11008.0.app Url : http://172.19.145.73:7049/BC/dev/packages?appId=437dbf0e-84ff-417a-965d-ed2bb9650972&versionText=23.0.0.0&tenant=default Downloading using WebClient Compiling... .\alc.exe /project:"c:\sources\app" /packagecachepath:"c:\sources\.packages" /out:"c:\sources\.output\LeBit Software & Consult GmbH_LeBit365 Erweiterte Belegzeilen_1.0.40065.0.app" /assemblyprobingpaths:"C:\Program Files\dotnet\shared","C:\ProgramData\BcContainerHelper\Extensions\lvserver19-lebit365erweitertebelegzeilen-nextmajor\.netPackages\Service" Microsoft (R) AL Compiler version 12.0.12.24046 Copyright (C) Microsoft Corporation. All rights reserved Compilation started for project 'LeBit365 Erweiterte Belegzeilen' containing '1' files at '03:27:58.404'. Compilation ended at '03:28:10.370'. C:\agent\_work\460\s\.output\LeBit Software & Consult GmbH_LeBit365 Erweiterte Belegzeilen_1.0.40065.0.app successfully created in 166 seconds LeBit Software & Consult GmbH_LeBit365 Erweiterte Belegzeilen_1.0.40065.0.app copied to C:\agent\_work\460\s\.packages Compiling apps took 168 seconds _____ _ _ / ____(_) (_) | (__ _ __ _ _ __ _ _ __ __ _ __ _ _ __ _ __ ___ \___ \| |/ _` | '_ \| | '_ \ / _` | / _` | '_ \| '_ \/ __| ____) | | (_| | | | | | | | | (_| | | (_| | |_) | |_) \__ \ |_____/|_|\__, |_| |_|_|_| |_|\__, | \__,_| .__/| .__/|___/ __/ | __/ | | | | | |___/ |___/ |_| |_| Downloading certificate file to container Downloading C:\ProgramData\BcContainerHelper\Extensions\lvserver19-lebit365erweitertebelegzeilen-nextmajor\my\099934b7-5ddc-4231-b6bc-f9235914e606.pfx Downloading using WebClient Downloading Signing Tools Installing Signing Tools Signing c:\sources\.output\LeBit Software & Consult GmbH_LeBit365 Erweiterte Belegzeilen_1.0.40065.0.app Done Adding Additional Store Successfully signed: c:\sources\.output\LeBit Software & Consult GmbH_LeBit365 Erweiterte Belegzeilen_1.0.40065.0.app Signing apps took 26 seconds _____ _ _ _ _ _ | __ \ | | | (_) | | (_) | |__) | _| |__ | |_ ___| |__ _ _ __ __ _ __ _ _ __ _ __ ___ | ___/ | | | '_ \| | / __| '_ \| | '_ \ / _` | / _` | '_ \| '_ \/ __| | | | |_| | |_) | | \__ \ | | | | | | | (_| | | (_| | |_) | |_) \__ \ |_| \__,_|_.__/|_|_|___/_| |_|_|_| |_|\__, | \__,_| .__/| .__/|___/ __/ | | | | | |___/ |_| |_| Publishing C:\ProgramData\BcContainerHelper\Extensions\lvserver19-lebit365erweitertebelegzeilen-nextmajor\704f7a91-0983-4b86-a52c-e0febc836d2c\LeBit Software & Consult GmbH_LeBit365 Erweiterte Belegzeilen_1.0.40065.0.app Synchronizing LeBit365 Erweiterte Belegzeilen on tenant default Installing LeBit365 Erweiterte Belegzeilen on tenant default App LeBit Software & Consult GmbH_LeBit365 Erweiterte Belegzeilen_1.0.40065.0.app successfully published Publishing apps took 7 seconds _____ _ _ _ _ _ _ _ __ _ / ____| | | | | (_) | | | | | (_)/ _| | | | | ___ _ __ _ _ | |_ ___ | |__ _ _ _| | __| | __ _ _ __| |_ _| |_ __ _ ___| |_ ___ | | / _ \| '_ \| | | | | __/ _ \ | '_ \| | | | | |/ _` | / _` | '__| __| | _/ _` |/ __| __/ __| | |___| (_) | |_) | |_| | | || (_) | | |_) | |_| | | | (_| | | (_| | | | |_| | || (_| | (__| |_\__ \ \______\___/| .__/ \__, | \__\___/ |_.__/ \__,_|_|_|\__,_| \__,_|_| \__|_|_| \__,_|\___|\__|___/ | | __/ | |_| |___/ Files in build artifacts folder: Apps\LeBit Software & Consult GmbH_LeBit365 Erweiterte Belegzeilen_1.0.40065.0.app (135416 bytes) Copying to Build Artifacts took 0 seconds _____ _ _ _ | __ \ (_) | | (_) | |__) |___ _ __ ___ _____ ___ _ __ __ _ ___ ___ _ __ | |_ __ _ _ _ __ ___ _ __ | _ // _ \ '_ ` _ \ / _ \ \ / / | '_ \ / _` | / __/ _ \| '_ \| __/ _` | | '_ \ / _ \ '__| | | \ \ __/ | | | | | (_) \ V /| | | | | (_| | | (_| (_) | | | | || (_| | | | | | __/ | |_| \_\___|_| |_| |_|\___/ \_/ |_|_| |_|\__, | \___\___/|_| |_|\__\__,_|_|_| |_|\___|_| __/ | |___/ Removing Session lvserver19-lebit365erweitertebelegzeilen-nextmajor Removing container lvserver19-lebit365erweitertebelegzeilen-nextmajor Removing entries from hosts Removing lvserver19-lebit365erweitertebelegzeilen-nextmajor from container hosts file Removing lvserver19-lebit365erweitertebelegzeilen-nextmajor-* from container hosts file Removing Desktop shortcuts Removing C:\ProgramData\BcContainerHelper\Extensions\lvserver19-lebit365erweitertebelegzeilen-nextmajor Removing container took 7 seconds AL Pipeline finished in 1627 seconds ##[section]Finishing: Run Pipeline ```

Additional context

We run this weekly, the last time it worked was on May 13th with 23.0.10788.0. There is a override for New-BCContainer, which maps a dll folder inside the container, and also forces New-BCImage to always include TestToolkit and TestLibraries.

freddydk commented 1 year ago

For some reason - the New-BcImage does not install the test toolkit. The installation should then have happened here: image

Instead they are installed afterwards and it looks like something wrong is installed. image

If I run this:

$artifactUrl = "https://bcinsider.azureedge.net/sandbox/23.0.11020.0/de$($InsiderSasTokenSecret.SecretValue | Get-PlainText)"
New-BCContainer -containerName $containerName `
                -accept_eula `
                -Auth 'UserPassword' `
                -artifactUrl $artifactUrl `
                -Credential $credential `
                -updateHosts `
                -enableTaskScheduler `
                -dns 'hostdns' `
                -includeTestToolkit `
                -includeTestLibrariesOnly `
                -imageName 'mx'

It will install the test toolkit apps as part of the image creation: image

and afterwards, it should look like this: image

freddydk commented 1 year ago

Not sure whether the problem here is caused by the overrides or maybe process isolation (I have earlier seen that file copying like during installation can be problematic in process isolation)

achim-t commented 1 year ago

I tried running this script on my dev machine and the build server:

New-BcImage -artifactUrl $artifactUrl `
            -imageName nextMajor `
            -includeTestLibrariesOnly `
            -includeTestToolkit `
            -isolation process

On my dev machine (Windows 11) the image is created with the test toolkit. On the build server (Windows Server 2019) the image is created without the test toolkit.

Windows 11 ``` New-BcImage -artifactUrl $artifactUrl -imageName nextMajor -includeTestLibrariesOnly -includeTestToolkit -isolation process WARNING: Unable to find matching generic image for your host OS. Using mcr.microsoft.com/businesscentral:10.0.20348.1787 nextmajor:sandbox-23.0.11424.0-de-mt Building multitenant image nextmajor:sandbox-23.0.11424.0-de-mt based on mcr.microsoft.com/businesscentral:10.0.20348.1787 with https://bcinsider.azureedge.net/sandbox/23.0.11424.0/de Pulling latest image mcr.microsoft.com/businesscentral:10.0.20348.1787 10.0.20348.1787: Pulling from businesscentral Digest: sha256:fdeb77c50df5aff1323243915ee9c36854bc51ed9bdfa6cde587c69066eecdac Status: Image is up to date for mcr.microsoft.com/businesscentral:10.0.20348.1787 mcr.microsoft.com/businesscentral:10.0.20348.1787 Generic Tag: 1.0.2.14 Container OS Version: 10.0.20348.1787 (ltsc2022) Host OS Version: 10.0.22621.1848 (22H2) Using process isolation Files in c:\bcartifacts.cache\gfqxeut0.rhj\my: Copying Platform Artifacts c:\bcartifacts.cache\sandbox\23.0.11424.0\platform Copying Database Copying Licensefile Copying ConfigurationPackages C:\bcartifacts.cache\sandbox\23.0.11424.0\de\ConfigurationPackages Copying Extensions C:\bcartifacts.cache\sandbox\23.0.11424.0\de\Extensions Copying Applications.DE C:\bcartifacts.cache\sandbox\23.0.11424.0\de\Applications.DE Untagged: nextmajor:sandbox-23.0.11424.0-de-mt c:\bcartifacts.cache\gfqxeut0.rhj Cannot include TestToolkit without a licensefile, please specify licensefile Sending build context to Docker daemon 2.429GB Step 1/6 : FROM mcr.microsoft.com/businesscentral:10.0.20348.1787 ---> 0cc0712e7d66 Step 2/6 : ENV DatabaseServer=localhost DatabaseInstance=SQLEXPRESS DatabaseName=CRONUS IsBcSandbox=Y artifactUrl=https://bcinsider.azureedge.net/sandbox/23.0.11424.0/de?sv=2021-10-04&ss=b&sr t=sco&st=2023-03-15T00%3A00%3A00Z&se=2023-10-01T00%3A00%3A00Z&sp=rl&sig=1oFLO%2Fq%2BKsry%2BA4dKEog9R6MOxpv8Zu4h9AdGiOeTHs%3D filesOnly=False ---> Running in 2100d6940557 Removing intermediate container 2100d6940557 ---> 75b5579f6f90 Step 3/6 : COPY my /run/ ---> c357f54cd6eb Step 4/6 : COPY NAVDVD /NAVDVD/ ---> 9ed3ba05d91b Step 5/6 : RUN \Run\start.ps1 -installOnly -multitenant -includeTestToolkit -includeTestLibrariesOnly ---> Running in 121e8c297b4b c:\run\my folder doesn't exist, creating it Using installer from C:\Run\210-new Installing Business Central Installing from DVD Starting Local SQL Server Starting Internet Information Server Copying Service Tier Files C:\NAVDVD\ServiceTier\Program Files C:\NAVDVD\ServiceTier\System64Folder Copying PowerShell Scripts C:\NAVDVD\WindowsPowerShellScripts\Cloud\NAVAdministration C:\NAVDVD\WindowsPowerShellScripts\WebSearch Copying Web Client Files C:\NAVDVD\WebClient\Microsoft Dynamics NAV Copying ModernDev Files C:\NAVDVD C:\NAVDVD\ModernDev\program files\Microsoft Dynamics NAV Copying additional files Copying ConfigurationPackages C:\NAVDVD\ConfigurationPackages Copying Test Assemblies C:\NAVDVD\Test Assemblies Copying Extensions C:\NAVDVD\Extensions Copying Applications C:\NAVDVD\Applications Copying Applications.DE C:\NAVDVD\Applications.DE Copying dependencies Copying ReportBuilder Importing PowerShell Modules Restoring CRONUS Demo Database Setting CompatibilityLevel for tenant on localhost\SQLEXPRESS Exporting Application to CRONUS Removing Application from tenant Modifying Business Central Service Tier Config File for Docker Creating Business Central Service Tier Installing SIP crypto provider: 'C:\Windows\System32\NavSip.dll' Starting Business Central Service Tier Importing CRONUS license file Copying Database on localhost\SQLEXPRESS from tenant to default Taking database tenant offline Copying database files Attaching files as new Database default Putting database tenant back online Mounting tenant database Mounting Database for default on server localhost\SQLEXPRESS with AllowAppDatabaseWrite = False Sync'ing Tenant Tenant is Operational Any is already published Synchronizing Any Installing Any Library Assert is already published Synchronizing Library Assert Installing Library Assert Permissions Mock is already published Synchronizing Permissions Mock Installing Permissions Mock Library Variable Storage is already published Synchronizing Library Variable Storage Installing Library Variable Storage Test Runner is already published Synchronizing Test Runner Installing Test Runner Publishing C:\Applications.DE\Microsoft_System Application Test Library_23.0.11424.0.app Synchronizing System Application Test Library Installing System Application Test Library Publishing C:\Applications.DE\Microsoft_Tests-TestLibraries_23.0.11424.0.app Synchronizing Tests-TestLibraries Installing Tests-TestLibraries Stopping Business Central Service Tier Installation took 236 seconds Installation complete Removing intermediate container 121e8c297b4b ---> d4d4cee1eab1 Step 6/6 : LABEL legal="http://go.microsoft.com/fwlink/?LinkId=837447" created="202307100838" nav="" cu="" multitenant="Y" country="DE" version="23.0.11424 .0" platform="23.0.11418.0" ---> Running in 1880e2c48eb1 Removing intermediate container 1880e2c48eb1 ---> eb30ea2c3b9e Successfully built eb30ea2c3b9e Successfully tagged nextmajor:sandbox-23.0.11424.0-de-mt Building image took 451 seconds ```
Windows Server 2019 ``` New-BcImage -artifactUrl $artifactUrl -imageName nextMajor -includeTestLibrariesOnly -includeTestToolkit -isolation process nextmajor:sandbox-23.0.11424.0-de-mt Building multitenant image nextmajor:sandbox-23.0.11424.0-de-mt based on mcr.microsoft.com/businesscentral:10.0.17763.2686 with https://bcinsider.azureedge.net/sandbox/23.0.11424.0/de Pulling latest image mcr.microsoft.com/businesscentral:10.0.17763.2686 10.0.17763.2686: Pulling from businesscentral Digest: sha256:06c72f5b81f234d539eaca8ca9fc27f340fd338505f8fc672ad236c7248cc01d Generic Tag: 1.0.2.14 Container OS Version: 10.0.17763.2686 (ltsc2019) Host OS Version: 10.0.17763.2686 (ltsc2019) Using process isolation Files in c:\bcartifacts.cache\pj3fe2q4.v32\my: Copying Platform Artifacts c:\bcartifacts.cache\sandbox\23.0.11424.0\platform Copying Database Copying Licensefile Copying ConfigurationPackages C:\bcartifacts.cache\sandbox\23.0.11424.0\de\ConfigurationPackages Copying Extensions C:\bcartifacts.cache\sandbox\23.0.11424.0\de\Extensions Copying Applications.DE C:\bcartifacts.cache\sandbox\23.0.11424.0\de\Applications.DE Untagged: nextmajor:sandbox-23.0.11424.0-de-mt c:\bcartifacts.cache\pj3fe2q4.v32 Cannot include TestToolkit without a licensefile, please specify licensefile Sending build context to Docker daemon 2.429GB Step 1/6 : FROM mcr.microsoft.com/businesscentral:10.0.17763.2686 ---> 105cd2ca66b7 Step 2/6 : ENV DatabaseServer=localhost DatabaseInstance=SQLEXPRESS DatabaseName=CRONUS IsBcSandbox=Y artifactUrl=https://bcinsider.azureedge.net/sandbox/23.0.11424.0/de?sv=2021-10-04&ss=b&sr t=sco&st=2023-03-15T00%3A00%3A00Z&se=2023-10-01T00%3A00%3A00Z&sp=rl&sig=1oFLO%2Fq%2BKsry%2BA4dKEog9R6MOxpv8Zu4h9AdGiOeTHs%3D filesOnly=False ---> Running in 0647424695ff Removing intermediate container 0647424695ff ---> 7d88f27c416e Step 3/6 : COPY my /run/ ---> f2ef9c510b4c Step 4/6 : COPY NAVDVD /NAVDVD/ ---> 9610a60b8c60 Step 5/6 : RUN \Run\start.ps1 -installOnly -multitenant -includeTestToolkit -includeTestLibrariesOnly ---> Running in 4e5e0691a6d8 c:\run\my folder doesn't exist, creating it Using installer from C:\Run\210-new Installing Business Central Installing from DVD Starting Local SQL Server Starting Internet Information Server Copying Service Tier Files C:\NAVDVD\ServiceTier\Program Files C:\NAVDVD\ServiceTier\System64Folder Copying PowerShell Scripts C:\NAVDVD\WindowsPowerShellScripts\Cloud\NAVAdministration C:\NAVDVD\WindowsPowerShellScripts\WebSearch Copying Web Client Files C:\NAVDVD\WebClient\Microsoft Dynamics NAV Copying ModernDev Files C:\NAVDVD C:\NAVDVD\ModernDev\program files\Microsoft Dynamics NAV Copying additional files Copying ConfigurationPackages C:\NAVDVD\ConfigurationPackages Copying Test Assemblies C:\NAVDVD\Test Assemblies Copying Extensions C:\NAVDVD\Extensions Copying Applications C:\NAVDVD\Applications Copying Applications.DE C:\NAVDVD\Applications.DE Copying dependencies Copying ReportBuilder Importing PowerShell Modules Restoring CRONUS Demo Database Setting CompatibilityLevel for tenant on localhost\SQLEXPRESS Exporting Application to CRONUS Removing Application from tenant Modifying Business Central Service Tier Config File for Docker Creating Business Central Service Tier Installing SIP crypto provider: 'C:\Windows\System32\NavSip.dll' Starting Business Central Service Tier Importing CRONUS license file Copying Database on localhost\SQLEXPRESS from tenant to default Taking database tenant offline Copying database files Attaching files as new Database default Putting database tenant back online Mounting tenant database Mounting Database for default on server localhost\SQLEXPRESS with AllowAppDatabaseWrite = False Sync'ing Tenant Tenant is Operational Stopping Business Central Service Tier Installation took 550 seconds Installation complete Removing intermediate container 4e5e0691a6d8 ---> 6b5849f5518c Step 6/6 : LABEL legal="http://go.microsoft.com/fwlink/?LinkId=837447" created="202307100836" nav="" cu="" multitenant="Y" country="DE" version="23.0.11424 .0" platform="23.0.11418.0" ---> Running in 03085cc2c87a Removing intermediate container 03085cc2c87a ---> 65cfe518bd1b Successfully built 65cfe518bd1b Successfully tagged nextmajor:sandbox-23.0.11424.0-de-mt Building image took 1110 seconds ```

The step Mounting Database for default on server localhost\SQLEXPRESS with AllowAppDatabaseWrite = False on Windows Server 2019 took quite a while. After that one, the test toolkit is supposed to be installed. Maybe there is some kind of problem at that point?

freddydk commented 1 year ago

This is the reason: image

Your Windows Server 2019 is not updated and therefore gets an old image

achim-t commented 1 year ago

After updating the server, the image is created with the test toolkit. Without the need to install the test toolkit in each container, I assume the pipeline will not fail anymore.

Thanks for the help.

PeterConijn commented 11 months ago

I am having this issue too, but our server version is up to date (OS anyway).

Container OS Version: 10.0.17763.4737 (ltsc2019) Host OS Version: 10.0.17763.4974 (ltsc2019)

I did receive a warning, but apparently (kicks the old junk) the processor cannot handle Hyper-V WARNING: Host OS and Base Image Container OS doesn't match and Hyper-V is not installed. If you encounter issues, you could try to install Hyper-V.