microsoft / navcontainerhelper

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

ALCops can't find "Business Foundation" app and doesn't start because of it #3559

Closed iti-arkadiusz-maciejewski closed 5 months ago

iti-arkadiusz-maciejewski commented 5 months ago

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

Hello, I think I found bug in ALCops on BC24 When I try to run ALCops (CodeCop and AppSourceCop) I get following error:

error AL1022: A package with publisher 'Microsoft', name 'Business Foundation', and a version compatible with '24.1.0.0' could not be found in the package cache folders: C:\ProgramData\BcContainerHelper\7258866a-f445-4f6f-bbc0-4f141f24edf6

The workaround is to copy Business Foundation app file to previousApps folder, which is later copied to $appPackagesFolder (I found it in Run-AlCops.ps1) which is an appSymbolsFolder.

Adding Business Foundation app file to $paths in Compile-AppInNavContainer.ps1 like other main BC apps (lines: 274-279) should resolve the issue.

Could you do this or at least give me permission to create PR? It would help us a lot.

I also noticed, that everything works fine with ALCops for PTE.

freddydk commented 5 months ago

Please make sure you are using the latest version of BcContainerHelper and submit the full log.

Thanks

iti-arkadiusz-maciejewski commented 5 months ago

We use Run-ALCops command and these are logs from step using this function.

2024-05-29T06:47:54.4402139Z ##[section]Starting: Run ALCops (AppSourceCop)
2024-05-29T06:47:54.4416265Z ==============================================================================
2024-05-29T06:47:54.4416464Z Task         : PowerShell
2024-05-29T06:47:54.4416564Z Description  : Run a PowerShell script on Linux, macOS, or Windows
2024-05-29T06:47:54.4416716Z Version      : 2.239.1
2024-05-29T06:47:54.4416823Z Author       : Microsoft Corporation
2024-05-29T06:47:54.4416949Z Help         : https://docs.microsoft.com/azure/devops/pipelines/tasks/utility/powershell
2024-05-29T06:47:54.4417132Z ==============================================================================
2024-05-29T06:47:55.6209741Z Generating script.
2024-05-29T06:47:55.7093026Z Formatted command: . 'C:\a\1\s\ALScripts\src\Invoke-CodeAnalysis.ps1' -Affixes ITI -supportedCountries pl -Type "ISV" -UserLogin *** -UserPassword *** -isDedicated true -ExpectedDuration "30"
2024-05-29T06:47:55.7287181Z ========================== Starting Command Output ===========================
2024-05-29T06:47:55.7494622Z ##[command]"C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -NoLogo -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -Command ". 'C:\a\_temp\91403e0b-a81e-4926-9427-09cbbfd7ac38.ps1'"
2024-05-29T06:47:56.2702984Z BcContainerHelper version 6.0.18
2024-05-29T06:47:56.4469949Z BC.HelperFunctions emits usage statistics telemetry to Microsoft
2024-05-29T06:47:56.5369655Z Running on Windows, PowerShell 5.1.20348.2400
2024-05-29T06:47:58.3953405Z WARNING: The names of some imported commands from the module 'BCContainerHelper' include unapproved verbs that might 
2024-05-29T06:47:58.3962611Z make them less discoverable. To find the commands with unapproved verbs, run the Import-Module command again with the 
2024-05-29T06:47:58.3966188Z Verbose parameter. For a list of approved verbs, type Get-Verb.
2024-05-29T06:47:58.3971468Z ##[command] Setting UsePsSession to false
2024-05-29T06:47:58.3998809Z ##[command] UsePsSession: False
2024-05-29T06:47:58.4104802Z C:\PipelineWorkspace\PreviousRelease\7.0.1.1\Applications\AppName_7.0.1.1.app
2024-05-29T06:47:58.4107787Z C:\Source\Apps\Application\Artifacts\Applications\AppName_7.0.1.91.app
2024-05-29T06:47:59.7198927Z Copying previous apps to packages folder
2024-05-29T06:48:00.5883415Z Extracting C:\ProgramData\BcContainerHelper\848ed508-e541-45e1-815c-5df81a2cf978\AppName_7.0.1.1.app
2024-05-29T06:48:01.2934347Z Publisher_AppName = 7.0.1.1
2024-05-29T06:48:01.7920975Z Downloading AL Language Extension (Prerelease) to C:\ProgramData\BcContainerHelper\alLanguageExtension\14.0.1010940.zip
2024-05-29T06:48:03.9331600Z using 7zip
2024-05-29T06:48:09.8927718Z Latest Supported Runtime Version: 13.1
2024-05-29T06:48:09.9011934Z Extracting C:\ProgramData\BcContainerHelper\791d7e96-3788-44fe-b1ac-bd87560169ec\AppName_7.0.1.91.app
2024-05-29T06:48:10.5342993Z App Runtime Version is '11.0'
2024-05-29T06:48:10.6042502Z Analyzing: AppName_7.0.1.91.app
2024-05-29T06:48:10.6076321Z Using affixes: ITI
2024-05-29T06:48:10.6104634Z Using supportedCountries: pl
2024-05-29T06:48:10.6129451Z Using previous app: Publisher_AppName_7.0.1.1.app
2024-05-29T06:48:10.6164611Z Downloading C:\ProgramData\BcContainerHelper\f51e84d0-9bb7-41b1-9a2c-0fec79d97ed4\appsource.default.ruleset.json
2024-05-29T06:48:11.0150570Z AppSourceCop.json content:
2024-05-29T06:48:11.0170489Z {
2024-05-29T06:48:11.0175073Z     "Publisher":  "Publisher",
2024-05-29T06:48:11.0184098Z     "Version":  "7.0.1.1",
2024-05-29T06:48:11.0188517Z     "Name":  "AppName",
2024-05-29T06:48:11.0197233Z     "mandatoryAffixes":  [
2024-05-29T06:48:11.0245126Z                              "ITI"
2024-05-29T06:48:11.0253011Z                          ],
2024-05-29T06:48:11.0291975Z     "supportedCountries":  [
2024-05-29T06:48:11.0337525Z                                "pl"
2024-05-29T06:48:11.0338078Z                            ]
2024-05-29T06:48:11.0342721Z }
2024-05-29T06:48:11.1471693Z Ruleset.json content:
2024-05-29T06:48:11.1489183Z {
2024-05-29T06:48:11.1494184Z     "name":  "Run-AlCops RuleSet",
2024-05-29T06:48:11.1503499Z     "description":  "Generated by Run-AlCops",
2024-05-29T06:48:11.1508133Z     "includedRuleSets":  [
2024-05-29T06:48:11.1517124Z                              {
2024-05-29T06:48:11.1521818Z                                  "path":  "C:\\ProgramData\\BcContainerHelper\\f51e84d0-9bb7-41b1-9a2c-0fec79d97ed4\\appsource.default.ruleset.json",
2024-05-29T06:48:11.1530843Z                                  "action":  "Default"
2024-05-29T06:48:11.1535111Z                              }
2024-05-29T06:48:11.1543901Z                          ]
2024-05-29T06:48:11.1547046Z }
2024-05-29T06:48:12.1037815Z Using Symbols Folder: C:\ProgramData\BcContainerHelper\848ed508-e541-45e1-815c-5df81a2cf978
2024-05-29T06:48:12.7148875Z Copying System.app from Container
2024-05-29T06:48:12.7261959Z Copying Microsoft_Application.app from Container
2024-05-29T06:48:12.7327879Z Copying Microsoft_Base Application.app from Container
2024-05-29T06:48:12.7640329Z Copying Microsoft_System Application.app from Container
2024-05-29T06:48:18.2010830Z Processing dependency Microsoft_Application_22.2.0.0 ()
2024-05-29T06:48:18.2078042Z Dependency App exists
2024-05-29T06:48:18.2090872Z Processing dependency Microsoft_System_22.0.0.0 ()
2024-05-29T06:48:18.2103017Z Dependency App exists
2024-05-29T06:48:18.2109436Z Processing dependency Microsoft_Intrastat Core_22.0.54157.55378 (70912191-3c4c-49fc-a1de-bc6ea1ac9da6)
2024-05-29T06:48:18.2303780Z Downloading symbols: Microsoft_Intrastat Core_24.1.18927.19992.app
2024-05-29T06:48:18.2310172Z Url : http://172.25.61.217:7049/BC/dev/packages?appId=70912191-3c4c-49fc-a1de-bc6ea1ac9da6&versionText=22.0.54157.55378&tenant=default
2024-05-29T06:48:19.8164275Z Compiling...
2024-05-29T06:48:19.8376390Z .\alc.exe /project:"C:\ProgramData\BcContainerHelper\f51e84d0-9bb7-41b1-9a2c-0fec79d97ed4" /packagecachepath:"C:\ProgramData\BcContainerHelper\848ed508-e541-45e1-815c-5df81a2cf978" /out:"C:\ProgramData\BcContainerHelper\f51e84d0-9bb7-41b1-9a2c-0fec79d97ed4\Publisher_AppName_7.0.1.91.app" /GenerateReportLayout- /analyzer:C:\build\vsix\extension\bin\Analyzers\Microsoft.Dynamics.Nav.CodeCop.dll /analyzer:C:\build\vsix\extension\bin\Analyzers\Microsoft.Dynamics.Nav.AppSourceCop.dll /ruleset:C:\ProgramData\BcContainerHelper\f51e84d0-9bb7-41b1-9a2c-0fec79d97ed4\ruleset.json /reportsuppresseddiagnostics /BuildBy:"BcContainerHelper,6.0.18" /assemblyprobingpaths:"C:\Program Files\dotnet\shared","C:\ProgramData\BcContainerHelper\Extensions\latest\.netPackages\Service"
2024-05-29T06:48:25.2737375Z Microsoft (R) AL Compiler version 13.0.15.43331
2024-05-29T06:48:25.2747933Z Copyright (C) Microsoft Corporation. All rights reserved
2024-05-29T06:48:25.2748274Z 
2024-05-29T06:48:25.2757266Z Compilation started for project 'AppName' containing '894' files at '06:48:20.068'.
2024-05-29T06:48:25.2761097Z 
2024-05-29T06:48:25.2785541Z C:\ProgramData\BcContainerHelper\f51e84d0-9bb7-41b1-9a2c-0fec79d97ed4\src\src\table\ITINSeIAuthorizedPartyRole.Table.al(2,1): warning AL0640: XML comment has badly formed XML -- 'Expected an end tag for element 'TRolaPodmiotuUpowaznionego'.'
2024-05-29T06:48:25.2803693Z C:\ProgramData\BcContainerHelper\f51e84d0-9bb7-41b1-9a2c-0fec79d97ed4\src\src\table\ITINSeIBankOwnedAccount.Table.al(2,1): warning AL0640: XML comment has badly formed XML -- 'Expected an end tag for element 'TRachunekWlasnyBanku'.'
2024-05-29T06:48:25.2811148Z C:\ProgramData\BcContainerHelper\f51e84d0-9bb7-41b1-9a2c-0fec79d97ed4\src\src\table\ITINSeICargo.Table.al(2,1): warning AL0640: XML comment has badly formed XML -- 'Expected an end tag for element 'TLadunek'.'
2024-05-29T06:48:25.2821870Z C:\ProgramData\BcContainerHelper\f51e84d0-9bb7-41b1-9a2c-0fec79d97ed4\src\src\table\ITINSeICorrectionType.Table.al(2,1): warning AL0640: XML comment has badly formed XML -- 'Expected an end tag for element 'TTypKorekty'.'
2024-05-29T06:48:25.2831640Z C:\ProgramData\BcContainerHelper\f51e84d0-9bb7-41b1-9a2c-0fec79d97ed4\src\src\table\ITINSeIPaymentMethod.Table.al(2,1): warning AL0640: XML comment has badly formed XML -- 'Expected an end tag for element 'TFormaPlatnosci'.'
2024-05-29T06:48:25.2838250Z C:\ProgramData\BcContainerHelper\f51e84d0-9bb7-41b1-9a2c-0fec79d97ed4\src\src\table\ITINSeISalesProcedure.Table.al(2,1): warning AL0640: XML comment has badly formed XML -- 'Expected an end tag for element 'TProceduraFa'.'
2024-05-29T06:48:25.2843523Z C:\ProgramData\BcContainerHelper\f51e84d0-9bb7-41b1-9a2c-0fec79d97ed4\src\src\table\ITINSeITaxpayerStatusInfo.Table.al(2,1): warning AL0640: XML comment has badly formed XML -- 'Expected an end tag for element 'TStatusInfoPodatnika'.'
2024-05-29T06:48:25.2853773Z C:\ProgramData\BcContainerHelper\f51e84d0-9bb7-41b1-9a2c-0fec79d97ed4\src\src\table\ITINSeIThirdPartyRole.Table.al(2,1): warning AL0640: XML comment has badly formed XML -- 'Expected an end tag for element 'TRolaPodmiotu3'.'
2024-05-29T06:48:25.2861408Z C:\ProgramData\BcContainerHelper\f51e84d0-9bb7-41b1-9a2c-0fec79d97ed4\src\src\table\ITINSeITransportType.Table.al(2,1): warning AL0640: XML comment has badly formed XML -- 'Expected an end tag for element 'TRodzajTransportu'.'
2024-05-29T06:48:25.2868779Z C:\ProgramData\BcContainerHelper\f51e84d0-9bb7-41b1-9a2c-0fec79d97ed4\src\src\table\ITINSeIVATRate.Table.al(2,1): warning AL0640: XML comment has badly formed XML -- 'Expected an end tag for element 'TStawkaPodatku'.'
2024-05-29T06:48:25.2876382Z error AL1022: A package with publisher 'Microsoft', name 'Business Foundation', and a version compatible with '24.1.0.0' could not be found in the package cache folders: C:\ProgramData\BcContainerHelper\848ed508-e541-45e1-815c-5df81a2cf978
2024-05-29T06:48:25.2883400Z 
2024-05-29T06:48:25.2888949Z Compilation ended at '06:48:24.820'.
2024-05-29T06:48:25.2892700Z 
2024-05-29T06:48:25.2898594Z App generation failed with exit code 1
2024-05-29T06:48:26.1015286Z Compile-AppInBcContainer Telemetry Correlation Id: e6c46f17-4181-4b70-8c01-c64c539b516c
2024-05-29T06:48:26.1063257Z ERROR App generation failed with exit code 1
2024-05-29T06:48:26.1066882Z Ignoring warnings
2024-05-29T06:48:26.1079251Z Ignoring infos
2024-05-29T06:48:26.7553655Z Copy C:\ProgramData\BcContainerHelper\791d7e96-3788-44fe-b1ac-bd87560169ec\AppName_7.0.1.91.app to C:\ProgramData\BcContainerHelper\848ed508-e541-45e1-815c-5df81a2cf978
2024-05-29T06:48:27.3507925Z 2 errors found in AppName_7.0.1.91.app on https://itibcartifacts.blob.core.windows.net/latest/24.1.18927.19992:
2024-05-29T06:48:27.3509615Z error AL1022: A package with publisher 'Microsoft', name 'Business Foundation', and a version compatible with '24.1.0.0' could not be found in the package cache folders: C:\ProgramData\BcContainerHelper\848ed508-e541-45e1-815c-5df81a2cf978
2024-05-29T06:48:27.3514161Z App generation failed with exit code 1
2024-05-29T06:48:27.3517938Z 
2024-05-29T06:48:27.4016328Z ##[section]Finishing: Run ALCops (AppSourceCop)
freddydk commented 5 months ago

Do you have the output of the container generation as well?

iti-arkadiusz-maciejewski commented 5 months ago

It's not that simple, but yes. We use Virtual Machine Scale Set agents with images created with internally built-in container, to make pipeline work faster. I'm sending logs from building an image pipeline

2024-05-29T07:52:40.8435337Z ==> azure-arm.vhd: Provisioning with powershell script: C:\Users\VSSADM~1\AppData\Local\Temp\powershell-provisioner3096423789
2024-05-29T07:53:47.5570294Z     azure-arm.vhd: BcContainerHelper version 6.0.18
2024-05-29T07:53:47.5575532Z     azure-arm.vhd: BC.HelperFunctions emits usage statistics telemetry to Microsoft
2024-05-29T07:53:47.5587484Z     azure-arm.vhd: Running on Windows, PowerShell 5.1.20348.2400
2024-05-29T07:53:48.8573321Z     azure-arm.vhd: BcContainerHelper is version 6.0.18
2024-05-29T07:53:48.8577854Z     azure-arm.vhd: BcContainerHelper is running as administrator
2024-05-29T07:53:50.4781183Z     azure-arm.vhd: HyperV is Disabled
2024-05-29T07:53:50.4792292Z     azure-arm.vhd: Host is Microsoft Windows Server 2022 Datacenter - 10.0.20348.2461
2024-05-29T07:53:50.4795761Z     azure-arm.vhd: UsePsSession is True
2024-05-29T07:53:50.4800567Z     azure-arm.vhd: UsePwshForBc24 is True
2024-05-29T07:53:50.4804792Z     azure-arm.vhd: UseWinRmSession is allow
2024-05-29T07:53:50.4813399Z     azure-arm.vhd: UseSslForWinRmSession is True
2024-05-29T07:53:50.4814578Z     azure-arm.vhd: Docker Client Version is 26.1.3
2024-05-29T07:53:50.4822933Z     azure-arm.vhd: Docker Server Version is 26.1.3
2024-05-29T07:53:50.4827531Z     azure-arm.vhd: Removing Desktop shortcuts
2024-05-29T07:53:50.4828037Z     azure-arm.vhd: Downloading artifact /latest/24.1.18927.20018
2024-05-29T07:53:50.4838621Z     azure-arm.vhd: Downloading C:\Users\packer\AppData\Local\Temp\6a09c3ad-9bcf-445d-8cfe-620213e3760e.zip
2024-05-29T07:53:54.4635154Z     azure-arm.vhd: Unpacking artifact to tmp folder using 7zip
2024-05-29T07:53:57.7470520Z     azure-arm.vhd: Downloading platform artifact /sandbox/24.1.18927.20018/platform
2024-05-29T07:53:57.7490215Z     azure-arm.vhd: Downloading C:\Users\packer\AppData\Local\Temp\c11003a6-94f5-47c6-bdd8-01ba0d946122.zip
2024-05-29T07:54:48.6927596Z     azure-arm.vhd: Unpacking artifact to tmp folder using 7zip
2024-05-29T07:55:18.0384997Z     azure-arm.vhd: Downloading Prerequisite Components
2024-05-29T07:55:18.0392015Z     azure-arm.vhd: Downloading c:\bcartifacts.cache\sandbox\24.1.18927.20018\platform\Prerequisite Components\IIS URL Rewrite Module\rewrite_2.0_rtw_x64.msi
2024-05-29T07:55:18.0397313Z     azure-arm.vhd: Downloading c:\bcartifacts.cache\sandbox\24.1.18927.20018\platform\Prerequisite Components\DotNetCore\DotNetCore.1.0.4_1.1.1-WindowsHosting.exe
2024-05-29T07:55:20.5516296Z     azure-arm.vhd: Fetching all docker images
2024-05-29T07:55:20.5520728Z     azure-arm.vhd: Fetching all docker volumes
2024-05-29T07:55:20.5526169Z     azure-arm.vhd: Pulling image mcr.microsoft.com/businesscentral:ltsc2022
2024-05-29T07:55:23.2331598Z     azure-arm.vhd: ltsc2022: Pulling from businesscentral
2024-05-29T07:55:23.2337605Z     azure-arm.vhd: 7c76e5cf7755: Already exists
2024-05-29T07:55:23.2345829Z     azure-arm.vhd: ba0311451131: Already exists
2024-05-29T07:55:23.2350497Z     azure-arm.vhd: e7b6405f82e3: Already exists
2024-05-29T07:55:23.2355211Z     azure-arm.vhd: 4e85897043e2: Already exists
2024-05-29T07:55:23.2359917Z     azure-arm.vhd: fd8c9df89948: Pulling fs layer
2024-05-29T07:55:23.2364174Z     azure-arm.vhd: 01eaf2438604: Pulling fs layer
2024-05-29T07:55:23.2368680Z     azure-arm.vhd: 45c473867532: Pulling fs layer
2024-05-29T07:55:23.2373247Z     azure-arm.vhd: 81e9d4dc16e5: Pulling fs layer
2024-05-29T07:55:23.2377807Z     azure-arm.vhd: 3b8fa8e43422: Pulling fs layer
2024-05-29T07:55:23.2382568Z     azure-arm.vhd: 9997d3aab9fb: Pulling fs layer
2024-05-29T07:55:23.2387010Z     azure-arm.vhd: 56d2781d6c23: Pulling fs layer
2024-05-29T07:55:23.2395634Z     azure-arm.vhd: 3b8fa8e43422: Waiting
2024-05-29T07:55:23.2396280Z     azure-arm.vhd: 81e9d4dc16e5: Waiting
2024-05-29T07:55:23.2400554Z     azure-arm.vhd: 21f17fdce7ab: Pulling fs layer
2024-05-29T07:55:23.2409576Z     azure-arm.vhd: 9997d3aab9fb: Waiting
2024-05-29T07:55:23.2414522Z     azure-arm.vhd: 9be4f3e7ae7f: Pulling fs layer
2024-05-29T07:55:23.2418920Z     azure-arm.vhd: a56b1b8a0ec4: Pulling fs layer
2024-05-29T07:55:23.2419261Z     azure-arm.vhd: 56d2781d6c23: Waiting
2024-05-29T07:55:23.2427352Z     azure-arm.vhd: 21f17fdce7ab: Waiting
2024-05-29T07:55:23.2428362Z     azure-arm.vhd: 9be4f3e7ae7f: Waiting
2024-05-29T07:55:23.2435507Z     azure-arm.vhd: a56b1b8a0ec4: Waiting
2024-05-29T07:55:23.2439580Z     azure-arm.vhd: fd8c9df89948: Verifying Checksum
2024-05-29T07:55:23.2440005Z     azure-arm.vhd: fd8c9df89948: Download complete
2024-05-29T07:55:23.2444737Z     azure-arm.vhd: 01eaf2438604: Verifying Checksum
2024-05-29T07:55:23.2445080Z     azure-arm.vhd: 01eaf2438604: Download complete
2024-05-29T07:55:23.2448312Z     azure-arm.vhd: 45c473867532: Download complete
2024-05-29T07:55:23.2452792Z     azure-arm.vhd: 81e9d4dc16e5: Verifying Checksum
2024-05-29T07:55:23.2464971Z     azure-arm.vhd: 81e9d4dc16e5: Download complete
2024-05-29T07:55:23.2469325Z     azure-arm.vhd: 56d2781d6c23: Verifying Checksum
2024-05-29T07:55:23.2469994Z     azure-arm.vhd: 56d2781d6c23: Download complete
2024-05-29T07:55:23.2473953Z     azure-arm.vhd: 21f17fdce7ab: Verifying Checksum
2024-05-29T07:55:23.2481933Z     azure-arm.vhd: 21f17fdce7ab: Download complete
2024-05-29T07:55:23.2482868Z     azure-arm.vhd: 9be4f3e7ae7f: Download complete
2024-05-29T07:55:23.2490481Z     azure-arm.vhd: 9997d3aab9fb: Download complete
2024-05-29T07:55:23.2498408Z     azure-arm.vhd: a56b1b8a0ec4: Verifying Checksum
2024-05-29T07:55:23.2498937Z     azure-arm.vhd: a56b1b8a0ec4: Download complete
2024-05-29T07:55:23.9342505Z     azure-arm.vhd: fd8c9df89948: Pull complete
2024-05-29T07:55:25.5497453Z     azure-arm.vhd: 01eaf2438604: Pull complete
2024-05-29T07:55:29.5714529Z     azure-arm.vhd: 45c473867532: Pull complete
2024-05-29T07:55:32.4033002Z     azure-arm.vhd: 81e9d4dc16e5: Pull complete
2024-05-29T07:55:49.3194893Z     azure-arm.vhd: 3b8fa8e43422: Verifying Checksum
2024-05-29T07:55:49.3199514Z     azure-arm.vhd: 3b8fa8e43422: Download complete
2024-05-29T07:57:58.9220861Z     azure-arm.vhd: 3b8fa8e43422: Pull complete
2024-05-29T07:58:10.7830471Z     azure-arm.vhd: 9997d3aab9fb: Pull complete
2024-05-29T07:58:11.9278034Z     azure-arm.vhd: 56d2781d6c23: Pull complete
2024-05-29T07:58:13.1487702Z     azure-arm.vhd: 21f17fdce7ab: Pull complete
2024-05-29T07:58:14.7840423Z     azure-arm.vhd: 9be4f3e7ae7f: Pull complete
2024-05-29T07:58:15.9412237Z     azure-arm.vhd: a56b1b8a0ec4: Pull complete
2024-05-29T07:58:15.9418290Z     azure-arm.vhd: Digest: sha256:41294a2c7ad03f8bbcd6f30384525d644f76b08681c9185a522b39c1b08b40a5
2024-05-29T07:58:15.9422099Z     azure-arm.vhd: Status: Downloaded newer image for mcr.microsoft.com/businesscentral:ltsc2022
2024-05-29T07:58:15.9426218Z     azure-arm.vhd: mcr.microsoft.com/businesscentral:ltsc2022
2024-05-29T07:58:15.9436886Z     azure-arm.vhd: Using image mcr.microsoft.com/businesscentral:ltsc2022
2024-05-29T07:58:16.9229645Z     azure-arm.vhd: Creating Container latest
2024-05-29T07:58:16.9234500Z     azure-arm.vhd: Style: onprem
2024-05-29T07:58:16.9238816Z     azure-arm.vhd: Multitenant: No
2024-05-29T07:58:16.9243555Z     azure-arm.vhd: Version: 24.1.18927.20018
2024-05-29T07:58:16.9247934Z     azure-arm.vhd: Platform: 24.0.19971.0
2024-05-29T07:58:16.9261099Z     azure-arm.vhd: Generic Tag: 1.0.2.23
2024-05-29T07:58:16.9265708Z     azure-arm.vhd: Container OS Version: 10.0.20348.2461 (ltsc2022)
2024-05-29T07:58:16.9266598Z     azure-arm.vhd: Host OS Version: 10.0.20348.2461 (ltsc2022)
2024-05-29T07:58:16.9275130Z     azure-arm.vhd: Using process isolation
2024-05-29T07:58:16.9279836Z     azure-arm.vhd: Using locale
2024-05-29T07:58:16.9280549Z     azure-arm.vhd: Disabling the standard eventlog dump to container log every 2 seconds (use -dumpEventLog to enable)
2024-05-29T07:58:16.9289178Z     azure-arm.vhd: Using license file C:\image\license.bclicense
2024-05-29T07:58:16.9293390Z     azure-arm.vhd: Additional Parameters:
2024-05-29T07:58:16.9297489Z     azure-arm.vhd: --volume C:\PipelineWorkspace:C:\PipelineWorkspace
2024-05-29T07:58:16.9301710Z     azure-arm.vhd: --volume C:\Source:C:\Source
2024-05-29T07:58:16.9306028Z     azure-arm.vhd: --volume C:\Artifacts:C:\Artifacts
2024-05-29T07:58:16.9306627Z     azure-arm.vhd: --env defaultTenantHasAllowAppDatabaseWrite=Y
2024-05-29T07:58:16.9314394Z     azure-arm.vhd: --expose 5986
2024-05-29T07:58:16.9318262Z     azure-arm.vhd: --env customNavSettings=EnableTaskScheduler=True
2024-05-29T07:58:16.9318912Z     azure-arm.vhd: Files in C:\ProgramData\BcContainerHelper\Extensions\latest\my:
2024-05-29T07:58:16.9322471Z     azure-arm.vhd: - AdditionalOutput.ps1
2024-05-29T07:58:17.5095399Z     azure-arm.vhd: - AdditionalSetup.ps1
2024-05-29T07:58:17.5096086Z     azure-arm.vhd: - HelperFunctions.ps1
2024-05-29T07:58:17.5096496Z     azure-arm.vhd: - license.bclicense
2024-05-29T07:58:17.5096857Z     azure-arm.vhd: - MainLoop.ps1
2024-05-29T07:58:17.5097261Z     azure-arm.vhd: - SetupVariables.ps1
2024-05-29T07:58:17.5097650Z     azure-arm.vhd: - updatehosts.ps1
2024-05-29T07:58:17.5098133Z     azure-arm.vhd: Creating container latest from image mcr.microsoft.com/businesscentral:ltsc2022
2024-05-29T07:58:17.5098785Z     azure-arm.vhd: ad446f6b92898a7bc134f64a11ace1f262a35a5bb960247c890690c647dd3805
2024-05-29T07:58:20.6705707Z     azure-arm.vhd: Waiting for container latest to be ready
2024-05-29T07:58:24.8828459Z     azure-arm.vhd: Using artifactUrl https://itibcartifacts.blob.core.windows.net/latest/24.1.18927.20018
2024-05-29T07:58:24.8832757Z     azure-arm.vhd: Using installer from C:\Run\240
2024-05-29T07:58:24.8843912Z     azure-arm.vhd: Installing Business Central: multitenant=False, installOnly=False, filesOnly=False, includeTestToolkit=False, includeTestLibrariesOnly=False, includeTestFrameworkOnly=False, includePerformanceToolkit=False, appArtifactPath=c:\dl\latest\24.1.18927.20018, platformArtifactPath=c:\dl\sandbox\24.1.18927.20018\platform, databasePath=c:\dl\latest\24.1.18927.20018\database\database.bak, licenseFilePath=c:\dl\latest\24.1.18927.20018\database\Cronus.bclicense, rebootContainer=True
2024-05-29T07:58:24.8847834Z     azure-arm.vhd: Installing from artifacts
2024-05-29T07:58:28.0302830Z     azure-arm.vhd: Starting Local SQL Server
2024-05-29T07:58:28.0308279Z     azure-arm.vhd: Starting Internet Information Server
2024-05-29T07:58:28.0313171Z     azure-arm.vhd: Copying Service Tier Files
2024-05-29T07:58:29.0798427Z     azure-arm.vhd: c:\dl\sandbox\24.1.18927.20018\platform\ServiceTier\Program Files
2024-05-29T07:58:29.0802280Z     azure-arm.vhd: c:\dl\sandbox\24.1.18927.20018\platform\ServiceTier\System64Folder
2024-05-29T07:58:29.0813949Z     azure-arm.vhd: Copying Web Client Files
2024-05-29T07:58:35.4201068Z     azure-arm.vhd: c:\dl\sandbox\24.1.18927.20018\platform\WebClient\Microsoft Dynamics NAV
2024-05-29T07:58:35.4205443Z     azure-arm.vhd: Copying ModernDev Files
2024-05-29T07:58:35.4210434Z     azure-arm.vhd: c:\dl\sandbox\24.1.18927.20018\platform
2024-05-29T07:58:35.4215298Z     azure-arm.vhd: c:\dl\sandbox\24.1.18927.20018\platform\ModernDev\program files\Microsoft Dynamics NAV
2024-05-29T07:58:35.4223664Z     azure-arm.vhd: Copying additional files
2024-05-29T07:58:35.4232138Z     azure-arm.vhd: Copying ConfigurationPackages
2024-05-29T07:58:35.4233154Z     azure-arm.vhd: C:\dl\sandbox\24.1.18927.20018\platform\ConfigurationPackages
2024-05-29T07:58:35.4240267Z     azure-arm.vhd: Copying Test Assemblies
2024-05-29T07:58:35.4240837Z     azure-arm.vhd: C:\dl\sandbox\24.1.18927.20018\platform\Test Assemblies
2024-05-29T07:58:35.4247986Z     azure-arm.vhd: Copying Applications
2024-05-29T07:58:36.4551671Z     azure-arm.vhd: C:\dl\sandbox\24.1.18927.20018\platform\Applications
2024-05-29T07:58:37.5022435Z     azure-arm.vhd: Copying dependencies
2024-05-29T07:58:54.3695696Z     azure-arm.vhd: Importing PowerShell Modules
2024-05-29T08:00:25.1012964Z     azure-arm.vhd: Restoring CRONUS Demo Database
2024-05-29T08:00:26.1490441Z     azure-arm.vhd: Setting CompatibilityLevel for CRONUS on localhost\SQLEXPRESS
2024-05-29T08:00:26.1496069Z     azure-arm.vhd: Modifying Business Central Service Tier Config File for Docker
2024-05-29T08:00:26.1504453Z     azure-arm.vhd: Creating Business Central Service Tier
2024-05-29T08:00:26.1512201Z     azure-arm.vhd: Installing SIP crypto provider: 'C:\Windows\System32\NavSip.dll'
2024-05-29T08:02:42.3549810Z     azure-arm.vhd: Starting Business Central Service Tier
2024-05-29T08:02:43.4024271Z     azure-arm.vhd: Importing license file
2024-05-29T08:02:44.4497174Z     azure-arm.vhd: Stopping Business Central Service Tier
2024-05-29T08:02:44.4502989Z     azure-arm.vhd: Installation took 260 seconds
2024-05-29T08:02:44.4507701Z     azure-arm.vhd: Installation complete
2024-05-29T08:02:44.4512220Z     azure-arm.vhd: Initializing...
2024-05-29T08:02:44.4517498Z     azure-arm.vhd: Setting host.containerhelper.internal to 172.18.144.1 in container hosts file
2024-05-29T08:02:44.4520812Z     azure-arm.vhd: Starting Container
2024-05-29T08:02:44.4533982Z     azure-arm.vhd: Hostname is latest
2024-05-29T08:02:45.5124153Z     azure-arm.vhd: PublicDnsName is latest
2024-05-29T08:02:45.5128307Z     azure-arm.vhd: Using NavUserPassword Authentication
2024-05-29T08:02:45.5137832Z     azure-arm.vhd: Creating Self Signed Certificate
2024-05-29T08:02:45.5146825Z     azure-arm.vhd: Self Signed Certificate Thumbprint D3ABA3F1F34F3F166187A57EAE2FA694D7C9EF32
2024-05-29T08:02:45.5147303Z     azure-arm.vhd: DNS identity latest
2024-05-29T08:02:45.5156416Z     azure-arm.vhd: Modifying Service Tier Config File with Instance Specific Settings
2024-05-29T08:02:46.5448792Z     azure-arm.vhd: Modifying Service Tier Config File with settings from environment variable
2024-05-29T08:02:46.5468036Z     azure-arm.vhd: Setting EnableTaskScheduler to True
2024-05-29T08:03:04.4828220Z     azure-arm.vhd: Starting Service Tier
2024-05-29T08:03:04.4833959Z     azure-arm.vhd: Registering event sources
2024-05-29T08:03:04.4838896Z     azure-arm.vhd: Creating DotNetCore Web Server Instance
2024-05-29T08:03:04.4843265Z     azure-arm.vhd: Using application pool name: BC
2024-05-29T08:03:04.4847904Z     azure-arm.vhd: Using default container name: NavWebApplicationContainer
2024-05-29T08:03:09.7540550Z     azure-arm.vhd: Copy files to WWW root C:\inetpub\wwwroot\BC
2024-05-29T08:03:10.6439815Z     azure-arm.vhd: Create the application pool BC
2024-05-29T08:03:11.8524462Z     azure-arm.vhd: Create website: NavWebApplicationContainer without SSL
2024-05-29T08:03:11.8528690Z     azure-arm.vhd: Update configuration: navsettings.json
2024-05-29T08:03:12.9002553Z     azure-arm.vhd: Done Configuring Web Client
2024-05-29T08:03:12.9006931Z     azure-arm.vhd: Using license file 'c:\run\my\license.bclicense'
2024-05-29T08:03:39.2840939Z     azure-arm.vhd: Import License
2024-05-29T08:03:39.2845334Z     azure-arm.vhd: Creating http download site
2024-05-29T08:03:39.2850733Z     azure-arm.vhd: Setting SA Password and enabling SA
2024-05-29T08:03:41.3942956Z     azure-arm.vhd: Creating admin as SQL User and add to sysadmin
2024-05-29T08:03:45.5818812Z     azure-arm.vhd: Creating SUPER user
2024-05-29T08:04:03.4917671Z     azure-arm.vhd: Enable PSRemoting and setup user for winrm
2024-05-29T08:04:04.5608630Z     azure-arm.vhd: Creating self-signed certificate for winrm
2024-05-29T08:04:04.5613986Z     azure-arm.vhd: Container IP Address: 172.18.153.83
2024-05-29T08:04:04.5618901Z     azure-arm.vhd: Container Hostname  : latest
2024-05-29T08:04:04.5623896Z     azure-arm.vhd: Container Dns Name  : latest
2024-05-29T08:04:04.5638124Z     azure-arm.vhd: Web Client          : http://latest/BC/
2024-05-29T08:04:04.5639106Z     azure-arm.vhd: Dev. Server         : http://latest
2024-05-29T08:04:04.5642919Z     azure-arm.vhd: Dev. ServerInstance : BC
2024-05-29T08:04:04.5647956Z     azure-arm.vhd: Setting latest to 172.18.153.83 in host hosts file
2024-05-29T08:04:04.5656595Z     azure-arm.vhd:
2024-05-29T08:04:04.5661331Z     azure-arm.vhd: Files:
2024-05-29T08:04:04.5667067Z     azure-arm.vhd: http://latest:8080/ALLanguage.vsix
2024-05-29T08:04:04.5667495Z     azure-arm.vhd:
2024-05-29T08:04:04.5674780Z     azure-arm.vhd: Container Total Physical Memory is 32.0Gb
2024-05-29T08:04:04.5679868Z     azure-arm.vhd: Container Free Physical Memory is 25.9Gb
2024-05-29T08:04:04.5680258Z     azure-arm.vhd:
2024-05-29T08:04:04.5684706Z     azure-arm.vhd: Initialization took 81 seconds
2024-05-29T08:04:04.5691981Z     azure-arm.vhd: Ready for connections!
2024-05-29T08:04:07.9887724Z     azure-arm.vhd: Reading CustomSettings.config from latest
2024-05-29T08:04:07.9891855Z     azure-arm.vhd: Creating Desktop Shortcuts for latest
2024-05-29T08:04:10.7407873Z     azure-arm.vhd: Skipping app 'C:\Applications\TestFramework\TestLibraries\permissions mock\Microsoft_Permissions Mock.app' as it is already installed
2024-05-29T08:04:10.7412429Z     azure-arm.vhd: Skipping app 'C:\Applications\TestFramework\TestRunner\Microsoft_Test Runner.app' as it is already installed
2024-05-29T08:04:10.7425380Z     azure-arm.vhd: Skipping app 'C:\Applications\TestFramework\TestLibraries\Any\Microsoft_Any.app' as it is already installed
2024-05-29T08:04:10.7426421Z     azure-arm.vhd: Skipping app 'C:\Applications\TestFramework\TestLibraries\Assert\Microsoft_Library Assert.app' as it is already installed
2024-05-29T08:04:10.7436104Z     azure-arm.vhd: Skipping app 'C:\Applications\TestFramework\TestLibraries\permissions mock\Microsoft_Permissions Mock.app' as it is already installed
2024-05-29T08:04:10.7437228Z     azure-arm.vhd: Skipping app 'C:\Applications\TestFramework\TestLibraries\Variable Storage\Microsoft_Library Variable Storage.app' as it is already installed
2024-05-29T08:04:10.7445973Z     azure-arm.vhd: Skipping app 'C:\Applications\system application\test\Microsoft_System Application Test Library.app' as it is already installed
2024-05-29T08:04:10.7452034Z     azure-arm.vhd: Skipping app 'C:\Applications\BusinessFoundation\Test\Microsoft_Business Foundation Test Libraries.app' as it is already installed
2024-05-29T08:04:10.7461896Z     azure-arm.vhd: Skipping app 'C:\Applications\BaseApp\Test\Microsoft_Tests-TestLibraries.app' as it is already installed
2024-05-29T08:04:10.7463176Z     azure-arm.vhd: TestToolkit successfully imported
2024-05-29T08:04:11.7599601Z     azure-arm.vhd: Cleanup old dotnet core assemblies
2024-05-29T08:04:11.7605384Z     azure-arm.vhd: Container latest successfully created
2024-05-29T08:04:11.7609908Z     azure-arm.vhd:
2024-05-29T08:04:11.7613926Z     azure-arm.vhd: Use:
2024-05-29T08:04:11.7623099Z     azure-arm.vhd: Get-BcContainerEventLog -containerName latest to retrieve a snapshot of the event log from the container
2024-05-29T08:04:11.7630422Z     azure-arm.vhd: Get-BcContainerDebugInfo -containerName latest to get debug information about the container
2024-05-29T08:04:11.7635167Z     azure-arm.vhd: Enter-BcContainer -containerName latest to open a PowerShell prompt inside the container
2024-05-29T08:04:11.7645249Z     azure-arm.vhd: Remove-BcContainer -containerName latest to remove the container again
2024-05-29T08:04:11.7645923Z     azure-arm.vhd: docker logs latest to retrieve information about URL's again
iti-arkadiusz-maciejewski commented 5 months ago

I checked locally on my PC and internally via pipeline - Business Foundation app is published, synced and installed (otherwise Base Application also wouldn't be installed) and the app file is present in the container, just not in symbols folder

freddydk commented 5 months ago

Will try to create the same container and test

freddydk commented 5 months ago

What is this? artifactUrl: https://itibcartifacts.blob.core.windows.net/latest/24.1.18927.20018

Are you copying Business Central artifacts to your own storage account? That is definitely not recommended You also don't keep the same structure of the URL, which is used in various locations:

/type/version/country

Which leads to my next question: What localization is this?

It would help a lot if you could include the full script used to create the container and to repro the problem - it takes a lot of time for me to troubleshoot things, which might be caused by a setup that I cannot even reproduce.

freddydk commented 5 months ago

Are you using onprem artifacts?