HodorNV / ALOps

ALOps
59 stars 24 forks source link

Error response from daemon: pull access denied for myimage, repository does not exist or may require 'docker login': denied: requested access to the resource is denied #375

Closed marcelvos1 closed 3 years ago

marcelvos1 commented 3 years ago

Since a couple of days we run in the error: Error response from daemon: pull access denied for myimage, repository does not exist or may require 'docker login': denied: requested access to the resource is denied.

This happens for all our build pipelines. We have update the build server, checked if docker is installed/enabled, Hyper-V is enabled and all windows features are installed. We run also again the PowerShell script to install the windows features and docker, but no result. Today we tested the builds on a Azure VM that we use as a backup VM, but on this VM the build gives the same error message.

Thanks for help.

the used yaml

name: $(Build.BuildId)

variables:
- name: 'appVersion'
  value: '?.?.[yyyyWW].*'

pool:
  name: MBS Agent Pool

steps:
- checkout: self
  clean: true

# Download Base Customizations artifacts.
- task: DownloadBuildArtifacts@0
  displayName: MBS - Download TR Base Customizations build artifacts
  inputs:
    buildType: 'specific'
    project: '7c911c1f-0815-4232-ae03-630f38ddcb19'
    pipeline: '151'
    buildVersionToDownload: 'latest'
    downloadType: 'single'
    artifactName: 'Dynamics 365'
    itemPattern: '**/*.app'
    downloadPath: '$(System.ArtifactsDirectory)/dependent apps'

# Publish Artifacts
- task: PublishBuildArtifacts@1
  displayName: MBS - Publish Build Artifacts
  inputs:
    PathtoPublish: '$(System.ArtifactsDirectory)/dependent apps'
    ArtifactName: Dependent Apps

# Create Docker for a Specific Version
- task: ALOpsDockerCreate@1
  condition: and(ne(variables['artifactVersion'], ''), eq(variables['pipelineTarget'], 'version'))
  displayName: "ALOPS - Create Docker Image (Specific Version)" 
  inputs:
    artifacttype: Sandbox
    artifactversion: $(artifactVersion)
    artifactcountry: $(artifactCountry)
    licensefile: $(BCLicense)
    memory: 16G

# Create Docker for the Current Version
- task: ALOpsDockerCreate@1
  condition: and(eq(variables['artifactVersion'], ''), eq(variables['pipelineTarget'], 'current'))
  displayName: "ALOPS - Create Docker Image (Latest Version)" 
  inputs:
    artifacttype: Sandbox
    artifactcountry: $(artifactCountry)
    versionselect: 'Latest'
    licensefile: $(BCLicense)
    memory: 16G

# Create Docker for the Next Minor Version
- task: ALOpsDockerCreate@1
  condition: and(eq(variables['artifactVersion'], ''), eq(variables['pipelineTarget'], 'nextminor'))
  displayName: "ALOPS - Create Docker Image (Next Minor)" 
  inputs:
    sastoken: $(bc.sasToken)
    artifacttype: Sandbox
    versionselect: NextMinor
    licensefile: $(BCLicense)
    memory: 16G

# Create Docker for the Next Major Version
- task: ALOpsDockerCreate@1
  condition: and(eq(variables['artifactVersion'], ''), eq(variables['pipelineTarget'], 'nextmajor'))
  displayName: "ALOPS - Create Docker Image (Next Major)" 
  inputs:
    sastoken: $(bc.sasToken)
    artifacttype: Sandbox
    versionselect: NextMajor
    licensefile: $(BCLicense)
    memory: 16G

# Start Docker Container
- task: ALOpsDockerStart@1
  displayName: 'ALOPS - Start Docker Container'
  inputs:
    memory_gb: 16

- task: ALOpsDockerWait@1
  displayName: 'ALOPS - Wait for Docker Container to start'
  inputs:
    search_string: 'Ready for connections!'

# Publish TR Base Customizations App to docker
- task: ALOpsAppPublish@1
  displayName: 'ALOPS - Publish TR Base Customizations'
  inputs:
    usedocker: true
    nav_artifact_app_filter: '*_Base Customizations*.app'
    batch_publish_folder: '$(System.ArtifactsDirectory)/dependent apps'

- task: ALOpsAppCompiler@1
  displayName: 'ALOPS - Compile App'
  inputs:
    usedocker: true
    nav_app_version: $(appVersion)
    failed_on_warnings: true

- task: ALOpsAppPublish@1
  displayName: 'ALOPS - Publish App'
  inputs:
    usedocker: true
    nav_artifact_app_filter: '*.app'   
    skip_verification: true 

- task: ALOpsDockerRemove@1
  displayName: 'ALOPS - Remove Docker Container'
  enabled: true
  condition: always()

the output

Create Docker Image

2021-05-28T07:57:04.4565967Z ##[section]Starting: ALOPS - Create Docker Image (Latest Version)
2021-05-28T07:57:04.4906785Z ==============================================================================
2021-05-28T07:57:04.4907499Z Task         : ALOps Docker Create
2021-05-28T07:57:04.4908109Z Description  : Create Docker image from Business Central Artifacts
2021-05-28T07:57:04.4908643Z Version      : 1.442.2488
2021-05-28T07:57:04.4909062Z Author       : Hodor
2021-05-28T07:57:04.4909625Z Help         : Create Docker image based on NAV/BC Artifacts.
2021-05-28T07:57:04.4910289Z ==============================================================================
2021-05-28T07:57:09.1406214Z *** Validate configuration
2021-05-28T07:57:10.4726884Z *** Task Inputs:
2021-05-28T07:57:10.4812392Z 
2021-05-28T07:57:10.4902989Z name                      value                                                                                        
2021-05-28T07:57:10.4910636Z ----                      -----                                                                                        
2021-05-28T07:57:10.4914398Z artifactspecification     Specific                                                                                     
2021-05-28T07:57:10.4922263Z artifactversion                                                                                                        
2021-05-28T07:57:10.4933872Z artifacttype              Sandbox                                                                                      
2021-05-28T07:57:10.4939363Z artifactcountry           nl                                                                                           
2021-05-28T07:57:10.4944954Z versionselect             Latest                                                                                       
2021-05-28T07:57:10.4951485Z artifacthint                                                                                                           
2021-05-28T07:57:10.4957989Z multitenant               False                                                                                        
2021-05-28T07:57:10.4963726Z memory                    16G                                                                                          
2021-05-28T07:57:10.5186382Z imageprefix               myImage                                                                                      
2021-05-28T07:57:10.5192692Z dockerregistry                                                                                                         
2021-05-28T07:57:10.5253881Z dockerusername                                                                                                         
2021-05-28T07:57:10.5262712Z dockerpassword                                                                                                         
2021-05-28T07:57:10.5268296Z storageaccount                                                                                                         
2021-05-28T07:57:10.5299347Z sastoken                                                                                                               
2021-05-28T07:57:10.5303636Z forcecreateimage          False                                                                                        
2021-05-28T07:57:10.5306824Z myscripts                                                                                                              
2021-05-28T07:57:10.5309499Z imagenametemplate         %IMAGE_PREFIX%:%ARTIFACT_TYPE%-%ARTIFACT_VERSION%-%ARTIFACT_COUNTRY%-%OS_VERSION%-%OS_LTSC%  
2021-05-28T07:57:10.5312513Z licensefile               https://mbsbuildlicense.blob.core.windows.net/devops-d365bclicense/BC365%20-%20DevOps.flf?...
2021-05-28T07:57:10.5342554Z includetesttoolkit        False                                                                                        
2021-05-28T07:57:10.5345287Z includetestlibrariesonly  False                                                                                        
2021-05-28T07:57:10.5356207Z includetestframeworkonly  False                                                                                        
2021-05-28T07:57:10.5359281Z includeperformancetoolkit False                                                                                        
2021-05-28T07:57:10.5360719Z 
2021-05-28T07:57:10.5361485Z 
2021-05-28T07:57:10.5362313Z 
2021-05-28T07:57:10.5838644Z *** For documentation, please visit   : https://www.alops.be/documentation
2021-05-28T07:57:10.5845899Z 
2021-05-28T07:57:10.9567132Z *** ALOps License:
2021-05-28T07:57:10.9605972Z   * Licensed To: Mprise BV (2x RepositoryPer5 License)
2021-05-28T07:57:10.9613713Z 
2021-05-28T07:57:11.0434708Z *** Importing required PS-Functions
2021-05-28T07:57:11.8778295Z *** Install/Update BCContainerHelper [https://github.com/microsoft/navcontainerhelper]
2021-05-28T07:57:11.8897122Z *** Check BcContainerHelper
2021-05-28T07:57:12.0237036Z *** Load BcContainerHelper
2021-05-28T07:57:12.4817746Z BcContainerHelper version 2.0.5
2021-05-28T07:57:14.3325241Z 
2021-05-28T07:57:14.3327195Z ModuleType Version    Name                                ExportedCommands                                             
2021-05-28T07:57:14.3329263Z ---------- -------    ----                                ----------------                                             
2021-05-28T07:57:14.3330617Z Script     2.0.5      BcContainerHelper                   {Add-FontsToBcContainer, Add-GitToAlProjectFolder, Backup-...
2021-05-28T07:57:14.3331219Z 
2021-05-28T07:57:14.3331425Z 
2021-05-28T07:57:14.3331623Z 
2021-05-28T07:57:14.3334264Z 
2021-05-28T07:57:14.3452285Z *** Get Artifact Url for Version [] / Country [nl] / Type [Sandbox]: Latest
2021-05-28T07:57:14.3706582Z ##[command]"Get-BCArtifactUrl" 
2021-05-28T07:57:14.3708667Z Name                           Value                                                                                   
2021-05-28T07:57:14.3710978Z ----                           -----                                                                                   
2021-05-28T07:57:14.3714987Z select                         Latest                                                                                  
2021-05-28T07:57:14.3717172Z type                           Sandbox                                                                                 
2021-05-28T07:57:14.3719459Z country                        nl                                                                                      
2021-05-28T07:57:14.3720446Z 
2021-05-28T07:57:14.3720794Z 
2021-05-28T07:57:14.3721125Z 
2021-05-28T07:57:40.3558469Z *** Artifact Url: [https://bcartifacts.azureedge.net/sandbox/18.1.24822.26132/nl]
2021-05-28T07:57:40.3577181Z *** Build new Image based on [https://bcartifacts.azureedge.net/sandbox/18.1.24822.26132/nl]
2021-05-28T07:57:40.3665966Z *** Artifact Type   : [sandbox]
2021-05-28T07:57:40.3675358Z *** Artifact Version: [18.1.24822.26132]
2021-05-28T07:57:40.3687078Z *** Artifact Country: [nl]
2021-05-28T07:57:40.4910547Z *** OS: [2019]
2021-05-28T07:57:40.9453417Z *** OS version: [10.0.17763.1935]
2021-05-28T07:57:40.9479540Z *** Image Template: [%IMAGE_PREFIX%:%ARTIFACT_TYPE%-%ARTIFACT_VERSION%-%ARTIFACT_COUNTRY%-%OS_VERSION%-%OS_LTSC%]
2021-05-28T07:57:40.9620701Z *** ImageName: [myimage:sandbox-18.1.24822.26132-nl-10.0.17763.1935-ltsc2019]
2021-05-28T07:57:40.9678000Z *** Set Pipeline variable $(ALOPS_BC_IMAGE) = 'myimage:sandbox-18.1.24822.26132-nl-10.0.17763.1935-ltsc2019'
2021-05-28T07:57:41.2398230Z Error: No such image: myimage:sandbox-18.1.24822.26132-nl-10.0.17763.1935-ltsc2019
2021-05-28T07:57:41.2546904Z *** No 'MyScripts' specified, skipping parse.
2021-05-28T07:57:41.2579351Z *** Create Image: myimage:sandbox-18.1.24822.26132-nl-10.0.17763.1935-ltsc2019
2021-05-28T07:57:41.2621541Z ##[command]"New-BcImage" 
2021-05-28T07:57:41.2622519Z Name                           Value                                                                                   
2021-05-28T07:57:41.2626006Z ----                           -----                                                                                   
2021-05-28T07:57:41.2627112Z includePerformanceToolkit      False                                                                                   
2021-05-28T07:57:41.2628271Z artifactUrl                    https://bcartifacts.azureedge.net/sandbox/18.1.24822.26132/nl                           
2021-05-28T07:57:41.2629476Z licenseFile                    https://mbsbuildlicense.blob.core.windows.net/devops-d365bclicense/BC365%20-%20DevOps...
2021-05-28T07:57:41.2630730Z includeTestToolkit             False                                                                                   
2021-05-28T07:57:41.2631879Z memory                         16G                                                                                     
2021-05-28T07:57:41.2633954Z includeTestFrameworkOnly       False                                                                                   
2021-05-28T07:57:41.2635171Z multitenant                    False                                                                                   
2021-05-28T07:57:41.2636396Z imageName                      myimage:sandbox-18.1.24822.26132-nl-10.0.17763.1935-ltsc2019                            
2021-05-28T07:57:41.2637630Z includeTestLibrariesOnly       False                                                                                   
2021-05-28T07:57:41.2638207Z 
2021-05-28T07:57:41.2638438Z 
2021-05-28T07:57:41.2638642Z 
2021-05-28T07:57:41.7311280Z Building image myimage:sandbox-18.1.24822.26132-nl-10.0.17763.1935-ltsc2019 based on mcr.microsoft.com/businesscentral:10.0.17763.1935 with https://bcartifacts.azureedge.net/sandbox/18.1.24822.26132/nl
2021-05-28T07:57:41.7358708Z Pulling latest image mcr.microsoft.com/businesscentral:10.0.17763.1935
2021-05-28T07:57:42.2310097Z 10.0.17763.1935: Pulling from businesscentral
2021-05-28T07:57:42.5218773Z Generic Tag: 1.0.1.7
2021-05-28T07:57:42.8069685Z Container OS Version: 10.0.17763.1935 (ltsc2019)
2021-05-28T07:57:42.8084756Z Host OS Version: 10.0.17763.1971 (ltsc2019)
2021-05-28T07:57:45.9874658Z Using hyperv isolation
2021-05-28T07:57:46.0063203Z Using license file ***
2021-05-28T07:57:46.0390937Z Downloading c:\bcartifacts.cache\mjgbb4i3.ocn\my\license.flf
2021-05-28T07:57:46.1618779Z Files in c:\bcartifacts.cache\mjgbb4i3.ocn\my:
2021-05-28T07:57:46.1697148Z - license.flf
2021-05-28T07:57:46.1792720Z Copying Platform Artifacts
2021-05-28T07:58:16.5899188Z Copying Database
2021-05-28T07:58:29.0311571Z Copying Licensefile
2021-05-28T07:58:29.0534254Z Copying Extensions
2021-05-28T07:58:34.9625083Z Copying Applications.NL
2021-05-28T07:58:37.2310777Z c:\bcartifacts.cache\mjgbb4i3.ocn
2021-05-28T07:59:19.8973413Z Sending build context to Docker daemon   1.96GB
2021-05-28T07:59:19.8975697Z 
2021-05-28T07:59:20.2870706Z Step 1/6 : FROM mcr.microsoft.com/businesscentral:10.0.17763.1935
2021-05-28T07:59:20.2889700Z  ---> 8f43c1d70fd7
2021-05-28T07:59:20.2896255Z Step 2/6 : ENV DatabaseServer=localhost DatabaseInstance=SQLEXPRESS DatabaseName=CRONUS IsBcSandbox=Y artifactUrl=https://bcartifacts.azureedge.net/sandbox/18.1.24822.26132/nl filesOnly=False
2021-05-28T07:59:20.3024820Z  ---> Using cache
2021-05-28T07:59:20.3028509Z  ---> 1ffb73aa79c2
2021-05-28T07:59:20.3036899Z Step 3/6 : COPY my /run/
2021-05-28T07:59:20.3224381Z  ---> Using cache
2021-05-28T07:59:20.3227522Z  ---> 4bd262d2bdae
2021-05-28T07:59:20.3233676Z Step 4/6 : COPY NAVDVD /NAVDVD/
2021-05-28T08:01:12.3536302Z  ---> 150ed81f0be1
2021-05-28T08:01:12.3538867Z Step 5/6 : RUN \Run\start.ps1 -installOnly
2021-05-28T08:01:12.6399383Z  ---> Running in cf39c0012e3a
2021-05-28T08:01:16.8081863Z hcsshim::CreateComputeSystem cf39c0012e3aee78cfdafe2dc9c97fe57eac5ec64c59b52dd36e20b18e55bd6a: The virtual machine could not be started because a required feature is not installed.
2021-05-28T08:01:16.8098615Z (extra info: {"SystemType":"Container","Name":"cf39c0012e3aee78cfdafe2dc9c97fe57eac5ec64c59b52dd36e20b18e55bd6a","Owner":"docker","IgnoreFlushesDuringBoot":true,"LayerFolderPath":"C:\\ProgramData\\docker\\windowsfilter\\cf39c0012e3aee78cfdafe2dc9c97fe57eac5ec64c59b52dd36e20b18e55bd6a","Layers":[{"ID":"d0a8ba36-1389-5930-8630-48aabf7e890a","Path":"C:\\ProgramData\\docker\\windowsfilter\\847fe0454f2e45f9fb99206430622fd3cd08a57553d2f1cf9334538784ca228b"},{"ID":"8d5c7b6b-5428-5d00-87b5-f90daf37c39a","Path":"C:\\ProgramData\\docker\\windowsfilter\\21d84213af419b4804feb03f55a95f91fe56734c48e312834ee1beba6811ca0f"},{"ID":"57491bf3-5220-506b-8479-b2b8aa086180","Path":"C:\\ProgramData\\docker\\windowsfilter\\89e1bd0523f8815ae60769e20f38f40fb7f641607aa3ca4d2b128d15249625d8"},{"ID":"cc18946d-b35e-58dd-9603-4f6d3bf2cc9e","Path":"C:\\ProgramData\\docker\\windowsfilter\\eea85349f7881901e49c0aee3f24ac6cad187295115fd8349b8c30233ff397ef"},{"ID":"15dd9cef-739c-566d-b326-a830918777cc","Path":"C:\\ProgramData\\docker\\windowsfilter\\a110e2591f2fd13ba0dd24b279a6f5bec2bd4e0e25ceb6b31c9797c5c2dab5a1"},{"ID":"2528a878-ebf5-57d6-914c-b1d07338f4b4","Path":"C:\\ProgramData\\docker\\windowsfilter\\ef0b010d102e4c30c15b7379ff96763ef3cd3f4ab20f1469310f49efde639024"},{"ID":"115bb5d2-f214-5960-89fd-9e15dc68d3d2","Path":"C:\\ProgramData\\docker\\windowsfilter\\18ccbbcafe91686d7ee670cca9f2c44b8eb88435115ce3c4628d617aa40dd0f3"},{"ID":"9848484b-5aa3-5699-9072-d3de5540cbe3","Path":"C:\\ProgramData\\docker\\windowsfilter\\09cc1c9722cb1f05870806e019ad1f9eef35b5371b2ec22c2f8b78751dedbf9b"},{"ID":"0c14c27d-5c69-5f7e-90ca-0da1d47b8a42","Path":"C:\\ProgramData\\docker\\windowsfilter\\bc58798d3014685fdd437fe94d2a2828c9f7e742ea0a3ec73060483f8e9d20ad"},{"ID":"0f84133f-de2a-5608-a100-a3f328674120","Path":"C:\\ProgramData\\docker\\windowsfilter\\f04b10106adf5c5f3a52c4044629e419716c4c4f7a57146147dfff88cf8f74a0"},{"ID":"988e9131-503c-52b8-a0c1-063f37a92a3b","Path":"C:\\ProgramData\\docker\\windowsfilter\\ec87e1380c833590ba88a1449492a77a330ab608a2b91569af3da3f534e6bbe2"},{"ID":"7d276513-eeb5-52db-960a-2edaa6ca1ceb","Path":"C:\\ProgramData\\docker\\windowsfilter\\00202796e843f40367273fffc7dc3b7e93bac54266e005af332dbe97103cfcff"},{"ID":"9d444e2d-9dd3-5809-8745-9e6826df32bb","Path":"C:\\ProgramData\\docker\\windowsfilter\\e033e8a37edeb0e5667b6e2abf33c60514e2b9b3cb07615826ed4e8463c021a5"},{"ID":"7bbe22c7-bb6c-5def-b58e-8e0044a04a7c","Path":"C:\\ProgramData\\docker\\windowsfilter\\f91fbb0f36ad717b3210379dad3b7d22315a0c9ffa9a91cd408a7d2f88bbdf15"},{"ID":"c62592c3-6989-5ebb-bb5d-eddcf118406e","Path":"C:\\ProgramData\\docker\\windowsfilter\\d259d1a9075f32b586ec79038f3059ef6a477208b6c5e9d4fab1bb079e9b2e1e"},{"ID":"ccbbd4c3-3e9b-5b86-a9bc-8dfcd4018b18","Path":"C:\\ProgramData\\docker\\windowsfilter\\649682b23e35d3432a987855944da3fc440a47aee2af45c8477ca047928fa3ee"},{"ID":"3e341f84-5499-5ba8-b820-c8355a13a30f","Path":"C:\\ProgramData\\docker\\windowsfilter\\35cd0cc1a0ab78f7ef9959d3458bbf3d7fa6cb3ebc62bd33c8d752b0cfc0ef73"},{"ID":"35029422-286f-502c-bcb1-1949881088ea","Path":"C:\\ProgramData\\docker\\windowsfilter\\a1ff22342044d274c71a56e6ef14ef5869ee92fad5ced693676b3e8cbe7e46ff"},{"ID":"7f930608-ccc8-553f-884d-fb8b8dbf6f73","Path":"C:\\ProgramData\\docker\\windowsfilter\\06f4aa3018a7ad573200859408eb54f34960df96f66d84d4f8ae47c92938798b"},{"ID":"94d0bef5-c23e-525a-83e1-6f7b779de2f6","Path":"C:\\ProgramData\\docker\\windowsfilter\\9ee47ab64102b87936deba9356e07e7d700efc420d9dd9e1f1288d382a68c3b3"},{"ID":"e782370a-8bbc-5424-86c0-035287a71d66","Path":"C:\\ProgramData\\docker\\windowsfilter\\079d48e175eae7f3323f8cf15e906c2f470ffd21b10d43d4d9ac48325768135d"}],"MemoryMaximumInMB":16384,"HostName":"cf39c0012e3a","HvPartition":true,"EndpointList":["75F64C4C-6761-41B0-9878-1FECA96F5960"],"HvRuntime":{"ImagePath":"C:\\ProgramData\\docker\\windowsfilter\\9ee47ab64102b87936deba9356e07e7d700efc420d9dd9e1f1288d382a68c3b3\\UtilityVM"},"AllowUnqualifiedDNSQuery":true})
2021-05-28T08:01:16.8446874Z Building image took 215 seconds
2021-05-28T08:01:22.8409651Z *** Created Image: myimage:sandbox-18.1.24822.26132-nl-10.0.17763.1935-ltsc2019
2021-05-28T08:01:22.8444619Z *** No Docker Registry specified
2021-05-28T08:01:22.8456894Z *** Docker Create Succeeded.
2021-05-28T08:01:22.8620172Z *** Cleanup VSTS Environment: True
2021-05-28T08:01:25.1924291Z ##[section]Finishing: ALOPS - Create Docker Image (Latest Version)

Start Docker Container

2021-05-28T08:01:25.2444667Z ##[section]Starting: ALOPS - Start Docker Container
2021-05-28T08:01:25.2843296Z ==============================================================================
2021-05-28T08:01:25.2844105Z Task         : ALOps Docker Start
2021-05-28T08:01:25.2844694Z Description  : Start a Business Central container
2021-05-28T08:01:25.2845211Z Version      : 1.442.2488
2021-05-28T08:01:25.2845700Z Author       : Hodor
2021-05-28T08:01:25.2846273Z Help         : Start Business Central docker container.
2021-05-28T08:01:25.2847002Z ==============================================================================
2021-05-28T08:01:29.4447252Z *** Importing required PS-Functions
2021-05-28T08:01:30.3135965Z *** Validate configuration
2021-05-28T08:01:31.3899593Z *** Task Inputs:
2021-05-28T08:01:31.3903527Z 
2021-05-28T08:01:31.3904800Z name                        value                                                       
2021-05-28T08:01:31.3906342Z ----                        -----                                                       
2021-05-28T08:01:31.3908055Z fixed_tag                                                                               
2021-05-28T08:01:31.3909551Z ignore_no_container_warning False                                                       
2021-05-28T08:01:31.3911015Z docker_image                myimage:sandbox-18.1.24822.26132-nl-10.0.17763.1935-ltsc2019
2021-05-28T08:01:31.3912509Z accept_image_eula           True                                                        
2021-05-28T08:01:31.3913951Z accept_image_outdated       True                                                        
2021-05-28T08:01:31.3915378Z enable_symbol_loading       False                                                       
2021-05-28T08:01:31.3916825Z enable_api_services         False                                                       
2021-05-28T08:01:31.3918211Z multitenant                 False                                                       
2021-05-28T08:01:31.3926550Z docker_pull                 True                                                        
2021-05-28T08:01:31.3928122Z dockerauthentication        None                                                        
2021-05-28T08:01:31.3929637Z docker_login                                                                            
2021-05-28T08:01:31.3931103Z docker_username                                                                         
2021-05-28T08:01:31.3932576Z docker_password                                                                         
2021-05-28T08:01:31.3934029Z docker_registry                                                                         
2021-05-28T08:01:31.3935502Z memory_gb                   16                                                          
2021-05-28T08:01:31.3936931Z container_restart           no                                                          
2021-05-28T08:01:31.3938353Z docker_parameters                                                                       
2021-05-28T08:01:31.3939822Z sql_server                                                                              
2021-05-28T08:01:31.3941233Z sql_server_instance                                                                     
2021-05-28T08:01:31.3942721Z sql_database                                                                            
2021-05-28T08:01:31.3944160Z sql_database_user                                                                       
2021-05-28T08:01:31.3945602Z sql_database_user_password                                                              
2021-05-28T08:01:31.3947078Z sql_backup_file                                                                         
2021-05-28T08:01:31.3948466Z encryption_key                                                                          
2021-05-28T08:01:31.3949327Z 
2021-05-28T08:01:31.3949925Z 
2021-05-28T08:01:31.3950461Z 
2021-05-28T08:01:31.4196220Z *** For documentation, please visit   : https://www.alops.be/documentation
2021-05-28T08:01:31.4200250Z 
2021-05-28T08:01:31.7824445Z *** ALOps License:
2021-05-28T08:01:31.7859403Z   * Licensed To: Mprise BV (2x RepositoryPer5 License)
2021-05-28T08:01:31.7866760Z 
2021-05-28T08:01:32.3164263Z ##[command]"docker" create --memory 16G --env accept_eula=Y --env accept_outdated=Y --restart no --label TFSBuild=tr-reports_7143 myimage:sandbox-18.1.24822.26132-nl-10.0.17763.1935-ltsc2019
2021-05-28T08:01:32.6258978Z Unable to find image 'myimage:sandbox-18.1.24822.26132-nl-10.0.17763.1935-ltsc2019' locally
2021-05-28T08:01:33.9488314Z Error response from daemon: pull access denied for myimage, repository does not exist or may require 'docker login': denied: requested access to the resource is denied
2021-05-28T08:01:33.9759687Z *** Checking for Assemblies in App
2021-05-28T08:01:34.0027837Z ##[command]"docker" start 
2021-05-28T08:01:34.3230246Z "docker start" requires at least 1 argument.
2021-05-28T08:01:34.3231247Z See 'docker start --help'.
2021-05-28T08:01:34.3232499Z 
2021-05-28T08:01:34.3233935Z Usage:  docker start [OPTIONS] CONTAINER [CONTAINER...]
2021-05-28T08:01:34.3234552Z 
2021-05-28T08:01:34.3235706Z Start one or more stopped containers
2021-05-28T08:01:34.3363867Z *** Container Started: 
2021-05-28T08:01:34.7467209Z ##[error]Cannot bind argument to parameter 'ContainerID' because it is an empty string.
2021-05-28T08:01:34.7989733Z ##[section]Async Command Start: Add Build Tag
2021-05-28T08:01:34.7990853Z Build '7143' has following tags now: myimage-sandbox-18.1.24822.26132-nl-10.0.17763.1935-ltsc2019
2021-05-28T08:01:34.7991667Z ##[section]Async Command End: Add Build Tag
2021-05-28T08:01:34.7996118Z ##[section]Finishing: ALOPS - Start Docker Container

Screenshots image

waldo1001 commented 3 years ago

Hi, when the docker start fails, there probably is something wrong with the creation of the image.

this is the error you need to look at: The virtual machine could not be started because a required feature is not installed.

Docker isn't too descriptive, unfortunately.

Did you try to run maintenance on the machine (there is an ALOps step for that as well). Just clear as much as possible, and re-run the pipeline.. .

marcelvos1 commented 3 years ago

Hi Waldo, Yes I run the maintenace multiple times.

marcelvos1 commented 3 years ago

FYI, we installed a new server and the problems are gone. The Azure VM still exist with the error. So we can further now but if we can investigate the problem it will be nice.

marcelvos1 commented 3 years ago

The virtual machine could not be started because a required feature is not installed. <- I checked also the windows features and install it again, but without any result

tfenster commented 3 years ago

@marcelvos1 just a guess, maybe you got a Windows update which forced you to use hyperv isolation now but the Azure VM doesn't support it? Do you still have logs from successful runs? And which Azure VM size are you using?

waldo1001 commented 3 years ago

Hi Marcel,

As much as I want to get to the bottom of it, I can't put too much time into investigation infrastructure/docker-related problems on the agent. I hope you understand.

As we are using BcContainerHelper, could you please try to do a simple New-BcImage on the faulty server and tell me the results?

marcelvos1 commented 3 years ago

@marcelvos1 just a guess, maybe you got a Windows update which forced you to use hyperv isolation now but the Azure VM doesn't support it? Do you still have logs from successful runs? And which Azure VM size are you using?

I will check this.

marcelvos1 commented 3 years ago

Hi Marcel,

As much as I want to get to the bottom of it, I can't put too much time into investigation infrastructure/docker-related problems on the agent. I hope you understand.

As we are using BcContainerHelper, could you please try to do a simple New-BcImage on the faulty server and tell me the results?

Ok. No problem. I will test this and share the result with you

AdminHodor commented 3 years ago

Dear @marcelvos1 ,

Please check our latest release v1.443.2509 which might address this issue.

Kind regards

marcelvos1 commented 3 years ago

Hi @AdminHodor , Sorry for my late response. We have installed the server again and problem was gone. So unfortunately I don't know what exactly caused the problem. This issue can be closed.