Closed Anilkumaranisetty closed 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.
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
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
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
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.
How can i solve it as my current situation as i have a dependancy in the c4c foundaiton app.
Please suggest.
@freddydk : Kindly help
you need to specify a link you where you place your previous app (your own storage account of some kind)
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.
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
Full output of scripts
Additional context