microsoft / navcontainerhelper

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

##[error]ForEach-Object : Item has already been added. Key in dictionary: 'ee615b97-fa87-4f70-b070-e127ca1a8f7c:@{Major=1; Minor=0; Build=0; Revision=1; MajorRevision=0; MinorRevision=1}' #2324

Closed ivanrlg closed 2 years ago

ivanrlg commented 2 years ago

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

Describe the issue I'm using Azure Devops to build the unit tests, and recently I started getting the following error without making any changes to the settings:

[error]ForEach-Object : Item has already been added. Key in dictionary: 'ee615b97-fa87-4f70-b070-e127ca1a8f7c:@{Major=1;

Minor=0; Build=0; Revision=1; MajorRevision=0; MinorRevision=1}

Scripts used to create container and cause the issue

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

Full output of scripts

2022-02-23T22:31:01.6796759Z ##[section]Starting: Run Pipeline
2022-02-23T22:31:01.6952228Z ==============================================================================
2022-02-23T22:31:01.6952632Z Task         : PowerShell
2022-02-23T22:31:01.6953129Z Description  : Run a PowerShell script on Linux, macOS, or Windows
2022-02-23T22:31:01.6953434Z Version      : 2.198.0
2022-02-23T22:31:01.6953895Z Author       : Microsoft Corporation
2022-02-23T22:31:01.6954301Z Help         : https://docs.microsoft.com/azure/devops/pipelines/tasks/utility/powershell
2022-02-23T22:31:01.6954756Z ==============================================================================
2022-02-23T22:31:02.8156311Z Generating script.
2022-02-23T22:31:02.8180004Z Formatted command: . 'D:\a\1\s\scripts\DevOps-Pipeline.ps1' -environment "AzureDevOps" -version "ci" -appBuild 120 -appRevision 0
2022-02-23T22:31:02.8668302Z ========================== Starting Command Output ===========================
2022-02-23T22:31:02.8956786Z ##[command]"C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -NoLogo -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -Command ". 'D:\a\_temp\2e9e5d2c-e0c3-4e45-8744-e899858676df.ps1'"
2022-02-23T22:31:03.4480319Z Set artifact = ///us/Current
2022-02-23T22:31:03.4530745Z Set pipelineName = DockerforPlurE19.AppSource-ci
2022-02-23T22:31:03.4603728Z Set containerName = hostedagent-dockerforplure19appsource-ci
2022-02-23T22:31:03.4813215Z Set installApps = ''
2022-02-23T22:31:03.4846414Z Set previousApps = ''
2022-02-23T22:31:03.4880071Z Set appSourceCopMandatoryAffixes = 'PLU'
2022-02-23T22:31:03.4925965Z Set appSourceCopSupportedCountries = 'us,dk,gb'
2022-02-23T22:31:03.4958282Z Set appFolders = 'app'
2022-02-23T22:31:03.4992825Z Set testFolders = 'test'
2022-02-23T22:31:03.5026360Z Set memoryLimit = '6G'
2022-02-23T22:31:03.5058722Z Set additionalCountries = ''
2022-02-23T22:31:03.5071153Z Set genericImageName = ''
2022-02-23T22:31:03.5106033Z Set vaultNameForLocal = 'BuildVariablesTDD'
2022-02-23T22:31:03.5139226Z Set bcContainerHelperVersion = 'dev'
2022-02-23T22:31:03.5193828Z Set installTestRunner = True
2022-02-23T22:31:03.5241569Z Set installTestFramework = True
2022-02-23T22:31:03.5276266Z Set installTestLibraries = True
2022-02-23T22:31:03.5309857Z Set installPerformanceToolkit = False
2022-02-23T22:31:03.5344971Z Set enableCodeCop = False
2022-02-23T22:31:03.5376325Z Set enableAppSourceCop = True
2022-02-23T22:31:03.5411404Z Set enablePerTenantExtensionCop = False
2022-02-23T22:31:03.5445011Z Set enableUICop = True
2022-02-23T22:31:03.5511360Z Set useDefaultAppSourceRuleSet = False
2022-02-23T22:31:03.5560589Z Set doNotSignApps = True
2022-02-23T22:31:03.5598398Z Set doNotRunTests = False
2022-02-23T22:31:03.5641008Z Set cacheImage = True
2022-02-23T22:31:03.5649083Z Set CreateRuntimePackages = True
2022-02-23T22:31:03.8820863Z Downloading https://github.com/microsoft/navcontainerhelper/archive/dev.zip
2022-02-23T22:31:18.2321104Z BcContainerHelper version 3.0.3-dev
2022-02-23T22:31:18.2404298Z BcContainerHelper emits usage statistics telemetry to Microsoft
2022-02-23T22:31:21.7865225Z Determining artifacts to use
2022-02-23T22:31:35.6977009Z   _____                               _                
2022-02-23T22:31:35.7010061Z  |  __ \                             | |               
2022-02-23T22:31:35.7023417Z  | |__) |_ _ _ __ __ _ _ __ ___   ___| |_ ___ _ __ ___ 
2022-02-23T22:31:35.7064039Z  |  ___/ _` | '__/ _` | '_ ` _ \ / _ \ __/ _ \ '__/ __|
2022-02-23T22:31:35.7079005Z  | |  | (_| | | | (_| | | | | | |  __/ |_  __/ |  \__ \
2022-02-23T22:31:35.7107596Z  |_|   \__,_|_|  \__,_|_| |_| |_|\___|\__\___|_|  |___/
2022-02-23T22:31:35.7108524Z 
2022-02-23T22:31:35.7119902Z Pipeline name               DockerforPlurE19.AppSource-ci
2022-02-23T22:31:35.7147862Z Container name              hostedagent-dockerforplure19appsource-ci
2022-02-23T22:31:35.7160039Z Image name                  
2022-02-23T22:31:35.7206662Z ArtifactUrl                 https://bcartifacts.azureedge.net/sandbox/19.4.35398.36518/us
2022-02-23T22:31:35.7218805Z SasToken                    Not Specified
2022-02-23T22:31:35.7247623Z BcAuthContext               Not Specified
2022-02-23T22:31:35.7260426Z Environment                 
2022-02-23T22:31:35.7278590Z ReUseContainer              False
2022-02-23T22:31:35.7297196Z KeepContainer               False
2022-02-23T22:31:35.7298297Z Auth                        UserPassword
2022-02-23T22:31:35.7491366Z Credential                  admin/Faka4306
2022-02-23T22:31:35.8029445Z CompanyName                 
2022-02-23T22:31:35.8050194Z MemoryLimit                 6G
2022-02-23T22:31:35.8068323Z Enable Task Scheduler       False
2022-02-23T22:31:35.8092838Z Assign Premium Plan         False
2022-02-23T22:31:35.8106435Z Install Test Runner         True
2022-02-23T22:31:35.8128474Z Install Test Framework      True
2022-02-23T22:31:35.8156212Z Install Test Libraries      True
2022-02-23T22:31:35.8168805Z Install Perf. Toolkit       False
2022-02-23T22:31:35.8196880Z CopySymbolsFromContainer    False
2022-02-23T22:31:35.8206938Z enableCodeCop               False
2022-02-23T22:31:35.8235101Z enableAppSourceCop          True
2022-02-23T22:31:35.8246611Z enableUICop                 True
2022-02-23T22:31:35.8274009Z enablePerTenantExtensionCop False
2022-02-23T22:31:35.8283568Z doNotPerformUpgrade         False
2022-02-23T22:31:35.8311056Z uninstallRemovedApps        False
2022-02-23T22:31:35.8327993Z escapeFromCops              False
2022-02-23T22:31:35.8429357Z doNotBuildTests             False
2022-02-23T22:31:35.8440669Z doNotRunTests               False
2022-02-23T22:31:35.8468326Z doNotRunBcptTests           False
2022-02-23T22:31:35.8481114Z useDefaultAppSourceRuleSet  False
2022-02-23T22:31:35.8494567Z rulesetFile                 
2022-02-23T22:31:35.8522138Z azureDevOps                 True
2022-02-23T22:31:35.8532626Z gitLab                      False
2022-02-23T22:31:35.8559042Z gitHubActions               False
2022-02-23T22:31:35.8570012Z License file                Specified
2022-02-23T22:31:35.8600622Z CodeSignCertPfxFile         Not specified
2022-02-23T22:31:35.8627846Z CodeSignCertPfxPassword     Not specified
2022-02-23T22:31:35.8699257Z CodeSignCertIsSelfSigned    False
2022-02-23T22:31:35.8714119Z KeyVaultCertPfxFile         Not specified
2022-02-23T22:31:35.8726215Z KeyVaultCertPfxPassword     Not specified
2022-02-23T22:31:35.8741041Z KeyVaultClientId            
2022-02-23T22:31:35.8747856Z TestResultsFile             D:\a\1\s\TestResults.xml
2022-02-23T22:31:35.8768326Z BcptTestResultsFile         D:\a\1\s\bcptTestResults.json
2022-02-23T22:31:35.8786810Z TestResultsFormat           JUnit
2022-02-23T22:31:35.8823650Z AdditionalCountries         
2022-02-23T22:31:35.8842031Z PackagesFolder              D:\a\1\s\.packages
2022-02-23T22:31:35.8858865Z OutputFolder                D:\a\1\s\.output
2022-02-23T22:31:35.8885386Z BuildArtifactFolder         D:\a\1\a
2022-02-23T22:31:35.8898699Z CreateRuntimePackages       True
2022-02-23T22:31:35.8919950Z AppVersion                  
2022-02-23T22:31:35.8929542Z AppBuild                    120
2022-02-23T22:31:35.8957728Z AppRevision                 0
2022-02-23T22:31:35.8968165Z Mandatory Affixes           PLU
2022-02-23T22:31:35.8994092Z Supported Countries         us,dk,gb
2022-02-23T22:31:35.9005778Z Install Apps
2022-02-23T22:31:35.9016825Z - None
2022-02-23T22:31:35.9043001Z Install Test Apps
2022-02-23T22:31:35.9049822Z - None
2022-02-23T22:31:35.9067070Z Previous Apps
2022-02-23T22:31:35.9072919Z -  
2022-02-23T22:31:35.9084803Z Application folders
2022-02-23T22:31:35.9098405Z - D:\a\1\s\app
2022-02-23T22:31:35.9115432Z Test application folders
2022-02-23T22:31:35.9119963Z - D:\a\1\s\test
2022-02-23T22:31:35.9135094Z BCPT Test application folders
2022-02-23T22:31:35.9148556Z - None
2022-02-23T22:31:35.9159469Z Custom CodeCops
2022-02-23T22:31:35.9164635Z - None
2022-02-23T22:31:35.9264436Z 
2022-02-23T22:31:35.9270007Z   _____       _ _ _                                          _        _                            
2022-02-23T22:31:35.9281534Z  |  __ \     | | (_)                                        (_)      (_)                           
2022-02-23T22:31:35.9288382Z  | |__) |   _| | |_ _ __   __ _    __ _  ___ _ __   ___ _ __ _  ___   _ _ __ ___   __ _  __ _  ___ 
2022-02-23T22:31:35.9300062Z  |  ___/ | | | | | | '_ \ / _` |  / _` |/ _ \ '_ \ / _ \ '__| |/ __| | | '_ ` _ \ / _` |/ _` |/ _ \
2022-02-23T22:31:35.9305657Z  | |   | |_| | | | | | | | (_| | | (_| |  __/ | | |  __/ |  | | (__  | | | | | | | (_| | (_| |  __/
2022-02-23T22:31:35.9317384Z  |_|    \__,_|_|_|_|_| |_|\__, |  \__, |\___|_| |_|\___|_|  |_|\___| |_|_| |_| |_|\__,_|\__, |\___|
2022-02-23T22:31:35.9322684Z                            __/ |   __/ |                                                 __/ |     
2022-02-23T22:31:35.9334684Z                           |___/   |___/                                                 |___/      
2022-02-23T22:31:35.9335265Z 
2022-02-23T22:31:36.8892233Z Pulling mcr.microsoft.com/businesscentral:10.0.17763.2452
2022-02-23T22:46:48.5665996Z 
2022-02-23T22:46:48.5803537Z Pulling generic image took 912 seconds
2022-02-23T22:46:48.5804295Z 
2022-02-23T22:46:48.5805012Z    _____                _   _                               _        _                 
2022-02-23T22:46:48.5805755Z   / ____|              | | (_)                             | |      (_)                
2022-02-23T22:46:48.5806295Z  | |     _ __ ___  __ _| |_ _ _ __   __ _    ___ ___  _ __ | |_ __ _ _ _ __   ___ _ __ 
2022-02-23T22:46:48.5806994Z  | |    | '__/ _ \/ _` | __| | '_ \ / _` |  / __/ _ \| '_ \| __/ _` | | '_ \ / _ \ '__|
2022-02-23T22:46:48.5807634Z  | |____| | |  __/ (_| | |_| | | | | (_| | | (__ (_) | | | | |_ (_| | | | | |  __/ |   
2022-02-23T22:46:48.5812591Z   \_____|_|  \___|\__,_|\__|_|_| |_|\__, |  \___\___/|_| |_|\__\__,_|_|_| |_|\___|_|   
2022-02-23T22:46:48.5813355Z                                      __/ |                                             
2022-02-23T22:46:48.5813887Z                                     |___/                                              
2022-02-23T22:46:48.5814189Z 
2022-02-23T22:46:50.8657819Z WARNING: Container name should not exceed 15 characters
2022-02-23T22:46:51.5559655Z BcContainerHelper is version 3.0.3-dev
2022-02-23T22:46:51.5567755Z BcContainerHelper is running as administrator
2022-02-23T22:46:51.5815473Z Host is Microsoft Windows Server 2019 Datacenter - ltsc2019
2022-02-23T22:46:51.9317841Z Docker Client Version is 20.10.7
2022-02-23T22:46:51.9350556Z Docker Server Version is 20.10.7
2022-02-23T22:46:52.6376464Z Downloading application artifact /sandbox/19.4.35398.36518/us
2022-02-23T22:46:52.6617030Z Downloading C:\Users\VssAdministrator\AppData\Local\Temp\36e83482-fab1-4465-ac61-2064d9a220f1.zip
2022-02-23T22:47:08.3879596Z Unpacking application artifact to tmp folder using 7zip
2022-02-23T22:47:17.8940322Z Downloading platform artifact /sandbox/19.4.35398.36518/platform
2022-02-23T22:47:17.8983236Z Downloading C:\Users\VssAdministrator\AppData\Local\Temp\106a4159-b4f7-46b1-ab3b-fd3b990ffc9e.zip
2022-02-23T22:47:36.3851420Z Unpacking platform artifact to tmp folder using 7zip
2022-02-23T22:48:01.1750149Z Downloading Prerequisite Components
2022-02-23T22:48:01.2719338Z Downloading c:\bcartifacts.cache\sandbox\19.4.35398.36518\platform\Prerequisite Components\Open XML SDK 2.5 for Microsoft Office\OpenXMLSDKv25.msi
2022-02-23T22:48:02.4868460Z Downloading c:\bcartifacts.cache\sandbox\19.4.35398.36518\platform\Prerequisite Components\IIS URL Rewrite Module\rewrite_2.0_rtw_x64.msi
2022-02-23T22:48:04.0454205Z Downloading c:\bcartifacts.cache\sandbox\19.4.35398.36518\platform\Prerequisite Components\DotNetCore\DotNetCore.1.0.4_1.1.1-WindowsHosting.exe
2022-02-23T22:48:08.9800592Z Fetching all docker images
2022-02-23T22:48:12.0497780Z Fetching all docker volumes
2022-02-23T22:48:12.4366829Z Using image mcr.microsoft.com/businesscentral:10.0.17763.2452
2022-02-23T22:48:13.2507937Z Creating Container hostedagent-dockerforplure19appsource-ci
2022-02-23T22:48:13.2532519Z Style: sandbox
2022-02-23T22:48:13.2541597Z Multitenant: Yes
2022-02-23T22:48:13.2558056Z Version: 19.4.35398.36518
2022-02-23T22:48:13.2577830Z Platform: 19.0.35391.36452
2022-02-23T22:48:13.2590713Z Generic Tag: 1.0.2.1
2022-02-23T22:48:13.2648876Z Container OS Version: 10.0.17763.2452 (ltsc2019)
2022-02-23T22:48:13.2666792Z Host OS Version: 10.0.17763.2458 (ltsc2019)
2022-02-23T22:48:16.4133328Z WARNING: Host OS and Base Image Container OS doesn't match and Hyper-V is not installed. If you encounter issues, you could try to install Hyper-V.
2022-02-23T22:48:16.4271769Z Using process isolation
2022-02-23T22:48:16.4296642Z Using locale en-US
2022-02-23T22:48:16.4304772Z Disabling the standard eventlog dump to container log every 2 seconds (use -dumpEventLog to enable)
2022-02-23T22:48:16.4863230Z Downloading C:\ProgramData\BcContainerHelper\Extensions\hostedagent-dockerforplure19appsource-ci\Microsoft.VisualStudio.Services.VSIXPackage.vsix
2022-02-23T22:48:17.3280878Z Using license file 
2022-02-23T22:48:17.3334226Z Downloading C:\ProgramData\BcContainerHelper\Extensions\hostedagent-dockerforplure19appsource-ci\my\license.flf
2022-02-23T22:48:18.4505322Z Additional Parameters:
2022-02-23T22:48:18.4528595Z --volume "D:\a\1\s:c:\sources"
2022-02-23T22:48:18.4529491Z --env customNavSettings=EnableTaskScheduler=False
2022-02-23T22:48:18.4545287Z Files in C:\ProgramData\BcContainerHelper\Extensions\hostedagent-dockerforplure19appsource-ci\my:
2022-02-23T22:48:18.4593820Z - AdditionalOutput.ps1
2022-02-23T22:48:18.4612199Z - license.flf
2022-02-23T22:48:18.4640763Z - MainLoop.ps1
2022-02-23T22:48:18.4656879Z - SetupVariables.ps1
2022-02-23T22:48:18.4672736Z - updatehosts.ps1
2022-02-23T22:48:18.4680055Z Creating container hostedagent-dockerforplure19appsource-ci from image mcr.microsoft.com/businesscentral:10.0.17763.2452
2022-02-23T22:48:19.3738828Z fd083b6a65e49d34841af271cb2a698de49795e6331c1c026a9db9c06a210103
2022-02-23T22:48:47.8709198Z Waiting for container hostedagent-dockerforplure19appsource-ci to be ready
2022-02-23T22:48:51.8943758Z Adding HOSTEDAGENT-DOC to hosts file
2022-02-23T22:48:51.8952551Z Using artifactUrl https://bcartifacts.azureedge.net/sandbox/19.4.35398.36518/us
2022-02-23T22:48:51.8964149Z Using installer from C:\Run\150-new
2022-02-23T22:48:51.8975645Z Installing Business Central
2022-02-23T22:48:51.8979989Z Installing from artifacts
2022-02-23T22:48:58.8127690Z Starting Local SQL Server
2022-02-23T22:49:00.1005001Z Starting Internet Information Server
2022-02-23T22:49:00.1013671Z Copying Service Tier Files
2022-02-23T22:49:01.4032511Z c:\dl\sandbox\19.4.35398.36518\platform\ServiceTier\Program Files
2022-02-23T22:49:01.4048030Z c:\dl\sandbox\19.4.35398.36518\platform\ServiceTier\System64Folder
2022-02-23T22:49:01.4056357Z Copying PowerShell Scripts
2022-02-23T22:49:01.4068819Z c:\dl\sandbox\19.4.35398.36518\platform\WindowsPowerShellScripts\Cloud\NAVAdministration
2022-02-23T22:49:01.4073052Z c:\dl\sandbox\19.4.35398.36518\platform\WindowsPowerShellScripts\WebSearch
2022-02-23T22:49:01.4084673Z Copying dependencies
2022-02-23T22:49:01.4089807Z Copying ReportBuilder
2022-02-23T22:49:02.6927658Z Importing PowerShell Modules
2022-02-23T22:49:05.0695884Z Determining Database Collation from c:\dl\sandbox\19.4.35398.36518\us\BusinessCentral-US.bak
2022-02-23T22:49:29.9884847Z Restoring CRONUS Demo Database
2022-02-23T22:49:32.4764386Z Setting CompatibilityLevel for tenant on localhost\SQLEXPRESS
2022-02-23T22:50:33.2548458Z Exporting Application to CRONUS
2022-02-23T22:50:41.5882207Z Removing Application from tenant
2022-02-23T22:50:41.5897199Z Modifying Business Central Service Tier Config File for Docker
2022-02-23T22:50:41.5902046Z Creating Business Central Service Tier
2022-02-23T22:50:42.8693613Z Installing SIP crypto provider: 'C:\Windows\System32\NavSip.dll'
2022-02-23T22:50:42.8794687Z Copying Web Client Files
2022-02-23T22:50:42.8807038Z c:\dl\sandbox\19.4.35398.36518\platform\WebClient\Microsoft Dynamics NAV
2022-02-23T22:50:42.8811513Z Copying Client Files
2022-02-23T22:50:42.8820735Z c:\dl\sandbox\19.4.35398.36518\platform\LegacyDlls\program files\Microsoft Dynamics NAV
2022-02-23T22:50:42.8834686Z c:\dl\sandbox\19.4.35398.36518\platform\LegacyDlls\program files\Microsoft Dynamics NAV
2022-02-23T22:50:42.8837465Z c:\dl\sandbox\19.4.35398.36518\platform\LegacyDlls\systemFolder
2022-02-23T22:50:42.9027568Z Copying ModernDev Files
2022-02-23T22:50:42.9041761Z c:\dl\sandbox\19.4.35398.36518\platform
2022-02-23T22:50:42.9057296Z c:\dl\sandbox\19.4.35398.36518\platform\ModernDev\program files\Microsoft Dynamics NAV
2022-02-23T22:50:42.9086519Z Copying additional files
2022-02-23T22:50:42.9092666Z Copying ConfigurationPackages
2022-02-23T22:50:42.9099689Z C:\dl\sandbox\19.4.35398.36518\us\ConfigurationPackages
2022-02-23T22:50:42.9119884Z Copying Test Assemblies
2022-02-23T22:50:42.9136409Z C:\dl\sandbox\19.4.35398.36518\platform\Test Assemblies
2022-02-23T22:50:42.9155159Z Copying Extensions
2022-02-23T22:50:42.9195540Z C:\dl\sandbox\19.4.35398.36518\us\Extensions
2022-02-23T22:50:42.9197215Z Copying Applications
2022-02-23T22:50:42.9211818Z C:\dl\sandbox\19.4.35398.36518\platform\Applications
2022-02-23T22:50:42.9225333Z Copying Applications.US
2022-02-23T22:50:42.9226301Z C:\dl\sandbox\19.4.35398.36518\us\Applications.US
2022-02-23T22:51:13.2700361Z Starting Business Central Service Tier
2022-02-23T22:51:13.2708377Z Importing license file
2022-02-23T22:51:13.2720399Z Copying Database on localhost\SQLEXPRESS from tenant to default
2022-02-23T22:51:13.2726284Z Taking database tenant offline
2022-02-23T22:51:13.2737776Z Copying database files
2022-02-23T22:51:13.2743326Z Attaching files as new Database default
2022-02-23T22:51:13.2761566Z Putting database tenant back online
2022-02-23T22:51:13.2762172Z Mounting tenant database
2022-02-23T22:52:45.1019875Z Mounting Database for default on server localhost\SQLEXPRESS with AllowAppDatabaseWrite = False
2022-02-23T22:52:46.6934431Z Sync'ing Tenant
2022-02-23T22:52:46.6980837Z Tenant is Operational
2022-02-23T22:52:46.7073085Z Stopping Business Central Service Tier
2022-02-23T22:52:46.7209586Z Installation took 234 seconds
2022-02-23T22:52:46.7241864Z Installation complete
2022-02-23T22:52:46.7242570Z Initializing...
2022-02-23T22:52:46.7266812Z Setting host.containerhelper.internal to 172.29.224.1 in container hosts file
2022-02-23T22:52:46.7280244Z Starting Container
2022-02-23T22:52:46.7293734Z Hostname is hostedagent-dockerforplure19appsource-ci
2022-02-23T22:52:47.8482281Z PublicDnsName is hostedagent-dockerforplure19appsource-ci
2022-02-23T22:52:47.8490541Z Using NavUserPassword Authentication
2022-02-23T22:52:49.2253546Z Creating Self Signed Certificate
2022-02-23T22:52:49.2261652Z Self Signed Certificate Thumbprint D1E9B92E5A07C455DA43CB957D420A5847F1D4F3
2022-02-23T22:52:49.2267365Z DNS identity hostedagent-dockerforplure19appsource-ci
2022-02-23T22:52:49.2288246Z Modifying Service Tier Config File with Instance Specific Settings
2022-02-23T22:52:49.2292959Z Modifying Service Tier Config File with settings from environment variable
2022-02-23T22:52:50.3935177Z Setting EnableTaskScheduler to False
2022-02-23T22:52:59.1695305Z Starting Service Tier
2022-02-23T22:52:59.1715817Z Registering event sources
2022-02-23T22:53:09.1742723Z Creating DotNetCore Web Server Instance
2022-02-23T22:53:09.1758087Z Enabling Financials User Experience
2022-02-23T22:53:09.1764134Z Using license file 'c:\run\my\license.flf'
2022-02-23T22:53:09.1775949Z Import License
2022-02-23T22:53:09.1781547Z Dismounting Tenant
2022-02-23T22:53:09.1788560Z Mounting Tenant
2022-02-23T22:53:17.9152253Z Mounting Database for default on server localhost\SQLEXPRESS with AllowAppDatabaseWrite = False
2022-02-23T22:53:19.5331749Z Sync'ing Tenant
2022-02-23T22:53:19.5345745Z Tenant is Operational
2022-02-23T22:53:19.5351665Z Creating http download site
2022-02-23T22:53:19.5363024Z Setting SA Password and enabling SA
2022-02-23T22:53:19.5370791Z Creating admin as SQL User and add to sysadmin
2022-02-23T22:53:30.8332283Z Creating SUPER user
2022-02-23T22:53:30.8353461Z Container IP Address: 172.29.238.57
2022-02-23T22:53:30.8357499Z Container Hostname  : hostedagent-dockerforplure19appsource-ci
2022-02-23T22:53:30.8368000Z Container Dns Name  : hostedagent-dockerforplure19appsource-ci
2022-02-23T22:53:30.8376747Z Web Client          : http://hostedagent-dockerforplure19appsource-ci/BC/?tenant=default
2022-02-23T22:53:30.8387677Z Dev. Server         : http://hostedagent-dockerforplure19appsource-ci
2022-02-23T22:53:30.8398893Z Dev. ServerInstance : BC
2022-02-23T22:53:30.8423428Z Dev. Server Tenant  : default
2022-02-23T22:53:30.8432391Z Setting hostedagent-dockerforplure19appsource-ci to 172.29.238.57 in host hosts file
2022-02-23T22:53:30.8441470Z Setting hostedagent-dockerforplure19appsource-ci-default to 172.29.238.57 in host hosts file
2022-02-23T22:53:30.8594494Z Setting hostedagent-dockerforplure19appsource-ci-default to 172.29.238.57 in container hosts file
2022-02-23T22:53:30.8595006Z 
2022-02-23T22:53:30.8595349Z Files:
2022-02-23T22:53:30.8636144Z http://hostedagent-dockerforplure19appsource-ci:8080/Microsoft.VisualStudio.Services.VSIXPackage.vsix
2022-02-23T22:53:30.8636723Z 
2022-02-23T22:53:30.8637289Z Container Total Physical Memory is 7.0Gb
2022-02-23T22:53:30.8637794Z Container Free Physical Memory is 2.2Gb
2022-02-23T22:53:30.8637987Z 
2022-02-23T22:53:30.8638380Z Initialization took 45 seconds
2022-02-23T22:53:30.8638816Z Ready for connections!
2022-02-23T22:53:31.6686614Z Reading CustomSettings.config from hostedagent-dockerforplure19appsource-ci
2022-02-23T22:53:32.8405731Z Creating Desktop Shortcuts for hostedagent-dockerforplure19appsource-ci
2022-02-23T22:53:33.2524919Z Container hostedagent-dockerforplure19appsource-ci successfully created
2022-02-23T22:53:33.2553884Z 
2022-02-23T22:53:33.2569032Z Use:
2022-02-23T22:53:33.2602539Z Get-BcContainerEventLog -containerName hostedagent-dockerforplure19appsource-ci to retrieve a snapshot of the event log from the container
2022-02-23T22:53:33.2622145Z Get-BcContainerDebugInfo -containerName hostedagent-dockerforplure19appsource-ci to get debug information about the container
2022-02-23T22:53:33.2666643Z Enter-BcContainer -containerName hostedagent-dockerforplure19appsource-ci to open a PowerShell prompt inside the container
2022-02-23T22:53:33.2686670Z Remove-BcContainer -containerName hostedagent-dockerforplure19appsource-ci to remove the container again
2022-02-23T22:53:33.2714644Z docker logs hostedagent-dockerforplure19appsource-ci to retrieve information about URL's again
2022-02-23T22:53:35.0805671Z 
2022-02-23T22:53:35.0817156Z Creating container took 406 seconds
2022-02-23T22:53:35.0830563Z 
2022-02-23T22:53:35.0845140Z    _____                      _ _ _                                     
2022-02-23T22:53:35.0850009Z   / ____|                    (_) (_)                                    
2022-02-23T22:53:35.0861098Z  | |     ___  _ __ ___  _ __  _| |_ _ __   __ _    __ _ _ __  _ __  ___ 
2022-02-23T22:53:35.0877338Z  | |    / _ \| '_ ` _ \| '_ \| | | | '_ \ / _` |  / _` | '_ \| '_ \/ __|
2022-02-23T22:53:35.0884891Z  | |____ (_) | | | | | | |_) | | | | | | | (_| | | (_| | |_) | |_) \__ \
2022-02-23T22:53:35.0892071Z   \_____\___/|_| |_| |_| .__/|_|_|_|_| |_|\__, |  \__,_| .__/| .__/|___/
2022-02-23T22:53:35.0903196Z                        | |                 __/ |       | |   | |        
2022-02-23T22:53:35.0928272Z                        |_|                |___/        |_|   |_|        
2022-02-23T22:53:35.0929596Z 
2022-02-23T22:53:35.2347166Z Using Version 1.0.120.0
2022-02-23T22:53:35.6057777Z Copying previous apps to packages folder
2022-02-23T22:53:35.6306453Z Downloading C:\Users\VssAdministrator\AppData\Local\Temp\faa76fea-049b-4991-a453-f92860102eef
2022-02-23T22:53:39.7964938Z Removing container hostedagent-dockerforplure19appsource-ci
2022-02-23T22:53:42.8654927Z Removing hostedagent-dockerforplure19appsource-ci from container hosts file
2022-02-23T22:53:42.9813964Z Removing hostedagent-dockerforplure19appsource-ci-* from container hosts file
2022-02-23T22:53:43.0197356Z Removing C:\ProgramData\BcContainerHelper\Extensions\hostedagent-dockerforplure19appsource-ci
2022-02-23T22:53:43.5022128Z Run-AlPipeline Telemetry Correlation Id: a0e3a7af-846e-49b9-ac62-466e8c307533
2022-02-23T22:53:44.3062532Z ##[error]ForEach-Object : Item has already been added. Key in dictionary: 'ee615b97-fa87-4f70-b070-e127ca1a8f7c:@{Major=1; 
Minor=0; Build=0; Revision=1; MajorRevision=0; MinorRevision=1}'  Key being added: 
'ee615b97-fa87-4f70-b070-e127ca1a8f7c:@{Major=1; Minor=0; Build=0; Revision=1; MajorRevision=0; MinorRevision=1}'
At C:\Users\VssAdministrator\AppData\Local\Temp\6fa20849-3ca8-42f1-96a4-309df921735b\AppHandling\Sort-AppFilesByDepende
ncies.ps1:39 char:21
+         $appFiles | ForEach-Object {
+                     ~~~~~~~~~~~~~~~~
    + CategoryInfo          : OperationStopped: (:) [ForEach-Object], ArgumentException
    + FullyQualifiedErrorId : System.ArgumentException,Microsoft.PowerShell.Commands.ForEachObjectCommand
2022-02-23T22:53:44.3460232Z ##[error]PowerShell exited with code '1'.
2022-02-23T22:53:44.7109777Z ##[section]Finishing: Run Pipeline

Screenshots If applicable, add screenshots to help explain your problem.

Additional context

freddydk commented 2 years ago

Looks like your previousapps .zip file contains duplicate apps - download the .zip file and check

ivanrlg commented 2 years ago

Hello Freddy, what a pity, I don't know what happened to me that I copied the link that wasn't. Thank you always for your time.