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

Build pipeline exits with a issue #2038

Closed Anilkumaranisetty closed 3 years ago

Anilkumaranisetty commented 3 years ago

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

Describe the issue Build pipeline does not work as it can not reach container hosted aget

[error]Initialization of container hostedagent-c4cfoundation-ci failed

New-BcContainer `
    -accept_eula `
    -imagename...

Full output of scripts

NavContainerHelper is version 0.6.5.7
NavContainerHelper is running as administrator
Host is Microsoft Windows 10 Enterprise - 2004
Docker Client Version is 19.03.8
Docker Server Version is 19.03.8
...

2021-08-24T07:17:34.2991446Z ##[section]Starting: Run Pipeline
2021-08-24T07:17:34.3124699Z ==============================================================================
2021-08-24T07:17:34.3125086Z Task         : PowerShell
2021-08-24T07:17:34.3125410Z Description  : Run a PowerShell script on Linux, macOS, or Windows
2021-08-24T07:17:34.3125723Z Version      : 2.***90.0
2021-08-24T07:17:34.3125997Z Author       : Microsoft Corporation
2021-08-24T07:17:34.3126379Z Help         : https://docs.microsoft.com/azure/devops/pipelines/tasks/utility/powershell
2021-08-24T07:17:34.3126793Z ==============================================================================
2021-08-24T07:17:37.0401824Z Generating script.
2021-08-24T07:17:37.0408737Z Formatted command: . 'D:\a\***\s\scripts\DevOps-Pipeline.ps***' -environment "AzureDevOps" -version "ci" -appBuild ***395 -appRevision 0
2021-08-24T07:17:37.0917299Z ========================== Starting Command Output ===========================
2021-08-24T07:17:37.1231292Z ##[command]"C:\Windows\System32\WindowsPowerShell\v***.0\powershell.exe" -NoLogo -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -Command ". 'D:\a\_temp\5f5def79-***52a-4985-8b80-9f75f0c08***ad.ps***'"
2021-08-24T07:17:39.1984360Z Set artifact = //***7.3.20469.2***555/us
2021-08-24T07:17:39.2137550Z Set pipelineName = C4CFoundation-ci
2021-08-24T07:17:39.2168755Z Set containerName = hostedagent-c4cfoundation-ci
2021-08-24T07:17:39.2804455Z Set installApps = ''
2021-08-24T07:17:39.2812324Z Set previousApps = 'https://businesscentralapps.azureedge.net/helloworld-appsource/latest/apps.zip'
2021-08-24T07:17:39.2837092Z Set appSourceCopMandatoryAffixes = 'DP_'
2021-08-24T07:17:39.2854749Z Set appSourceCopSupportedCountries = 'us,dk,gb'
2021-08-24T07:17:39.2932810Z Set appFolders = 'base'
2021-08-24T07:17:39.2938075Z Set testFolders = 'test'
2021-08-24T07:17:39.2978593Z Set memoryLimit = '6G'
2021-08-24T07:17:39.3008277Z Set additionalCountries = ''
2021-08-24T07:17:39.3019607Z Set genericImageName = ''
2021-08-24T07:17:39.3024740Z Set vaultNameForLocal = 'BCBuildVariables'
2021-08-24T07:17:39.3058601Z Set bcContainerHelperVersion = 'dev'
2021-08-24T07:17:39.3206249Z Set installTestRunner = True
2021-08-24T07:17:39.3278347Z Set installTestFramework = True
2021-08-24T07:17:39.3298370Z Set installTestLibraries = True
2021-08-24T07:17:39.3301842Z Set installPerformanceToolkit = True
2021-08-24T07:17:39.3321800Z Set enableCodeCop = appFolders
2021-08-24T07:17:39.3408297Z Set enableAppSourceCop = appFolders
2021-08-24T07:17:39.3442145Z Set enablePerTenantExtensionCop = appFolders
2021-08-24T07:17:39.3474789Z Set enableUICop = appFolders
2021-08-24T07:17:39.3484111Z Set useDefaultAppSourceRuleSet = appFolders
2021-08-24T07:17:39.3487183Z Set doNotSignApps = False
2021-08-24T07:17:39.3494657Z Set doNotRunTests = False
2021-08-24T07:17:39.3524971Z Set cacheImage = True
2021-08-24T07:17:39.3554299Z Set CreateRuntimePackages = True
2021-08-24T07:17:39.3970209Z Downloading https://github.com/microsoft/navcontainerhelper/archive/dev.zip
2021-08-24T07:17:49.9742082Z BcContainerHelper version 2.0.***6-dev
2021-08-24T07:17:51.8243480Z Determining artifacts to use
2021-08-24T07:17:52.1482262Z   _____                               _                
2021-08-24T07:17:52.1499956Z  |  __ \                             | |               
2021-08-24T07:17:52.1511157Z  | |__) |_ _ _ __ __ _ _ __ ___   ___| |_ ___ _ __ ___ 
2021-08-24T07:17:52.1524266Z  |  ___/ _` | '__/ _` | '_ ` _ \ / _ \ __/ _ \ '__/ __|
2021-08-24T07:17:52.1541054Z  | |  | (_| | | | (_| | | | | | |  __/ |_  __/ |  \__ \
2021-08-24T07:17:52.1554460Z  |_|   \__,_|_|  \__,_|_| |_| |_|\___|\__\___|_|  |___/
2021-08-24T07:17:52.1555284Z 
2021-08-24T07:17:52.1563004Z Pipeline name               C4CFoundation-ci
2021-08-24T07:17:52.1575701Z Container name              hostedagent-c4cfoundation-ci
2021-08-24T07:17:52.1583978Z Image name                  
2021-08-24T07:17:52.1822676Z ArtifactUrl                 https://bcartifacts.azureedge.net/sandbox/***7.3.20469.2***555/us
2021-08-24T07:17:52.1845318Z SasToken                    Not Specified
2021-08-24T07:17:52.1846132Z BcAuthContext               Not Specified
2021-08-24T07:17:52.1846728Z Environment                 
2021-08-24T07:17:52.1847404Z ReUseContainer              False
2021-08-24T07:17:52.1847945Z KeepContainer               False
2021-08-24T07:17:52.1896057Z Credential                  admin/Nemi0737
2021-08-24T07:17:52.1930443Z MemoryLimit                 6G
2021-08-24T07:17:52.1943335Z Enable Task Scheduler       False
2021-08-24T07:17:52.1955622Z Assign Premium Plan         False
2021-08-24T07:17:52.1987927Z Install Test Runner         True
2021-08-24T07:17:52.1998803Z Install Test Framework      True
2021-08-24T07:17:52.2008813Z Install Test Libraries      True
2021-08-24T07:17:52.2021411Z Install Perf. Toolkit       True
2021-08-24T07:17:52.2031528Z CopySymbolsFromContainer    False
2021-08-24T07:17:52.2042918Z enableCodeCop               False
2021-08-24T07:17:52.2053744Z enableAppSourceCop          False
2021-08-24T07:17:52.2064717Z enableUICop                 False
2021-08-24T07:17:52.2074577Z enablePerTenantExtensionCop False
2021-08-24T07:17:52.2084563Z escapeFromCops              False
2021-08-24T07:17:52.2095372Z useDefaultAppSourceRuleSet  False
2021-08-24T07:17:52.2103140Z rulesetFile                 
2021-08-24T07:17:52.2115407Z azureDevOps                 True
2021-08-24T07:17:52.2129100Z License file                Specified
2021-08-24T07:17:52.2142047Z CodeSignCertPfxFile         Specified
2021-08-24T07:17:52.2152534Z TestResultsFile             D:\a\***\s\TestResults.xml
2021-08-24T07:17:52.2163406Z TestResultsFormat           JUnit
2021-08-24T07:17:52.2272367Z AdditionalCountries         
2021-08-24T07:17:52.2282766Z PackagesFolder              D:\a\***\s\.packages
2021-08-24T07:17:52.2298739Z OutputFolder                D:\a\***\s\.output
2021-08-24T07:17:52.2306388Z BuildArtifactFolder         D:\a\***\a
2021-08-24T07:17:52.2321397Z CreateRuntimePackages       True
2021-08-24T07:17:52.2332184Z AppBuild                    ***395
2021-08-24T07:17:52.2343294Z AppRevision                 0
2021-08-24T07:17:52.2351148Z Install Apps
2021-08-24T07:17:52.2354931Z - None
2021-08-24T07:17:52.2362207Z Install Test Apps
2021-08-24T07:17:52.2366315Z - None
2021-08-24T07:17:52.2371872Z Previous Apps
2021-08-24T07:17:52.2381618Z - https://businesscentralapps.azureedge.net/helloworld-appsource/latest/apps.zip
2021-08-24T07:17:52.2386414Z Application folders
2021-08-24T07:17:52.2396497Z - D:\a\***\s\base
2021-08-24T07:17:52.2402167Z Test application folders
2021-08-24T07:17:52.2409768Z - D:\a\***\s\test
2021-08-24T07:17:52.2419448Z Custom CodeCops
2021-08-24T07:17:52.2423268Z - None
2021-08-24T07:17:52.2493058Z 
2021-08-24T07:17:52.2496674Z   _____       _ _ _                                          _        _                            
2021-08-24T07:17:52.2503606Z  |  __ \     | | (_)                                        (_)      (_)                           
2021-08-24T07:17:52.2507904Z  | |__) |   _| | |_ _ __   __ _    __ _  ___ _ __   ___ _ __ _  ___   _ _ __ ___   __ _  __ _  ___ 
2021-08-24T07:17:52.2515437Z  |  ___/ | | | | | | '_ \ / _` |  / _` |/ _ \ '_ \ / _ \ '__| |/ __| | | '_ ` _ \ / _` |/ _` |/ _ \
2021-08-24T07:17:52.2521529Z  | |   | |_| | | | | | | | (_| | | (_| |  __/ | | |  __/ |  | | (__  | | | | | | | (_| | (_| |  __/
2021-08-24T07:17:52.2529793Z  |_|    \__,_|_|_|_|_| |_|\__, |  \__, |\___|_| |_|\___|_|  |_|\___| |_|_| |_| |_|\__,_|\__, |\___|
2021-08-24T07:17:52.2533918Z                            __/ |   __/ |                                                 __/ |     
2021-08-24T07:17:52.2543412Z                           |___/   |___/                                                 |___/      
2021-08-24T07:17:52.2543897Z 
2021-08-24T07:17:52.8764903Z Pulling mcr.microsoft.com/businesscentral:***0.0.***7763.2***4
2021-08-24T07:21:33.7010858Z 
2021-08-24T07:21:33.7017828Z Pulling generic image took 22*** seconds
2021-08-24T07:21:33.7089646Z 
2021-08-24T07:21:33.7094551Z    _____                _   _                               _        _                 
2021-08-24T07:21:33.7107164Z   / ____|              | | (_)                             | |      (_)                
2021-08-24T07:21:33.7112236Z  | |     _ __ ___  __ _| |_ _ _ __   __ _    ___ ___  _ __ | |_ __ _ _ _ __   ___ _ __ 
2021-08-24T07:21:33.7120374Z  | |    | '__/ _ \/ _` | __| | '_ \ / _` |  / __/ _ \| '_ \| __/ _` | | '_ \ / _ \ '__|
2021-08-24T07:21:33.7124998Z  | |____| | |  __/ (_| | |_| | | | | (_| | | (__ (_) | | | | |_ (_| | | | | |  __/ |   
2021-08-24T07:21:33.7133429Z   \_____|_|  \___|\__,_|\__|_|_| |_|\__, |  \___\___/|_| |_|\__\__,_|_|_| |_|\___|_|   
2021-08-24T07:21:33.7138321Z                                      __/ |                                             
2021-08-24T07:21:33.7146708Z                                     |___/                                              
2021-08-24T07:21:33.7147334Z 
2021-08-24T07:21:34.4642371Z WARNING: Container name should not exceed ***5 characters
2021-08-24T07:21:34.8095117Z BcContainerHelper is version 2.0.***6-dev
2021-08-24T07:21:34.8104382Z BcContainerHelper is running as administrator
2021-08-24T07:21:34.8126637Z Host is Microsoft Windows Server 20***9 Datacenter - ltsc20***9
2021-08-24T07:21:35.8416176Z Docker Client Version is 20.***0.6
2021-08-24T07:21:35.8463943Z Docker Server Version is 20.***0.6
2021-08-24T07:21:36.3110333Z Downloading application artifact /sandbox/***7.3.20469.2***555/us
2021-08-24T07:21:36.3286409Z Downloading C:\Users\VssAdministrator\AppData\Local\Temp\d8532e6c-9c0e-4038-956e-a90ddd529ff2.zip
2021-08-24T07:21:41.0688032Z Unpacking application artifact to tmp folder using 7zip
2021-08-24T07:21:49.0444207Z Downloading platform artifact /sandbox/***7.3.20469.2***555/platform
2021-08-24T07:21:49.0504488Z Downloading C:\Users\VssAdministrator\AppData\Local\Temp\24ddbde5-c***4f-4080-9fa4-0***c5***3a6a0e4.zip
2021-08-24T07:22:00.4744580Z Unpacking platform artifact to tmp folder using 7zip
2021-08-24T07:22:18.7320113Z Downloading Prerequisite Components
2021-08-24T07:22:18.7456043Z Downloading c:\bcartifacts.cache\sandbox\***7.3.20469.2***555\platform\Prerequisite Components\Open XML SDK 2.5 for Microsoft Office\OpenXMLSDKv25.msi
2021-08-24T07:22:18.7633419Z Downloading c:\bcartifacts.cache\sandbox\***7.3.20469.2***555\platform\Prerequisite Components\IIS URL Rewrite Module\rewrite_2.0_rtw_x64.msi
2021-08-24T07:22:18.7939947Z Downloading c:\bcartifacts.cache\sandbox\***7.3.20469.2***555\platform\Prerequisite Components\DotNetCore\DotNetCore.***.0.4_***.***.***-WindowsHosting.exe
2021-08-24T07:22:19.5506049Z Fetching all docker images
2021-08-24T07:22:20.1050289Z Fetching all docker volumes
2021-08-24T07:22:20.9356612Z Using image mcr.microsoft.com/businesscentral:***0.0.***7763.2***4
2021-08-24T07:22:21.7111665Z Creating Container hostedagent-c4cfoundation-ci
2021-08-24T07:22:21.7112741Z Version: ***7.3.20469.2***555-US
2021-08-24T07:22:21.7117739Z Style: sandbox
2021-08-24T07:22:21.7130783Z Multitenant: Yes
2021-08-24T07:22:21.7134100Z Platform: ***7.0.20458.2***528
2021-08-24T07:22:21.7142240Z Generic Tag: ***.0.***.7
2021-08-24T07:22:21.7191521Z Container OS Version: ***0.0.***7763.2***4 (ltsc20***9)
2021-08-24T07:22:21.7198588Z Host OS Version: ***0.0.***7763.2***4 (ltsc20***9)
2021-08-24T07:22:21.7225009Z Using process isolation
2021-08-24T07:22:21.7266217Z Using locale en-US
2021-08-24T07:22:21.7289975Z Disabling the standard eventlog dump to container log every 2 seconds (use -dumpEventLog to enable)
2021-08-24T07:22:21.7660185Z Downloading C:\ProgramData\BcContainerHelper\Extensions\hostedagent-c4cfoundation-ci\Microsoft.VisualStudio.Services.VSIXPackage.vsix
2021-08-24T07:22:22.4595376Z Using license file https://dpbc4csecrets.blob.core.windows.net/bc***8/license.flf
2021-08-24T07:22:22.4610067Z Downloading C:\ProgramData\BcContainerHelper\Extensions\hostedagent-c4cfoundation-ci\my\license.flf
2021-08-24T07:22:22.6855621Z Additional Parameters:
2021-08-24T07:22:22.6867473Z --volume "D:\a\***\s:c:\sources"
2021-08-24T07:22:22.6871705Z --env customNavSettings=EnableTaskScheduler=False
2021-08-24T07:22:22.6880102Z Files in C:\ProgramData\BcContainerHelper\Extensions\hostedagent-c4cfoundation-ci\my:
2021-08-24T07:22:22.6922829Z - AdditionalOutput.ps***
2021-08-24T07:22:22.6930804Z - license.flf
2021-08-24T07:22:22.6967800Z - MainLoop.ps***
2021-08-24T07:22:22.7026460Z - SetupVariables.ps***
2021-08-24T07:22:22.7034438Z - updatehosts.ps***
2021-08-24T07:22:22.7041193Z Creating container hostedagent-c4cfoundation-ci from image mcr.microsoft.com/businesscentral:***0.0.***7763.2***4
2021-08-24T07:22:23.0225833Z 34869***c48647a***d90b3dc32e02786c739e002c282cfa8432bc69***ce6bc98c90
2021-08-24T07:22:59.8464963Z Waiting for container hostedagent-c4cfoundation-ci to be ready
2021-08-24T07:23:15.1449493Z Adding HOSTEDAGENT-C4C to hosts file
2021-08-24T07:23:16.4967052Z Using artifactUrl https://bcartifacts.azureedge.net/sandbox/***7.3.20469.2***555/us
2021-08-24T07:23:16.4995985Z Using installer from C:\Run\***50-new
2021-08-24T07:23:16.4996471Z Installing Business Central
2021-08-24T07:23:16.4996972Z Installing from artifacts
2021-08-24T07:23:24.8671349Z Starting Local SQL Server
2021-08-24T07:23:24.8679402Z Starting Internet Information Server
2021-08-24T07:23:24.8688177Z Copying Service Tier Files
2021-08-24T07:23:26.4598128Z c:\dl\sandbox\***7.3.20469.2***555\platform\ServiceTier\Program Files
2021-08-24T07:23:26.4609283Z c:\dl\sandbox\***7.3.20469.2***555\platform\ServiceTier\System64Folder
2021-08-24T07:23:26.4610486Z Copying PowerShell Scripts
2021-08-24T07:23:26.4620740Z c:\dl\sandbox\***7.3.20469.2***555\platform\WindowsPowerShellScripts\Cloud\NAVAdministration
2021-08-24T07:23:28.3504586Z c:\dl\sandbox\***7.3.20469.2***555\platform\WindowsPowerShellScripts\WebSearch
2021-08-24T07:23:28.3510733Z Copying dependencies
2021-08-24T07:23:29.7406148Z Copying ReportBuilder
2021-08-24T07:23:29.7413016Z Importing PowerShell Modules
2021-08-24T07:23:34.6174381Z Determining Database Collation from c:\dl\sandbox\***7.3.20469.2***555\us\BusinessCentral-US.bak
2021-08-24T07:23:59.6935569Z Restoring CRONUS Demo Database
2021-08-24T07:24:02.0662086Z Setting CompatibilityLevel for tenant on localhost\SQLEXPRESS
2021-08-24T07:25:45.5467263Z Exporting Application to CRONUS
2021-08-24T07:25:48.9710338Z Removing Application from tenant
2021-08-24T07:25:48.9715862Z Modifying Business Central Service Tier Config File for Docker
2021-08-24T07:25:50.0990159Z Creating Business Central Service Tier
2021-08-24T07:25:50.0998062Z Installing SIP crypto provider: 'C:\Windows\System32\NavSip.dll'
2021-08-24T07:25:50.1004259Z Copying Web Client Files
2021-08-24T07:25:50.1014773Z c:\dl\sandbox\***7.3.20469.2***555\platform\WebClient\Microsoft Dynamics NAV
2021-08-24T07:25:50.1016907Z Copying Client Files
2021-08-24T07:25:50.1023999Z c:\dl\sandbox\***7.3.20469.2***555\platform\LegacyDlls\program files\Microsoft Dynamics NAV
2021-08-24T07:25:50.1034419Z c:\dl\sandbox\***7.3.20469.2***555\platform\LegacyDlls\program files\Microsoft Dynamics NAV
2021-08-24T07:25:50.6939554Z c:\dl\sandbox\***7.3.20469.2***555\platform\LegacyDlls\systemFolder
2021-08-24T07:25:50.6963719Z Copying ModernDev Files
2021-08-24T07:25:50.6964634Z c:\dl\sandbox\***7.3.20469.2***555\platform
2021-08-24T07:25:50.6965483Z c:\dl\sandbox\***7.3.20469.2***555\platform\ModernDev\program files\Microsoft Dynamics NAV
2021-08-24T07:25:50.6965992Z Copying additional files
2021-08-24T07:25:50.6971535Z Copying ConfigurationPackages
2021-08-24T07:25:50.6976018Z C:\dl\sandbox\***7.3.20469.2***555\us\ConfigurationPackages
2021-08-24T07:25:50.6984137Z Copying Test Assemblies
2021-08-24T07:25:50.6993176Z C:\dl\sandbox\***7.3.20469.2***555\platform\Test Assemblies
2021-08-24T07:25:50.7003906Z Copying Extensions
2021-08-24T07:25:50.7010794Z C:\dl\sandbox\***7.3.20469.2***555\us\Extensions
2021-08-24T07:25:50.7017406Z Copying Applications
2021-08-24T07:25:50.7023746Z C:\dl\sandbox\***7.3.20469.2***555\platform\Applications
2021-08-24T07:25:50.7032052Z Copying Applications.US
2021-08-24T07:25:50.7035092Z C:\dl\sandbox\***7.3.20469.2***555\us\Applications.US
2021-08-24T07:26:21.3470156Z Starting Business Central Service Tier
2021-08-24T07:26:21.3477149Z Importing license file
2021-08-24T07:26:21.3484184Z Copying Database on localhost\SQLEXPRESS from tenant to default
2021-08-24T07:26:21.3492282Z Taking database tenant offline
2021-08-24T07:26:21.3495518Z Copying database files
2021-08-24T07:26:22.7221853Z Attaching files as new Database default
2021-08-24T07:26:22.7231154Z Putting database tenant back online
2021-08-24T07:26:22.7234164Z Mounting tenant database
2021-08-24T07:27:49.4888722Z Mounting Database for default on server localhost\SQLEXPRESS with AllowAppDatabaseWrite = False
2021-08-24T07:27:52.8730022Z Sync'ing Tenant
2021-08-24T07:27:52.8731272Z Tenant is Operational
2021-08-24T07:27:52.8737237Z Stopping Business Central Service Tier
2021-08-24T07:27:52.8745056Z Installation took 277 seconds
2021-08-24T07:27:52.8749510Z Installation complete
2021-08-24T07:27:54.0422453Z Initializing...
2021-08-24T07:27:54.0435614Z Setting host.containerhelper.internal to ***92.***68.***2.*** in container hosts file
2021-08-24T07:27:54.0440499Z Starting Container
2021-08-24T07:27:54.0448800Z Hostname is hostedagent-c4cfoundation-ci
2021-08-24T07:27:54.0451867Z PublicDnsName is hostedagent-c4cfoundation-ci
2021-08-24T07:27:55.2298530Z Using NavUserPassword Authentication
2021-08-24T07:27:56.5924866Z Creating Self Signed Certificate
2021-08-24T07:27:57.7359956Z Self Signed Certificate Thumbprint 907CA4C257DBCD24DC7DAB83F059***36BA4C***83F4
2021-08-24T07:27:57.7366174Z Modifying Service Tier Config File with Instance Specific Settings
2021-08-24T07:27:57.7370230Z Modifying Service Tier Config File with settings from environment variable
2021-08-24T07:27:59.7285925Z Setting EnableTaskScheduler to False
2021-08-24T07:28:07.3347495Z Starting Service Tier
2021-08-24T07:28:07.3365786Z Registering event sources
2021-08-24T07:28:13.9792737Z Creating DotNetCore Web Server Instance
2021-08-24T07:28:13.9808406Z Enabling Financials User Experience
2021-08-24T07:28:13.9820227Z Enabling rewrite rule: Don't rewrite system files
2021-08-24T07:28:13.9835197Z Enabling rewrite rule: Already have tenant specified
2021-08-24T07:28:13.9836239Z Enabling rewrite rule: Hostname (without port) to tenant
2021-08-24T07:28:13.9842423Z Using license file 'c:\run\my\license.flf'
2021-08-24T07:28:13.9850518Z Import License
2021-08-24T07:28:13.9855219Z Your program license has expired.
2021-08-24T07:28:13.9864978Z at <ScriptBlock>, C:\Run\SetupLicense.ps***: line 29
2021-08-24T07:28:13.9870269Z at <ScriptBlock>, C:\Run\navstart.ps***: line ***80
2021-08-24T07:28:13.9878368Z at <ScriptBlock>, C:\Run\start.ps***: line 363
2021-08-24T07:28:13.9886890Z at <ScriptBlock>, <No file>: line ***Error
2021-08-24T07:28:13.9901646Z Adding HOSTEDAGENT-C4C to hosts file
2021-08-24T07:28:13.9903321Z Using artifactUrl https://bcartifacts.azureedge.net/sandbox/***7.3.20469.2***555/us
2021-08-24T07:28:13.9909873Z Using installer from C:\Run\***50-new
2021-08-24T07:28:13.9918163Z Installing Business Central
2021-08-24T07:28:13.9922137Z Installing from artifacts
2021-08-24T07:28:13.9929668Z Starting Local SQL Server
2021-08-24T07:28:13.9933648Z Starting Internet Information Server
2021-08-24T07:28:13.9964119Z Copying Service Tier Files
2021-08-24T07:28:13.9965609Z c:\dl\sandbox\***7.3.20469.2***555\platform\ServiceTier\Program Files
2021-08-24T07:28:13.9966789Z c:\dl\sandbox\***7.3.20469.2***555\platform\ServiceTier\System64Folder
2021-08-24T07:28:13.9967753Z Copying PowerShell Scripts
2021-08-24T07:28:13.9971730Z c:\dl\sandbox\***7.3.20469.2***555\platform\WindowsPowerShellScripts\Cloud\NAVAdministration
2021-08-24T07:28:13.9979890Z c:\dl\sandbox\***7.3.20469.2***555\platform\WindowsPowerShellScripts\WebSearch
2021-08-24T07:28:13.9984120Z Copying dependencies
2021-08-24T07:28:13.9989448Z Copying ReportBuilder
2021-08-24T07:28:14.0064602Z Importing PowerShell Modules
2021-08-24T07:28:14.0073140Z Determining Database Collation from c:\dl\sandbox\***7.3.20469.2***555\us\BusinessCentral-US.bak
2021-08-24T07:28:14.0077250Z Restoring CRONUS Demo Database
2021-08-24T07:28:14.0198444Z Setting CompatibilityLevel for tenant on localhost\SQLEXPRESS
2021-08-24T07:28:14.0203804Z Exporting Application to CRONUS
2021-08-24T07:28:14.0212238Z Removing Application from tenant
2021-08-24T07:28:14.0216107Z Modifying Business Central Service Tier Config File for Docker
2021-08-24T07:28:14.0348497Z Creating Business Central Service Tier
2021-08-24T07:28:14.0450637Z Installing SIP crypto provider: 'C:\Windows\System32\NavSip.dll'
2021-08-24T07:28:14.0460042Z Copying Web Client Files
2021-08-24T07:28:14.0464403Z c:\dl\sandbox\***7.3.20469.2***555\platform\WebClient\Microsoft Dynamics NAV
2021-08-24T07:28:14.0477073Z Copying Client Files
2021-08-24T07:28:14.0481378Z c:\dl\sandbox\***7.3.20469.2***555\platform\LegacyDlls\program files\Microsoft Dynamics NAV
2021-08-24T07:28:14.0489461Z c:\dl\sandbox\***7.3.20469.2***555\platform\LegacyDlls\program files\Microsoft Dynamics NAV
2021-08-24T07:28:14.0493604Z c:\dl\sandbox\***7.3.20469.2***555\platform\LegacyDlls\systemFolder
2021-08-24T07:28:14.0501495Z Copying ModernDev Files
2021-08-24T07:28:14.0505562Z c:\dl\sandbox\***7.3.20469.2***555\platform
2021-08-24T07:28:14.0511792Z c:\dl\sandbox\***7.3.20469.2***555\platform\ModernDev\program files\Microsoft Dynamics NAV
2021-08-24T07:28:14.0593215Z Copying additional files
2021-08-24T07:28:14.0601013Z Copying ConfigurationPackages
2021-08-24T07:28:14.0608325Z C:\dl\sandbox\***7.3.20469.2***555\us\ConfigurationPackages
2021-08-24T07:28:14.0614923Z Copying Test Assemblies
2021-08-24T07:28:14.0647378Z C:\dl\sandbox\***7.3.20469.2***555\platform\Test Assemblies
2021-08-24T07:28:14.0648590Z Copying Extensions
2021-08-24T07:28:14.0652537Z C:\dl\sandbox\***7.3.20469.2***555\us\Extensions
2021-08-24T07:28:14.0658518Z Copying Applications
2021-08-24T07:28:14.0674596Z C:\dl\sandbox\***7.3.20469.2***555\platform\Applications
2021-08-24T07:28:14.0683461Z Copying Applications.US
2021-08-24T07:28:14.0694876Z C:\dl\sandbox\***7.3.20469.2***555\us\Applications.US
2021-08-24T07:28:14.0698878Z Starting Business Central Service Tier
2021-08-24T07:28:14.0707012Z Importing license file
2021-08-24T07:28:14.0710782Z Copying Database on localhost\SQLEXPRESS from tenant to default
2021-08-24T07:28:14.0718232Z Taking database tenant offline
2021-08-24T07:28:14.0721930Z Copying database files
2021-08-24T07:28:14.0729359Z Attaching files as new Database default
2021-08-24T07:28:14.0733191Z Putting database tenant back online
2021-08-24T07:28:14.0833268Z Mounting tenant database
2021-08-24T07:28:14.0838618Z Mounting Database for default on server localhost\SQLEXPRESS with AllowAppDatabaseWrite = False
2021-08-24T07:28:14.0853766Z Sync'ing Tenant
2021-08-24T07:28:14.0854577Z Tenant is Operational
2021-08-24T07:28:14.0863996Z Stopping Business Central Service Tier
2021-08-24T07:28:14.0875184Z Installation took 277 seconds
2021-08-24T07:28:14.0879633Z Installation complete
2021-08-24T07:28:14.1016012Z Initializing...
2021-08-24T07:28:14.1021645Z Setting host.containerhelper.internal to ***92.***68.***2.*** in container hosts file
2021-08-24T07:28:14.1040573Z Starting Container
2021-08-24T07:28:14.1041472Z Hostname is hostedagent-c4cfoundation-ci
2021-08-24T07:28:14.1047238Z PublicDnsName is hostedagent-c4cfoundation-ci
2021-08-24T07:28:14.1057351Z Using NavUserPassword Authentication
2021-08-24T07:28:14.1063530Z Creating Self Signed Certificate
2021-08-24T07:28:14.1071631Z Self Signed Certificate Thumbprint 907CA4C257DBCD24DC7DAB83F059***36BA4C***83F4
2021-08-24T07:28:14.1082481Z Modifying Service Tier Config File with Instance Specific Settings
2021-08-24T07:28:14.1095785Z Modifying Service Tier Config File with settings from environment variable
2021-08-24T07:28:14.1097241Z Setting EnableTaskScheduler to False
2021-08-24T07:28:14.1105651Z Starting Service Tier
2021-08-24T07:28:14.1115977Z Registering event sources
2021-08-24T07:28:14.1121366Z Creating DotNetCore Web Server Instance
2021-08-24T07:28:14.1128536Z Enabling Financials User Experience
2021-08-24T07:28:14.1146072Z Enabling rewrite rule: Don't rewrite system files
2021-08-24T07:28:14.1147045Z Enabling rewrite rule: Already have tenant specified
2021-08-24T07:28:14.1147895Z Enabling rewrite rule: Hostname (without port) to tenant
2021-08-24T07:28:14.1157877Z Using license file 'c:\run\my\license.flf'
2021-08-24T07:28:14.1164979Z Import License
2021-08-24T07:28:14.1171899Z Your program license has expired.
2021-08-24T07:28:14.1318471Z at <ScriptBlock>, C:\Run\SetupLicense.ps***: line 29
2021-08-24T07:28:14.1326366Z at <ScriptBlock>, C:\Run\navstart.ps***: line ***80
2021-08-24T07:28:14.1336333Z at <ScriptBlock>, C:\Run\start.ps***: line 363
2021-08-24T07:28:14.1340002Z at <ScriptBlock>, <No file>: line ***
2021-08-24T07:28:14.2292198Z 
2021-08-24T07:28:14.2300527Z   _____                           _                _____            _        _                 
2021-08-24T07:28:14.2308343Z  |  __ \                         (_)              / ____|          | |      (_)                
2021-08-24T07:28:14.2318364Z  | |__) |___ _ __ ___   _____   ___ _ __   __ _  | |     ___  _ __ | |_ __ _ _ _ __   ___ _ __ 
2021-08-24T07:28:14.2328484Z  |  _  // _ \ '_ ` _ \ / _ \ \ / / | '_ \ / _` | | |    / _ \| '_ \| __/ _` | | '_ \ / _ \ '__|
2021-08-24T07:28:14.4764217Z  | | \ \  __/ | | | | | (_) \ V /| | | | | (_| | | |____ (_) | | | | |_ (_| | | | | |  __/ |   
2021-08-24T07:28:14.4793584Z  |_|  \_\___|_| |_| |_|\___/ \_/ |_|_| |_|\__, |  \_____\___/|_| |_|\__\__,_|_|_| |_|\___|_|   
2021-08-24T07:28:14.4797525Z                                            __/ |                                               
2021-08-24T07:28:14.4900976Z                                           |___/                                                
2021-08-24T07:28:14.4904528Z 
2021-08-24T07:28:15.1979214Z Removing container hostedagent-c4cfoundation-ci
2021-08-24T07:28:17.5259386Z Removing hostedagent-c4cfoundation-ci from container hosts file
2021-08-24T07:28:17.6994931Z Removing hostedagent-c4cfoundation-ci-* from container hosts file
2021-08-24T07:28:17.7551037Z Removing C:\ProgramData\BcContainerHelper\Extensions\hostedagent-c4cfoundation-ci
2021-08-24T07:28:17.8162824Z 
2021-08-24T07:28:17.8168534Z Removing container took 4 seconds
2021-08-24T07:28:18.4007670Z ##[error]Initialization of container hostedagent-c4cfoundation-ci failed
At C:\Users\VssAdministrator\AppData\Local\Temp\bbb720ba-f86b-4fdf-97e***-a***30b522a9c9\ContainerHandling\Wait-NavContaine
rReady.ps***:43 char:***7
+ ...             throw "Initialization of container $containerName failed" ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : OperationStopped: (Initialization ...ation-ci failed:String) [], RuntimeException
    + FullyQualifiedErrorId : Initialization of container hostedagent-c4cfoundation-ci failed
2021-08-24T07:28:18.4126025Z ##[error]PowerShell exited with code '***'.
2021-08-24T07:28:18.5159899Z ##[section]Finishing: Run Pipeline

Additional context

freddydk commented 3 years ago

If you read the error message just above the removing container, it says:

Your program license has expired.

That is likely the reason why container generation is failing.

Anilkumaranisetty commented 3 years ago

I uploaded new license file to azure storage and also the key vault i have made a new version. yet from the keyvalut when i access the URl i get this error message. not sure what wrong i am doing here. {"error":{"code":"Unauthorized","message":"AKV10000: Request is missing a Bearer or PoP token."}}

@freddydk : please suggest

freddydk commented 3 years ago

I don't know exactly what you have done - but if you follow one of many ways to create a secure url to a file (as described here: https://freddysblog.com/2017/02/26/create-a-secure-url-to-a-file/) you should be able to get this done

Anilkumaranisetty commented 3 years ago

I followed this and i now fixed it. i have another repository which is a dependancy, this time it fails again. please check below.

@freddydk : Kindly suggest

2021-08-25T10:50:50.8535263Z ##[section]Starting: Run Pipeline
2021-08-25T10:50:50.8666356Z ==============================================================================
2021-08-25T10:50:50.8666748Z Task         : PowerShell
2021-08-25T10:50:50.8667057Z Description  : Run a PowerShell script on Linux, macOS, or Windows
2021-08-25T10:50:50.8667394Z Version      : 2.***90.0
2021-08-25T10:50:50.8667668Z Author       : Microsoft Corporation
2021-08-25T10:50:50.8668035Z Help         : https://docs.microsoft.com/azure/devops/pipelines/tasks/utility/powershell
2021-08-25T10:50:50.8668465Z ==============================================================================
2021-08-25T10:50:53.5919584Z Generating script.
2021-08-25T10:50:53.5979887Z Formatted command: . 'D:\a\***\s\scripts\DevOps-Pipeline.ps***' -environment "AzureDevOps" -version "ci" -appBuild ***434 -appRevision 0
2021-08-25T10:50:53.6440084Z ========================== Starting Command Output ===========================
2021-08-25T10:50:53.6738221Z ##[command]"C:\Windows\System32\WindowsPowerShell\v***.0\powershell.exe" -NoLogo -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -Command ". 'D:\a\_temp\7f297c86-f0f4-4e45-bd***4-***47***44baba0e.ps***'"
2021-08-25T10:50:55.8341738Z Set artifact = //***8.2.262***7.26754/us
2021-08-25T10:50:55.8541209Z Set pipelineName = C4CLogisticOperations.AppSource-ci
2021-08-25T10:50:55.8589130Z Set containerName = hostedagent-c4clogisticoperationsappsource-ci
2021-08-25T10:50:55.9272682Z Set installApps = ''
2021-08-25T10:50:55.9284748Z Set previousApps = 'https://businesscentralapps.azureedge.net/C4CFoundation.appsource/latest/apps.zip'
2021-08-25T10:50:55.9288554Z Set appSourceCopMandatoryAffixes = 'DP_'
2021-08-25T10:50:55.9332144Z Set appSourceCopSupportedCountries = 'us,dk,gb'
2021-08-25T10:50:55.9428396Z Set appFolders = 'app,base'
2021-08-25T10:50:55.9467227Z Set testFolders = 'test'
2021-08-25T10:50:55.9485006Z Set memoryLimit = '6G'
2021-08-25T10:50:55.9499864Z Set additionalCountries = ''
2021-08-25T10:50:55.9503330Z Set genericImageName = ''
2021-08-25T10:50:55.9521477Z Set vaultNameForLocal = 'BCBuildVariables'
2021-08-25T10:50:55.9553013Z Set bcContainerHelperVersion = 'dev'
2021-08-25T10:50:55.9722879Z Set installTestRunner = True
2021-08-25T10:50:55.9802568Z Set installTestFramework = False
2021-08-25T10:50:55.9833518Z Set installTestLibraries = False
2021-08-25T10:50:55.9886754Z Set installPerformanceToolkit = False
2021-08-25T10:50:55.9913669Z Set enableCodeCop = True
2021-08-25T10:50:55.9925301Z Set enableAppSourceCop = True
2021-08-25T10:50:55.9952310Z Set enablePerTenantExtensionCop = False
2021-08-25T10:50:56.0066869Z Set enableUICop = True
2021-08-25T10:50:56.0077180Z Set useDefaultAppSourceRuleSet = True
2021-08-25T10:50:56.0120513Z Set doNotSignApps = True
2021-08-25T10:50:56.0132011Z Set doNotRunTests = False
2021-08-25T10:50:56.0141915Z Set cacheImage = True
2021-08-25T10:50:56.0332434Z Set CreateRuntimePackages = True
2021-08-25T10:50:56.0626512Z Downloading https://github.com/microsoft/navcontainerhelper/archive/dev.zip
2021-08-25T10:51:07.5239958Z BcContainerHelper version 2.0.***6-dev
2021-08-25T10:51:09.5266457Z Determining artifacts to use
2021-08-25T10:51:09.8876585Z   _____                               _                
2021-08-25T10:51:09.8892307Z  |  __ \                             | |               
2021-08-25T10:51:09.8903536Z  | |__) |_ _ _ __ __ _ _ __ ___   ___| |_ ___ _ __ ___ 
2021-08-25T10:51:09.8918350Z  |  ___/ _` | '__/ _` | '_ ` _ \ / _ \ __/ _ \ '__/ __|
2021-08-25T10:51:09.8929095Z  | |  | (_| | | | (_| | | | | | |  __/ |_  __/ |  \__ \
2021-08-25T10:51:09.8944990Z  |_|   \__,_|_|  \__,_|_| |_| |_|\___|\__\___|_|  |___/
2021-08-25T10:51:09.8945904Z 
2021-08-25T10:51:09.8954494Z Pipeline name               C4CLogisticOperations.AppSource-ci
2021-08-25T10:51:09.8968757Z Container name              hostedagent-c4clogisticoperationsappsource-ci
2021-08-25T10:51:09.8974939Z Image name                  
2021-08-25T10:51:09.9858673Z ArtifactUrl                 https://bcartifacts.azureedge.net/sandbox/***8.2.262***7.26754/us
2021-08-25T10:51:09.9877698Z SasToken                    Not Specified
2021-08-25T10:51:09.9886616Z BcAuthContext               Not Specified
2021-08-25T10:51:09.9902712Z Environment                 
2021-08-25T10:51:09.9911047Z ReUseContainer              False
2021-08-25T10:51:09.9926955Z KeepContainer               False
2021-08-25T10:51:09.9935616Z Credential                  admin/Riwa8482
2021-08-25T10:51:09.9951434Z MemoryLimit                 6G
2021-08-25T10:51:09.9960197Z Enable Task Scheduler       False
2021-08-25T10:51:09.9972854Z Assign Premium Plan         False
2021-08-25T10:51:09.9979752Z Install Test Runner         True
2021-08-25T10:51:09.9987689Z Install Test Framework      False
2021-08-25T10:51:09.9994804Z Install Test Libraries      False
2021-08-25T10:51:10.0004109Z Install Perf. Toolkit       False
2021-08-25T10:51:10.0026205Z CopySymbolsFromContainer    False
2021-08-25T10:51:10.0046789Z enableCodeCop               True
2021-08-25T10:51:10.0062771Z enableAppSourceCop          True
2021-08-25T10:51:10.0076954Z enableUICop                 True
2021-08-25T10:51:10.0090062Z enablePerTenantExtensionCop False
2021-08-25T10:51:10.0103072Z escapeFromCops              False
2021-08-25T10:51:10.0117487Z useDefaultAppSourceRuleSet  True
2021-08-25T10:51:10.0126640Z rulesetFile                 
2021-08-25T10:51:10.0139838Z azureDevOps                 True
2021-08-25T10:51:10.0153387Z License file                Specified
2021-08-25T10:51:10.0492159Z CodeSignCertPfxFile         Not specified
2021-08-25T10:51:10.0512937Z TestResultsFile             D:\a\***\s\TestResults.xml
2021-08-25T10:51:10.0526457Z TestResultsFormat           JUnit
2021-08-25T10:51:10.0668618Z AdditionalCountries         
2021-08-25T10:51:10.0681774Z PackagesFolder              D:\a\***\s\.packages
2021-08-25T10:51:10.0694704Z OutputFolder                D:\a\***\s\.output
2021-08-25T10:51:10.0708464Z BuildArtifactFolder         D:\a\***\a
2021-08-25T10:51:10.0724286Z CreateRuntimePackages       True
2021-08-25T10:51:10.0737212Z AppBuild                    ***434
2021-08-25T10:51:10.0750918Z AppRevision                 0
2021-08-25T10:51:10.0779471Z Mandatory Affixes           DP_
2021-08-25T10:51:10.0793999Z Supported Countries         us,dk,gb
2021-08-25T10:51:10.0799324Z Install Apps
2021-08-25T10:51:10.0809504Z - None
2021-08-25T10:51:10.0819668Z Install Test Apps
2021-08-25T10:51:10.0824748Z - None
2021-08-25T10:51:10.0832294Z Previous Apps
2021-08-25T10:51:10.0850254Z - https://businesscentralapps.azureedge.net/C4CFoundation.appsource/latest/apps.zip
2021-08-25T10:51:10.0850786Z Application folders
2021-08-25T10:51:10.0864873Z - D:\a\***\s\base
2021-08-25T10:51:10.0871119Z Test application folders
2021-08-25T10:51:10.0881735Z - D:\a\***\s\test
2021-08-25T10:51:10.0888198Z Custom CodeCops
2021-08-25T10:51:10.0895056Z - None
2021-08-25T10:51:10.1000267Z 
2021-08-25T10:51:10.1005174Z   _____       _ _ _                                          _        _                            
2021-08-25T10:51:10.1014218Z  |  __ \     | | (_)                                        (_)      (_)                           
2021-08-25T10:51:10.1018862Z  | |__) |   _| | |_ _ __   __ _    __ _  ___ _ __   ___ _ __ _  ___   _ _ __ ___   __ _  __ _  ___ 
2021-08-25T10:51:10.1027695Z  |  ___/ | | | | | | '_ \ / _` |  / _` |/ _ \ '_ \ / _ \ '__| |/ __| | | '_ ` _ \ / _` |/ _` |/ _ \
2021-08-25T10:51:10.1032345Z  | |   | |_| | | | | | | | (_| | | (_| |  __/ | | |  __/ |  | | (__  | | | | | | | (_| | (_| |  __/
2021-08-25T10:51:10.1041218Z  |_|    \__,_|_|_|_|_| |_|\__, |  \__, |\___|_| |_|\___|_|  |_|\___| |_|_| |_| |_|\__,_|\__, |\___|
2021-08-25T10:51:10.1045865Z                            __/ |   __/ |                                                 __/ |     
2021-08-25T10:51:10.1054509Z                           |___/   |___/                                                 |___/      
2021-08-25T10:51:10.1055115Z 
2021-08-25T10:51:10.8096200Z Pulling mcr.microsoft.com/businesscentral:***0.0.***7763.2***4
2021-08-25T10:55:25.3597872Z 
2021-08-25T10:55:25.3610141Z Pulling generic image took 255 seconds
2021-08-25T10:55:25.3665277Z 
2021-08-25T10:55:25.3670917Z    _____                _   _                               _        _                 
2021-08-25T10:55:25.3681404Z   / ____|              | | (_)                             | |      (_)                
2021-08-25T10:55:25.3695536Z  | |     _ __ ___  __ _| |_ _ _ __   __ _    ___ ___  _ __ | |_ __ _ _ _ __   ___ _ __ 
2021-08-25T10:55:25.3704821Z  | |    | '__/ _ \/ _` | __| | '_ \ / _` |  / __/ _ \| '_ \| __/ _` | | '_ \ / _ \ '__|
2021-08-25T10:55:25.3710372Z  | |____| | |  __/ (_| | |_| | | | | (_| | | (__ (_) | | | | |_ (_| | | | | |  __/ |   
2021-08-25T10:55:25.3719382Z   \_____|_|  \___|\__,_|\__|_|_| |_|\__, |  \___\___/|_| |_|\__\__,_|_|_| |_|\___|_|   
2021-08-25T10:55:25.3724899Z                                      __/ |                                             
2021-08-25T10:55:25.3734330Z                                     |___/                                              
2021-08-25T10:55:25.3736056Z 
2021-08-25T10:55:25.9495566Z WARNING: Container name should not exceed ***5 characters
2021-08-25T10:55:26.2582766Z BcContainerHelper is version 2.0.***6-dev
2021-08-25T10:55:26.2591073Z BcContainerHelper is running as administrator
2021-08-25T10:55:26.2609893Z Host is Microsoft Windows Server 20***9 Datacenter - ltsc20***9
2021-08-25T10:55:27.5264499Z Docker Client Version is 20.***0.6
2021-08-25T10:55:27.5317649Z Docker Server Version is 20.***0.6
2021-08-25T10:55:27.9396628Z Downloading application artifact /sandbox/***8.2.262***7.26754/us
2021-08-25T10:55:27.9559738Z Downloading C:\Users\VssAdministrator\AppData\Local\Temp\c94c70f4-7ebd-424d-bac7-02996afb9b0***.zip
2021-08-25T10:55:35.3582276Z Unpacking application artifact to tmp folder using 7zip
2021-08-25T10:55:44.8392554Z Downloading platform artifact /sandbox/***8.2.262***7.26754/platform
2021-08-25T10:55:44.8416195Z Downloading C:\Users\VssAdministrator\AppData\Local\Temp\ac926b87-e6***f-4742-a8d4-2a63ac7f5649.zip
2021-08-25T10:55:51.8111116Z Unpacking platform artifact to tmp folder using 7zip
2021-08-25T10:56:13.8281343Z Downloading Prerequisite Components
2021-08-25T10:56:13.8417338Z Downloading c:\bcartifacts.cache\sandbox\***8.2.262***7.26754\platform\Prerequisite Components\Open XML SDK 2.5 for Microsoft Office\OpenXMLSDKv25.msi
2021-08-25T10:56:14.1551555Z Downloading c:\bcartifacts.cache\sandbox\***8.2.262***7.26754\platform\Prerequisite Components\IIS URL Rewrite Module\rewrite_2.0_rtw_x64.msi
2021-08-25T10:56:14.3530296Z Downloading c:\bcartifacts.cache\sandbox\***8.2.262***7.26754\platform\Prerequisite Components\DotNetCore\DotNetCore.***.0.4_***.***.***-WindowsHosting.exe
2021-08-25T10:56:15.4140265Z Fetching all docker images
2021-08-25T10:56:16.5910036Z Fetching all docker volumes
2021-08-25T10:56:17.3217876Z Using image mcr.microsoft.com/businesscentral:***0.0.***7763.2***4
2021-08-25T10:56:17.4868726Z Creating Container hostedagent-c4clogisticoperationsappsource-ci
2021-08-25T10:56:17.4875526Z Version: ***8.2.262***7.26754-US
2021-08-25T10:56:17.4885463Z Style: sandbox
2021-08-25T10:56:17.4890618Z Multitenant: Yes
2021-08-25T10:56:17.4897663Z Platform: ***8.0.262***3.26669
2021-08-25T10:56:17.4903410Z Generic Tag: ***.0.***.7
2021-08-25T10:56:17.4947402Z Container OS Version: ***0.0.***7763.2***4 (ltsc20***9)
2021-08-25T10:56:17.4952441Z Host OS Version: ***0.0.***7763.2***4 (ltsc20***9)
2021-08-25T10:56:17.4975631Z Using process isolation
2021-08-25T10:56:17.5031422Z Using locale en-US
2021-08-25T10:56:17.5049929Z Disabling the standard eventlog dump to container log every 2 seconds (use -dumpEventLog to enable)
2021-08-25T10:56:17.5346618Z Downloading C:\ProgramData\BcContainerHelper\Extensions\hostedagent-c4clogisticoperationsappsource-ci\Microsoft.VisualStudio.Services.VSIXPackage.vsix
2021-08-25T10:56:19.4993170Z Using license file https://dpbc4csecrets.blob.core.windows.net/bc***8/LicenseFile.flf
2021-08-25T10:56:19.5019230Z Downloading C:\ProgramData\BcContainerHelper\Extensions\hostedagent-c4clogisticoperationsappsource-ci\my\license.flf
2021-08-25T10:56:19.7049995Z Additional Parameters:
2021-08-25T10:56:19.7059262Z --volume "D:\a\***\s:c:\sources"
2021-08-25T10:56:19.7069828Z --env customNavSettings=EnableTaskScheduler=False
2021-08-25T10:56:19.7075641Z Files in C:\ProgramData\BcContainerHelper\Extensions\hostedagent-c4clogisticoperationsappsource-ci\my:
2021-08-25T10:56:19.7120502Z - AdditionalOutput.ps***
2021-08-25T10:56:19.7128377Z - license.flf
2021-08-25T10:56:19.7136419Z - MainLoop.ps***
2021-08-25T10:56:19.7144508Z - SetupVariables.ps***
2021-08-25T10:56:19.7156547Z - updatehosts.ps***
2021-08-25T10:56:19.7160172Z Creating container hostedagent-c4clogisticoperationsappsource-ci from image mcr.microsoft.com/businesscentral:***0.0.***7763.2***4
2021-08-25T10:56:20.3768390Z b08dc74c5ec4***070a2ab9ff94f07bb8***32be752b***829bc5d5a7***c8***cae8***c8
2021-08-25T10:57:03.7867668Z Waiting for container hostedagent-c4clogisticoperationsappsource-ci to be ready
2021-08-25T10:57:23.3339837Z Adding HOSTEDAGENT-C4C to hosts file
2021-08-25T10:57:25.4956415Z Using artifactUrl https://bcartifacts.azureedge.net/sandbox/***8.2.262***7.26754/us
2021-08-25T10:57:25.4964532Z Using installer from C:\Run\***50-new
2021-08-25T10:57:25.4971436Z Installing Business Central
2021-08-25T10:57:25.4979120Z Installing from artifacts
2021-08-25T10:57:36.2484075Z Starting Local SQL Server
2021-08-25T10:57:36.2495605Z Starting Internet Information Server
2021-08-25T10:57:36.2500040Z Copying Service Tier Files
2021-08-25T10:57:37.3794980Z c:\dl\sandbox\***8.2.262***7.26754\platform\ServiceTier\Program Files
2021-08-25T10:57:37.3803035Z c:\dl\sandbox\***8.2.262***7.26754\platform\ServiceTier\System64Folder
2021-08-25T10:57:37.3810386Z Copying PowerShell Scripts
2021-08-25T10:57:37.3818304Z c:\dl\sandbox\***8.2.262***7.26754\platform\WindowsPowerShellScripts\Cloud\NAVAdministration
2021-08-25T10:57:40.0572728Z c:\dl\sandbox\***8.2.262***7.26754\platform\WindowsPowerShellScripts\WebSearch
2021-08-25T10:57:40.0580009Z Copying dependencies
2021-08-25T10:57:40.0587138Z Copying ReportBuilder
2021-08-25T10:57:41.2367102Z Importing PowerShell Modules
2021-08-25T10:58:10.7450517Z Determining Database Collation from c:\dl\sandbox\***8.2.262***7.26754\us\BusinessCentral-US.bak
2021-08-25T10:58:13.8501385Z Restoring CRONUS Demo Database
2021-08-25T10:58:15.0410041Z Setting CompatibilityLevel for tenant on localhost\SQLEXPRESS
2021-08-25T10:59:01.6770544Z Exporting Application to CRONUS
2021-08-25T10:59:09.0325329Z Removing Application from tenant
2021-08-25T10:59:09.0338243Z Modifying Business Central Service Tier Config File for Docker
2021-08-25T10:59:09.0344575Z Creating Business Central Service Tier
2021-08-25T10:59:10.4199961Z Installing SIP crypto provider: 'C:\Windows\System32\NavSip.dll'
2021-08-25T10:59:10.4211145Z Copying Web Client Files
2021-08-25T10:59:10.4216714Z c:\dl\sandbox\***8.2.262***7.26754\platform\WebClient\Microsoft Dynamics NAV
2021-08-25T10:59:10.4225331Z Copying Client Files
2021-08-25T10:59:10.4229922Z c:\dl\sandbox\***8.2.262***7.26754\platform\LegacyDlls\program files\Microsoft Dynamics NAV
2021-08-25T10:59:10.4238611Z c:\dl\sandbox\***8.2.262***7.26754\platform\LegacyDlls\program files\Microsoft Dynamics NAV
2021-08-25T10:59:10.4243551Z c:\dl\sandbox\***8.2.262***7.26754\platform\LegacyDlls\systemFolder
2021-08-25T10:59:10.4252306Z Copying ModernDev Files
2021-08-25T10:59:10.4257137Z c:\dl\sandbox\***8.2.262***7.26754\platform
2021-08-25T10:59:10.4265255Z c:\dl\sandbox\***8.2.262***7.26754\platform\ModernDev\program files\Microsoft Dynamics NAV
2021-08-25T10:59:10.4269105Z Copying additional files
2021-08-25T10:59:10.4276387Z Copying ConfigurationPackages
2021-08-25T10:59:10.4280329Z C:\dl\sandbox\***8.2.262***7.26754\us\ConfigurationPackages
2021-08-25T10:59:10.4290461Z Copying Test Assemblies
2021-08-25T10:59:10.4295587Z C:\dl\sandbox\***8.2.262***7.26754\platform\Test Assemblies
2021-08-25T10:59:10.4304108Z Copying Extensions
2021-08-25T10:59:10.4308684Z C:\dl\sandbox\***8.2.262***7.26754\us\Extensions
2021-08-25T10:59:10.4317312Z Copying Applications
2021-08-25T10:59:10.4321665Z C:\dl\sandbox\***8.2.262***7.26754\platform\Applications
2021-08-25T10:59:10.4329714Z Copying Applications.US
2021-08-25T10:59:10.4333195Z C:\dl\sandbox\***8.2.262***7.26754\us\Applications.US
2021-08-25T10:59:23.3303646Z Starting Business Central Service Tier
2021-08-25T10:59:37.5333909Z Importing license file
2021-08-25T10:59:37.5345052Z Copying Database on localhost\SQLEXPRESS from tenant to default
2021-08-25T10:59:37.5349923Z Taking database tenant offline
2021-08-25T10:59:37.5359037Z Copying database files
2021-08-25T10:59:37.5363791Z Attaching files as new Database default
2021-08-25T10:59:37.5372691Z Putting database tenant back online
2021-08-25T10:59:37.5376152Z Mounting tenant database
2021-08-25T11:01:04.9719780Z Mounting Database for default on server localhost\SQLEXPRESS with AllowAppDatabaseWrite = False
2021-08-25T11:01:04.9727476Z Sync'ing Tenant
2021-08-25T11:01:04.9735528Z Tenant is Operational
2021-08-25T11:01:04.9750008Z Stopping Business Central Service Tier
2021-08-25T11:01:04.9759270Z Installation took 2***9 seconds
2021-08-25T11:01:04.9763877Z Installation complete
2021-08-25T11:01:04.9773809Z Initializing...
2021-08-25T11:01:04.9786293Z Setting host.containerhelper.internal to ***72.29.***44.*** in container hosts file
2021-08-25T11:01:04.9795297Z Starting Container
2021-08-25T11:01:04.9800684Z Hostname is hostedagent-c4clogisticoperationsappsource-ci
2021-08-25T11:01:04.9956256Z PublicDnsName is hostedagent-c4clogisticoperationsappsource-ci
2021-08-25T11:01:07.7289636Z Using NavUserPassword Authentication
2021-08-25T11:01:11.7607060Z Creating Self Signed Certificate
2021-08-25T11:01:11.7621266Z Self Signed Certificate Thumbprint 5763***96355AA25***692D86***C20***4B37A***86AA769B
2021-08-25T11:01:12.9837582Z Modifying Service Tier Config File with Instance Specific Settings
2021-08-25T11:01:12.9852496Z Modifying Service Tier Config File with settings from environment variable
2021-08-25T11:01:14.8848389Z Setting EnableTaskScheduler to False
2021-08-25T11:01:22.1240273Z Starting Service Tier
2021-08-25T11:01:22.1266710Z Registering event sources
2021-08-25T11:01:28.0678294Z Creating DotNetCore Web Server Instance
2021-08-25T11:01:28.0706873Z Enabling Financials User Experience
2021-08-25T11:01:28.0722136Z Using license file 'c:\run\my\license.flf'
2021-08-25T11:01:29.3753301Z Import License
2021-08-25T11:01:29.3766294Z Dismounting Tenant
2021-08-25T11:01:29.3769990Z Mounting Tenant
2021-08-25T11:01:41.2347709Z Mounting Database for default on server localhost\SQLEXPRESS with AllowAppDatabaseWrite = False
2021-08-25T11:01:42.6236188Z Sync'ing Tenant
2021-08-25T11:01:42.6245868Z Tenant is Operational
2021-08-25T11:01:42.6265458Z Creating http download site
2021-08-25T11:01:42.6275316Z Setting SA Password and enabling SA
2021-08-25T11:01:42.6279300Z Creating admin as SQL User and add to sysadmin
2021-08-25T11:01:56.1489278Z Creating SUPER user
2021-08-25T11:01:56.1497012Z Container IP Address: ***72.29.***47.***49
2021-08-25T11:01:56.1507162Z Container Hostname  : hostedagent-c4clogisticoperationsappsource-ci
2021-08-25T11:01:56.1514130Z Container Dns Name  : hostedagent-c4clogisticoperationsappsource-ci
2021-08-25T11:01:56.1530030Z Web Client          : http://hostedagent-c4clogisticoperationsappsource-ci/BC/?tenant=default
2021-08-25T11:01:56.1539160Z Dev. Server         : http://hostedagent-c4clogisticoperationsappsource-ci
2021-08-25T11:01:56.1545706Z Dev. ServerInstance : BC
2021-08-25T11:01:56.1557375Z Dev. Server Tenant  : default
2021-08-25T11:01:56.1570153Z Setting hostedagent-c4clogisticoperationsappsource-ci to ***72.29.***47.***49 in host hosts file
2021-08-25T11:01:56.1571212Z Setting hostedagent-c4clogisticoperationsappsource-ci-default to ***72.29.***47.***49 in host hosts file
2021-08-25T11:01:56.1586516Z Setting hostedagent-c4clogisticoperationsappsource-ci-default to ***72.29.***47.***49 in container hosts file
2021-08-25T11:01:56.1590122Z 
2021-08-25T11:01:56.1597278Z Files:
2021-08-25T11:01:56.1605500Z http://hostedagent-c4clogisticoperationsappsource-ci:8080/Microsoft.VisualStudio.Services.VSIXPackage.vsix
2021-08-25T11:01:56.1612987Z 
2021-08-25T11:01:56.1624013Z Container Total Physical Memory is 7.0Gb
2021-08-25T11:01:56.1629960Z Container Free Physical Memory is 2.8Gb
2021-08-25T11:01:56.1634913Z 
2021-08-25T11:01:56.1650170Z Initialization took 53 seconds
2021-08-25T11:01:56.1652230Z Ready for connections!
2021-08-25T11:01:56.3726239Z Reading CustomSettings.config from hostedagent-c4clogisticoperationsappsource-ci
2021-08-25T11:01:59.0871961Z Creating Desktop Shortcuts for hostedagent-c4clogisticoperationsappsource-ci
2021-08-25T11:01:59.3550497Z Container hostedagent-c4clogisticoperationsappsource-ci successfully created
2021-08-25T11:01:59.3554930Z 
2021-08-25T11:01:59.3562862Z Use:
2021-08-25T11:01:59.3580695Z Get-BcContainerEventLog -containerName hostedagent-c4clogisticoperationsappsource-ci to retrieve a snapshot of the event log from the container
2021-08-25T11:01:59.3589412Z Get-BcContainerDebugInfo -containerName hostedagent-c4clogisticoperationsappsource-ci to get debug information about the container
2021-08-25T11:01:59.3602642Z Enter-BcContainer -containerName hostedagent-c4clogisticoperationsappsource-ci to open a PowerShell prompt inside the container
2021-08-25T11:01:59.3619889Z Remove-BcContainer -containerName hostedagent-c4clogisticoperationsappsource-ci to remove the container again
2021-08-25T11:01:59.3627963Z docker logs hostedagent-c4clogisticoperationsappsource-ci to retrieve information about URL's again
2021-08-25T11:01:59.3793917Z 
2021-08-25T11:01:59.3800304Z Creating container took 394 seconds
2021-08-25T11:01:59.3812976Z 
2021-08-25T11:01:59.3824988Z    _____                      _ _ _                                     
2021-08-25T11:01:59.3829102Z   / ____|                    (_) (_)                                    
2021-08-25T11:01:59.3844020Z  | |     ___  _ __ ___  _ __  _| |_ _ __   __ _    __ _ _ __  _ __  ___ 
2021-08-25T11:01:59.3850848Z  | |    / _ \| '_ ` _ \| '_ \| | | | '_ \ / _` |  / _` | '_ \| '_ \/ __|
2021-08-25T11:01:59.3860778Z  | |____ (_) | | | | | | |_) | | | | | | | (_| | | (_| | |_) | |_) \__ \
2021-08-25T11:01:59.3867545Z   \_____\___/|_| |_| |_| .__/|_|_|_|_| |_|\__, |  \__,_| .__/| .__/|___/
2021-08-25T11:01:59.3888959Z                        | |                 __/ |       | |   | |        
2021-08-25T11:01:59.3900311Z                        |_|                |___/        |_|   |_|        
2021-08-25T11:01:59.3900613Z 
2021-08-25T11:01:59.4762785Z Creating ruleset for pipeline
2021-08-25T11:01:59.4787717Z Downloading D:\a\***\s\base\appsource.default.ruleset.json
2021-08-25T11:02:00.2778122Z Using Version ***8.3.***434.0
2021-08-25T11:02:00.2949111Z Copying previous apps to packages folder
2021-08-25T11:02:00.3077229Z Downloading C:\Users\VssAdministrator\AppData\Local\Temp\0a98733e-94cf-4360-8f5d-7***6e9357c90***
2021-08-25T11:02:00.5185605Z 
2021-08-25T11:02:00.5193019Z   _____                           _                _____            _        _                 
2021-08-25T11:02:00.5200969Z  |  __ \                         (_)              / ____|          | |      (_)                
2021-08-25T11:02:00.5218636Z  | |__) |___ _ __ ___   _____   ___ _ __   __ _  | |     ___  _ __ | |_ __ _ _ _ __   ___ _ __ 
2021-08-25T11:02:00.5222636Z  |  _  // _ \ '_ ` _ \ / _ \ \ / / | '_ \ / _` | | |    / _ \| '_ \| __/ _` | | '_ \ / _ \ '__|
2021-08-25T11:02:00.5232444Z  | | \ \  __/ | | | | | (_) \ V /| | | | | (_| | | |____ (_) | | | | |_ (_| | | | | |  __/ |   
2021-08-25T11:02:00.5236827Z  |_|  \_\___|_| |_| |_|\___/ \_/ |_|_| |_|\__, |  \_____\___/|_| |_|\__\__,_|_|_| |_|\___|_|   
2021-08-25T11:02:00.5256832Z                                            __/ |                                               
2021-08-25T11:02:00.5258031Z                                           |___/                                                
2021-08-25T11:02:00.5258465Z 
2021-08-25T11:02:01.4417603Z Removing container hostedagent-c4clogisticoperationsappsource-ci
2021-08-25T11:02:04.3227794Z Removing hostedagent-c4clogisticoperationsappsource-ci from container hosts file
2021-08-25T11:02:04.4798551Z Removing hostedagent-c4clogisticoperationsappsource-ci-* from container hosts file
2021-08-25T11:02:04.4811359Z Removing C:\ProgramData\BcContainerHelper\Extensions\hostedagent-c4clogisticoperationsappsource-ci
2021-08-25T11:02:04.5156135Z 
2021-08-25T11:02:04.5161944Z Removing container took 4 seconds
2021-08-25T11:02:04.5204862Z NOTE: The app in D:\a\***\s\base has ShowMyCode set to true. This means that people will be able to debug and see the source code of your app. (see https://aka.ms/showMyCode)
2021-08-25T11:02:05.0676857Z ##[error]Exception calling "DownloadFile" with "2" argument(s): "The remote server returned an error: (400) Bad Request."
At C:\Users\VssAdministrator\AppData\Local\Temp\ad546887-07e2-4fe8-8d88-d8345dde***d03\Misc\Download-File.ps***:57 char:9
+         (New-Object TimeoutWebClient -ArgumentList (***000*$timeout)).D ...
+         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : WebException
2021-08-25T11:02:05.0853017Z ##[error]PowerShell exited with code '***'.
2021-08-25T11:02:05.1755827Z ##[section]Finishing: Run Pipeline
freddydk commented 3 years ago

The specified previousapps url is wrong

https://businesscentralapps.azureedge.net/C4CFoundation.appsource/latest/apps.zip

businesscentralapps.azureedge.net is "my" blob storage and I don't have any folder called C4CFoundation.appsource.

Anilkumaranisetty commented 3 years ago

How can i solve it as my current situation as i have a dependancy in the c4c foundaiton app.

Please suggest.

@freddydk : Kindly help

freddydk commented 3 years ago

you need to specify a link you where you place your previous app (your own storage account of some kind)

freddydk commented 3 years ago

You have specified this URL: https://businesscentralapps.azureedge.net/helloworld-appsource/latest/apps.zip to be the previous version of your app. It isn't. You can (in settings) set previousapps to an empty string, then you will get past this issue. But you will likely encounter a lot of issues like this and you may want to consider using ALOps for CI/CD instead of trying to do things yourself. The current do-it-yourself option does imply quite a steep learning curve.