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

AL Validation with Previous Apps is failing #1596

Closed gunnargestsson closed 3 years ago

gunnargestsson commented 3 years ago

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

Describe the issue

Executing AL Validation as a part of a build pipeline:

  _____                               _                
 |  __ \                             | |               
 | |__) |_ _ _ __ __ _ _ __ ___   ___| |_ ___ _ __ ___ 
 |  ___/ _` | '__/ _` | '_ ` _ \ / _ \ __/ _ \ '__/ __|
 | |  | (_| | | | (_| | | | | | |  __/ |_  __/ |  \__ \
 |_|   \__,_|_|  \__,_|_| |_| |_|\___|\__\___|_|  |___/

Container name               bcserver
Image name                   ci
Credential                   admin/Nysy8477
License file                 Specified
MemoryLimit                  8G
validateVersion              
validateCurrent              True
validateNextMinor            False
validateNextMajor            False
Sas***                     Not Specified
countries                    is,us,fi,dk,se,no,ca,gb
validateCountries            is,us,fi,dk,se,no,ca,gb
affixes                      O4N
supportedCountries           is,se
vsixFile                     
Install Apps
- None
Previous Apps
- https://365bcfiles.blob.core.windows.net/artifacts/gunnargestsson/glsourcenames/AL/Objects4NAV_GL Source Names_5.2.3.0.app
Apps
- F:\agent\_work\12\a\AL\Objects4NAV_GL Source Names_17.2.7.0.app

**Scripts used to create container and cause the issue**
    Run-AlValidation @parameters `
        -apps $apps `
        -affixes $validation.affixes `
        -countries $validation.countries `
        -supportedCountries $validation.supportedCountries `
        -validateCurrent:($version -eq "current") `
        -validateNextMinor:($version -eq "nextminor") `
        -validateNextMajor:($version -eq "nextmajor") `
        -failOnError 

**Full output of scripts**

{
    "name":  "Run-AlCops RuleSet",
    "description":  "Generated by Run-AlCops",
    "includedRuleSets":  [
                             {
                                 "path":  "C:\\ProgramData\\BcContainerHelper\\c7a7aec8-e5ca-48e6-8f64-7df45847be42\\appsource.default.ruleset.json",
                                 "action":  "Default"
                             }
                         ]
}
Using Symbols Folder: C:\ProgramData\BcContainerHelper\ef4cfd0e-2d99-4a42-a0c6-3d538cbdcad0
Copying Microsoft_Application_17.2.19367.20585.app from Container
Copying Microsoft_Base Application_17.2.19367.20585.app from Container
Copying Microsoft_System Application_17.2.19367.20585.app from Container
Downloading symbols: Microsoft_System_17.0.19353.20441.app
Url : http://172.30.61.219:7049/BC/dev/packages?publisher=Microsoft&appName=System&versionText=17.0.0.0&tenant=default
Compiling...
.\alc.exe /project:"C:\ProgramData\BcContainerHelper\c7a7aec8-e5ca-48e6-8f64-7df45847be42" /packagecachepath:"C:\ProgramData\BcContainerHelper\ef4cfd0e-2d99-4a42-a0c6-3d538cbdcad0" /out:"C:\ProgramData\BcContainerHelper\c7a7aec8-e5ca-48e6-8f64-7df45847be42\Objects4NAV_GL Source Names_17.2.7.0.app" /analyzer:C:\build\vsix\extension\bin\Analyzers\Microsoft.Dynamics.Nav.AppSourceCop.dll /ruleset:C:\ProgramData\BcContainerHelper\c7a7aec8-e5ca-48e6-8f64-7df45847be42\ruleset.json /assemblyprobingpaths:"C:\Program Files (x86)\Microsoft Dynamics NAV\170\RoleTailored Client","C:\Program Files\Microsoft Dynamics NAV\170\Service","C:\Program Files (x86)\Open XML SDK\V2.5\lib","c:\Windows\Microsoft.NET\Assembly","C:\Test Assemblies\Mock Assemblies"
Microsoft (R) AL Compiler version 6.1.5.47101
Copyright (C) Microsoft Corporation. All rights reserved

Compilation started for project 'G/L Source Names' containing '41' files at '19:34:10.410'.

C:\ProgramData\BcContainerHelper\c7a7aec8-e5ca-48e6-8f64-7df45847be42\AppSourceCop.json(1,1): error AS0003: The version '5.2.3.0' of the extension with publisher 'Objects4NAV' and name 'G/L Source Names' could not be found in the baseline package cache folder. If you do not want to validate breaking changes, remove the property 'version' from the AppSourceCop.json.

Compilation ended at '19:34:25.553'.

Unexpected error while validating app. Error is: App generation failed
at Compile-AppInBcContainer, C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\1.0.19\AppHandling\Compile-AppInNavContainer.ps1: line 473
at <ScriptBlock>, C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\1.0.19\AppHandling\Run-AlCops.ps1: line 68
at <ScriptBlock>, C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\1.0.19\AppHandling\Run-AlCops.ps1: line 208
at Run-AlCops, C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\1.0.19\AppHandling\Run-AlCops.ps1: line 110
at <ScriptBlock>, C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\1.0.19\AppHandling\Run-AlValidation.ps1: line 513
at <ScriptBlock>, C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\1.0.19\AppHandling\Run-AlValidation.ps1: line 496
at <ScriptBlock>, C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\1.0.19\AppHandling\Run-AlValidation.ps1: line 411
at <ScriptBlock>, C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\1.0.19\AppHandling\Run-AlValidation.ps1: line 385
at Run-AlValidation, C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\1.0.19\AppHandling\Run-AlValidation.ps1: line 383
at <ScriptBlock>, F:\agent\_work\12\s\Template\scripts\Validate-App.ps1: line 78
at <ScriptBlock>, F:\agent\_work\_temp\4880f928-63db-4e86-9c9b-ad35f0fed480.ps1: line 3
at <ScriptBlock>, <No file>: line 1

Additional context Source of build

https://github.com/gunnargestsson/glsourcenames

gunnargestsson commented 3 years ago

And the above error is not breaking the pipeline.

freddydk commented 3 years ago

Please include the full output - I cannot see the important parts.

gunnargestsson commented 3 years ago
2021-01-04T19:10:21.6833930Z ##[section]Starting: Validate App
2021-01-04T19:10:21.7208490Z ==============================================================================
2021-01-04T19:10:21.7209605Z Task         : PowerShell
2021-01-04T19:10:21.7210592Z Description  : Run a PowerShell script on Linux, macOS, or Windows
2021-01-04T19:10:21.7211509Z Version      : 2.179.1
2021-01-04T19:10:21.7213149Z Author       : Microsoft Corporation
2021-01-04T19:10:21.7214438Z Help         : https://docs.microsoft.com/azure/devops/pipelines/tasks/utility/powershell
2021-01-04T19:10:21.7215804Z ==============================================================================
2021-01-04T19:10:23.9422649Z Generating script.
2021-01-04T19:10:23.9557788Z Formatted command: . 'F:\agent\_work\12\s\Template\scripts\Validate-App.ps1' -artifactsFolder "F:\agent\_work\12\a" -appFolders "AL" -branchName "refs/heads/master" -version current
2021-01-04T19:10:24.0387347Z ========================== Starting Command Output ===========================
2021-01-04T19:10:24.0994047Z ##[command]"C:\windows\System32\WindowsPowerShell\v1.0\powershell.exe" -NoLogo -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -Command ". 'F:\agent\_work\_temp\4880f928-63db-4e86-9c9b-ad35f0fed480.ps1'"
2021-01-04T19:10:24.7561241Z Validating apps for branch refs/heads/master...
2021-01-04T19:10:25.1161112Z Running AL Validation...
2021-01-04T19:10:25.6719437Z BcContainerHelper version 1.0.19
2021-01-04T19:10:27.6616208Z App File: F:\agent\_work\12\a\AL\Objects4NAV_GL Source Names_17.2.7.0.app
2021-01-04T19:10:29.3335993Z   _____                               _                
2021-01-04T19:10:29.3362874Z  |  __ \                             | |               
2021-01-04T19:10:29.3391834Z  | |__) |_ _ _ __ __ _ _ __ ___   ___| |_ ___ _ __ ___ 
2021-01-04T19:10:29.3420828Z  |  ___/ _` | '__/ _` | '_ ` _ \ / _ \ __/ _ \ '__/ __|
2021-01-04T19:10:29.3450495Z  | |  | (_| | | | (_| | | | | | |  __/ |_  __/ |  \__ \
2021-01-04T19:10:29.3480544Z  |_|   \__,_|_|  \__,_|_| |_| |_|\___|\__\___|_|  |___/
2021-01-04T19:10:29.3490035Z 
2021-01-04T19:10:29.3521561Z Container name               bcserver
2021-01-04T19:10:29.3552138Z Image name                   ci
2021-01-04T19:10:29.3828005Z Credential                   admin/Nysy8477
2021-01-04T19:10:29.3920683Z License file                 Specified
2021-01-04T19:10:29.3979794Z MemoryLimit                  8G
2021-01-04T19:10:29.4020243Z validateVersion              
2021-01-04T19:10:29.4072897Z validateCurrent              True
2021-01-04T19:10:29.4138105Z validateNextMinor            False
2021-01-04T19:10:29.4198883Z validateNextMajor            False
2021-01-04T19:10:29.4267403Z Sas***                     Not Specified
2021-01-04T19:10:29.4373746Z countries                    is,us,fi,dk,se,no,ca,gb
2021-01-04T19:10:29.4433143Z validateCountries            is,us,fi,dk,se,no,ca,gb
2021-01-04T19:10:29.4491715Z affixes                      O4N
2021-01-04T19:10:29.4551995Z supportedCountries           is,se
2021-01-04T19:10:29.4595644Z vsixFile                     
2021-01-04T19:10:29.4630786Z Install Apps
2021-01-04T19:10:29.4665327Z - None
2021-01-04T19:10:29.4697107Z Previous Apps
2021-01-04T19:10:29.4724702Z - https://365bcfiles.blob.core.windows.net/artifacts/gunnargestsson/glsourcenames/AL/Objects4NAV_GL Source Names_5.2.3.0.app
2021-01-04T19:10:29.4759367Z Apps
2021-01-04T19:10:29.4793926Z - F:\agent\_work\12\a\AL\Objects4NAV_GL Source Names_17.2.7.0.app
2021-01-04T19:10:29.4969493Z 
2021-01-04T19:10:29.5000343Z   _____       _ _ _                                          _        _                            
2021-01-04T19:10:29.5030639Z  |  __ \     | | (_)                                        (_)      (_)                           
2021-01-04T19:10:29.5057595Z  | |__) |   _| | |_ _ __   __ _    __ _  ___ _ __   ___ _ __ _  ___   _ _ __ ___   __ _  __ _  ___ 
2021-01-04T19:10:29.5087207Z  |  ___/ | | | | | | '_ \ / _` |  / _` |/ _ \ '_ \ / _ \ '__| |/ __| | | '_ ` _ \ / _` |/ _` |/ _ \
2021-01-04T19:10:29.5114512Z  | |   | |_| | | | | | | | (_| | | (_| |  __/ | | |  __/ |  | | (__  | | | | | | | (_| | (_| |  __/
2021-01-04T19:10:29.5146715Z  |_|    \__,_|_|_|_|_| |_|\__, |  \__, |\___|_| |_|\___|_|  |_|\___| |_|_| |_| |_|\__,_|\__, |\___|
2021-01-04T19:10:29.5175194Z                            __/ |   __/ |                                                 __/ |     
2021-01-04T19:10:29.5189837Z                           |___/   |___/                                                 |___/      
2021-01-04T19:10:29.5197912Z 
2021-01-04T19:10:29.5231971Z Pulling mcr.microsoft.com/businesscentral:10.0.17763.1637
2021-01-04T19:10:30.5913644Z 
2021-01-04T19:10:30.5971505Z Pulling generic image took 1 seconds
2021-01-04T19:10:30.6231565Z   _____       _                      _                         _   _  __           _       
2021-01-04T19:10:30.6261415Z  |  __ \     | |                    (_)                       | | (_)/ _|         | |      
2021-01-04T19:10:30.6296935Z  | |  | | ___| |_ ___ _ __ _ __ ___  _ _ __   ___    __ _ _ __| |_ _| |_ __ _  ___| |_ ___ 
2021-01-04T19:10:30.6328644Z  | |  | |/ _ \ __/ _ \ '__| '_ ` _ \| | '_ \ / _ \  / _` | '__| __| |  _/ _` |/ __| __/ __|
2021-01-04T19:10:30.6359271Z  | |__| |  __/ |_  __/ |  | | | | | | | | | |  __/ | (_| | |  | |_| | || (_| | (__| |_\__ \
2021-01-04T19:10:30.6387857Z  |_____/ \___|\__\___|_|  |_| |_| |_|_|_| |_|\___|  \__,_|_|   \__|_|_| \__,_|\___|\__|___/
2021-01-04T19:10:30.6419809Z                                                                                            
2021-01-04T19:10:50.5252805Z Found https://bcartifacts.azureedge.net/sandbox/17.2.19367.20595/is
2021-01-04T19:11:11.3253804Z Found https://bcartifacts.azureedge.net/sandbox/17.2.19367.20595/us
2021-01-04T19:11:32.5635887Z Found https://bcartifacts.azureedge.net/sandbox/17.2.19367.20585/fi
2021-01-04T19:11:56.5895346Z Found https://bcartifacts.azureedge.net/sandbox/17.2.19367.20585/dk
2021-01-04T19:12:16.1584421Z Found https://bcartifacts.azureedge.net/sandbox/17.2.19367.20595/se
2021-01-04T19:12:37.4207877Z Found https://bcartifacts.azureedge.net/sandbox/17.2.19367.20595/no
2021-01-04T19:12:57.8670434Z Found https://bcartifacts.azureedge.net/sandbox/17.2.19367.20585/ca
2021-01-04T19:13:18.2758583Z Found https://bcartifacts.azureedge.net/sandbox/17.2.19367.20595/gb
2021-01-04T19:13:18.4547550Z Using https://bcartifacts.azureedge.net/sandbox/17.2.19367.20585/is
2021-01-04T19:13:18.4591833Z 
2021-01-04T19:13:18.4625719Z    _____                _   _                               _        _                 
2021-01-04T19:13:18.4655342Z   / ____|              | | (_)                             | |      (_)                
2021-01-04T19:13:18.4686931Z  | |     _ __ ___  __ _| |_ _ _ __   __ _    ___ ___  _ __ | |_ __ _ _ _ __   ___ _ __ 
2021-01-04T19:13:18.4718227Z  | |    | '__/ _ \/ _` | __| | '_ \ / _` |  / __/ _ \| '_ \| __/ _` | | '_ \ / _ \ '__|
2021-01-04T19:13:18.4747827Z  | |____| | |  __/ (_| | |_| | | | | (_| | | (__ (_) | | | | |_ (_| | | | | |  __/ |   
2021-01-04T19:13:18.4774953Z   \_____|_|  \___|\__,_|\__|_|_| |_|\__, |  \___\___/|_| |_|\__\__,_|_|_| |_|\___|_|   
2021-01-04T19:13:18.4805368Z                                      __/ |                                             
2021-01-04T19:13:18.4835740Z                                     |___/                                              
2021-01-04T19:13:18.4845306Z 
2021-01-04T19:13:18.4879236Z Creating container for country is
2021-01-04T19:13:19.9381134Z BcContainerHelper is version 1.0.19
2021-01-04T19:13:19.9409010Z BcContainerHelper is running as administrator
2021-01-04T19:13:19.9469498Z Host is Microsoft Windows Server 2019 Datacenter - ltsc2019
2021-01-04T19:13:20.4108413Z Docker Client Version is 19.03.11
2021-01-04T19:13:20.4167577Z Docker Server Version is 19.03.11
2021-01-04T19:13:21.5345346Z Downloading application artifact /sandbox/17.2.19367.20585/is
2021-01-04T19:13:21.5824723Z Downloading C:\Users\svc.build\AppData\Local\Temp\2bdbd417-d3b0-4ec6-96a9-b43f9022a57c.zip
2021-01-04T19:14:23.7698721Z Unpacking application artifact to tmp folder using Expand-Archive
2021-01-04T19:14:55.6365387Z Downloading platform artifact /sandbox/17.2.19367.20585/platform
2021-01-04T19:14:55.6414591Z Downloading C:\Users\svc.build\AppData\Local\Temp\ff31cb5c-3498-4551-bbf1-ebd1fd8b8091.zip
2021-01-04T19:16:21.5977406Z Unpacking platform artifact to tmp folder using Expand-Archive
2021-01-04T19:21:19.6291764Z Downloading Prerequisite Components
2021-01-04T19:21:19.6534223Z Downloading c:\bcartifacts.cache\sandbox\17.2.19367.20585\platform\Prerequisite Components\Open XML SDK 2.5 for Microsoft Office\OpenXMLSDKv25.msi
2021-01-04T19:21:20.4521361Z Downloading c:\bcartifacts.cache\sandbox\17.2.19367.20585\platform\Prerequisite Components\IIS URL Rewrite Module\rewrite_2.0_rtw_x64.msi
2021-01-04T19:21:22.9766936Z Downloading c:\bcartifacts.cache\sandbox\17.2.19367.20585\platform\Prerequisite Components\DotNetCore\DotNetCore.1.0.4_1.1.1-WindowsHosting.exe
2021-01-04T19:21:43.1661037Z Fetching all docker images
2021-01-04T19:21:43.8111998Z ArtifactUrl and ImageName specified
2021-01-04T19:21:44.9964755Z Building image ci:sandbox-17.2.19367.20585-is based on mcr.microsoft.com/businesscentral:10.0.17763.1637 with https://bcartifacts.azureedge.net/sandbox/17.2.19367.20585/is
2021-01-04T19:21:45.0028539Z Pulling latest image mcr.microsoft.com/businesscentral:10.0.17763.1637
2021-01-04T19:21:46.1039908Z 10.0.17763.1637: Pulling from businesscentral
2021-01-04T19:21:46.5727386Z Generic Tag: 1.0.1.2
2021-01-04T19:21:47.0491993Z Container OS Version: 10.0.17763.1637 (ltsc2019)
2021-01-04T19:21:47.0529989Z Host OS Version: 10.0.17763.1637 (ltsc2019)
2021-01-04T19:21:47.0605332Z Using process isolation
2021-01-04T19:21:47.0807673Z Using license file ***
2021-01-04T19:21:47.0842762Z Downloading c:\bcartifacts.cache\zfhj5epk.0kx\my\license.flf
2021-01-04T19:21:47.4713365Z Files in c:\bcartifacts.cache\zfhj5epk.0kx\my:
2021-01-04T19:21:47.4858237Z - license.flf
2021-01-04T19:21:47.4966902Z Copying Platform Artifacts
2021-01-04T19:21:52.7590389Z Copying Database
2021-01-04T19:21:53.3770813Z Copying Licensefile
2021-01-04T19:21:53.4024960Z Copying ConfigurationPackages
2021-01-04T19:21:53.4572685Z Copying Extensions
2021-01-04T19:21:53.7657231Z Copying Applications.IS
2021-01-04T19:21:54.7250777Z c:\bcartifacts.cache\zfhj5epk.0kx
2021-01-04T19:22:33.0277342Z Sending build context to Docker daemon  1.855GB
2021-01-04T19:22:33.0288148Z 
2021-01-04T19:22:33.1969777Z Step 1/6 : FROM mcr.microsoft.com/businesscentral:10.0.17763.1637
2021-01-04T19:22:33.2001004Z  ---> 0f9096121e62
2021-01-04T19:22:33.2030571Z Step 2/6 : ENV DatabaseServer=localhost DatabaseInstance=SQLEXPRESS DatabaseName=CRONUS IsBcSandbox=Y artifactUrl=https://bcartifacts.azureedge.net/sandbox/17.2.19367.20585/is
2021-01-04T19:22:33.3429695Z  ---> Running in 02999860dc6d
2021-01-04T19:22:34.6134822Z Removing intermediate container 02999860dc6d
2021-01-04T19:22:34.6159705Z  ---> a275cafd5591
2021-01-04T19:22:34.6193076Z Step 3/6 : COPY my /run/
2021-01-04T19:22:35.7709811Z  ---> f726e205521c
2021-01-04T19:22:35.7734418Z Step 4/6 : COPY NAVDVD /NAVDVD/
2021-01-04T19:24:18.8970299Z  ---> 71f8f2a5d70a
2021-01-04T19:24:18.8996496Z Step 5/6 : RUN \Run\start.ps1 -installOnly
2021-01-04T19:24:18.9543763Z  ---> Running in fad14ed276e0
2021-01-04T19:24:24.9910125Z Using installer from C:\Run\150-new
2021-01-04T19:24:25.2241903Z Installing Business Central
2021-01-04T19:24:25.2480576Z Installing from DVD
2021-01-04T19:24:25.2519794Z Starting Local SQL Server
2021-01-04T19:24:32.8494829Z Starting Internet Information Server
2021-01-04T19:24:33.3687061Z Copying Service Tier Files
2021-01-04T19:24:36.4468890Z Copying PowerShell Scripts
2021-01-04T19:24:37.3660370Z Copying dependencies
2021-01-04T19:24:37.4185204Z Copying ReportBuilder
2021-01-04T19:24:37.6671357Z Importing PowerShell Modules
2021-01-04T19:24:37.9449450Z Determining Database Collation
2021-01-04T19:24:41.0531091Z Changing Database Server Collation to Icelandic_100_CS_AS
2021-01-04T19:25:32.6544665Z Restoring CRONUS Demo Database
2021-01-04T19:25:36.8158328Z Setting CompatibilityLevel for CRONUS on localhost\SQLEXPRESS
2021-01-04T19:25:39.1588705Z Modifying Business Central Service Tier Config File for Docker
2021-01-04T19:25:39.2221902Z Creating Business Central Service Tier
2021-01-04T19:25:39.4332658Z Installing SIP crypto provider: 'C:\Windows\System32\NavSip.dll'
2021-01-04T19:25:40.2468428Z Copying Web Client Files
2021-01-04T19:25:40.2484881Z Copying Client Files
2021-01-04T19:25:40.2503395Z Copying ModernDev Files
2021-01-04T19:25:40.2522221Z Copying additional files
2021-01-04T19:25:40.2546552Z Copying ConfigurationPackages
2021-01-04T19:25:40.2581436Z Copying Test Assemblies
2021-01-04T19:25:40.2613995Z Copying Extensions
2021-01-04T19:25:40.2645204Z Copying Applications
2021-01-04T19:25:40.2674609Z Copying Applications.IS
2021-01-04T19:25:40.2705626Z Starting Business Central Service Tier
2021-01-04T19:28:42.2357298Z Importing CRONUS license file
2021-01-04T19:28:43.5366349Z Stopping Business Central Service Tier
2021-01-04T19:28:43.8191416Z Installation took 259 seconds
2021-01-04T19:28:43.8260673Z Installation complete
2021-01-04T19:31:36.6543534Z Removing intermediate container fad14ed276e0
2021-01-04T19:31:36.6582397Z  ---> 973aa8f8e5c9
2021-01-04T19:31:36.6615448Z Step 6/6 : LABEL legal="http://go.microsoft.com/fwlink/?LinkId=837447"       created="202101041921"       nav=""       cu=""       country="IS"       version="17.2.19367.20585"       platform="17.0.19353.20441"
2021-01-04T19:31:36.8652949Z  ---> Running in ab497b115e3d
2021-01-04T19:31:37.9944575Z Removing intermediate container ab497b115e3d
2021-01-04T19:31:37.9969912Z  ---> f1ae1b3a762a
2021-01-04T19:31:39.5203047Z Successfully built f1ae1b3a762a
2021-01-04T19:31:39.5313616Z Successfully tagged ci:sandbox-17.2.19367.20585-is
2021-01-04T19:31:39.5713193Z Building image took 595 seconds
2021-01-04T19:31:41.5327320Z Using image ci:sandbox-17.2.19367.20585-is
2021-01-04T19:31:42.0016287Z Creating Container bcserver
2021-01-04T19:31:42.0226588Z Version: 17.2.19367.20585-IS
2021-01-04T19:31:42.0325310Z Style: sandbox
2021-01-04T19:31:42.0383304Z Multitenant: No
2021-01-04T19:31:42.0487762Z Platform: 17.0.19353.20441
2021-01-04T19:31:42.0557914Z Generic Tag: 1.0.1.2
2021-01-04T19:31:42.0627966Z Container OS Version: 10.0.17763.1637 (ltsc2019)
2021-01-04T19:31:42.0673477Z Host OS Version: 10.0.17763.1637 (ltsc2019)
2021-01-04T19:31:42.0844316Z Using process isolation
2021-01-04T19:31:42.1167972Z Using locale is-IS
2021-01-04T19:31:42.1446965Z Disabling the standard eventlog dump to container log every 2 seconds (use -dumpEventLog to enable)
2021-01-04T19:31:42.1477978Z Using license file ***
2021-01-04T19:31:42.1506257Z Downloading C:\ProgramData\BcContainerHelper\Extensions\bcserver\my\license.flf
2021-01-04T19:31:42.5838591Z Additional Parameters:
2021-01-04T19:31:42.5883594Z --env customNavSettings=EnableTaskScheduler=True
2021-01-04T19:31:42.5925128Z Files in C:\ProgramData\BcContainerHelper\Extensions\bcserver\my:
2021-01-04T19:31:42.5984115Z - AdditionalOutput.ps1
2021-01-04T19:31:42.6025051Z - license.flf
2021-01-04T19:31:42.6062185Z - MainLoop.ps1
2021-01-04T19:31:42.6097020Z - SetupVariables.ps1
2021-01-04T19:31:42.6184266Z - updatehosts.ps1
2021-01-04T19:31:42.6309033Z Creating container bcserver from image ci:sandbox-17.2.19367.20585-is
2021-01-04T19:31:43.2457251Z c85c1cc03592ab8dbe6f199b76726cedc89724b979ffc33949c238a0bd41e2aa
2021-01-04T19:31:46.8745378Z Waiting for container bcserver to be ready
2021-01-04T19:31:51.4792458Z Initializing...
2021-01-04T19:31:51.4816830Z Setting host.containerhelper.internal to 172.30.48.1 in container hosts file
2021-01-04T19:31:51.4843665Z Starting Container
2021-01-04T19:31:51.4873262Z Hostname is bcserver
2021-01-04T19:31:52.9767322Z PublicDnsName is bcserver
2021-01-04T19:31:52.9800013Z Using NavUserPassword Authentication
2021-01-04T19:31:56.0244805Z Starting Local SQL Server
2021-01-04T19:31:57.5300152Z Starting Internet Information Server
2021-01-04T19:32:00.5156939Z Creating Self Signed Certificate
2021-01-04T19:32:00.5187162Z Self Signed Certificate Thumbprint 5D44FB282CBF8D7EFA1611DA0CB308A9C7D7D12D
2021-01-04T19:32:00.5218997Z Modifying Service Tier Config File with Instance Specific Settings
2021-01-04T19:32:00.5251011Z Modifying Service Tier Config File with settings from environment variable
2021-01-04T19:32:00.5279314Z Setting EnableTaskScheduler to True
2021-01-04T19:33:12.2141686Z Starting Service Tier
2021-01-04T19:33:12.2166328Z Registering event sources
2021-01-04T19:33:21.9827324Z Creating DotNetCore Web Server Instance
2021-01-04T19:33:21.9919069Z Enabling Financials User Experience
2021-01-04T19:33:21.9939882Z Using license file 'c:\run\my\license.flf'
2021-01-04T19:33:23.5749622Z Import License
2021-01-04T19:33:24.9640976Z Creating http download site
2021-01-04T19:33:26.6205637Z Setting SA Password and enabling SA
2021-01-04T19:33:28.2442639Z Creating admin as SQL User and add to sysadmin
2021-01-04T19:33:41.7404302Z Creating SUPER user
2021-01-04T19:33:41.7431977Z Container IP Address: 172.30.61.219
2021-01-04T19:33:41.7460374Z Container Hostname  : bcserver
2021-01-04T19:33:41.7491050Z Container Dns Name  : bcserver
2021-01-04T19:33:41.7523867Z Web Client          : http://bcserver/BC/
2021-01-04T19:33:41.7551842Z Dev. Server         : http://bcserver
2021-01-04T19:33:41.7580063Z Dev. ServerInstance : BC
2021-01-04T19:33:41.7613054Z Setting bcserver to 172.30.61.219 in host hosts file
2021-01-04T19:33:41.7623247Z 
2021-01-04T19:33:41.7655796Z Files:
2021-01-04T19:33:41.7690144Z http://bcserver:8080/ALLanguage.vsix
2021-01-04T19:33:41.7700820Z 
2021-01-04T19:33:41.7734474Z Container Total Physical Memory is 32.0Gb
2021-01-04T19:33:41.7764461Z Container Free Physical Memory is 16.6Gb
2021-01-04T19:33:41.7771555Z 
2021-01-04T19:33:41.7804582Z Initialization took 112 seconds
2021-01-04T19:33:41.7835835Z Ready for connections!
2021-01-04T19:33:41.7865827Z Reading CustomSettings.config from bcserver
2021-01-04T19:33:44.1126752Z Creating Desktop Shortcuts for bcserver
2021-01-04T19:33:44.4464144Z Container bcserver successfully created
2021-01-04T19:33:44.4473521Z 
2021-01-04T19:33:44.4511288Z Use:
2021-01-04T19:33:44.4558475Z Get-BcContainerEventLog -containerName bcserver to retrieve a snapshot of the event log from the container
2021-01-04T19:33:44.4615812Z Get-BcContainerDebugInfo -containerName bcserver to get debug information about the container
2021-01-04T19:33:44.4682477Z Enter-BcContainer -containerName bcserver to open a PowerShell prompt inside the container
2021-01-04T19:33:44.4743777Z Remove-BcContainer -containerName bcserver to remove the container again
2021-01-04T19:33:44.4784026Z docker logs bcserver to retrieve information about URL's again
2021-01-04T19:33:44.5104963Z 
2021-01-04T19:33:44.5136271Z Creating container took 1226 seconds
2021-01-04T19:33:44.5186753Z   _____                   _                                    _____                           _____            
2021-01-04T19:33:44.5219102Z  |  __ \                 (_)                 /\               / ____|                         / ____|           
2021-01-04T19:33:44.5252561Z  | |__) |   _ _ __  _ __  _ _ __   __ _     /  \   _ __  _ __| (___   ___  _   _ _ __ ___ ___| |     ___  _ __  
2021-01-04T19:33:44.5284275Z  |  _  / | | | '_ \| '_ \| | '_ \ / _` |   / /\ \ | '_ \| '_ \\___ \ / _ \| | | | '__/ __/ _ \ |    / _ \| '_ \ 
2021-01-04T19:33:44.5315751Z  | | \ \ |_| | | | | | | | | | | | (_| |  / ____ \| |_) | |_) |___) | (_) | |_| | | | (__  __/ |____ (_) | |_) |
2021-01-04T19:33:44.5347893Z  |_|  \_\__,_|_| |_|_| |_|_|_| |_|\__, | /_/    \_\ .__/| .__/_____/ \___/ \__,_|_|  \___\___|\_____\___/| .__/ 
2021-01-04T19:33:44.5380536Z                                    __/ |          | |   | |                                              | |    
2021-01-04T19:33:44.5409977Z                                   |___/           |_|   |_|                                              |_|    
2021-01-04T19:33:45.4967087Z Copying previous apps to packages folder
2021-01-04T19:33:45.5040219Z Downloading C:\Users\svc.build\AppData\Local\Temp\d251ae51-1698-4d7c-8caf-80dc2c99fa2a
2021-01-04T19:33:47.1119904Z Extracting C:\ProgramData\BcContainerHelper\ef4cfd0e-2d99-4a42-a0c6-3d538cbdcad0\d251ae51-1698-4d7c-8caf-80dc2c99fa2a
2021-01-04T19:33:47.4245659Z Objects4NAV_G/L Source Names = 5.2.3.0
2021-01-04T19:33:48.0301902Z Extracting C:\ProgramData\BcContainerHelper\8406273c-93d7-43bf-9242-9830bc390d37\Objects4NAV_GL Source Names_17.2.7.0.app
2021-01-04T19:33:48.5114443Z Analyzing: Objects4NAV_GL Source Names_17.2.7.0.app
2021-01-04T19:33:48.5138428Z Using affixes: O4N
2021-01-04T19:33:48.5184371Z Using supportedCountries: is,se
2021-01-04T19:33:48.5275347Z Using previous app: Objects4NAV_G/L Source Names_5.2.3.0.app
2021-01-04T19:33:48.5394857Z Downloading C:\ProgramData\BcContainerHelper\c7a7aec8-e5ca-48e6-8f64-7df45847be42\appsource.default.ruleset.json
2021-01-04T19:33:48.7598705Z AppSourceCop.json content:
2021-01-04T19:33:48.7635676Z {
2021-01-04T19:33:48.7677648Z     "Publisher":  "Objects4NAV",
2021-01-04T19:33:48.7713555Z     "Version":  "5.2.3.0",
2021-01-04T19:33:48.7748015Z     "Name":  "G/L Source Names",
2021-01-04T19:33:48.7781146Z     "mandatoryAffixes":  [
2021-01-04T19:33:48.7818250Z                              "O4N"
2021-01-04T19:33:48.7857186Z                          ],
2021-01-04T19:33:48.7892141Z     "supportedCountries":  [
2021-01-04T19:33:48.7923343Z                                "is",
2021-01-04T19:33:48.7958860Z                                "se"
2021-01-04T19:33:48.7996502Z                            ]
2021-01-04T19:33:48.8028647Z }
2021-01-04T19:33:48.8061710Z Ruleset.json content:
2021-01-04T19:33:48.8092985Z {
2021-01-04T19:33:48.8126085Z     "name":  "Run-AlCops RuleSet",
2021-01-04T19:33:48.8159392Z     "description":  "Generated by Run-AlCops",
2021-01-04T19:33:48.8188701Z     "includedRuleSets":  [
2021-01-04T19:33:48.8219019Z                              {
2021-01-04T19:33:48.8249045Z                                  "path":  "C:\\ProgramData\\BcContainerHelper\\c7a7aec8-e5ca-48e6-8f64-7df45847be42\\appsource.default.ruleset.json",
2021-01-04T19:33:48.8277514Z                                  "action":  "Default"
2021-01-04T19:33:48.8309110Z                              }
2021-01-04T19:33:48.8341551Z                          ]
2021-01-04T19:33:48.8372951Z }
2021-01-04T19:33:51.7364556Z Using Symbols Folder: C:\ProgramData\BcContainerHelper\ef4cfd0e-2d99-4a42-a0c6-3d538cbdcad0
2021-01-04T19:33:51.9859265Z Copying Microsoft_Application_17.2.19367.20585.app from Container
2021-01-04T19:33:52.0188425Z Copying Microsoft_Base Application_17.2.19367.20585.app from Container
2021-01-04T19:33:52.1075588Z Copying Microsoft_System Application_17.2.19367.20585.app from Container
2021-01-04T19:34:06.6424973Z Downloading symbols: Microsoft_System_17.0.19353.20441.app
2021-01-04T19:34:06.6487528Z Url : http://172.30.61.219:7049/BC/dev/packages?publisher=Microsoft&appName=System&versionText=17.0.0.0&tenant=default
2021-01-04T19:34:09.2176782Z Compiling...
2021-01-04T19:34:09.2466320Z .\alc.exe /project:"C:\ProgramData\BcContainerHelper\c7a7aec8-e5ca-48e6-8f64-7df45847be42" /packagecachepath:"C:\ProgramData\BcContainerHelper\ef4cfd0e-2d99-4a42-a0c6-3d538cbdcad0" /out:"C:\ProgramData\BcContainerHelper\c7a7aec8-e5ca-48e6-8f64-7df45847be42\Objects4NAV_GL Source Names_17.2.7.0.app" /analyzer:C:\build\vsix\extension\bin\Analyzers\Microsoft.Dynamics.Nav.AppSourceCop.dll /ruleset:C:\ProgramData\BcContainerHelper\c7a7aec8-e5ca-48e6-8f64-7df45847be42\ruleset.json /assemblyprobingpaths:"C:\Program Files (x86)\Microsoft Dynamics NAV\170\RoleTailored Client","C:\Program Files\Microsoft Dynamics NAV\170\Service","C:\Program Files (x86)\Open XML SDK\V2.5\lib","c:\Windows\Microsoft.NET\Assembly","C:\Test Assemblies\Mock Assemblies"
2021-01-04T19:34:25.6540760Z Microsoft (R) AL Compiler version 6.1.5.47101
2021-01-04T19:34:25.6600623Z Copyright (C) Microsoft Corporation. All rights reserved
2021-01-04T19:34:25.6617662Z 
2021-01-04T19:34:25.6654592Z Compilation started for project 'G/L Source Names' containing '41' files at '19:34:10.410'.
2021-01-04T19:34:25.6665204Z 
2021-01-04T19:34:25.6695304Z C:\ProgramData\BcContainerHelper\c7a7aec8-e5ca-48e6-8f64-7df45847be42\AppSourceCop.json(1,1): error AS0003: The version '5.2.3.0' of the extension with publisher 'Objects4NAV' and name 'G/L Source Names' could not be found in the baseline package cache folder. If you do not want to validate breaking changes, remove the property 'version' from the AppSourceCop.json.
2021-01-04T19:34:25.6717829Z 
2021-01-04T19:34:25.6775185Z Compilation ended at '19:34:25.553'.
2021-01-04T19:34:25.6786924Z 
2021-01-04T19:34:25.7592567Z Unexpected error while validating app. Error is: App generation failed
2021-01-04T19:34:25.7639046Z at Compile-AppInBcContainer, C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\1.0.19\AppHandling\Compile-AppInNavContainer.ps1: line 473
2021-01-04T19:34:25.7675259Z at <ScriptBlock>, C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\1.0.19\AppHandling\Run-AlCops.ps1: line 68
2021-01-04T19:34:25.7709329Z at <ScriptBlock>, C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\1.0.19\AppHandling\Run-AlCops.ps1: line 208
2021-01-04T19:34:25.7746282Z at Run-AlCops, C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\1.0.19\AppHandling\Run-AlCops.ps1: line 110
2021-01-04T19:34:25.7780285Z at <ScriptBlock>, C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\1.0.19\AppHandling\Run-AlValidation.ps1: line 513
2021-01-04T19:34:25.7814087Z at <ScriptBlock>, C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\1.0.19\AppHandling\Run-AlValidation.ps1: line 496
2021-01-04T19:34:25.7843759Z at <ScriptBlock>, C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\1.0.19\AppHandling\Run-AlValidation.ps1: line 411
2021-01-04T19:34:25.7876465Z at <ScriptBlock>, C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\1.0.19\AppHandling\Run-AlValidation.ps1: line 385
2021-01-04T19:34:25.7903959Z at Run-AlValidation, C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\1.0.19\AppHandling\Run-AlValidation.ps1: line 383
2021-01-04T19:34:25.7933714Z at <ScriptBlock>, F:\agent\_work\12\s\Template\scripts\Validate-App.ps1: line 78
2021-01-04T19:34:25.7964242Z at <ScriptBlock>, F:\agent\_work\_temp\4880f928-63db-4e86-9c9b-ad35f0fed480.ps1: line 3
2021-01-04T19:34:25.7995329Z at <ScriptBlock>, <No file>: line 1
2021-01-04T19:34:25.8006062Z 
2021-01-04T19:34:25.8028811Z   _____                           _                _____            _        _                 
2021-01-04T19:34:25.8058258Z  |  __ \                         (_)              / ____|          | |      (_)                
2021-01-04T19:34:25.8083922Z  | |__) |___ _ __ ___   _____   ___ _ __   __ _  | |     ___  _ __ | |_ __ _ _ _ __   ___ _ __ 
2021-01-04T19:34:25.8114002Z  |  _  // _ \ '_ ` _ \ / _ \ \ / / | '_ \ / _` | | |    / _ \| '_ \| __/ _` | | '_ \ / _ \ '__|
2021-01-04T19:34:25.8142556Z  | | \ \  __/ | | | | | (_) \ V /| | | | | (_| | | |____ (_) | | | | |_ (_| | | | | |  __/ |   
2021-01-04T19:34:25.8171985Z  |_|  \_\___|_| |_| |_|\___/ \_/ |_|_| |_|\__, |  \_____\___/|_| |_|\__\__,_|_|_| |_|\___|_|   
2021-01-04T19:34:25.8202349Z                                            __/ |                                               
2021-01-04T19:34:25.8233495Z                                           |___/                                                
2021-01-04T19:34:25.8243505Z 
2021-01-04T19:34:28.8512537Z Removing container bcserver
2021-01-04T19:34:31.6960155Z Removing bcserver from host hosts file
2021-01-04T19:34:31.8395739Z Removing bcserver-* from host hosts file
2021-01-04T19:34:31.9097049Z Removing C:\ProgramData\BcContainerHelper\Extensions\bcserver
2021-01-04T19:34:31.9537187Z 
2021-01-04T19:34:31.9566158Z Removing container took 6 seconds
2021-01-04T19:34:31.9576597Z 
2021-01-04T19:34:31.9607027Z AL Validation finished in 1441 seconds
2021-01-04T19:34:31.9638822Z  __      __   _ _     _       _   _               _____                _ _       
2021-01-04T19:34:31.9667543Z  \ \    / /  | (_)   | |     | | (_)             |  __ \              | | |      
2021-01-04T19:34:31.9694803Z   \ \  / /_ _| |_  __| | __ _| |_ _  ___  _ __   | |__) |___ ___ _   _| | |_ ___ 
2021-01-04T19:34:31.9727293Z    \ \/ / _` | | |/ _` |/ _` | __| |/ _ \| '_ \  |  _  // _ \ __| | | | | __/ __|
2021-01-04T19:34:31.9760836Z     \  / (_| | | | (_| | (_| | |_| | (_) | | | | | | \ \  __\__ \ |_| | | |_\__ \
2021-01-04T19:34:31.9792256Z      \/ \__,_|_|_|\__,_|\__,_|\__|_|\___/|_| |_| |_|  \_\___|___/\__,_|_|\__|___/
2021-01-04T19:34:31.9805095Z 
2021-01-04T19:34:31.9837334Z Unexpected error while validating app. Error is: App generation failed
2021-01-04T19:34:31.9870032Z   _____                          ___      __   _ _     _       _   _               ______    _ _                
2021-01-04T19:34:31.9900000Z  |  __ \                   /\   | \ \    / /  | (_)   | |     | | (_)             |  ____|  (_) |               
2021-01-04T19:34:31.9924087Z  | |__) |   _ _ __ ______ /  \  | |\ \  / /_ _| |_  __| | __ _| |_ _  ___  _ __   | |__ __ _ _| |_   _ _ __ ___ 
2021-01-04T19:34:31.9950401Z  |  _  / | | | '_ \______/ /\ \ | | \ \/ / _` | | |/ _` |/ _` | __| |/ _ \| '_ \  |  __/ _` | | | | | | '__/ _ \
2021-01-04T19:34:31.9979049Z  | | \ \ |_| | | | |    / ____ \| |  \  / (_| | | | (_| | (_| | |_| | (_) | | | | | | | (_| | | | |_| | | |  __/
2021-01-04T19:34:32.0007785Z  |_|  \_\__,_|_| |_|   /_/    \_\_|   \/ \__,_|_|_|\__,_|\__,_|\__|_|\___/|_| |_| |_|  \__,_|_|_|\__,_|_|  \___|
2021-01-04T19:34:32.0017858Z 
2021-01-04T19:34:32.0047109Z Unexpected error while validating app. Error is: App generation failed
2021-01-04T19:34:32.0762130Z ##[section]Finishing: Validate App
freddydk commented 3 years ago

Please remember to mark output with "Insert Code" which makes it readable. I have done this. Could you email me the 2 app files - then I will try this, thanks

Remember to rename the .app files to .txt or like

freddydk commented 3 years ago

The problem is the URL. I will fix the bug. In the meantime, download the app and run validation with a local path.

freddydk commented 3 years ago

Shipped in BcContainerHelper 2.0.0