HodorNV / ALOps

ALOps
59 stars 24 forks source link

ALOpsDockerWait not waiting at all #714

Closed Robiwahn23 closed 9 months ago

Robiwahn23 commented 9 months ago

Describe the bug While using the example from your Build Steps documentation (Create,Start,Wait), Create and Start is working fine, but the Wait task is just throwing an error.

the used yaml please provide the yaml that you used. It helps you put the yaml like this:

name: $(Build.BuildId)

variables:
- group: 'ALOps License'
- name: 'AppVersion'
  value: '1.0.[yyyyWW].*'
- name: 'dockerimage'
  value: 'mcr.microsoft.com/businesscentral/sandbox'
- name: 'TestFilter'
  value: '50100..50149'
- name: 'bc_license'
  value: 'C:\agent\7266238.bclicense'

pool:
  name: BC-BUILDS

steps:
- checkout: self
  clean: true

- task: ALOpsDockerCreate@1
  displayName: 'ALOps - Create Docker Image if necessary' # It will reuse the image if already exists, or build one if it doesn't.
  inputs:
    artifacttype: Sandbox
    versionselect: Weekly
    licensefile: '$(bc_license)'

- task: ALOpsDockerStart@1
  displayName: 'ALOps - Start Docker Container' # No need to provide any details - it will get the details from previous step
  inputs:
    docker_pull: false
    docker_parameters: | 
      --env customNavSettings=EnableTaskScheduler=false 
    licensefile: '$(bc_license)'

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

- task: ALOpsLicenseImport@1
  inputs:
    usedocker: true
    license_path: $(bc_license)

- task: ALOpsAppCompiler@1
  inputs:
    usedocker: true
    nav_app_version: $(AppVersion)
    failed_on_warnings: true    

- task: ALOpsAppPublish@1
  inputs:
    usedocker: true
    nav_artifact_app_filter: '*.app'   
    skip_verification: true 

- task: ALOpsAppTest@1
  inputs:
    usedocker: true
    import_action: "Skip"
    testfilter: $(TestFilter)
    show_available_tests: true
  continueOnError: true    

- task: PublishTestResults@2
  inputs:
    testResultsFormat: XUnit
    testResultsFiles: '**/TestResults.xml'
    testRunTitle: 'BC Test Results: $(Build.BuildId)'

- task: ALOpsDockerRemove@1
  enabled: true
  condition: always()    

the output Also the complete output is necessary for us to see what is going on. Also use backtics:

2024-01-04T09:51:43.3833795Z ##[section]Starting: Job
2024-01-04T09:51:43.6723023Z ##[section]Starting: Initialize job
2024-01-04T09:51:43.6724817Z Agent name: 'ENKO40'
2024-01-04T09:51:43.6724972Z Agent machine name: 'ENKO40'
2024-01-04T09:51:43.6725039Z Current agent version: '3.232.0'
2024-01-04T09:51:43.6738500Z Agent running as: 'robert'
2024-01-04T09:51:43.6764073Z Prepare build directory.
2024-01-04T09:51:43.7079204Z Set build variables.
2024-01-04T09:51:43.7101476Z Download all required tasks.
2024-01-04T09:51:43.7344771Z Checking job knob settings.
2024-01-04T09:51:43.7350906Z    Knob: DockerActionRetries = true Source: $(VSTSAGENT_DOCKER_ACTION_RETRIES) 
2024-01-04T09:51:43.7351953Z    Knob: AgentEnablePipelineArtifactLargeChunkSize = true Source: $(AGENT_ENABLE_PIPELINEARTIFACT_LARGE_CHUNK_SIZE) 
2024-01-04T09:51:43.7352630Z    Knob: ContinueAfterCancelProcessTreeKillAttempt = true Source: $(VSTSAGENT_CONTINUE_AFTER_CANCEL_PROCESSTREEKILL_ATTEMPT) 
2024-01-04T09:51:43.7352985Z    Knob: ProcessHandlerTelemetry = true Source: $(AZP_75787_ENABLE_COLLECT) 
2024-01-04T09:51:43.7353328Z    Knob: IgnoreVSTSTaskLib = true Source: $(AZP_AGENT_IGNORE_VSTSTASKLIB) 
2024-01-04T09:51:43.7353586Z    Knob: CheckForTaskDeprecation = true Source: $(AZP_AGENT_CHECK_FOR_TASK_DEPRECATION) 
2024-01-04T09:51:43.7353754Z Finished checking job knob settings.
2024-01-04T09:51:43.7556580Z Start tracking orphan processes.
2024-01-04T09:51:43.7680781Z ##[section]Finishing: Initialize job
2024-01-04T09:51:43.7815266Z ##[section]Async Command Start: DetectDockerContainer
2024-01-04T09:51:43.7815413Z ##[section]Async Command End: DetectDockerContainer
2024-01-04T09:51:43.7815849Z ##[section]Async Command Start: DetectDockerContainer
2024-01-04T09:51:43.7815972Z ##[section]Async Command End: DetectDockerContainer
2024-01-04T09:51:43.7939524Z ##[section]Starting: Checkout ATEEL@develop to s
2024-01-04T09:51:43.8345297Z ==============================================================================
2024-01-04T09:51:43.8345645Z Task         : Get sources
2024-01-04T09:51:43.8345894Z Description  : Get sources from a repository. Supports Git, TfsVC, and SVN repositories.
2024-01-04T09:51:43.8345988Z Version      : 1.0.0
2024-01-04T09:51:43.8346138Z Author       : Microsoft
2024-01-04T09:51:43.8346369Z Help         : [More Information](https://go.microsoft.com/fwlink/?LinkId=798199)
2024-01-04T09:51:43.8346444Z ==============================================================================
2024-01-04T09:51:44.2089825Z Syncing repository: ATEEL (Git)
2024-01-04T09:51:44.2211551Z Prepending Path environment variable with directory containing 'git.exe'.
2024-01-04T09:51:44.2218604Z ##[command]git version
2024-01-04T09:51:44.2841218Z git version 2.39.1.windows.1
2024-01-04T09:51:44.2857699Z ##[command]git lfs version
2024-01-04T09:51:44.4066228Z git-lfs/3.3.0 (GitHub; windows amd64; go 1.19.3; git 77deabdf)
2024-01-04T09:51:44.4111663Z ##[command]git config --get remote.origin.url
2024-01-04T09:51:44.4573074Z ##[command]git clean -ffdx
2024-01-04T09:51:44.5109705Z ##[command]git reset --hard HEAD
2024-01-04T09:51:44.5886146Z HEAD is now at 9884198 Update azure-pipelines.yml for Azure Pipelines
2024-01-04T09:51:44.5929588Z ##[command]git config gc.auto 0
2024-01-04T09:51:44.6374378Z ##[command]git config --get-all http.https://enkosoftware@dev.azure.com/enkosoftware/Enko.ERP/_git/ATEEL.extraheader
2024-01-04T09:51:44.6852359Z ##[command]git config --get-all http.extraheader
2024-01-04T09:51:44.7329444Z ##[command]git config --get-regexp .*extraheader
2024-01-04T09:51:44.7805220Z ##[command]git config --get-all http.proxy
2024-01-04T09:51:44.8302379Z ##[command]git config http.version HTTP/1.1
2024-01-04T09:51:44.8857794Z ##[command]git --config-env=http.extraheader=env_var_http.extraheader fetch --force --tags --prune --prune-tags --progress --no-recurse-submodules origin --depth=1 +9884198da35f84544d0bd5bcb361a9583c45eaa3:refs/remotes/origin/9884198da35f84544d0bd5bcb361a9583c45eaa3
2024-01-04T09:51:45.4125153Z remote: Azure Repos        
2024-01-04T09:51:45.4905502Z remote: 
2024-01-04T09:51:45.4906064Z remote: Found 1 objects to send. (80 ms)        
2024-01-04T09:51:45.6271223Z ##[command]git --config-env=http.extraheader=env_var_http.extraheader fetch --force --tags --prune --prune-tags --progress --no-recurse-submodules origin --depth=1 +9884198da35f84544d0bd5bcb361a9583c45eaa3
2024-01-04T09:51:45.9181245Z remote: Azure Repos        
2024-01-04T09:51:45.9282863Z remote: 
2024-01-04T09:51:45.9285723Z remote: Found 0 objects to send. (11 ms)        
2024-01-04T09:51:45.9973444Z From https://dev.azure.com/enkosoftware/Enko.ERP/_git/ATEEL
2024-01-04T09:51:45.9974517Z  * branch            9884198da35f84544d0bd5bcb361a9583c45eaa3 -> FETCH_HEAD
2024-01-04T09:51:46.0640867Z ##[command]git checkout --progress --force refs/remotes/origin/9884198da35f84544d0bd5bcb361a9583c45eaa3
2024-01-04T09:51:46.0951304Z HEAD is now at 9884198 Update azure-pipelines.yml for Azure Pipelines
2024-01-04T09:51:46.1106268Z ##[section]Finishing: Checkout ATEEL@develop to s
2024-01-04T09:51:46.1124073Z ##[section]Starting: ALOps - Create Docker Image if necessary
2024-01-04T09:51:46.1267316Z ==============================================================================
2024-01-04T09:51:46.1267406Z Task         : ALOps Docker Create
2024-01-04T09:51:46.1267456Z Description  : Create Docker image from Business Central Artifacts
2024-01-04T09:51:46.1267508Z Version      : 1.461.5079
2024-01-04T09:51:46.1267541Z Author       : Hodor
2024-01-04T09:51:46.1267574Z Help         : Create Docker image based on NAV/BC Artifacts.
2024-01-04T09:51:46.1267617Z ==============================================================================
2024-01-04T09:51:47.0203141Z *** Validate configuration
2024-01-04T09:51:47.1057506Z *** Task Inputs:
2024-01-04T09:51:47.1129986Z 
2024-01-04T09:51:47.1205307Z name                      value                                                                                      
2024-01-04T09:51:47.1272888Z ----                      -----                                                                                      
2024-01-04T09:51:47.1273104Z artifactspecification     Specific                                                                                   
2024-01-04T09:51:47.1273245Z artifactversion                                                                                                      
2024-01-04T09:51:47.1273365Z artifacttype              Sandbox                                                                                    
2024-01-04T09:51:47.1273679Z artifactcountry                                                                                                      
2024-01-04T09:51:47.1273874Z versionselect             Weekly                                                                                     
2024-01-04T09:51:47.1274038Z artifacthint                                                                                                         
2024-01-04T09:51:47.1274174Z multitenant               False                                                                                      
2024-01-04T09:51:47.1274303Z memory                    8G                                                                                         
2024-01-04T09:51:47.1274424Z imageprefix               myImage                                                                                    
2024-01-04T09:51:47.1274549Z dockerregistry                                                                                                       
2024-01-04T09:51:47.1274691Z dockerusername                                                                                                       
2024-01-04T09:51:47.1274912Z dockerpassword                                                                                                       
2024-01-04T09:51:47.1275043Z storageaccount                                                                                                       
2024-01-04T09:51:47.1276079Z sastoken                                                                                                             
2024-01-04T09:51:47.1276226Z forcecreateimage          False                                                                                      
2024-01-04T09:51:47.1276352Z myscripts                                                                                                            
2024-01-04T09:51:47.1276938Z imagenametemplate         %IMAGE_PREFIX%:%ARTIFACT_TYPE%-%ARTIFACT_VERSION%-%ARTIFACT_COUNTRY%-%OS_VERSION%-%OS_LTSC%
2024-01-04T09:51:47.1277145Z use_generic_image                                                                                                    
2024-01-04T09:51:47.1277293Z licensefile               C:\agent\7266238.bclicense                                                                 
2024-01-04T09:51:47.1277436Z includetesttoolkit        False                                                                                      
2024-01-04T09:51:47.1280146Z includetestlibrariesonly  False                                                                                      
2024-01-04T09:51:47.1280360Z includetestframeworkonly  False                                                                                      
2024-01-04T09:51:47.1280508Z includeperformancetoolkit False                                                                                      
2024-01-04T09:51:47.1280653Z accept_insider_eula       False                                                                                      
2024-01-04T09:51:47.1280714Z 
2024-01-04T09:51:47.1280753Z 
2024-01-04T09:51:47.1378686Z 
2024-01-04T09:51:47.1587642Z *** For documentation, please visit   : https://www.alops.be/documentation
2024-01-04T09:51:47.1634205Z 
2024-01-04T09:51:47.6229485Z *** ALOps License:
2024-01-04T09:51:47.6251156Z   * Licensed To: ENKO Software GmbH & Co. KG (Per Run License)
2024-01-04T09:51:47.6254829Z 
2024-01-04T09:51:47.6394820Z *** Importing required PS-Functions
2024-01-04T09:51:47.6668925Z *** Install/Update BCContainerHelper [https://github.com/microsoft/navcontainerhelper]
2024-01-04T09:51:47.6718456Z *** Check BcContainerHelper
2024-01-04T09:51:47.8381248Z *** Load BcContainerHelper
2024-01-04T09:51:47.9446615Z BcContainerHelper version 6.0.3
2024-01-04T09:51:48.2492220Z BC.HelperFunctions emits usage statistics telemetry to Microsoft
2024-01-04T09:51:48.4453172Z 10geeks\robert does NOT have Full Control to C:\ProgramData\BcContainerHelper and all subfolders
2024-01-04T09:51:48.4468640Z You need to run as administrator or you can run Check-BcContainerHelperPermissions -Fix to fix permissions
2024-01-04T09:51:48.4530083Z 10geeks\robert does NOT have modify permissions to C:\WINDOWS\System32\drivers\etc\hosts
2024-01-04T09:51:48.4544265Z You need to run as administrator or you can run Check-BcContainerHelperPermissions -Fix to fix permissions
2024-01-04T09:51:51.1513096Z 
2024-01-04T09:51:51.1514167Z ModuleType Version    Name                                ExportedCommands                                             
2024-01-04T09:51:51.1514613Z ---------- -------    ----                                ----------------                                             
2024-01-04T09:51:51.1515254Z Script     6.0.3      BcContainerHelper                   {Add-FontsToBcContainer, Add-GitToAlProjectFolder, AddTele...
2024-01-04T09:51:51.1515311Z 
2024-01-04T09:51:51.1515332Z 
2024-01-04T09:51:51.1515448Z 
2024-01-04T09:51:51.1518005Z 
2024-01-04T09:51:51.1600740Z *** Get Artifact Url for Version [] / Country [] / Type [Sandbox]: Weekly
2024-01-04T09:51:51.1763502Z ##[command]"Get-BCArtifactUrl" 
2024-01-04T09:51:51.1763871Z Name                           Value                                                                                   
2024-01-04T09:51:51.1764046Z ----                           -----                                                                                   
2024-01-04T09:51:51.1764142Z select                         Weekly                                                                                  
2024-01-04T09:51:51.1764635Z type                           Sandbox                                                                                 
2024-01-04T09:51:51.1764664Z 
2024-01-04T09:51:51.1764685Z 
2024-01-04T09:51:51.1766295Z 
2024-01-04T09:52:27.5907587Z *** Artifact Url: [https://bcartifacts.azureedge.net/sandbox/23.2.14098.14978/w1]
2024-01-04T09:52:27.5916629Z *** Build new Image based on [https://bcartifacts.azureedge.net/sandbox/23.2.14098.14978/w1]
2024-01-04T09:52:27.5962952Z *** Artifact Type   : [sandbox]
2024-01-04T09:52:27.5975117Z *** Artifact Version: [23.2.14098.14978]
2024-01-04T09:52:27.5980136Z *** Artifact Country: [w1]
2024-01-04T09:52:27.9545001Z ##[warning]OS Major version could not be detected [Microsoft Windows 11 Enterprise]
2024-01-04T09:52:27.9551128Z *** OS: [2019]
2024-01-04T09:52:29.8574222Z *** OS version: [10.0.20348.2113]
2024-01-04T09:52:29.8593135Z *** Image Template: [%IMAGE_PREFIX%:%ARTIFACT_TYPE%-%ARTIFACT_VERSION%-%ARTIFACT_COUNTRY%-%OS_VERSION%-%OS_LTSC%]
2024-01-04T09:52:29.8619009Z *** ImageName: [myimage:sandbox-23.2.14098.14978-w1-10.0.20348.2113-ltsc2019]
2024-01-04T09:52:29.8646517Z *** Set Pipeline variable $(ALOPS_BC_IMAGE) = 'myimage:sandbox-23.2.14098.14978-w1-10.0.20348.2113-ltsc2019'
2024-01-04T09:52:30.0507000Z *** Image already locally cached. Skipping Pull/Create image.
2024-01-04T09:52:30.0514362Z *** Docker Create Succeeded.
2024-01-04T09:52:30.0585984Z *** Cleanup VSTS Environment: True
2024-01-04T09:52:32.3643447Z ##[section]Finishing: ALOps - Create Docker Image if necessary
2024-01-04T09:52:32.3656110Z ##[section]Starting: ALOps - Start Docker Container
2024-01-04T09:52:32.3776842Z ==============================================================================
2024-01-04T09:52:32.3776916Z Task         : ALOps Docker Start
2024-01-04T09:52:32.3776951Z Description  : Start a Business Central container
2024-01-04T09:52:32.3777167Z Version      : 1.461.5079
2024-01-04T09:52:32.3777198Z Author       : Hodor
2024-01-04T09:52:32.3777227Z Help         : Start Business Central docker container.
2024-01-04T09:52:32.3777268Z ==============================================================================
2024-01-04T09:52:33.1628439Z *** Using ALOpsDockerCreate image, disabling [docker_pull]
2024-01-04T09:52:33.1635476Z *** Importing required PS-Functions
2024-01-04T09:52:33.2131866Z *** Validate configuration
2024-01-04T09:52:33.2571907Z *** Task Inputs:
2024-01-04T09:52:33.2638048Z 
2024-01-04T09:52:33.2733753Z name                        value                                                       
2024-01-04T09:52:33.2736938Z ----                        -----                                                       
2024-01-04T09:52:33.2739328Z fixed_tag                                                                               
2024-01-04T09:52:33.2741204Z ignore_no_container_warning False                                                       
2024-01-04T09:52:33.2750677Z docker_image                myimage:sandbox-23.2.14098.14978-w1-10.0.20348.2113-ltsc2019
2024-01-04T09:52:33.2753889Z accept_image_eula           True                                                        
2024-01-04T09:52:33.2758329Z accept_image_outdated       True                                                        
2024-01-04T09:52:33.2764393Z enable_symbol_loading       False                                                       
2024-01-04T09:52:33.2768433Z enable_api_services         False                                                       
2024-01-04T09:52:33.2771711Z multitenant                 False                                                       
2024-01-04T09:52:33.2772943Z docker_pull                 False                                                       
2024-01-04T09:52:33.2774128Z dockerauthentication        None                                                        
2024-01-04T09:52:33.2776242Z docker_login                                                                            
2024-01-04T09:52:33.2778526Z docker_username                                                                         
2024-01-04T09:52:33.2780538Z docker_password                                                                         
2024-01-04T09:52:33.2781695Z docker_registry                                                                         
2024-01-04T09:52:33.2782975Z memory_gb                   -1                                                          
2024-01-04T09:52:33.2783828Z container_restart           no                                                          
2024-01-04T09:52:33.2784915Z licensefile                 C:\agent\7266238.bclicense                                  
2024-01-04T09:52:33.2786272Z docker_parameters           --env customNavSettings=EnableTaskScheduler=false           
2024-01-04T09:52:33.2787114Z sql_server                                                                              
2024-01-04T09:52:33.2788245Z sql_server_instance                                                                     
2024-01-04T09:52:33.2789320Z sql_database                                                                            
2024-01-04T09:52:33.2790440Z sql_database_user                                                                       
2024-01-04T09:52:33.2791527Z sql_database_user_password                                                              
2024-01-04T09:52:33.2792669Z sql_backup_file                                                                         
2024-01-04T09:52:33.2795037Z encryption_key                                                                          
2024-01-04T09:52:33.2795169Z taskscheduler               Keep                                                        
2024-01-04T09:52:33.2795201Z 
2024-01-04T09:52:33.2815217Z 
2024-01-04T09:52:33.2823579Z 
2024-01-04T09:52:33.2989904Z *** For documentation, please visit   : https://www.alops.be/documentation
2024-01-04T09:52:33.2994720Z 
2024-01-04T09:52:33.6913843Z *** ALOps License:
2024-01-04T09:52:33.6935336Z   * Licensed To: ENKO Software GmbH & Co. KG (Per Run License)
2024-01-04T09:52:33.6937992Z 
2024-01-04T09:52:33.8815857Z *** Splitting Additional Docker Parameters
2024-01-04T09:52:33.8821919Z *** Additional Docker parameters:
2024-01-04T09:52:33.8835364Z --env customNavSettings=EnableTaskScheduler=false
2024-01-04T09:52:33.8907833Z *** Add docker parameter: --env customNavSettings=EnableTaskScheduler=false
2024-01-04T09:52:33.8920674Z ##[command]"docker" create --env accept_eula=Y --env accept_outdated=Y --restart no --env licensefile="C:\agent\7266238.bclicense" --label TFSBuild=ATEEL_4722 --env customNavSettings=EnableTaskScheduler=false myimage:sandbox-23.2.14098.14978-w1-10.0.20348.2113-ltsc2019
2024-01-04T09:52:34.0556950Z *** Checking for Assemblies in App
2024-01-04T09:52:34.0739040Z ##[command]"docker" start 4a2739cf537342a47a1f374252c8fa01f1fc79180918a738c0bf7c7d0cd87eef
2024-01-04T09:52:36.3999485Z *** Container Started: 4a2739cf537342a47a1f374252c8fa01f1fc79180918a738c0bf7c7d0cd87eef
2024-01-04T09:52:36.6372075Z *** Container Labels:
2024-01-04T09:52:36.6422358Z 
2024-01-04T09:52:36.7013410Z *** Docker Start OK.
2024-01-04T09:52:36.7013496Z *** Cleanup VSTS Environment: True
2024-01-04T09:52:38.9413625Z ##[section]Async Command Start: Add Build Tag
2024-01-04T09:52:38.9413784Z Build '4722' has following tags now: myimage-sandbox-23.2.14098.14978-w1-10.0.20348.2113-ltsc2019
2024-01-04T09:52:38.9413871Z ##[section]Async Command End: Add Build Tag
2024-01-04T09:52:38.9414194Z ##[section]Async Command Start: Add Build Tag
2024-01-04T09:52:38.9414352Z Build '4722' has following tags now: myimage-sandbox-23.2.14098.14978-w1-10.0.20348.2113-ltsc2019, BC.Platform.23.0.14966.0, BC.Version.23.2.14098.14978
2024-01-04T09:52:38.9414457Z ##[section]Async Command End: Add Build Tag
2024-01-04T09:52:38.9414776Z ##[section]Async Command Start: Add Build Tag
2024-01-04T09:52:38.9415532Z Build '4722' has following tags now: myimage-sandbox-23.2.14098.14978-w1-10.0.20348.2113-ltsc2019, BC.Version.23.2.14098.14978
2024-01-04T09:52:38.9415632Z ##[section]Async Command End: Add Build Tag
2024-01-04T09:52:38.9416020Z ##[section]Finishing: ALOps - Start Docker Container
2024-01-04T09:52:38.9427015Z ##[section]Starting: ALOps - Wait for Docker Container to start
2024-01-04T09:52:38.9525147Z ==============================================================================
2024-01-04T09:52:38.9525214Z Task         : ALOps Docker Wait
2024-01-04T09:52:38.9525254Z Description  : Wait until the Business Central container is started
2024-01-04T09:52:38.9525306Z Version      : 1.461.5079
2024-01-04T09:52:38.9525338Z Author       : Hodor
2024-01-04T09:52:38.9525377Z Help         : Wait until the Business Central container is started.
2024-01-04T09:52:38.9525423Z ==============================================================================
2024-01-04T09:52:39.7109881Z *** Validate configuration
2024-01-04T09:52:39.7446321Z *** Task Inputs:
2024-01-04T09:52:39.7480639Z 
2024-01-04T09:52:39.7543926Z name                 value                 
2024-01-04T09:52:39.7547710Z ----                 -----                 
2024-01-04T09:52:39.7549436Z fixed_tag                                  
2024-01-04T09:52:39.7551567Z search_string        Ready for connections!
2024-01-04T09:52:39.7553103Z warning_string                             
2024-01-04T09:52:39.7554769Z error_string                               
2024-01-04T09:52:39.7557811Z setup_working_folder True                  
2024-01-04T09:52:39.7557992Z usecompression       True                  
2024-01-04T09:52:39.7559894Z printlogs            True                  
2024-01-04T09:52:39.7559949Z 
2024-01-04T09:52:39.7578476Z 
2024-01-04T09:52:39.7584544Z 
2024-01-04T09:52:39.7735383Z *** For documentation, please visit   : https://www.alops.be/documentation
2024-01-04T09:52:39.7737649Z 
2024-01-04T09:52:40.1556979Z *** ALOps License:
2024-01-04T09:52:40.1578217Z   * Licensed To: ENKO Software GmbH & Co. KG (Per Run License)
2024-01-04T09:52:40.1583834Z 
2024-01-04T09:52:40.1669998Z *** Importing required PS-Functions
2024-01-04T09:52:40.3715822Z *** Waiting for Docker Container Log Entry: Ready for connections!
2024-01-04T09:52:41.5094646Z At least 3Gb memory needs to be available to the Container.
2024-01-04T09:52:41.5094851Z At C:\Run\start.ps1:49 char:5
2024-01-04T09:52:41.5094949Z +     throw "At least 3Gb memory needs to be available to the Container ...
2024-01-04T09:52:41.5095057Z +     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2024-01-04T09:52:41.5095170Z     + CategoryInfo          : OperationStopped: (At least 3Gb me... the Contai 
2024-01-04T09:52:41.5098846Z    ner.:String) [], RuntimeException
2024-01-04T09:52:41.5098996Z     + FullyQualifiedErrorId : At least 3Gb memory needs to be available to the 
2024-01-04T09:52:41.5099090Z     Container.
2024-01-04T09:52:41.5099143Z  
2024-01-04T09:52:41.5340882Z 
2024-01-04T09:52:41.7006881Z ##[error]*** Docker container exited.
2024-01-04T09:52:41.7267630Z ##[section]Finishing: ALOps - Wait for Docker Container to start
2024-01-04T09:52:41.7278064Z Skipping step due to condition evaluation.
Evaluating: SucceededNode()
Result: False

2024-01-04T09:52:41.7287933Z Skipping step due to condition evaluation.
Evaluating: SucceededNode()
Result: False

2024-01-04T09:52:41.7299855Z Skipping step due to condition evaluation.
Evaluating: SucceededNode()
Result: False

2024-01-04T09:52:41.7318473Z Skipping step due to condition evaluation.
Evaluating: SucceededNode()
Result: False

2024-01-04T09:52:41.7335348Z Skipping step due to condition evaluation.
Evaluating: SucceededNode()
Result: False

2024-01-04T09:52:41.7353228Z ##[section]Starting: ALOpsDockerRemove
2024-01-04T09:52:41.7496326Z ==============================================================================
2024-01-04T09:52:41.7496398Z Task         : ALOps Docker Remove
2024-01-04T09:52:41.7496790Z Description  : Remove a Business Central container
2024-01-04T09:52:41.7496835Z Version      : 1.461.5079
2024-01-04T09:52:41.7496868Z Author       : Hodor
2024-01-04T09:52:41.7496899Z Help         : Remove Business Central docker container.
2024-01-04T09:52:41.7496946Z ==============================================================================
2024-01-04T09:52:42.4870413Z *** Validate configuration
2024-01-04T09:52:42.5192175Z *** Task Inputs:
2024-01-04T09:52:42.5232558Z 
2024-01-04T09:52:42.5292490Z name                    value
2024-01-04T09:52:42.5293009Z ----                    -----
2024-01-04T09:52:42.5294717Z usedocker                True
2024-01-04T09:52:42.5295770Z fixed_tag                    
2024-01-04T09:52:42.5296970Z print_logs               True
2024-01-04T09:52:42.5298708Z createeventlogbackup disabled
2024-01-04T09:52:42.5299456Z createsqlbackup      disabled
2024-01-04T09:52:42.5300507Z publishsqlbackup         True
2024-01-04T09:52:42.5301675Z sqlcompression          False
2024-01-04T09:52:42.5302853Z zipsqlbackup             True
2024-01-04T09:52:42.5303124Z 
2024-01-04T09:52:42.5316461Z 
2024-01-04T09:52:42.5322709Z 
2024-01-04T09:52:42.5465193Z *** For documentation, please visit   : https://www.alops.be/documentation
2024-01-04T09:52:42.5469517Z 
2024-01-04T09:52:42.9181297Z *** ALOps License:
2024-01-04T09:52:42.9200206Z   * Licensed To: ENKO Software GmbH & Co. KG (Per Run License)
2024-01-04T09:52:42.9208693Z 
2024-01-04T09:52:42.9442079Z *** Importing required PS-Functions
2024-01-04T09:52:43.1196720Z *** >> Job Status: [Failed]
2024-01-04T09:52:43.1210513Z *** >>> Print Container Logs: 4a2739cf537342a47a1f374252c8fa01f1fc79180918a738c0bf7c7d0cd87eef >>>
2024-01-04T09:52:43.2502511Z At least 3Gb memory needs to be available to the Container.
2024-01-04T09:52:43.2502680Z At C:\Run\start.ps1:49 char:5
2024-01-04T09:52:43.2502782Z +     throw "At least 3Gb memory needs to be available to the Container ...
2024-01-04T09:52:43.2502895Z +     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2024-01-04T09:52:43.2503000Z     + CategoryInfo          : OperationStopped: (At least 3Gb me... the Contai 
2024-01-04T09:52:43.2504688Z    ner.:String) [], RuntimeException
2024-01-04T09:52:43.2504881Z     + FullyQualifiedErrorId : At least 3Gb memory needs to be available to the 
2024-01-04T09:52:43.2505025Z     Container.
2024-01-04T09:52:43.2505100Z  
2024-01-04T09:52:43.2672891Z *** >>> 
2024-01-04T09:52:43.2679697Z *** <<< Print Container Logs: 4a2739cf537342a47a1f374252c8fa01f1fc79180918a738c0bf7c7d0cd87eef <<<
2024-01-04T09:52:43.2685868Z *** Stop Docker container: 4a2739cf537342a47a1f374252c8fa01f1fc79180918a738c0bf7c7d0cd87eef
2024-01-04T09:52:43.4192546Z *** Remove Docker container: 4a2739cf537342a47a1f374252c8fa01f1fc79180918a738c0bf7c7d0cd87eef
2024-01-04T09:52:43.5745233Z *** Docker Remove OK.
2024-01-04T09:52:43.5795756Z *** Cleanup VSTS Environment: True
2024-01-04T09:52:45.8827284Z ##[section]Finishing: ALOpsDockerRemove
2024-01-04T09:52:45.8841408Z ##[section]Starting: Checkout ATEEL@develop to s
2024-01-04T09:52:45.8943945Z ==============================================================================
2024-01-04T09:52:45.8944246Z Task         : Get sources
2024-01-04T09:52:45.8944277Z Description  : Get sources from a repository. Supports Git, TfsVC, and SVN repositories.
2024-01-04T09:52:45.8944331Z Version      : 1.0.0
2024-01-04T09:52:45.8944365Z Author       : Microsoft
2024-01-04T09:52:45.8944396Z Help         : [More Information](https://go.microsoft.com/fwlink/?LinkId=798199)
2024-01-04T09:52:45.8944541Z ==============================================================================
2024-01-04T09:52:46.1771940Z Cleaning any cached credential from repository: ATEEL (Git)
2024-01-04T09:52:46.1856960Z ##[section]Finishing: Checkout ATEEL@develop to s
2024-01-04T09:52:46.1941040Z ##[section]Starting: Finalize Job
2024-01-04T09:52:46.1962629Z Cleaning up task key
2024-01-04T09:52:46.1963637Z Start cleaning up orphan processes.
2024-01-04T09:52:46.2306700Z ##[section]Finishing: Finalize Job
2024-01-04T09:52:46.2355722Z ##[section]Finishing: Job

Expected behavior Wait should be waiting for the docker container to be ready to use...

As seen in the log, the expected memory usage should be 8GB...

Robiwahn23 commented 9 months ago

I just found out, that the Task ContainerStart uses a default of -1 for memory. this is causing the shutdown of the container start.

It should be considered to change the default value of -1 for the parameter "Memory"