microsoft / navcontainerhelper

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

Error Removing container: ClientSession State is Uninitialized (Wait time 10 seconds) #1927

Closed GreatScott000 closed 3 years ago

GreatScott000 commented 3 years ago

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

Describe the issue Running my pipelines I am getting an error in 2 of them when removing the container:

ClientSession State is Uninitialized (Wait time 10 seconds)

Scripts used to create container and cause the issue

Param(
    [Parameter(Mandatory=$false)]
    [ValidateSet('AzureDevOps','GithubActions','GitLab')]
    [string] $environment = 'AzureDevOps',
    [Parameter(Mandatory=$true)]
    [string] $version,
    [Parameter(Mandatory=$false)]
    [int] $appBuild = 0,
    [Parameter(Mandatory=$false)]
    [int] $appRevision = 0
)

if ($environment -eq "AzureDevOps") {
    $buildArtifactFolder = $ENV:BUILD_ARTIFACTSTAGINGDIRECTORY
}
elseif ($environment -eq "GitHubActions") {
    $buildArtifactFolder = Join-Path $ENV:GITHUB_WORKSPACE "output"
    New-Item $buildArtifactFolder -ItemType Directory | Out-Null
}

$baseFolder = (Get-Item (Join-Path $PSScriptRoot "..")).FullName
. (Join-Path $PSScriptRoot "Read-Settings.ps1") -environment $environment -version $version
. (Join-Path $PSScriptRoot "Install-BcContainerHelper.ps1") -bcContainerHelperVersion $bcContainerHelperVersion -genericImageName $genericImageName

$params = @{}
$insiderSasToken = "$ENV:insiderSasToken"
$licenseFile = "$ENV:licenseFile"
$codeSigncertPfxFile = "$ENV:CodeSignCertPfxFile"
if (!$doNotSignApps -and $codeSigncertPfxFile) {
    if ("$ENV:CodeSignCertPfxPassword" -ne "") {
        $codeSignCertPfxPassword = try { "$ENV:CodeSignCertPfxPassword" | ConvertTo-SecureString } catch { ConvertTo-SecureString -String "$ENV:CodeSignCertPfxPassword" -AsPlainText -Force }
        $params = @{
            "codeSignCertPfxFile" = $codeSignCertPfxFile
            "codeSignCertPfxPassword" = $codeSignCertPfxPassword
        }
    }
    else {
        $codeSignCertPfxPassword = $null
    }
}

$allTestResults = "testresults*.xml"
$testResultsFile = Join-Path $baseFolder "TestResults.xml"
$testResultsFiles = Join-Path $baseFolder $allTestResults
if (Test-Path $testResultsFiles) {
    Remove-Item $testResultsFiles -Force
}

Run-AlPipeline @params `
    -pipelinename $pipelineName `
    -containerName $containerName `
    -imageName $imageName `
    -artifact $artifact.replace('{INSIDERSASTOKEN}',$insiderSasToken) `
    -memoryLimit $memoryLimit `
    -baseFolder $baseFolder `
    -licenseFile $LicenseFile `
    -installApps $installApps `
    -previousApps $previousApps `
    -appFolders $appFolders `
    -testFolders $testFolders `
    -doNotRunTests:$doNotRunTests `
    -testResultsFile $testResultsFile `
    -testResultsFormat 'JUnit' `
    -installTestFramework:$installTestFramework `
    -installTestLibraries:$installTestLibraries `
    -installPerformanceToolkit:$installPerformanceToolkit `
    -enableCodeCop:$enableCodeCop `
    -enableAppSourceCop:$enableAppSourceCop `
    -enablePerTenantExtensionCop:$enablePerTenantExtensionCop `
    -enableUICop:$enableUICop `
    -azureDevOps:($environment -eq 'AzureDevOps') `
    -gitLab:($environment -eq 'GitLab') `
    -gitHubActions:($environment -eq 'GitHubActions') `
    -AppSourceCopMandatoryAffixes $appSourceCopMandatoryAffixes `
    -AppSourceCopSupportedCountries $appSourceCopSupportedCountries `
    -additionalCountries $additionalCountries `
    -buildArtifactFolder $buildArtifactFolder `
    -CreateRuntimePackages:$CreateRuntimePackages `
    -appBuild $appBuild -appRevision $appRevision `
    -rulesetFile $rulesetfile `
    -vsixFile (Get-LatestAlLanguageExtensionUrl)

if ($environment -eq 'AzureDevOps') {
    Write-Host "##vso[task.setvariable variable=TestResults]$allTestResults"
}

Pipeline:

trigger: none

schedules:
- cron: '0 9 * * Sunday'
  displayName: Weekly Next Major build
  branches:
    include:
    - main
  always: true

pool:
  vmImage: 'Windows-Latest'

variables:
- group: BuildVariablesa

jobs:
- job: Build
  timeoutInMinutes: 300
  variables:
    build.clean: all
    platform: x64
    version: "nextmajor"
    appBuild: 2147483647
    appRevision: 0
    skipComponentGovernanceDetection: True

  steps:
  - task: PowerShell@2
    displayName: 'Run Pipeline'
    env:
      InsiderSasToken: '$(InsiderSasToken)'
      LicenseFile: '$(LicenseFile)'
      CodeSignCertPfxFile: '$(CodeSignCertPfxFile)'
      CodeSignCertPfxPassword: '$(CodeSignCertPfxPassword)'
    inputs:
      targetType: filePath
      filePath: 'scripts\DevOps-Pipeline.ps1'
      arguments: '-environment "AzureDevOps" -version "$(version)" -appBuild $(appBuild) -appRevision $(appRevision)'
      failOnStderr: true

  - task: PublishTestResults@2
    displayName: 'Publish Test Results'
    condition: and(succeeded(),ne(variables['TestResults'],''))
    inputs:
      testResultsFormat: JUnit
      testResultsFiles: '$(testResults)'
      failTaskOnFailedTests: true

  - task: PowerShell@2
    displayName: 'Cleanup'
    condition: always()
    inputs:
      targetType: filePath
      filePath: 'scripts\Cleanup.ps1'
      arguments: '-environment "AzureDevOps"'
      failOnStderr: false

Full output of scripts

2021-05-17T07:21:15.3006884Z ##[section]Starting: Build
2021-05-17T07:21:15.4915983Z ##[section]Starting: Initialize job
2021-05-17T07:21:15.4917202Z Agent name: 'Hosted Agent'
2021-05-17T07:21:15.4917483Z Agent machine name: 'fv-az420-350'
2021-05-17T07:21:15.4917844Z Current agent version: '2.186.1'
2021-05-17T07:21:15.4954380Z ##[group]Operating System
2021-05-17T07:21:15.4954583Z Microsoft Windows Server 2019
2021-05-17T07:21:15.4954736Z 10.0.17763
2021-05-17T07:21:15.4954852Z Datacenter
2021-05-17T07:21:15.4954984Z ##[endgroup]
2021-05-17T07:21:15.4955119Z ##[group]Virtual Environment
2021-05-17T07:21:15.4955284Z Environment: windows-2019
2021-05-17T07:21:15.4955429Z Version: 20210509.1
2021-05-17T07:21:15.4955790Z Included Software: https://github.com/actions/virtual-environments/blob/win19/20210509.1/images/win/Windows2019-Readme.md
2021-05-17T07:21:15.4956117Z Image Release: https://github.com/actions/virtual-environments/releases/tag/win19%2F20210509.1
2021-05-17T07:21:15.4956321Z ##[endgroup]
2021-05-17T07:21:15.4957206Z Current image version: '20210509.1'
2021-05-17T07:21:15.4962513Z Agent running as: 'VssAdministrator'
2021-05-17T07:21:15.4992294Z Prepare build directory.
2021-05-17T07:21:15.5199166Z Set build variables.
2021-05-17T07:21:15.5224690Z Download all required tasks.
2021-05-17T07:21:15.5317192Z Downloading task: AzureKeyVault (1.182.1)
2021-05-17T07:21:16.2540180Z Downloading task: PowerShell (2.180.1)
2021-05-17T07:21:16.9884472Z Downloading task: PublishTestResults (2.180.0)
2021-05-17T07:21:17.4161355Z Checking job knob settings.
2021-05-17T07:21:17.4168983Z    Knob: AgentToolsDirectory = C:\hostedtoolcache\windows Source: ${AGENT_TOOLSDIRECTORY} 
2021-05-17T07:21:17.4170145Z    Knob: AgentPerflog = c:\vsts\perflog Source: ${VSTS_AGENT_PERFLOG} 
2021-05-17T07:21:17.4171552Z    Knob: TaskRestrictionsEnforcementMode = WarningOnly Source: $(agent.taskRestrictionsEnforcementMode) 
2021-05-17T07:21:17.4172085Z    Knob: EnableTaskRestrictionsTelemetry = true Source: $(agent.enableTaskRestrictionsTelemetry) 
2021-05-17T07:21:17.4172749Z Finished checking job knob settings.
2021-05-17T07:21:17.4467350Z Start tracking orphan processes.
2021-05-17T07:21:17.4523547Z ##[section]Finishing: Initialize job
2021-05-17T07:21:17.4738132Z ##[section]Starting: Download secrets: EvolveAppVault
2021-05-17T07:21:17.5208174Z ==============================================================================
2021-05-17T07:21:17.5208662Z Task         : Azure Key Vault
2021-05-17T07:21:17.5209020Z Description  : Download Azure Key Vault secrets
2021-05-17T07:21:17.5209231Z Version      : 1.182.1
2021-05-17T07:21:17.5209538Z Author       : Microsoft Corporation
2021-05-17T07:21:17.5209943Z Help         : https://docs.microsoft.com/azure/devops/pipelines/tasks/deploy/azure-key-vault
2021-05-17T07:21:17.5210262Z ==============================================================================
2021-05-17T07:21:19.1419999Z ##[section]Finishing: Download secrets: EvolveAppVault
2021-05-17T07:21:19.1448174Z ##[section]Starting: Download secrets: EvolveAppVault
2021-05-17T07:21:19.1547155Z ==============================================================================
2021-05-17T07:21:19.1547415Z Task         : Azure Key Vault
2021-05-17T07:21:19.1547629Z Description  : Download Azure Key Vault secrets
2021-05-17T07:21:19.1547810Z Version      : 1.182.1
2021-05-17T07:21:19.1548006Z Author       : Microsoft Corporation
2021-05-17T07:21:19.1548267Z Help         : https://docs.microsoft.com/azure/devops/pipelines/tasks/deploy/azure-key-vault
2021-05-17T07:21:19.1548628Z ==============================================================================
2021-05-17T07:21:19.3679821Z SubscriptionId: 86fd66f9-bf10-485c-bcc6-3434264cfd90.
2021-05-17T07:21:19.3681447Z Key vault name: EvolveAppVault.
2021-05-17T07:21:19.3694685Z Downloading secret value for: CodeSignPfxFile.
2021-05-17T07:21:19.5732824Z Downloading secret value for: CodeSignPfxPassword.
2021-05-17T07:21:19.5733887Z Downloading secret value for: insiderSasToken.
2021-05-17T07:21:19.5736366Z Downloading secret value for: LicenseFile.
2021-05-17T07:21:19.5737162Z Downloading secret value for: Password.
2021-05-17T07:21:19.5738034Z Downloading secret value for: StorageConnectionString.
2021-05-17T07:21:19.5738841Z Downloading secret value for: Username.
2021-05-17T07:21:21.1522668Z ##[section]Finishing: Download secrets: EvolveAppVault
2021-05-17T07:21:21.1555292Z ##[section]Starting: Checkout RMS@main to s
2021-05-17T07:21:21.1665449Z ==============================================================================
2021-05-17T07:21:21.1665815Z Task         : Get sources
2021-05-17T07:21:21.1666174Z Description  : Get sources from a repository. Supports Git, TfsVC, and SVN repositories.
2021-05-17T07:21:21.1666527Z Version      : 1.0.0
2021-05-17T07:21:21.1666781Z Author       : Microsoft
2021-05-17T07:21:21.1667768Z Help         : [More Information](https://go.microsoft.com/fwlink/?LinkId=798199)
2021-05-17T07:21:21.1668179Z ==============================================================================
2021-05-17T07:21:21.7143280Z Syncing repository: RMS (Git)
2021-05-17T07:21:21.7217155Z Prepending Path environment variable with directory containing 'git.exe'.
2021-05-17T07:21:21.7250891Z ##[command]git version
2021-05-17T07:21:22.5033016Z git version 2.30.2.windows.1
2021-05-17T07:21:22.5160759Z ##[command]git lfs version
2021-05-17T07:21:24.9049643Z git-lfs/2.13.3 (GitHub; windows amd64; go 1.16.2; git a5e65851)
2021-05-17T07:21:24.9181167Z ##[command]git init "D:\a\1\s"
2021-05-17T07:21:25.1844196Z Initialized empty Git repository in D:/a/1/s/.git/
2021-05-17T07:21:25.1897059Z ##[command]git remote add origin https://evolveims.visualstudio.com/RMS/_git/RMS
2021-05-17T07:21:25.2718530Z ##[command]git config gc.auto 0
2021-05-17T07:21:25.3461885Z ##[command]git config --get-all http.https://evolveims.visualstudio.com/RMS/_git/RMS.extraheader
2021-05-17T07:21:25.3772686Z ##[command]git config --get-all http.proxy
2021-05-17T07:21:25.4079655Z ##[command]git config http.version HTTP/1.1
2021-05-17T07:21:25.4431679Z ##[command]git -c http.extraheader="AUTHORIZATION: bearer ***" fetch --force --tags --prune --progress --no-recurse-submodules origin
2021-05-17T07:21:28.5002132Z remote: Azure Repos        
2021-05-17T07:21:28.6343761Z remote: 
2021-05-17T07:21:28.6347411Z remote: Found 252 objects to send. (135 ms)        
2021-05-17T07:21:28.6541287Z Receiving objects:   0% (1/252)
2021-05-17T07:21:28.6542313Z Receiving objects:   1% (3/252)
2021-05-17T07:21:28.6542627Z Receiving objects:   2% (6/252)
2021-05-17T07:21:28.6696112Z Receiving objects:   3% (8/252)
2021-05-17T07:21:28.6699131Z Receiving objects:   4% (11/252)
2021-05-17T07:21:28.6700186Z Receiving objects:   5% (13/252)
2021-05-17T07:21:28.6700760Z Receiving objects:   6% (16/252)
2021-05-17T07:21:28.6701632Z Receiving objects:   7% (18/252)
2021-05-17T07:21:28.6702396Z Receiving objects:   8% (21/252)
2021-05-17T07:21:28.6703070Z Receiving objects:   9% (23/252)
2021-05-17T07:21:28.6703770Z Receiving objects:  10% (26/252)
2021-05-17T07:21:28.6704446Z Receiving objects:  11% (28/252)
2021-05-17T07:21:28.6706088Z Receiving objects:  12% (31/252)
2021-05-17T07:21:28.6707478Z Receiving objects:  13% (33/252)
2021-05-17T07:21:28.6709399Z Receiving objects:  14% (36/252)
2021-05-17T07:21:28.6712306Z Receiving objects:  15% (38/252)
2021-05-17T07:21:28.6713086Z Receiving objects:  16% (41/252)
2021-05-17T07:21:28.6713795Z Receiving objects:  17% (43/252)
2021-05-17T07:21:28.6714331Z Receiving objects:  18% (46/252)
2021-05-17T07:21:28.6715241Z Receiving objects:  19% (48/252)
2021-05-17T07:21:28.6718725Z Receiving objects:  20% (51/252)
2021-05-17T07:21:28.6720178Z Receiving objects:  21% (53/252)
2021-05-17T07:21:28.6727268Z Receiving objects:  22% (56/252)
2021-05-17T07:21:28.6731311Z Receiving objects:  23% (58/252)
2021-05-17T07:21:28.6732079Z Receiving objects:  24% (61/252)
2021-05-17T07:21:28.6732771Z Receiving objects:  25% (63/252)
2021-05-17T07:21:28.6733405Z Receiving objects:  26% (66/252)
2021-05-17T07:21:28.6734752Z Receiving objects:  27% (69/252)
2021-05-17T07:21:28.6735353Z Receiving objects:  28% (71/252)
2021-05-17T07:21:28.6739609Z Receiving objects:  29% (74/252)
2021-05-17T07:21:28.6740998Z Receiving objects:  30% (76/252)
2021-05-17T07:21:28.6741713Z Receiving objects:  31% (79/252)
2021-05-17T07:21:28.6743330Z Receiving objects:  32% (81/252)
2021-05-17T07:21:28.6744341Z Receiving objects:  33% (84/252)
2021-05-17T07:21:28.6745148Z Receiving objects:  34% (86/252)
2021-05-17T07:21:28.6745826Z Receiving objects:  35% (89/252)
2021-05-17T07:21:28.6746530Z Receiving objects:  36% (91/252)
2021-05-17T07:21:28.6747225Z Receiving objects:  37% (94/252)
2021-05-17T07:21:28.6747920Z Receiving objects:  38% (96/252)
2021-05-17T07:21:28.6748631Z Receiving objects:  39% (99/252)
2021-05-17T07:21:28.6751045Z Receiving objects:  40% (101/252)
2021-05-17T07:21:28.6756703Z Receiving objects:  41% (104/252)
2021-05-17T07:21:28.6762872Z Receiving objects:  42% (106/252)
2021-05-17T07:21:28.6769307Z Receiving objects:  43% (109/252)
2021-05-17T07:21:28.6774718Z Receiving objects:  44% (111/252)
2021-05-17T07:21:28.6779173Z Receiving objects:  45% (114/252)
2021-05-17T07:21:28.6783854Z Receiving objects:  46% (116/252)
2021-05-17T07:21:28.6789899Z Receiving objects:  47% (119/252)
2021-05-17T07:21:28.6792025Z Receiving objects:  48% (121/252)
2021-05-17T07:21:28.6792854Z Receiving objects:  49% (124/252)
2021-05-17T07:21:28.6793806Z Receiving objects:  50% (126/252)
2021-05-17T07:21:28.6795313Z Receiving objects:  51% (129/252)
2021-05-17T07:21:28.6796057Z Receiving objects:  52% (132/252)
2021-05-17T07:21:28.6799362Z Receiving objects:  53% (134/252)
2021-05-17T07:21:28.6800091Z Receiving objects:  54% (137/252)
2021-05-17T07:21:28.6800789Z Receiving objects:  55% (139/252)
2021-05-17T07:21:28.6801406Z Receiving objects:  56% (142/252)
2021-05-17T07:21:28.6802173Z Receiving objects:  57% (144/252)
2021-05-17T07:21:28.6802839Z Receiving objects:  58% (147/252)
2021-05-17T07:21:28.6803531Z Receiving objects:  59% (149/252)
2021-05-17T07:21:28.6804197Z Receiving objects:  60% (152/252)
2021-05-17T07:21:28.6804899Z Receiving objects:  61% (154/252)
2021-05-17T07:21:28.6805556Z Receiving objects:  62% (157/252)
2021-05-17T07:21:28.6807983Z Receiving objects:  63% (159/252)
2021-05-17T07:21:28.6808985Z Receiving objects:  64% (162/252)
2021-05-17T07:21:28.6809689Z Receiving objects:  65% (164/252)
2021-05-17T07:21:28.6810384Z Receiving objects:  66% (167/252)
2021-05-17T07:21:28.6811099Z Receiving objects:  67% (169/252)
2021-05-17T07:21:28.6811803Z Receiving objects:  68% (172/252)
2021-05-17T07:21:28.6812466Z Receiving objects:  69% (174/252)
2021-05-17T07:21:28.6813132Z Receiving objects:  70% (177/252)
2021-05-17T07:21:28.6813837Z Receiving objects:  71% (179/252)
2021-05-17T07:21:28.6814486Z Receiving objects:  72% (182/252)
2021-05-17T07:21:28.6815146Z Receiving objects:  73% (184/252)
2021-05-17T07:21:28.6815833Z Receiving objects:  74% (187/252)
2021-05-17T07:21:28.6816501Z Receiving objects:  75% (189/252)
2021-05-17T07:21:28.6819158Z Receiving objects:  76% (192/252)
2021-05-17T07:21:28.6820076Z Receiving objects:  77% (195/252)
2021-05-17T07:21:28.6821582Z Receiving objects:  78% (197/252)
2021-05-17T07:21:28.6822241Z Receiving objects:  79% (200/252)
2021-05-17T07:21:28.6825538Z Receiving objects:  80% (202/252)
2021-05-17T07:21:28.6827204Z Receiving objects:  81% (205/252)
2021-05-17T07:21:28.6829183Z Receiving objects:  82% (207/252)
2021-05-17T07:21:28.6829913Z Receiving objects:  83% (210/252)
2021-05-17T07:21:28.6832600Z Receiving objects:  84% (212/252)
2021-05-17T07:21:28.6833316Z Receiving objects:  85% (215/252)
2021-05-17T07:21:28.6845065Z Receiving objects:  86% (217/252)
2021-05-17T07:21:28.6845912Z Receiving objects:  87% (220/252)
2021-05-17T07:21:28.6846656Z Receiving objects:  88% (222/252)
2021-05-17T07:21:28.6847366Z Receiving objects:  89% (225/252)
2021-05-17T07:21:28.6848089Z Receiving objects:  90% (227/252)
2021-05-17T07:21:28.6848908Z Receiving objects:  91% (230/252)
2021-05-17T07:21:28.6852417Z Receiving objects:  92% (232/252)
2021-05-17T07:21:28.6858875Z Receiving objects:  93% (235/252)
2021-05-17T07:21:28.6863929Z Receiving objects:  94% (237/252)
2021-05-17T07:21:28.6866178Z Receiving objects:  95% (240/252)
2021-05-17T07:21:28.6870381Z Receiving objects:  96% (242/252)
2021-05-17T07:21:28.6871129Z Receiving objects:  97% (245/252)
2021-05-17T07:21:28.6872475Z Receiving objects:  98% (247/252)
2021-05-17T07:21:28.6873381Z Receiving objects:  99% (250/252)
2021-05-17T07:21:28.6874302Z Receiving objects: 100% (252/252)
2021-05-17T07:21:28.6875131Z Receiving objects: 100% (252/252), 1.26 MiB | 37.83 MiB/s, done.
2021-05-17T07:21:28.6897358Z Resolving deltas:   0% (0/59)
2021-05-17T07:21:28.6898785Z Resolving deltas:   1% (1/59)
2021-05-17T07:21:28.6899495Z Resolving deltas:   3% (2/59)
2021-05-17T07:21:28.6900114Z Resolving deltas:   5% (3/59)
2021-05-17T07:21:28.6900883Z Resolving deltas:   6% (4/59)
2021-05-17T07:21:28.6901411Z Resolving deltas:   8% (5/59)
2021-05-17T07:21:28.6901869Z Resolving deltas:  10% (6/59)
2021-05-17T07:21:28.6902218Z Resolving deltas:  11% (7/59)
2021-05-17T07:21:28.6902550Z Resolving deltas:  13% (8/59)
2021-05-17T07:21:28.6902832Z Resolving deltas:  15% (9/59)
2021-05-17T07:21:28.6903194Z Resolving deltas:  18% (11/59)
2021-05-17T07:21:28.6903516Z Resolving deltas:  20% (12/59)
2021-05-17T07:21:28.6903832Z Resolving deltas:  22% (13/59)
2021-05-17T07:21:28.6904137Z Resolving deltas:  23% (14/59)
2021-05-17T07:21:28.6904416Z Resolving deltas:  25% (15/59)
2021-05-17T07:21:28.6904724Z Resolving deltas:  27% (16/59)
2021-05-17T07:21:28.6905037Z Resolving deltas:  28% (17/59)
2021-05-17T07:21:28.6905363Z Resolving deltas:  30% (18/59)
2021-05-17T07:21:28.6905677Z Resolving deltas:  32% (19/59)
2021-05-17T07:21:28.6905981Z Resolving deltas:  33% (20/59)
2021-05-17T07:21:28.6906255Z Resolving deltas:  35% (21/59)
2021-05-17T07:21:28.6906562Z Resolving deltas:  37% (22/59)
2021-05-17T07:21:28.6906864Z Resolving deltas:  38% (23/59)
2021-05-17T07:21:28.6907291Z Resolving deltas:  40% (24/59)
2021-05-17T07:21:28.6907585Z Resolving deltas:  42% (25/59)
2021-05-17T07:21:28.6907921Z Resolving deltas:  44% (26/59)
2021-05-17T07:21:28.6908221Z Resolving deltas:  45% (27/59)
2021-05-17T07:21:28.6908689Z Resolving deltas:  47% (28/59)
2021-05-17T07:21:28.6909022Z Resolving deltas:  49% (29/59)
2021-05-17T07:21:28.6909322Z Resolving deltas:  50% (30/59)
2021-05-17T07:21:28.6909703Z Resolving deltas:  52% (31/59)
2021-05-17T07:21:28.6910002Z Resolving deltas:  54% (32/59)
2021-05-17T07:21:28.6910294Z Resolving deltas:  55% (33/59)
2021-05-17T07:21:28.6910587Z Resolving deltas:  57% (34/59)
2021-05-17T07:21:28.6910880Z Resolving deltas:  59% (35/59)
2021-05-17T07:21:28.6911236Z Resolving deltas:  61% (36/59)
2021-05-17T07:21:28.6911497Z Resolving deltas:  62% (37/59)
2021-05-17T07:21:28.6911796Z Resolving deltas:  64% (38/59)
2021-05-17T07:21:28.6912587Z Resolving deltas:  66% (39/59)
2021-05-17T07:21:28.6912910Z Resolving deltas:  67% (40/59)
2021-05-17T07:21:28.6913212Z Resolving deltas:  69% (41/59)
2021-05-17T07:21:28.6913514Z Resolving deltas:  71% (42/59)
2021-05-17T07:21:28.6913813Z Resolving deltas:  72% (43/59)
2021-05-17T07:21:28.6914115Z Resolving deltas:  74% (44/59)
2021-05-17T07:21:28.6914417Z Resolving deltas:  76% (45/59)
2021-05-17T07:21:28.6914681Z Resolving deltas:  77% (46/59)
2021-05-17T07:21:28.6914977Z Resolving deltas:  79% (47/59)
2021-05-17T07:21:28.6915283Z Resolving deltas:  81% (48/59)
2021-05-17T07:21:28.6915590Z Resolving deltas:  83% (49/59)
2021-05-17T07:21:28.6915904Z Resolving deltas:  84% (50/59)
2021-05-17T07:21:28.6916195Z Resolving deltas:  86% (51/59)
2021-05-17T07:21:28.6916457Z Resolving deltas:  88% (52/59)
2021-05-17T07:21:28.6916750Z Resolving deltas:  91% (54/59)
2021-05-17T07:21:28.6917051Z Resolving deltas:  93% (55/59)
2021-05-17T07:21:28.6917343Z Resolving deltas:  94% (56/59)
2021-05-17T07:21:28.6917824Z Resolving deltas:  96% (57/59)
2021-05-17T07:21:28.6918083Z Resolving deltas:  98% (58/59)
2021-05-17T07:21:28.6918385Z Resolving deltas: 100% (59/59)
2021-05-17T07:21:28.6918701Z Resolving deltas: 100% (59/59), done.
2021-05-17T07:21:28.7557923Z From https://evolveims.visualstudio.com/RMS/_git/RMS
2021-05-17T07:21:28.7558458Z  * [new branch]      main       -> origin/main
2021-05-17T07:21:28.8356871Z ##[command]git -c http.extraheader="AUTHORIZATION: bearer ***" fetch --force --tags --prune --progress --no-recurse-submodules origin +4b821d8ddf0689b768f538d17f16f79570666c7f:refs/remotes/origin/4b821d8ddf0689b768f538d17f16f79570666c7f
2021-05-17T07:21:28.9266942Z From https://evolveims.visualstudio.com/RMS/_git/RMS
2021-05-17T07:21:28.9267492Z  * [new ref]         4b821d8ddf0689b768f538d17f16f79570666c7f -> origin/4b821d8ddf0689b768f538d17f16f79570666c7f
2021-05-17T07:21:28.9797129Z ##[command]git checkout --progress --force 4b821d8ddf0689b768f538d17f16f79570666c7f
2021-05-17T07:21:29.0550728Z Note: switching to '4b821d8ddf0689b768f538d17f16f79570666c7f'.
2021-05-17T07:21:29.0551367Z 
2021-05-17T07:21:29.0553293Z You are in 'detached HEAD' state. You can look around, make experimental
2021-05-17T07:21:29.0554756Z changes and commit them, and you can discard any commits you make in this
2021-05-17T07:21:29.0555539Z state without impacting any branches by switching back to a branch.
2021-05-17T07:21:29.0556170Z 
2021-05-17T07:21:29.0556788Z If you want to create a new branch to retain commits you create, you may
2021-05-17T07:21:29.0557505Z do so (now or later) by using -c with the switch command. Example:
2021-05-17T07:21:29.0558017Z 
2021-05-17T07:21:29.0558586Z   git switch -c <new-branch-name>
2021-05-17T07:21:29.0559169Z 
2021-05-17T07:21:29.0559756Z Or undo this operation with:
2021-05-17T07:21:29.0560188Z 
2021-05-17T07:21:29.0560734Z   git switch -
2021-05-17T07:21:29.0561148Z 
2021-05-17T07:21:29.0561770Z Turn off this advice by setting config variable advice.detachedHead to false
2021-05-17T07:21:29.0562433Z 
2021-05-17T07:21:29.0563015Z HEAD is now at 4b821d8 Merged PR 28: Bring up to v17, address compiler errors/warnings
2021-05-17T07:21:29.0696383Z ##[section]Finishing: Checkout RMS@main to s
2021-05-17T07:21:29.0721095Z ##[section]Starting: Run Pipeline
2021-05-17T07:21:29.0813447Z ==============================================================================
2021-05-17T07:21:29.0813729Z Task         : PowerShell
2021-05-17T07:21:29.0813978Z Description  : Run a PowerShell script on Linux, macOS, or Windows
2021-05-17T07:21:29.0814192Z Version      : 2.180.1
2021-05-17T07:21:29.0814395Z Author       : Microsoft Corporation
2021-05-17T07:21:29.0814669Z Help         : https://docs.microsoft.com/azure/devops/pipelines/tasks/utility/powershell
2021-05-17T07:21:29.0814986Z ==============================================================================
2021-05-17T07:21:30.0642656Z Generating script.
2021-05-17T07:21:30.0681744Z Formatted command: . 'D:\a\1\s\scripts\DevOps-Pipeline.ps1' -environment "AzureDevOps" -version "nextmajor" -appBuild 2147483647 -appRevision 0
2021-05-17T07:21:30.1770852Z ========================== Starting Command Output ===========================
2021-05-17T07:21:30.2001238Z ##[command]"C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -NoLogo -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -Command ". 'D:\a\_temp\23309086-82ec-420d-ae97-cfbd9a3fdd38.ps1'"
2021-05-17T07:21:30.5450808Z Set artifact = ///gb/NextMajor/{INSIDERSASTOKEN}
2021-05-17T07:21:30.5509128Z Set pipelineName = rms-nextmajor
2021-05-17T07:21:30.5516266Z Set containerName = hostedagent-rms-nextmajor
2021-05-17T07:21:30.5660976Z Set installApps = ''
2021-05-17T07:21:30.5684812Z Set previousApps = ''
2021-05-17T07:21:30.5710058Z Set appSourceCopMandatoryAffixes = 'iMS'
2021-05-17T07:21:30.5729861Z Set appSourceCopSupportedCountries = 'gb'
2021-05-17T07:21:30.5752400Z Set appFolders = 'src'
2021-05-17T07:21:30.5775350Z Set testFolders = 'test'
2021-05-17T07:21:30.5796829Z Set memoryLimit = '6G'
2021-05-17T07:21:30.5820774Z Set additionalCountries = ''
2021-05-17T07:21:30.5842795Z Set genericImageName = ''
2021-05-17T07:21:30.5870061Z Set vaultNameForLocal = 'evolveAppVault'
2021-05-17T07:21:30.5888140Z Set bcContainerHelperVersion = 'Latest'
2021-05-17T07:21:30.5924785Z Set installTestFramework = True
2021-05-17T07:21:30.5958038Z Set installTestLibraries = True
2021-05-17T07:21:30.5981028Z Set installPerformanceToolkit = False
2021-05-17T07:21:30.6003668Z Set enableCodeCop = True
2021-05-17T07:21:30.6025872Z Set enableAppSourceCop = True
2021-05-17T07:21:30.6048706Z Set enablePerTenantExtensionCop = False
2021-05-17T07:21:30.6070659Z Set enableUICop = True
2021-05-17T07:21:30.6093312Z Set doNotSignApps = True
2021-05-17T07:21:30.6101368Z Set doNotRunTests = False
2021-05-17T07:21:30.6108512Z Set cacheImage = False
2021-05-17T07:21:30.6114952Z Set CreateRuntimePackages = False
2021-05-17T07:21:30.6140818Z Set rulesetfile = '_RuleSets\ims.ruleset.json'
2021-05-17T07:21:30.6164112Z Set appPackages = '.packages'
2021-05-17T07:21:31.2519009Z Downloading https://bccontainerhelper.azureedge.net/public/2.0.11.zip
2021-05-17T07:21:37.9462486Z BcContainerHelper version 2.0.11
2021-05-17T07:21:39.3875832Z Determining artifacts to use
2021-05-17T07:22:03.4114890Z   _____                               _                
2021-05-17T07:22:03.4131940Z  |  __ \                             | |               
2021-05-17T07:22:03.4140640Z  | |__) |_ _ _ __ __ _ _ __ ___   ___| |_ ___ _ __ ___ 
2021-05-17T07:22:03.4152499Z  |  ___/ _` | '__/ _` | '_ ` _ \ / _ \ __/ _ \ '__/ __|
2021-05-17T07:22:03.4166609Z  | |  | (_| | | | (_| | | | | | |  __/ |_  __/ |  \__ \
2021-05-17T07:22:03.4184326Z  |_|   \__,_|_|  \__,_|_| |_| |_|\___|\__\___|_|  |___/
2021-05-17T07:22:03.4184988Z 
2021-05-17T07:22:03.4191500Z Pipeline name               rms-nextmajor
2021-05-17T07:22:03.4999381Z Container name              hostedagent-rms-nextmajor
2021-05-17T07:22:03.5007409Z Image name                  
2021-05-17T07:22:03.5018300Z ArtifactUrl                 https://bcinsider.azureedge.net/sandbox/19.0.25577.0/gb
2021-05-17T07:22:03.5026578Z SasToken                    Specified
2021-05-17T07:22:03.5037224Z BcAuthContext               Not Specified
2021-05-17T07:22:03.5050715Z Environment                 
2021-05-17T07:22:03.5056668Z ReUseContainer              False
2021-05-17T07:22:03.5069065Z KeepContainer               False
2021-05-17T07:22:03.5076243Z Credential                  admin/Nuqu8533
2021-05-17T07:22:03.5096805Z MemoryLimit                 6G
2021-05-17T07:22:03.5107669Z Enable Task Scheduler       False
2021-05-17T07:22:03.5115583Z Assign Premium Plan         False
2021-05-17T07:22:03.5119594Z Install Test Runner         False
2021-05-17T07:22:03.5126070Z Install Test Framework      True
2021-05-17T07:22:03.5128843Z Install Test Libraries      True
2021-05-17T07:22:03.5135850Z Install Perf. Toolkit       False
2021-05-17T07:22:03.5139984Z CopySymbolsFromContainer    False
2021-05-17T07:22:03.5144718Z enableCodeCop               True
2021-05-17T07:22:03.5149341Z enableAppSourceCop          True
2021-05-17T07:22:03.5153640Z enableUICop                 True
2021-05-17T07:22:03.5158390Z enablePerTenantExtensionCop False
2021-05-17T07:22:03.5161853Z escapeFromCops              False
2021-05-17T07:22:03.5167796Z useDefaultAppSourceRuleSet  False
2021-05-17T07:22:03.5172829Z rulesetFile                 D:\a\1\s\_RuleSets\ims.ruleset.json
2021-05-17T07:22:03.5176654Z azureDevOps                 True
2021-05-17T07:22:03.5183782Z License file                Specified
2021-05-17T07:22:03.5187050Z CodeSignCertPfxFile         Not specified
2021-05-17T07:22:03.5193610Z TestResultsFile             D:\a\1\s\TestResults.xml
2021-05-17T07:22:03.5197406Z TestResultsFormat           JUnit
2021-05-17T07:22:03.5203878Z AdditionalCountries         
2021-05-17T07:22:03.5207416Z PackagesFolder              D:\a\1\s\.packages
2021-05-17T07:22:03.5213780Z OutputFolder                D:\a\1\s\.output
2021-05-17T07:22:03.5217117Z BuildArtifactFolder         D:\a\1\a
2021-05-17T07:22:03.5233262Z CreateRuntimePackages       False
2021-05-17T07:22:03.5241679Z AppBuild                    2147483647
2021-05-17T07:22:03.5248480Z AppRevision                 0
2021-05-17T07:22:03.5255877Z Mandatory Affixes           iMS
2021-05-17T07:22:03.5263149Z Supported Countries         gb
2021-05-17T07:22:03.5266602Z Install Apps
2021-05-17T07:22:03.5272659Z - None
2021-05-17T07:22:03.5276195Z Install Test Apps
2021-05-17T07:22:03.5282584Z - None
2021-05-17T07:22:03.5286090Z Previous Apps
2021-05-17T07:22:03.5292081Z - None
2021-05-17T07:22:03.5295362Z Application folders
2021-05-17T07:22:03.5301259Z - D:\a\1\s\src
2021-05-17T07:22:03.5304463Z Test application folders
2021-05-17T07:22:03.5311883Z - D:\a\1\s\test
2021-05-17T07:22:03.5312321Z 
2021-05-17T07:22:03.5318291Z   _____       _ _ _                                          _        _                            
2021-05-17T07:22:03.5322047Z  |  __ \     | | (_)                                        (_)      (_)                           
2021-05-17T07:22:03.5328531Z  | |__) |   _| | |_ _ __   __ _    __ _  ___ _ __   ___ _ __ _  ___   _ _ __ ___   __ _  __ _  ___ 
2021-05-17T07:22:03.5332080Z  |  ___/ | | | | | | '_ \ / _` |  / _` |/ _ \ '_ \ / _ \ '__| |/ __| | | '_ ` _ \ / _` |/ _` |/ _ \
2021-05-17T07:22:03.5338473Z  | |   | |_| | | | | | | | (_| | | (_| |  __/ | | |  __/ |  | | (__  | | | | | | | (_| | (_| |  __/
2021-05-17T07:22:03.5342000Z  |_|    \__,_|_|_|_|_| |_|\__, |  \__, |\___|_| |_|\___|_|  |_|\___| |_|_| |_| |_|\__,_|\__, |\___|
2021-05-17T07:22:03.5348426Z                            __/ |   __/ |                                                 __/ |     
2021-05-17T07:22:03.5351940Z                           |___/   |___/                                                 |___/      
2021-05-17T07:22:03.5354368Z 
2021-05-17T07:22:04.3725142Z Pulling mcr.microsoft.com/businesscentral:10.0.17763.1879
2021-05-17T07:27:51.8411806Z 
2021-05-17T07:27:51.8422952Z Pulling generic image took 348 seconds
2021-05-17T07:27:51.8460688Z 
2021-05-17T07:27:51.8467810Z    _____                _   _                               _        _                 
2021-05-17T07:27:51.8472113Z   / ____|              | | (_)                             | |      (_)                
2021-05-17T07:27:51.8478700Z  | |     _ __ ___  __ _| |_ _ _ __   __ _    ___ ___  _ __ | |_ __ _ _ _ __   ___ _ __ 
2021-05-17T07:27:51.8482759Z  | |    | '__/ _ \/ _` | __| | '_ \ / _` |  / __/ _ \| '_ \| __/ _` | | '_ \ / _ \ '__|
2021-05-17T07:27:51.8489286Z  | |____| | |  __/ (_| | |_| | | | | (_| | | (__ (_) | | | | |_ (_| | | | | |  __/ |   
2021-05-17T07:27:51.8493052Z   \_____|_|  \___|\__,_|\__|_|_| |_|\__, |  \___\___/|_| |_|\__\__,_|_|_| |_|\___|_|   
2021-05-17T07:27:51.8499603Z                                      __/ |                                             
2021-05-17T07:27:51.8503298Z                                     |___/                                              
2021-05-17T07:27:51.8505884Z 
2021-05-17T07:27:52.7562336Z WARNING: Container name should not exceed 15 characters
2021-05-17T07:27:52.9733768Z BcContainerHelper is version 2.0.11
2021-05-17T07:27:52.9738627Z BcContainerHelper is running as administrator
2021-05-17T07:27:52.9754685Z Host is Microsoft Windows Server 2019 Datacenter - ltsc2019
2021-05-17T07:27:55.1639224Z Docker Client Version is 20.10.4
2021-05-17T07:27:55.1658223Z Docker Server Version is 20.10.4
2021-05-17T07:27:56.0504717Z Downloading application artifact /sandbox/19.0.25577.0/gb
2021-05-17T07:27:56.0576581Z Downloading C:\Users\Vss***istrator\AppData\Local\Temp\72b21328-1d9e-416c-945f-0bb48c8f6107.zip
2021-05-17T07:28:11.0625727Z Unpacking application artifact to tmp folder using 7zip
2021-05-17T07:28:19.9977262Z Downloading platform artifact /sandbox/19.0.25577.0/platform
2021-05-17T07:28:20.0001491Z Downloading C:\Users\Vss***istrator\AppData\Local\Temp\088834d0-3b4c-4593-9403-acb7b30b3b32.zip
2021-05-17T07:28:38.1396573Z Unpacking platform artifact to tmp folder using 7zip
2021-05-17T07:29:03.9741010Z Downloading Prerequisite Components
2021-05-17T07:29:03.9840324Z Downloading c:\bcartifacts.cache\sandbox\19.0.25577.0\platform\Prerequisite Components\Open XML SDK 2.5 for Microsoft Office\OpenXMLSDKv25.msi
2021-05-17T07:29:04.1716144Z Downloading c:\bcartifacts.cache\sandbox\19.0.25577.0\platform\Prerequisite Components\IIS URL Rewrite Module\rewrite_2.0_rtw_x64.msi
2021-05-17T07:29:04.5080819Z Downloading c:\bcartifacts.cache\sandbox\19.0.25577.0\platform\Prerequisite Components\DotNetCore\DotNetCore.1.0.4_1.1.1-WindowsHosting.exe
2021-05-17T07:29:06.7358573Z Fetching all docker images
2021-05-17T07:29:07.0435978Z Fetching all docker volumes
2021-05-17T07:29:07.9231068Z Using image mcr.microsoft.com/businesscentral:10.0.17763.1879
2021-05-17T07:29:08.1413395Z Creating Container hostedagent-rms-nextmajor
2021-05-17T07:29:08.1417582Z Version: 19.0.25577.0-GB
2021-05-17T07:29:08.1424057Z Style: sandbox
2021-05-17T07:29:08.1429823Z Multitenant: Yes
2021-05-17T07:29:08.1437686Z Platform: 18.0.25462.0
2021-05-17T07:29:08.1443779Z Generic Tag: 1.0.1.6
2021-05-17T07:29:08.1475522Z Container OS Version: 10.0.17763.1879 (ltsc2019)
2021-05-17T07:29:08.1482174Z Host OS Version: 10.0.17763.1879 (ltsc2019)
2021-05-17T07:29:08.1501273Z Using process isolation
2021-05-17T07:29:08.1521577Z Using locale en-GB
2021-05-17T07:29:08.1539038Z Disabling the standard eventlog dump to container log every 2 seconds (use -dumpEventLog to enable)
2021-05-17T07:29:08.1722403Z Downloading C:\ProgramData\BcContainerHelper\Extensions\hostedagent-rms-nextmajor\Microsoft.VisualStudio.Services.VSIXPackage.vsix
2021-05-17T07:29:08.6320372Z Using license file https://evolveapp.blob.core.windows.net/app/BC18License.flf
2021-05-17T07:29:08.6372143Z Downloading C:\ProgramData\BcContainerHelper\Extensions\hostedagent-rms-nextmajor\my\license.flf
2021-05-17T07:29:08.8032738Z Additional Parameters:
2021-05-17T07:29:08.8042424Z --volume "D:\a\1\s:c:\sources"
2021-05-17T07:29:08.8046514Z --env customNavSettings=EnableTaskScheduler=False
2021-05-17T07:29:08.8051283Z Files in C:\ProgramData\BcContainerHelper\Extensions\hostedagent-rms-nextmajor\my:
2021-05-17T07:29:08.8084010Z - AdditionalOutput.ps1
2021-05-17T07:29:08.8094359Z - license.flf
2021-05-17T07:29:08.8097240Z - MainLoop.ps1
2021-05-17T07:29:08.8102743Z - SetupVariables.ps1
2021-05-17T07:29:08.8109546Z - updatehosts.ps1
2021-05-17T07:29:08.8114172Z Creating container hostedagent-rms-nextmajor from image mcr.microsoft.com/businesscentral:10.0.17763.1879
2021-05-17T07:29:09.5092748Z 53922fe89b81c8854435e71fff2eebae1c41d9eae5ef61cd1597b1a39c368591
2021-05-17T07:29:25.8432639Z Waiting for container hostedagent-rms-nextmajor to be ready
2021-05-17T07:29:54.7792889Z Adding HOSTEDAGENT-RMS to hosts file
2021-05-17T07:29:57.2162036Z Using artifactUrl https://bcinsider.azureedge.net/sandbox/19.0.25577.0/gb
2021-05-17T07:29:58.1732519Z Using installer from C:\Run\150-new
2021-05-17T07:29:58.1733105Z Installing Business Central
2021-05-17T07:29:58.1733566Z Installing from artifacts
2021-05-17T07:30:10.4874371Z Starting Local SQL Server
2021-05-17T07:30:10.4890826Z WARNING: Waiting for service 'SQL Server (SQLEXPRESS) (MSSQL$SQLEXPRESS)' to 
2021-05-17T07:30:12.1080764Z start...
2021-05-17T07:30:12.1088317Z Starting Internet Information Server
2021-05-17T07:30:12.1091117Z Copying Service Tier Files
2021-05-17T07:30:12.1095751Z c:\dl\sandbox\19.0.25577.0\platform\ServiceTier\Program Files
2021-05-17T07:30:16.3339462Z c:\dl\sandbox\19.0.25577.0\platform\ServiceTier\System64Folder
2021-05-17T07:30:16.3340528Z Copying PowerShell Scripts
2021-05-17T07:30:16.3346778Z c:\dl\sandbox\19.0.25577.0\platform\WindowsPowerShellScripts\Cloud\NAV***istration
2021-05-17T07:30:17.8234697Z c:\dl\sandbox\19.0.25577.0\platform\WindowsPowerShellScripts\WebSearch
2021-05-17T07:30:17.8240514Z Copying dependencies
2021-05-17T07:30:17.8245904Z Copying ReportBuilder
2021-05-17T07:30:17.8251107Z Importing PowerShell Modules
2021-05-17T07:30:51.1241901Z Determining Database Collation from c:\dl\sandbox\19.0.25577.0\gb\BusinessCentral-GB.bak
2021-05-17T07:30:52.5378973Z Restoring CRONUS Demo Database
2021-05-17T07:30:55.1606732Z Setting CompatibilityLevel for tenant on localhost\SQLEXPRESS
2021-05-17T07:32:19.3263688Z Exporting Application to CRONUS
2021-05-17T07:32:23.7445829Z Removing Application from tenant
2021-05-17T07:32:23.7451230Z Modifying Business Central Service Tier Config File for Docker
2021-05-17T07:32:23.7462748Z Creating Business Central Service Tier
2021-05-17T07:32:23.7469178Z Installing SIP crypto provider: 'C:\Windows\System32\NavSip.dll'
2021-05-17T07:32:23.7472701Z Copying Web Client Files
2021-05-17T07:32:23.7483184Z c:\dl\sandbox\19.0.25577.0\platform\WebClient\Microsoft Dynamics NAV
2021-05-17T07:32:23.7486673Z Copying Client Files
2021-05-17T07:32:23.7493054Z c:\dl\sandbox\19.0.25577.0\platform\LegacyDlls\program files\Microsoft Dynamics NAV
2021-05-17T07:32:23.7504267Z c:\dl\sandbox\19.0.25577.0\platform\LegacyDlls\program files\Microsoft Dynamics NAV
2021-05-17T07:32:23.7504924Z c:\dl\sandbox\19.0.25577.0\platform\LegacyDlls\systemFolder
2021-05-17T07:32:23.7508987Z Copying ModernDev Files
2021-05-17T07:32:23.7516969Z c:\dl\sandbox\19.0.25577.0\platform
2021-05-17T07:32:23.7519981Z c:\dl\sandbox\19.0.25577.0\platform\ModernDev\program files\Microsoft Dynamics NAV
2021-05-17T07:32:23.7527483Z Copying additional files
2021-05-17T07:32:23.7532962Z Copying ConfigurationPackages
2021-05-17T07:32:23.7540664Z C:\dl\sandbox\19.0.25577.0\platform\ConfigurationPackages
2021-05-17T07:32:23.7553615Z Copying Test Assemblies
2021-05-17T07:32:23.7554153Z C:\dl\sandbox\19.0.25577.0\platform\Test Assemblies
2021-05-17T07:32:23.7559337Z Copying Extensions
2021-05-17T07:32:23.7564125Z C:\dl\sandbox\19.0.25577.0\gb\Extensions
2021-05-17T07:32:23.7573854Z Copying Applications
2021-05-17T07:32:23.7580130Z C:\dl\sandbox\19.0.25577.0\platform\Applications
2021-05-17T07:32:23.7583611Z Copying Applications.GB
2021-05-17T07:32:23.7587489Z C:\dl\sandbox\19.0.25577.0\gb\Applications.GB
2021-05-17T07:32:38.1039062Z Starting Business Central Service Tier
2021-05-17T07:32:48.3440356Z Importing license file
2021-05-17T07:32:48.3447001Z Copying Database on localhost\SQLEXPRESS from tenant to default
2021-05-17T07:32:48.3457247Z Taking database tenant offline
2021-05-17T07:32:48.3464047Z Copying database files
2021-05-17T07:32:52.5372118Z Attaching files as new Database default
2021-05-17T07:32:52.5377839Z Putting database tenant back online
2021-05-17T07:32:52.5384938Z Mounting tenant database
2021-05-17T07:33:58.0394544Z Mounting Database for default on server localhost\SQLEXPRESS with AllowAppDatabaseWrite = False
2021-05-17T07:33:58.0402874Z Sync'ing Tenant
2021-05-17T07:33:58.0409264Z Tenant is Operational
2021-05-17T07:33:58.0420780Z Stopping Business Central Service Tier
2021-05-17T07:33:58.0426221Z Installation took 241 seconds
2021-05-17T07:33:58.0431433Z Installation complete
2021-05-17T07:33:59.1494589Z Initializing...
2021-05-17T07:33:59.1497974Z Setting host.containerhelper.internal to 172.30.128.1 in container hosts file
2021-05-17T07:33:59.1504870Z Starting Container
2021-05-17T07:33:59.1508330Z Hostname is hostedagent-rms-nextmajor
2021-05-17T07:33:59.1512489Z PublicDnsName is hostedagent-rms-nextmajor
2021-05-17T07:34:00.3993166Z Using NavUserPassword Authentication
2021-05-17T07:34:02.6975390Z Creating Self Signed Certificate
2021-05-17T07:34:02.6980270Z Self Signed Certificate Thumbprint 806433211B237C3421286622D8F0FACAD9EDC2AF
2021-05-17T07:34:04.1437521Z Modifying Service Tier Config File with Instance Specific Settings
2021-05-17T07:34:04.1445046Z Modifying Service Tier Config File with settings from environment variable
2021-05-17T07:34:05.6830692Z Setting EnableTaskScheduler to False
2021-05-17T07:34:11.0302477Z Starting Service Tier
2021-05-17T07:34:11.0317598Z Registering event sources
2021-05-17T07:34:18.7972385Z Creating DotNetCore Web Server Instance
2021-05-17T07:34:18.7978226Z Enabling Financials User Experience
2021-05-17T07:34:18.7986155Z Enabling rewrite rule: Don't rewrite system files
2021-05-17T07:34:18.7993472Z Enabling rewrite rule: Already have tenant specified
2021-05-17T07:34:18.7996532Z Enabling rewrite rule: Hostname (without port) to tenant
2021-05-17T07:34:18.8016309Z Using license file 'c:\run\my\license.flf'
2021-05-17T07:34:18.8016761Z Import License
2021-05-17T07:34:18.8017002Z Dismounting Tenant
2021-05-17T07:34:18.8021949Z Mounting Tenant
2021-05-17T07:34:24.3279272Z Mounting Database for default on server localhost\SQLEXPRESS with AllowAppDatabaseWrite = False
2021-05-17T07:34:24.3280110Z Sync'ing Tenant
2021-05-17T07:34:24.3285641Z Tenant is Operational
2021-05-17T07:34:24.3290880Z Creating http download site
2021-05-17T07:34:24.3300486Z Setting SA Password and enabling SA
2021-05-17T07:34:24.3304844Z Creating admin as SQL User and add to sysadmin
2021-05-17T07:34:32.5696852Z Creating SUPER user
2021-05-17T07:34:32.5697417Z Container IP Address: 172.30.137.185
2021-05-17T07:34:32.5697952Z Container Hostname  : hostedagent-rms-nextmajor
2021-05-17T07:34:32.5707089Z Container Dns Name  : hostedagent-rms-nextmajor
2021-05-17T07:34:32.5713627Z Web Client          : http://hostedagent-rms-nextmajor/BC/?tenant=default
2021-05-17T07:34:32.5718454Z Dev. Server         : http://hostedagent-rms-nextmajor
2021-05-17T07:34:32.5724465Z Dev. ServerInstance : BC
2021-05-17T07:34:32.5732090Z Dev. Server Tenant  : default
2021-05-17T07:34:32.5736430Z Setting hostedagent-rms-nextmajor to 172.30.137.185 in host hosts file
2021-05-17T07:34:32.5744268Z Setting hostedagent-rms-nextmajor-default to 172.30.137.185 in host hosts file
2021-05-17T07:34:32.5747467Z Setting hostedagent-rms-nextmajor-default to 172.30.137.185 in container hosts file
2021-05-17T07:34:32.5752767Z 
2021-05-17T07:34:32.5758621Z Files:
2021-05-17T07:34:32.5775148Z http://hostedagent-rms-nextmajor:8080/Microsoft.VisualStudio.Services.VSIXPackage.vsix
2021-05-17T07:34:32.5784397Z 
2021-05-17T07:34:32.5789377Z Container Total Physical Memory is 7.0Gb
2021-05-17T07:34:32.5795458Z Container Free Physical Memory is 2.9Gb
2021-05-17T07:34:32.5798350Z 
2021-05-17T07:34:32.5806826Z Initialization took 35 seconds
2021-05-17T07:34:32.5811734Z Ready for connections!
2021-05-17T07:34:32.5874222Z Reading CustomSettings.config from hostedagent-rms-nextmajor
2021-05-17T07:34:35.1132396Z Creating Desktop Shortcuts for hostedagent-rms-nextmajor
2021-05-17T07:34:35.4223315Z Container hostedagent-rms-nextmajor successfully created
2021-05-17T07:34:35.4226581Z 
2021-05-17T07:34:35.4232194Z Use:
2021-05-17T07:34:35.4247221Z Get-BcContainerEventLog -containerName hostedagent-rms-nextmajor to retrieve a snapshot of the event log from the container
2021-05-17T07:34:35.4251483Z Get-BcContainerDebugInfo -containerName hostedagent-rms-nextmajor to get debug information about the container
2021-05-17T07:34:35.4261595Z Enter-BcContainer -containerName hostedagent-rms-nextmajor to open a PowerShell prompt inside the container
2021-05-17T07:34:35.4273668Z Remove-BcContainer -containerName hostedagent-rms-nextmajor to remove the container again
2021-05-17T07:34:35.4282360Z docker logs hostedagent-rms-nextmajor to retrieve information about URL's again
2021-05-17T07:34:35.4414322Z 
2021-05-17T07:34:35.4419738Z Creating container took 404 seconds
2021-05-17T07:34:35.4429895Z 
2021-05-17T07:34:35.4435985Z    _____                      _ _ _                                     
2021-05-17T07:34:35.4439891Z   / ____|                    (_) (_)                                    
2021-05-17T07:34:35.4448285Z  | |     ___  _ __ ___  _ __  _| |_ _ __   __ _    __ _ _ __  _ __  ___ 
2021-05-17T07:34:35.4453381Z  | |    / _ \| '_ ` _ \| '_ \| | | | '_ \ / _` |  / _` | '_ \| '_ \/ __|
2021-05-17T07:34:35.4459409Z  | |____ (_) | | | | | | |_) | | | | | | | (_| | | (_| | |_) | |_) \__ \
2021-05-17T07:34:35.4473153Z   \_____\___/|_| |_| |_| .__/|_|_|_|_| |_|\__, |  \__,_| .__/| .__/|___/
2021-05-17T07:34:35.4478480Z                        | |                 __/ |       | |   | |        
2021-05-17T07:34:35.4485562Z                        |_|                |___/        |_|   |_|        
2021-05-17T07:34:35.4485978Z 
2021-05-17T07:34:35.5319887Z Using custom ruleset
2021-05-17T07:34:35.5361660Z Using Version 17.3.2147483647.0
2021-05-17T07:34:35.6676219Z Creating AppSourceCop.json for validation
2021-05-17T07:34:36.6512406Z Using Symbols Folder: D:\a\1\s\.packages
2021-05-17T07:34:43.9709970Z Downloading symbols: Microsoft_Application_19.0.25577.0.app
2021-05-17T07:34:43.9752528Z Url : http://172.30.137.185:7049/BC/dev/packages?publisher=Microsoft&appName=Application&versionText=17.0.0.0&tenant=default
2021-05-17T07:34:47.6675586Z Adding dependency to System Application from Microsoft
2021-05-17T07:34:47.6680289Z Adding dependency to Base Application from Microsoft
2021-05-17T07:34:47.6694451Z Downloading symbols: Microsoft_System_18.0.25462.0.app
2021-05-17T07:34:47.6706704Z Url : http://172.30.137.185:7049/BC/dev/packages?publisher=Microsoft&appName=System&versionText=17.0.0.0&tenant=default
2021-05-17T07:34:48.5957336Z Downloading symbols: Microsoft_System Application_19.0.25577.0.app
2021-05-17T07:34:48.5962737Z Url : http://172.30.137.185:7049/BC/dev/packages?publisher=Microsoft&appName=System%20Application&versionText=19.0.0.0&tenant=default
2021-05-17T07:34:49.7485991Z Downloading symbols: Microsoft_Base Application_19.0.25577.0.app
2021-05-17T07:34:49.7500838Z Url : http://172.30.137.185:7049/BC/dev/packages?publisher=Microsoft&appName=Base%20Application&versionText=19.0.0.0&tenant=default
2021-05-17T07:34:51.0218309Z Compiling...
2021-05-17T07:34:51.0224420Z .\alc.exe /project:"c:\sources\src" /packagecachepath:"c:\sources\.packages" /out:"c:\sources\.output\Evolve iMS Ltd._Rental Management System_17.3.2147483647.0.app" /analyzer:C:\build\vsix\extension\bin\Analyzers\Microsoft.Dynamics.Nav.CodeCop.dll /analyzer:C:\build\vsix\extension\bin\Analyzers\Microsoft.Dynamics.Nav.AppSourceCop.dll /analyzer:C:\build\vsix\extension\bin\Analyzers\Microsoft.Dynamics.Nav.UICop.dll /ruleset:c:\sources\_RuleSets\ims.ruleset.json /assemblyprobingpaths:"C:\Program Files (x86)\Microsoft Dynamics NAV\180\RoleTailored Client","C:\Program Files\Microsoft Dynamics NAV\180\Service","C:\Program Files (x86)\Open XML SDK\V2.5\lib","c:\Windows\Microsoft.NET\Assembly","C:\Test Assemblies\Mock Assemblies"
2021-05-17T07:35:05.5953410Z Microsoft (R) AL Compiler version 7.1.6.60713
2021-05-17T07:35:05.6547985Z Copyright (C) Microsoft Corporation. All rights reserved
2021-05-17T07:35:05.6555059Z 
2021-05-17T07:35:05.6577120Z Compilation started for project 'Rental Management System' containing '95' files at '7:34:51.418'.
2021-05-17T07:35:05.6580942Z 
2021-05-17T07:35:05.8452800Z ##[warning]c:\sources\src\Page\iMSRentalArchSubform.Page.al(27,50): warning AL0432: Field 'Cross-Reference No.' is marked for removal. Reason: Cross-Reference replaced by Item Reference feature.. Tag: 18.0.
2021-05-17T07:35:05.8518171Z ##[warning]c:\sources\src\Query\iMSRentalLineCertification.Query.al(74,46): warning AL0432: Field 'Cross-Reference Type' is marked for removal. Reason: Cross-Reference replaced by Item Reference feature.. Tag: 17.0.
2021-05-17T07:35:05.8521567Z ##[warning]c:\sources\src\Query\iMSRentalLineSNLot.Query.al(64,42): warning AL0432: Field 'Cross-Reference Type' is marked for removal. Reason: Cross-Reference replaced by Item Reference feature.. Tag: 17.0.
2021-05-17T07:35:05.8527187Z ##[warning]c:\sources\src\Query\iMSReservationEntry.Query.al(86,46): warning AL0432: Field 'Cross-Reference Type' is marked for removal. Reason: Cross-Reference replaced by Item Reference feature.. Tag: 17.0.
2021-05-17T07:35:05.8530402Z ##[warning]c:\sources\src\Page\iMSRentalOrderSubform.Page.al(49,50): warning AL0432: Field 'Cross-Reference No.' is marked for removal. Reason: Cross-Reference replaced by Item Reference feature.. Tag: 17.0.
2021-05-17T07:35:05.8536774Z ##[warning]c:\sources\src\TableExtension\iMSSalesHeader.TableExt.al(291,34): warning AL0432: Table 'Customer Template' is marked for removal. Reason: Deprecate mini and customer templates. Use table "Customer Templ." instead and for extensions.. Tag: 18.0.
2021-05-17T07:35:05.8542674Z ##[warning]c:\sources\src\Codeunit\iMSRMSActRegMgmt.Codeunit.al(290,28): warning AL0432: Method 'SetNewSerialLotNo' is marked for removal. Reason: Replaced by SetNewTrackingFrom() procedures.. Tag: 17.0.
2021-05-17T07:35:05.8545873Z ##[warning]c:\sources\src\Page\iMSRentalOrderSubform.Page.al(57,29): warning AL0432: Method 'CrossReferenceNoLookUp' is marked for removal. Reason: Replaced by same procedure in Item Reference Management codeunit.. Tag: 18.0.
2021-05-17T07:35:05.8551424Z ##[warning]c:\sources\src\Page\iMSRentalOrderSubform.Page.al(1279,33): warning AL0432: Method 'IsFoundationEnabled' is marked for removal. Reason: Use ApplicationAreaMgmtFacade.IsFoundationEnabled instead. Tag: 18.0.
2021-05-17T07:35:05.8556465Z ##[warning]c:\sources\src\Page\iMSRentalOrderSubform.Page.al(1285,33): warning AL0432: Method 'IsFoundationEnabled' is marked for removal. Reason: Use ApplicationAreaMgmtFacade.IsFoundationEnabled instead. Tag: 18.0.
2021-05-17T07:35:05.8559705Z ##[warning]c:\sources\src\Page\iMSRentalOrderSubform.Page.al(1445,33): warning AL0432: Method 'IsFoundationEnabled' is marked for removal. Reason: Use ApplicationAreaMgmtFacade.IsFoundationEnabled instead. Tag: 18.0.
2021-05-17T07:35:05.8566001Z ##[warning]c:\sources\src\TableExtension\iMSSalesCommentLine.TableExt.al(50,36): warning AL0432: Method 'OpenFileDialog' is marked for removal. Reason: The local file system is no longer accessible. Please use the UploadFile procedure.. Tag: 17.3.
2021-05-17T07:35:05.8571887Z ##[warning]c:\sources\src\TableExtension\iMSSalesCommentLine.TableExt.al(77,35): warning AL0432: Method 'ClientDirectoryExists' is marked for removal. Reason: IsLocalFileSystemAccessible always returns false, this procedure will always return false. This procedure will be removed.. Tag: 17.3.
2021-05-17T07:35:05.8575581Z ##[warning]c:\sources\src\TableExtension\iMSSalesHeader.TableExt.al(293,107): warning AL0432: Field 'Sell-to Customer Template Code' is marked for removal. Reason: Will be removed with other functionality related to "old" templates. Replaced by "Sell-to Customer Templ. Code".. Tag: 18.0.
2021-05-17T07:35:05.8581291Z ##[warning]c:\sources\src\TableExtension\iMSSalesHeader.TableExt.al(296,30): warning AL0432: Field 'Sell-to Customer Template Code' is marked for removal. Reason: Will be removed with other functionality related to "old" templates. Replaced by "Sell-to Customer Templ. Code".. Tag: 18.0.
2021-05-17T07:35:05.8587011Z ##[warning]c:\sources\src\TableExtension\iMSSalesHeader.TableExt.al(368,22): warning AL0432: Method 'OpenFileDialog' is marked for removal. Reason: The local file system is no longer accessible. Please use the UploadFile procedure.. Tag: 17.3.
2021-05-17T07:35:05.8588463Z c:\sources\src\Table\iMSReservationEntryArchive.Table.al(170,19): info AA0232: The FlowField Quantity of "Action Message Entry" should be added to the SIFT key.
2021-05-17T07:35:05.8589232Z c:\sources\src\Table\iMSRMSItemLedgerEntry.Table.al(169,19): info AA0232: The FlowField "Quantity (Base)" of "Reservation Entry" should be added to the SIFT key.
2021-05-17T07:35:05.8590029Z c:\sources\src\TableExtension\iMSItem.TableExt.al(104,24): info AA0232: The FlowField "Outstanding Qty. (Base)" of "Sales Line" should be added to the SIFT key.
2021-05-17T07:35:05.8590769Z c:\sources\src\Table\iMSSerialLotNoInformat.Table.al(44,19): info AA0232: The FlowField "Entry No." of "Warehouse Entry" should be added to the SIFT key.
2021-05-17T07:35:05.8593863Z c:\sources\src\TableExtension\iMSLotNoInformation.TableExt.al(74,24): info AA0232: The FlowField "Entry No." of "Warehouse Entry" should be added to the SIFT key.
2021-05-17T07:35:05.8594643Z c:\sources\src\TableExtension\iMSReturnReason.TableExt.al(12,24): info AA0232: The FlowField Quantity of "Item Ledger Entry" should be added to the SIFT key.
2021-05-17T07:35:05.8595472Z c:\sources\src\TableExtension\iMSSalesArchiveHeader.TableExt.al(59,24): info AA0232: The FlowField Quantity of "Sales Line" should be added to the SIFT key.
2021-05-17T07:35:05.8596225Z c:\sources\src\Page\iMSRentalLines.Page.al(1,14): info AW0006: The page 'iMS Rental Lines' should use the UsageCategory and ApplicationArea properties to be searchable.
2021-05-17T07:35:05.8596962Z c:\sources\src\TableExtension\iMSSalesHeader.TableExt.al(133,24): info AA0232: The FlowField Quantity of "Sales Line" should be added to the SIFT key.
2021-05-17T07:35:05.8597841Z c:\sources\src\TableExtension\iMSSalesLine.TableExt.al(12,24): info AA0232: The FlowField Quantity of "iMS Rental Article" should be added to the SIFT key.
2021-05-17T07:35:05.8598683Z c:\sources\src\TableExtension\iMSSerialNoInformation.TableExt.al(63,24): info AA0232: The FlowField "Entry No." of "Warehouse Entry" should be added to the SIFT key.
2021-05-17T07:35:05.8603960Z ##[warning]c:\sources\src\app.json(29,5): warning AS0053: The compilation target is set to 'OnPrem', but it must be set to 'Cloud' or 'Extension'.
2021-05-17T07:35:05.8607365Z ##[warning]c:\sources\src\app.json(1,1): warning AS0092: The 'applicationInsightsKey' property must specify the instrumentation key of the Azure Application Insights resource for monitoring operations related to this extension. See https://docs.microsoft.com/en-us/dynamics365/business-central/dev-itpro/administration/telemetry-overview for additional information.
2021-05-17T07:35:05.8613491Z ##[warning]c:\sources\src\Page\iMSRentalDocumentsFactbox.Page.al(27,19): warning AA0225: The Caption property for PageField "DocName[DocIndex::DGD]" must be filled in.
2021-05-17T07:35:05.8614601Z 
2021-05-17T07:35:05.8615023Z Compilation ended at '7:35:5.471'.
2021-05-17T07:35:05.8615174Z 
2021-05-17T07:35:05.8615687Z D:\a\1\s\.output\Evolve iMS Ltd._Rental Management System_17.3.2147483647.0.app successfully created in 30 seconds
2021-05-17T07:35:05.8619170Z Evolve iMS Ltd._Rental Management System_17.3.2147483647.0.app copied to D:\a\1\s\.packages
2021-05-17T07:35:05.8620021Z   _____                            _   _               _______       _     _______          _ _    _ _   
2021-05-17T07:35:05.8620651Z  |_   _|                          | | (_)             |__   __|     | |   |__   __|        | | |  (_) |  
2021-05-17T07:35:05.8621185Z    | |  _ __ ___  _ __   ___  _ __| |_ _ _ __   __ _     | | ___ ___| |_     | | ___   ___ | | | ___| |_ 
2021-05-17T07:35:05.8621714Z    | | | '_ ` _ \| '_ \ / _ \| '__| __| | '_ \ / _` |    | |/ _ \ __| __|    | |/ _ \ / _ \| | |/ / | __|
2021-05-17T07:35:05.8622334Z   _| |_| | | | | | |_) | (_) | |  | |_| | | | | (_| |    | |  __\__ \ |_     | | (_) | (_) | |   <| | |_ 
2021-05-17T07:35:05.8622947Z  |_____|_| |_| |_| .__/ \___/|_|   \__|_|_| |_|\__, |    |_|\___|___/\__|    |_|\___/ \___/|_|_|\_\_|\__|
2021-05-17T07:35:05.8623534Z                  | |                            __/ |                                                    
2021-05-17T07:35:05.8624155Z                  |_|                           |___/                                                     
2021-05-17T07:35:06.9226371Z Synchronizing Permissions Mock on default
2021-05-17T07:35:07.1755152Z App successfully synchronized
2021-05-17T07:35:07.1907145Z Installing Permissions Mock on default
2021-05-17T07:35:08.6617383Z App successfully installed
2021-05-17T07:35:08.6909341Z Synchronizing Test Runner on default
2021-05-17T07:35:08.9675986Z App successfully synchronized
2021-05-17T07:35:08.9754675Z Installing Test Runner on default
2021-05-17T07:35:10.1689103Z App successfully installed
2021-05-17T07:35:10.2002824Z Synchronizing Any on default
2021-05-17T07:35:10.2316555Z App successfully synchronized
2021-05-17T07:35:10.2528625Z Installing Any on default
2021-05-17T07:35:10.3468486Z App successfully installed
2021-05-17T07:35:10.3731501Z Synchronizing Library Assert on default
2021-05-17T07:35:10.4015102Z App successfully synchronized
2021-05-17T07:35:10.4134030Z Installing Library Assert on default
2021-05-17T07:35:10.6568082Z App successfully installed
2021-05-17T07:35:10.6827935Z Skipping app 'C:\Applications.GB\Microsoft_Permissions Mock_19.0.25577.0.app' as it is already installed
2021-05-17T07:35:10.7081266Z Synchronizing Library Variable Storage on default
2021-05-17T07:35:10.7758956Z App successfully synchronized
2021-05-17T07:35:10.7941671Z Installing Library Variable Storage on default
2021-05-17T07:35:10.8915759Z App successfully installed
2021-05-17T07:35:11.7127046Z Publishing C:\ProgramData\BcContainerHelper\Extensions\hostedagent-rms-nextmajor\59749d4a-73e4-4ae4-9231-cf25fbe3ed23\Microsoft_System Application Test Library_19.0.25577.0.app
2021-05-17T07:35:16.6710170Z Synchronizing System Application Test Library on tenant default
2021-05-17T07:35:17.0984285Z Installing System Application Test Library on tenant default
2021-05-17T07:35:18.0664212Z App Microsoft_System Application Test Library_19.0.25577.0.app successfully published
2021-05-17T07:35:18.7331537Z Publishing C:\ProgramData\BcContainerHelper\Extensions\hostedagent-rms-nextmajor\8c024a54-98f4-4444-8736-bb054f2d2488\Microsoft_Tests-TestLibraries_19.0.25577.0.app
2021-05-17T07:35:46.4691246Z Synchronizing Tests-TestLibraries on tenant default
2021-05-17T07:35:48.0708583Z Installing Tests-TestLibraries on tenant default
2021-05-17T07:35:50.8005466Z App Microsoft_Tests-TestLibraries_19.0.25577.0.app successfully published
2021-05-17T07:35:50.8017548Z TestToolkit successfully imported
2021-05-17T07:35:50.8030115Z 
2021-05-17T07:35:50.8038597Z Importing Test Toolkit took 45 seconds
2021-05-17T07:35:50.8045288Z    _____                      _ _ _               _           _                           
2021-05-17T07:35:50.8048771Z   / ____|                    (_) (_)             | |         | |                          
2021-05-17T07:35:50.8053613Z  | |     ___  _ __ ___  _ __  _| |_ _ __   __ _  | |_ ___ ___| |_    __ _ _ __  _ __  ___ 
2021-05-17T07:35:50.8060891Z  | |    / _ \| '_ ` _ \| '_ \| | | | '_ \ / _` | | __/ _ \ __| __|  / _` | '_ \| '_ \/ __|
2021-05-17T07:35:50.8066317Z  | |____ (_) | | | | | | |_) | | | | | | | (_| | | |_  __\__ \ |_  | (_| | |_) | |_) \__ \
2021-05-17T07:35:50.8076840Z   \_____\___/|_| |_| |_| .__/|_|_|_|_| |_|\__, |  \__\___|___/\__|  \__,_| .__/| .__/|___/
2021-05-17T07:35:50.8091523Z                        | |                 __/ |                         | |   | |        
2021-05-17T07:35:50.8092122Z                        |_|                |___/                          |_|   |_|        
2021-05-17T07:35:50.8092576Z Using Version 17.3.2147483647.0
2021-05-17T07:35:51.3297673Z Using Symbols Folder: D:\a\1\s\.packages
2021-05-17T07:35:52.0611456Z Downloading symbols: Microsoft_Library Assert_19.0.25577.0.app
2021-05-17T07:35:52.0617567Z Url : http://172.30.137.185:7049/BC/dev/packages?publisher=Microsoft&appName=Library%20Assert&versionText=17.0.0.0&tenant=default
2021-05-17T07:35:52.6883815Z Downloading symbols: Microsoft_Tests-TestLibraries_19.0.25577.0.app
2021-05-17T07:35:52.6892636Z Url : http://172.30.137.185:7049/BC/dev/packages?publisher=Microsoft&appName=Tests-TestLibraries&versionText=17.0.0.0&tenant=default
2021-05-17T07:35:53.3683352Z Adding dependency to System Application Test Library from Microsoft
2021-05-17T07:35:53.3689857Z Adding dependency to Library Variable Storage from Microsoft
2021-05-17T07:35:53.3721105Z Adding dependency to Permissions Mock from Microsoft
2021-05-17T07:35:53.3733440Z Downloading symbols: Microsoft_System Application Test Library_19.0.25577.0.app
2021-05-17T07:35:53.3750696Z Url : http://172.30.137.185:7049/BC/dev/packages?publisher=Microsoft&appName=System%20Application%20Test%20Library&versionText=19.0.0.0&tenant=default
2021-05-17T07:35:53.9842505Z Adding dependency to System Application from Microsoft
2021-05-17T07:35:53.9865968Z Adding dependency to Any from Microsoft
2021-05-17T07:35:53.9889177Z Downloading symbols: Microsoft_Library Variable Storage_19.0.25577.0.app
2021-05-17T07:35:53.9908792Z Url : http://172.30.137.185:7049/BC/dev/packages?publisher=Microsoft&appName=Library%20Variable%20Storage&versionText=19.0.0.0&tenant=default
2021-05-17T07:35:54.6390131Z Downloading symbols: Microsoft_Permissions Mock_19.0.25577.0.app
2021-05-17T07:35:54.6398287Z Url : http://172.30.137.185:7049/BC/dev/packages?publisher=Microsoft&appName=Permissions%20Mock&versionText=19.0.0.0&tenant=default
2021-05-17T07:35:55.3160795Z Downloading symbols: Microsoft_Any_19.0.25577.0.app
2021-05-17T07:35:55.3167210Z Url : http://172.30.137.185:7049/BC/dev/packages?publisher=Microsoft&appName=Any&versionText=19.0.0.0&tenant=default
2021-05-17T07:35:55.9195744Z Compiling...
2021-05-17T07:35:55.9209433Z .\alc.exe /project:"c:\sources\test" /packagecachepath:"c:\sources\.packages" /out:"c:\sources\.output\Evolve iMS Ltd._Rental Management System - Test_17.3.2147483647.0.app" /assemblyprobingpaths:"C:\Program Files (x86)\Microsoft Dynamics NAV\180\RoleTailored Client","C:\Program Files\Microsoft Dynamics NAV\180\Service","C:\Program Files (x86)\Open XML SDK\V2.5\lib","c:\Windows\Microsoft.NET\Assembly","C:\Test Assemblies\Mock Assemblies"
2021-05-17T07:36:02.7057502Z Microsoft (R) AL Compiler version 7.1.6.60713
2021-05-17T07:36:02.7065124Z Copyright (C) Microsoft Corporation. All rights reserved
2021-05-17T07:36:02.7068355Z 
2021-05-17T07:36:02.7076145Z Compilation started for project 'Rental Management System - Test' containing '4' files at '7:35:56.136'.
2021-05-17T07:36:02.7079539Z 
2021-05-17T07:36:02.7082850Z 
2021-05-17T07:36:02.7087355Z Compilation ended at '7:36:2.663'.
2021-05-17T07:36:02.7093819Z 
2021-05-17T07:36:02.7097775Z D:\a\1\s\.output\Evolve iMS Ltd._Rental Management System - Test_17.3.2147483647.0.app successfully created in 12 seconds
2021-05-17T07:36:02.7121072Z Evolve iMS Ltd._Rental Management System - Test_17.3.2147483647.0.app copied to D:\a\1\s\.packages
2021-05-17T07:36:02.7200099Z 
2021-05-17T07:36:02.7209505Z Compiling apps, test apps and importing test toolkit took 87 seconds
2021-05-17T07:36:02.7216547Z 
2021-05-17T07:36:02.7223644Z   _____       _     _ _     _     _                                        
2021-05-17T07:36:02.7239226Z  |  __ \     | |   | (_)   | |   (_)                 /\                    
2021-05-17T07:36:02.7242066Z  | |__) |   _| |__ | |_ ___| |__  _ _ __   __ _     /  \   _ __  _ __  ___ 
2021-05-17T07:36:02.7248860Z  |  ___/ | | | '_ \| | / __| '_ \| | '_ \ / _` |   / /\ \ | '_ \| '_ \/ __|
2021-05-17T07:36:02.7251703Z  | |   | |_| | |_) | | \__ \ | | | | | | | (_| |  / ____ \| |_) | |_) \__ \
2021-05-17T07:36:02.7273340Z  |_|    \__,_|_.__/|_|_|___/_| |_|_|_| |_|\__, | /_/    \_\ .__/| .__/|___/
2021-05-17T07:36:02.7276813Z                                            __/ |          | |   | |        
2021-05-17T07:36:02.7282094Z                                           |___/           |_|   |_|        
2021-05-17T07:36:02.7287453Z 
2021-05-17T07:36:03.9452344Z Publishing C:\ProgramData\BcContainerHelper\Extensions\hostedagent-rms-nextmajor\b9e415fa-eb72-40d5-9899-a5b7a493e214\Evolve iMS Ltd._Rental Management System_17.3.2147483647.0.app
2021-05-17T07:36:06.9381639Z Synchronizing Rental Management System on tenant default
2021-05-17T07:36:07.4555746Z Installing Rental Management System on tenant default
2021-05-17T07:36:09.0639730Z App Evolve iMS Ltd._Rental Management System_17.3.2147483647.0.app successfully published
2021-05-17T07:36:09.6379504Z Publishing C:\ProgramData\BcContainerHelper\Extensions\hostedagent-rms-nextmajor\99707102-4d61-4b28-b6c5-194971d6ccf7\Evolve iMS Ltd._Rental Management System - Test_17.3.2147483647.0.app
2021-05-17T07:36:10.0998729Z Synchronizing Rental Management System - Test on tenant default
2021-05-17T07:36:10.1723442Z Installing Rental Management System - Test on tenant default
2021-05-17T07:36:10.2922855Z App Evolve iMS Ltd._Rental Management System - Test_17.3.2147483647.0.app successfully published
2021-05-17T07:36:10.2945090Z 
2021-05-17T07:36:10.2949758Z Publishing apps took 8 seconds
2021-05-17T07:36:10.2961199Z 
2021-05-17T07:36:10.2965153Z   _____                   _               _______       _       
2021-05-17T07:36:10.2976627Z  |  __ \                 (_)             |__   __|     | |      
2021-05-17T07:36:10.2982595Z  | |__) |   _ _ __  _ __  _ _ __   __ _     | | ___ ___| |_ ___ 
2021-05-17T07:36:10.2993839Z  |  _  / | | | '_ \| '_ \| | '_ \ / _` |    | |/ _ \ __| __/ __|
2021-05-17T07:36:10.2994663Z  | | \ \ |_| | | | | | | | | | | | (_| |    | |  __\__ \ |_\__ \
2021-05-17T07:36:10.2997488Z  |_|  \_\__,_|_| |_|_| |_|_|_| |_|\__, |    |_|\___|___/\__|___/
2021-05-17T07:36:10.3010469Z                                    __/ |                        
2021-05-17T07:36:10.3012975Z                                   |___/                         
2021-05-17T07:36:10.3015501Z 
2021-05-17T07:36:12.1492280Z CommunicationError : Response status code does not indicate success: 500 (Internal Server Error).
2021-05-17T07:36:12.1525387Z at <ScriptBlock>, C:\ProgramData\BcContainerHelper\Extensions\hostedagent-rms-nextmajor\PsTestTool\ClientContext.ps1: line 110
2021-05-17T07:36:12.1530675Z at AwaitState, C:\ProgramData\BcContainerHelper\Extensions\hostedagent-rms-nextmajor\PsTestTool\ClientContext.ps1: line 238
2021-05-17T07:36:12.1538922Z at OpenSession, C:\ProgramData\BcContainerHelper\Extensions\hostedagent-rms-nextmajor\PsTestTool\ClientContext.ps1: line 216
2021-05-17T07:36:12.1552137Z at Initialize, C:\ProgramData\BcContainerHelper\Extensions\hostedagent-rms-nextmajor\PsTestTool\ClientContext.ps1: line 78
2021-05-17T07:36:12.1563438Z at ClientContext, C:\ProgramData\BcContainerHelper\Extensions\hostedagent-rms-nextmajor\PsTestTool\ClientContext.ps1: line 45
2021-05-17T07:36:12.1564341Z at New-ClientContext, C:\ProgramData\BcContainerHelper\Extensions\hostedagent-rms-nextmajor\PsTestTool\PsTestFunctions.ps1: line 40
2021-05-17T07:36:12.1569921Z at <ScriptBlock>, <No file>: line 55
2021-05-17T07:36:22.1216929Z at AwaitState, C:\ProgramData\BcContainerHelper\Extensions\hostedagent-rms-nextmajor\PsTestTool\ClientContext.ps1: line 250
2021-05-17T07:36:22.1224581Z at OpenSession, C:\ProgramData\BcContainerHelper\Extensions\hostedagent-rms-nextmajor\PsTestTool\ClientContext.ps1: line 216
2021-05-17T07:36:22.1231382Z at Initialize, C:\ProgramData\BcContainerHelper\Extensions\hostedagent-rms-nextmajor\PsTestTool\ClientContext.ps1: line 78
2021-05-17T07:36:22.1239834Z at ClientContext, C:\ProgramData\BcContainerHelper\Extensions\hostedagent-rms-nextmajor\PsTestTool\ClientContext.ps1: line 45
2021-05-17T07:36:22.1244040Z at New-ClientContext, C:\ProgramData\BcContainerHelper\Extensions\hostedagent-rms-nextmajor\PsTestTool\PsTestFunctions.ps1: line 40
2021-05-17T07:36:22.1248416Z at <ScriptBlock>, <No file>: line 55
2021-05-17T07:36:22.2317750Z ClientSession State is Uninitialized (Wait time 10 seconds)
2021-05-17T07:36:22.2330752Z at AwaitState, C:\ProgramData\BcContainerHelper\Extensions\hostedagent-rms-nextmajor\PsTestTool\ClientContext.ps1: line 250
2021-05-17T07:36:22.2333670Z at OpenSession, C:\ProgramData\BcContainerHelper\Extensions\hostedagent-rms-nextmajor\PsTestTool\ClientContext.ps1: line 216
2021-05-17T07:36:22.2339566Z at Initialize, C:\ProgramData\BcContainerHelper\Extensions\hostedagent-rms-nextmajor\PsTestTool\ClientContext.ps1: line 78
2021-05-17T07:36:22.2349756Z at ClientContext, C:\ProgramData\BcContainerHelper\Extensions\hostedagent-rms-nextmajor\PsTestTool\ClientContext.ps1: line 45
2021-05-17T07:36:22.2353780Z at New-ClientContext, C:\ProgramData\BcContainerHelper\Extensions\hostedagent-rms-nextmajor\PsTestTool\PsTestFunctions.ps1: line 40
2021-05-17T07:36:22.2357787Z at <ScriptBlock>, <No file>: line 55
2021-05-17T07:36:22.2366530Z at Invoke-ScriptInBcContainer, C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\2.0.11\ContainerHandling\Invoke-ScriptInNavContainer.ps1: line 44
2021-05-17T07:36:22.2370349Z at Run-TestsInBcContainer, C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\2.0.11\AppHandling\Run-TestsInNavContainer.ps1: line 343
2021-05-17T07:36:22.2376261Z at <ScriptBlock>, C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\2.0.11\AppHandling\Run-AlPipeline.ps1: line 527
2021-05-17T07:36:22.2383289Z at <ScriptBlock>, C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\2.0.11\AppHandling\Run-AlPipeline.ps1: line 1503
2021-05-17T07:36:22.2390474Z at <ScriptBlock>, C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\2.0.11\AppHandling\Run-AlPipeline.ps1: line 1471
2021-05-17T07:36:22.2393502Z at <ScriptBlock>, C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\2.0.11\AppHandling\Run-AlPipeline.ps1: line 1433
2021-05-17T07:36:22.2410451Z at <ScriptBlock>, C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\2.0.11\AppHandling\Run-AlPipeline.ps1: line 577
2021-05-17T07:36:22.2415948Z at Run-AlPipeline, C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\2.0.11\AppHandling\Run-AlPipeline.ps1: line 544
2021-05-17T07:36:22.2421061Z at <ScriptBlock>, D:\a\1\s\scripts\DevOps-Pipeline.ps1: line 49
2021-05-17T07:36:22.2426029Z at <ScriptBlock>, D:\a\_temp\23309086-82ec-420d-ae97-cfbd9a3fdd38.ps1: line 3
2021-05-17T07:36:22.2433947Z at <ScriptBlock>, <No file>: line 1
2021-05-17T07:36:23.4412251Z 
2021-05-17T07:36:23.4413089Z   _____                           _                _____            _        _                 
2021-05-17T07:36:23.4413577Z  |  __ \                         (_)              / ____|          | |      (_)                
2021-05-17T07:36:23.4419650Z  | |__) |___ _ __ ___   _____   ___ _ __   __ _  | |     ___  _ __ | |_ __ _ _ _ __   ___ _ __ 
2021-05-17T07:36:23.4420228Z  |  _  // _ \ '_ ` _ \ / _ \ \ / / | '_ \ / _` | | |    / _ \| '_ \| __/ _` | | '_ \ / _ \ '__|
2021-05-17T07:36:23.4420731Z  | | \ \  __/ | | | | | (_) \ V /| | | | | (_| | | |____ (_) | | | | |_ (_| | | | | |  __/ |   
2021-05-17T07:36:23.4421222Z  |_|  \_\___|_| |_| |_|\___/ \_/ |_|_| |_|\__, |  \_____\___/|_| |_|\__\__,_|_|_| |_|\___|_|   
2021-05-17T07:36:23.4421734Z                                            __/ |                                               
2021-05-17T07:36:23.4422426Z                                           |___/                                                
2021-05-17T07:36:23.4422642Z 
2021-05-17T07:36:23.4422945Z Removing container hostedagent-rms-nextmajor
2021-05-17T07:36:24.9839997Z Removing hostedagent-rms-nextmajor from container hosts file
2021-05-17T07:36:25.0769196Z Removing hostedagent-rms-nextmajor-* from container hosts file
2021-05-17T07:36:25.0980089Z Removing C:\ProgramData\BcContainerHelper\Extensions\hostedagent-rms-nextmajor
2021-05-17T07:36:25.1123396Z 
2021-05-17T07:36:25.1130655Z Removing container took 3 seconds
2021-05-17T07:36:25.1138963Z NOTE: The app in D:\a\1\s\src 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-05-17T07:36:25.5863311Z ##[error]ClientSession State is Uninitialized (Wait time 10 seconds)
At C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\2.0.11\AppHandling\Run-TestsInNavContainer.ps1:467 
char:17
+                 throw $_.Exception.Message
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : OperationStopped: (ClientSession S...ime 10 seconds):String) [], RuntimeException
    + FullyQualifiedErrorId : ClientSession State is Uninitialized (Wait time 10 seconds)
2021-05-17T07:36:25.6370145Z ##[error]PowerShell exited with code '1'.
2021-05-17T07:36:25.7927665Z ##[section]Finishing: Run Pipeline
2021-05-17T07:36:25.8197462Z ##[section]Starting: Cleanup
2021-05-17T07:36:25.8780268Z ==============================================================================
2021-05-17T07:36:25.8780570Z Task         : PowerShell
2021-05-17T07:36:25.8780849Z Description  : Run a PowerShell script on Linux, macOS, or Windows
2021-05-17T07:36:25.8781065Z Version      : 2.180.1
2021-05-17T07:36:25.8781275Z Author       : Microsoft Corporation
2021-05-17T07:36:25.8782176Z Help         : https://docs.microsoft.com/azure/devops/pipelines/tasks/utility/powershell
2021-05-17T07:36:25.8782484Z ==============================================================================
2021-05-17T07:36:27.2719837Z Generating script.
2021-05-17T07:36:27.2761839Z Formatted command: . 'D:\a\1\s\scripts\Cleanup.ps1' -environment "AzureDevOps"
2021-05-17T07:36:27.3134700Z ========================== Starting Command Output ===========================
2021-05-17T07:36:27.3354416Z ##[command]"C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -NoLogo -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -Command ". 'D:\a\_temp\625deb08-1c03-44b2-aacd-0b2a4bf75267.ps1'"
2021-05-17T07:36:27.6867242Z Version not defined, using ci
2021-05-17T07:36:27.7053213Z Set artifact = https://bcartifacts.azureedge.net/onprem/17.3.20469.20605/gb
2021-05-17T07:36:27.7098385Z Set pipelineName = rms-ci
2021-05-17T07:36:27.7319949Z Set containerName = hostedagent-rms-ci
2021-05-17T07:36:27.7496367Z Set installApps = ''
2021-05-17T07:36:27.7518787Z Set previousApps = ''
2021-05-17T07:36:27.7542741Z Set appSourceCopMandatoryAffixes = 'iMS'
2021-05-17T07:36:27.7564754Z Set appSourceCopSupportedCountries = 'gb'
2021-05-17T07:36:27.7588691Z Set appFolders = 'src'
2021-05-17T07:36:27.7610655Z Set testFolders = 'test'
2021-05-17T07:36:27.7634703Z Set memoryLimit = '6G'
2021-05-17T07:36:27.7656601Z Set additionalCountries = ''
2021-05-17T07:36:27.7680577Z Set genericImageName = ''
2021-05-17T07:36:27.7702935Z Set vaultNameForLocal = 'evolveAppVault'
2021-05-17T07:36:27.7727093Z Set bcContainerHelperVersion = 'Latest'
2021-05-17T07:36:27.7765659Z Set installTestFramework = True
2021-05-17T07:36:27.7801325Z Set installTestLibraries = True
2021-05-17T07:36:27.7823408Z Set installPerformanceToolkit = False
2021-05-17T07:36:27.7845565Z Set enableCodeCop = True
2021-05-17T07:36:27.7869525Z Set enableAppSourceCop = True
2021-05-17T07:36:27.7895811Z Set enablePerTenantExtensionCop = False
2021-05-17T07:36:27.7915745Z Set enableUICop = True
2021-05-17T07:36:27.7939735Z Set doNotSignApps = True
2021-05-17T07:36:27.7947369Z Set doNotRunTests = False
2021-05-17T07:36:27.7971086Z Set cacheImage = True
2021-05-17T07:36:27.7992209Z Set CreateRuntimePackages = True
2021-05-17T07:36:27.8028302Z Set rulesetfile = '_RuleSets\ims.ruleset.json'
2021-05-17T07:36:27.8071131Z Set appPackages = '.packages'
2021-05-17T07:36:27.8474391Z ##[section]Finishing: Cleanup
2021-05-17T07:36:27.8524872Z ##[section]Starting: Checkout RMS@main to s
2021-05-17T07:36:27.8661383Z ==============================================================================
2021-05-17T07:36:27.8661707Z Task         : Get sources
2021-05-17T07:36:27.8661967Z Description  : Get sources from a repository. Supports Git, TfsVC, and SVN repositories.
2021-05-17T07:36:27.8662255Z Version      : 1.0.0
2021-05-17T07:36:27.8662452Z Author       : Microsoft
2021-05-17T07:36:27.8662719Z Help         : [More Information](https://go.microsoft.com/fwlink/?LinkId=798199)
2021-05-17T07:36:27.8663058Z ==============================================================================
2021-05-17T07:36:28.3940116Z Cleaning any cached credential from repository: RMS (Git)
2021-05-17T07:36:28.4042507Z ##[section]Finishing: Checkout RMS@main to s
2021-05-17T07:36:28.4140755Z ##[section]Starting: Finalize Job
2021-05-17T07:36:28.4179120Z Cleaning up task key
2021-05-17T07:36:28.4180473Z Start cleaning up orphan processes.
2021-05-17T07:36:28.4342757Z ##[section]Finishing: Finalize Job
2021-05-17T07:36:28.4385291Z ##[section]Finishing: Build

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

Additional context

pmatsconsulting commented 3 years ago

Hello,

Had the same issue when running tests only in all our BC19 pipelines this weekend.

2021-05-16T21:48:11.6762558Z Creating user manager\containeradministrator as user
2021-05-16T21:48:11.6920743Z AVERTISSEMENT : This license is not compatible with this version of Business Central.
2021-05-16T21:48:12.3030118Z AVERTISSEMENT : This license is not compatible with this version of Business Central.
2021-05-16T21:48:13.6277827Z CommunicationError : Response status code does not indicate success: 500 (Internal Server Error).
2021-05-16T21:48:13.6431289Z at <ScriptBlock>, C:\ProgramData\NavContainerHelper\Extensions\TEMP-Build\PsTestTool\ClientContext.ps1: line 110
2021-05-16T21:48:13.6438297Z at AwaitState, C:\ProgramData\NavContainerHelper\Extensions\TEMP-Build\PsTestTool\ClientContext.ps1: line 238
2021-05-16T21:48:13.6445897Z at OpenSession, C:\ProgramData\NavContainerHelper\Extensions\TEMP-Build\PsTestTool\ClientContext.ps1: line 216
2021-05-16T21:48:13.6452838Z at Initialize, C:\ProgramData\NavContainerHelper\Extensions\TEMP-Build\PsTestTool\ClientContext.ps1: line 78
2021-05-16T21:48:13.6461003Z at ClientContext, C:\ProgramData\NavContainerHelper\Extensions\TEMP-Build\PsTestTool\ClientContext.ps1: line 53
2021-05-16T21:48:13.6469328Z at New-ClientContext, C:\ProgramData\NavContainerHelper\Extensions\TEMP-Build\PsTestTool\PsTestFunctions.ps1: line 34
2021-05-16T21:48:13.6477347Z at <ScriptBlock>, <No file>: line 53
2021-05-16T21:48:23.5290668Z ClientSession State is Uninitialized (Wait time 10 seconds)
2021-05-16T21:48:23.5308939Z at AwaitState, C:\ProgramData\NavContainerHelper\Extensions\TEMP-Build\PsTestTool\ClientContext.ps1: line 250
2021-05-16T21:48:23.5309069Z at OpenSession, C:\ProgramData\NavContainerHelper\Extensions\TEMP-Build\PsTestTool\ClientContext.ps1: line 216
2021-05-16T21:48:23.5309937Z at Initialize, C:\ProgramData\NavContainerHelper\Extensions\TEMP-Build\PsTestTool\ClientContext.ps1: line 78
2021-05-16T21:48:23.5310364Z at ClientContext, C:\ProgramData\NavContainerHelper\Extensions\TEMP-Build\PsTestTool\ClientContext.ps1: line 53
2021-05-16T21:48:23.5310444Z at New-ClientContext, C:\ProgramData\NavContainerHelper\Extensions\TEMP-Build\PsTestTool\PsTestFunctions.ps1: line 34
2021-05-16T21:48:23.5311370Z at <ScriptBlock>, <No file>: line 53
2021-05-16T21:48:23.5328373Z à Invoke-ScriptInBcContainer, C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\2.0.11\ContainerHandling\Invoke-ScriptInNavContainer.ps1 : ligne 44
2021-05-16T21:48:23.5333907Z à Get-TestsFromBcContainer, C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\2.0.11\AppHandling\Get-TestsFromNavContainer.ps1 : ligne 164
2021-05-16T21:48:23.5339593Z à <ScriptBlock>, E:\DevOps\Scripts\New\NAVDockerContainerManagement.ps1 : ligne 831
2021-05-16T21:48:23.5345274Z à <ScriptBlock>, C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\2.0.11\AppHandling\Sort-AppFoldersByDependencies.ps1 : ligne 107
2021-05-16T21:48:23.5350932Z à Sort-AppFoldersByDependencies, C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\2.0.11\AppHandling\Sort-AppFoldersByDependencies.ps1 : ligne 106
2021-05-16T21:48:23.5356573Z à RunTests-NavContainerProjectApps, E:\DevOps\Scripts\New\NAVDockerContainerManagement.ps1 : ligne 822
2021-05-16T21:48:23.5362263Z à <ScriptBlock>, E:\DevOps\Scripts\New\NAVALRunBuild.ps1 : ligne 552
2021-05-16T21:48:23.5367944Z à <ScriptBlock>, E:\DevOps\Agent\_work\_temp\39533445-059a-46cd-baeb-3fc7c428cef7.ps1 : ligne 3
2021-05-16T21:48:23.5373572Z à <ScriptBlock>, <Aucun fichier> : ligne 1
2021-05-16T21:48:24.1000360Z AVERTISSEMENT : This license is not compatible with this version of Business Central.
2021-05-16T21:48:24.4389778Z AVERTISSEMENT : This license is not compatible with this version of Business Central.
2021-05-16T21:48:24.9648323Z CommunicationError : Response status code does not indicate success: 500 (Internal Server Error).
2021-05-16T21:48:24.9651987Z at <ScriptBlock>, C:\ProgramData\NavContainerHelper\Extensions\TEMP-Build\PsTestTool\ClientContext.ps1: line 110
2021-05-16T21:48:24.9659066Z at AwaitState, C:\ProgramData\NavContainerHelper\Extensions\TEMP-Build\PsTestTool\ClientContext.ps1: line 238
2021-05-16T21:48:24.9667422Z at OpenSession, C:\ProgramData\NavContainerHelper\Extensions\TEMP-Build\PsTestTool\ClientContext.ps1: line 216
2021-05-16T21:48:24.9675009Z at Initialize, C:\ProgramData\NavContainerHelper\Extensions\TEMP-Build\PsTestTool\ClientContext.ps1: line 78
2021-05-16T21:48:24.9682324Z at ClientContext, C:\ProgramData\NavContainerHelper\Extensions\TEMP-Build\PsTestTool\ClientContext.ps1: line 53
2021-05-16T21:48:24.9691224Z at New-ClientContext, C:\ProgramData\NavContainerHelper\Extensions\TEMP-Build\PsTestTool\PsTestFunctions.ps1: line 34
2021-05-16T21:48:24.9698899Z at <ScriptBlock>, <No file>: line 53
2021-05-16T21:48:34.9112652Z ClientSession State is Uninitialized (Wait time 10 seconds)
2021-05-16T21:48:34.9117225Z at AwaitState, C:\ProgramData\NavContainerHelper\Extensions\TEMP-Build\PsTestTool\ClientContext.ps1: line 250
2021-05-16T21:48:34.9117523Z at OpenSession, C:\ProgramData\NavContainerHelper\Extensions\TEMP-Build\PsTestTool\ClientContext.ps1: line 216
2021-05-16T21:48:34.9117696Z at Initialize, C:\ProgramData\NavContainerHelper\Extensions\TEMP-Build\PsTestTool\ClientContext.ps1: line 78
2021-05-16T21:48:34.9117790Z at ClientContext, C:\ProgramData\NavContainerHelper\Extensions\TEMP-Build\PsTestTool\ClientContext.ps1: line 53
2021-05-16T21:48:34.9117870Z at New-ClientContext, C:\ProgramData\NavContainerHelper\Extensions\TEMP-Build\PsTestTool\PsTestFunctions.ps1: line 34
2021-05-16T21:48:34.9118591Z at <ScriptBlock>, <No file>: line 53
2021-05-16T21:48:34.9125697Z à Invoke-ScriptInBcContainer, C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\2.0.11\ContainerHandling\Invoke-ScriptInNavContainer.ps1 : ligne 44
2021-05-16T21:48:34.9130657Z à Get-TestsFromBcContainer, C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\2.0.11\AppHandling\Get-TestsFromNavContainer.ps1 : ligne 164
2021-05-16T21:48:34.9135643Z à <ScriptBlock>, E:\DevOps\Scripts\New\NAVDockerContainerManagement.ps1 : ligne 835
2021-05-16T21:48:34.9140594Z à <ScriptBlock>, C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\2.0.11\AppHandling\Sort-AppFoldersByDependencies.ps1 : ligne 107
2021-05-16T21:48:34.9145598Z à Sort-AppFoldersByDependencies, C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\2.0.11\AppHandling\Sort-AppFoldersByDependencies.ps1 : ligne 106
2021-05-16T21:48:34.9150713Z à RunTests-NavContainerProjectApps, E:\DevOps\Scripts\New\NAVDockerContainerManagement.ps1 : ligne 822
2021-05-16T21:48:34.9155704Z à <ScriptBlock>, E:\DevOps\Scripts\New\NAVALRunBuild.ps1 : ligne 552
2021-05-16T21:48:34.9160668Z à <ScriptBlock>, E:\DevOps\Agent\_work\_temp\39533445-059a-46cd-baeb-3fc7c428cef7.ps1 : ligne 3
2021-05-16T21:48:34.9165632Z à <ScriptBlock>, <Aucun fichier> : ligne 1
2021-05-16T21:48:35.0391075Z ClientSession State is Uninitialized (Wait time 10 seconds)
2021-05-16T21:48:35.0391440Z Au caractère C:\Program 
2021-05-16T21:48:35.0391529Z Files\WindowsPowerShell\Modules\BcContainerHelper\2.0.11\ContainerHandling\Invoke-ScriptInNavContainer.ps1:45 : 13
2021-05-16T21:48:35.0391640Z +             throw $_.Exception.Message
2021-05-16T21:48:35.0391707Z +             ~~~~~~~~~~~~~~~~~~~~~~~~~~
2021-05-16T21:48:35.0392188Z     + CategoryInfo          : OperationStopped: (ClientSession S...ime 10 seconds):String) [], RuntimeException
2021-05-16T21:48:35.0392927Z     + FullyQualifiedErrorId : ClientSession State is Uninitialized (Wait time 10 seconds)
ccourvoisier commented 3 years ago

Hello,

Same issue on my side since yesterday.

2021-05-17T09:04:59.8130951Z Set TCP Keep-Alive 2021-05-17T09:04:59.8363515Z Start TestSuite 2021-05-17T09:05:00.4691317Z Running TestSuite with authentication [NavUserPassword] with User [admin] 2021-05-17T09:05:00.4696848Z Run warm-up with page [130455] 2021-05-17T09:05:00.4703006Z Warm-up Client Context 2021-05-17T09:05:01.1163141Z CommunicationError : Response status code does not indicate success: 500 (Internal Server Error). 2021-05-17T09:05:01.1169335Z at , : line 89 2021-05-17T09:05:01.1174926Z at AwaitState, : line 194 2021-05-17T09:05:01.1181215Z at OpenSession, : line 172 2021-05-17T09:05:01.1186362Z at Initialize, : line 59 2021-05-17T09:05:01.1191790Z at ClientContext, : line 26 2021-05-17T09:05:01.1196817Z at New-ClientContext, : line 22 2021-05-17T09:05:01.1202189Z at , : line 10 2021-05-17T09:05:01.1207150Z at , : line 1 2021-05-17T09:05:11.1001924Z Warm-Up Exception: ClientSession State is Uninitialized (Wait time 10 seconds) 2021-05-17T09:05:11.1008410Z Warm-up Client Context failed: retry 2021-05-17T09:05:16.4379503Z Warm-up Client Context 2021-05-17T09:05:16.4386600Z CommunicationError : Response status code does not indicate success: 500 (Internal Server Error). 2021-05-17T09:05:16.4392582Z at , : line 89 2021-05-17T09:05:16.4398860Z at AwaitState, : line 194 2021-05-17T09:05:16.4403653Z at OpenSession, : line 172 2021-05-17T09:05:16.4408436Z at Initialize, : line 59 2021-05-17T09:05:16.4412980Z at ClientContext, : line 26 2021-05-17T09:05:16.4417645Z at New-ClientContext, : line 22 2021-05-17T09:05:16.4422077Z at , : line 10 2021-05-17T09:05:16.4426969Z at , : line 1 2021-05-17T09:05:26.4176001Z Warm-Up Exception: ClientSession State is Uninitialized (Wait time 10 seconds) 2021-05-17T09:05:26.4182286Z Warm-up Client Context failed: retry 2021-05-17T09:05:31.7720266Z Warm-up Client Context 2021-05-17T09:05:31.7726526Z CommunicationError : Response status code does not indicate success: 500 (Internal Server Error). 2021-05-17T09:05:31.7732642Z at , : line 89 2021-05-17T09:05:31.7739787Z at AwaitState, : line 194 2021-05-17T09:05:31.7745451Z at OpenSession, : line 172 2021-05-17T09:05:31.7751062Z at Initialize, : line 59 2021-05-17T09:05:31.7755589Z at ClientContext, : line 26 2021-05-17T09:05:31.7760085Z at New-ClientContext, : line 22 2021-05-17T09:05:31.7764534Z at , : line 10 2021-05-17T09:05:31.7769094Z at , : line 1 2021-05-17T09:05:41.7592761Z Warm-Up Exception: ClientSession State is Uninitialized (Wait time 10 seconds) 2021-05-17T09:05:41.7599001Z Warm-up Client Context failed: retry 2021-05-17T09:05:47.0773083Z Warm-up Client Context 2021-05-17T09:05:47.0778400Z CommunicationError : Response status code does not indicate success: 500 (Internal Server Error). 2021-05-17T09:05:47.0783562Z at , : line 89 2021-05-17T09:05:47.0789149Z at AwaitState, : line 194 2021-05-17T09:05:47.0793916Z at OpenSession, : line 172 2021-05-17T09:05:47.0798969Z at Initialize, : line 59 2021-05-17T09:05:47.0803503Z at ClientContext, : line 26 2021-05-17T09:05:47.0808580Z at New-ClientContext, : line 22 2021-05-17T09:05:47.0813048Z at , : line 10 2021-05-17T09:05:47.0818142Z at , : line 1 2021-05-17T09:05:57.0028199Z Warm-Up Exception: ClientSession State is Uninitialized (Wait time 10 seconds) 2021-05-17T09:05:57.0034864Z Warm-up Client Context failed: retry 2021-05-17T09:06:02.3301217Z Warm-up Client Context 2021-05-17T09:06:02.3307504Z CommunicationError : Response status code does not indicate success: 500 (Internal Server Error). 2021-05-17T09:06:02.3312587Z at , : line 89 2021-05-17T09:06:02.3317878Z at AwaitState, : line 194 2021-05-17T09:06:02.3323031Z at OpenSession, : line 172 2021-05-17T09:06:02.3327946Z at Initialize, : line 59 2021-05-17T09:06:02.3333423Z at ClientContext, : line 26 2021-05-17T09:06:02.3337869Z at New-ClientContext, : line 22 2021-05-17T09:06:02.3342734Z at , : line 10 2021-05-17T09:06:02.3347597Z at , : line 1 2021-05-17T09:06:12.2980439Z Warm-Up Exception: ClientSession State is Uninitialized (Wait time 10 seconds) 2021-05-17T09:06:12.2986452Z *** Warm-up Client Context failed: retry 2021-05-17T09:06:16.8157216Z ##[error]Warm-up Client Context failed 2021-05-17T09:06:17.0944917Z ##[error]Because the session state for session WinRM1, 065e5516-f5a3-4952-ad02-1b04071cf8e0, d758978eff01 is not equal to Open, you cannot run a command in the session. The session state is Closing.

catadumitru commented 3 years ago

I have the same issue when running tests on BC19

freddydk commented 3 years ago

BC19 seems broken right now, investigating

freddydk commented 3 years ago

BC 19 uses a new dotnet core version, which was not present in generic image 1.0.1.6 All images are being updated to 1.0.1.7, which includes this new dotnetcore version. This issue should be solved within the next few hours (dependeing on what version of windows you are using) 10.0.19042.985 has already been updated... newest versions are updated first.

freddydk commented 3 years ago

Generic image 1.0.1.7 has shipped. Re-run your scripts should cause this to download and be used.

pmatsconsulting commented 3 years ago

Works fine with new generic image. Thank you Freddy!