Closed deano808 closed 7 months ago
Hm - we'll look into this - it should indeed have failed right away.
Dear @deano808 ,
Please check out our latest release v1.461. We improved the docker.exe command handling which should solve this issue.
Kind regards,
Hello, Unfortunately, the issue remains. The Docker Start task has failed but not stopped the pipeline. (see below) fyi, when I see a pipeline in this condition, if I stop the created container and then start it the pipeline continues.
Starting: ALOpsDockerStart
==============================================================================
Task : ALOps Docker Start
Description : Start a Business Central container
Version : 1.461.5079
Author : Hodor
Help : Start Business Central docker container.
==============================================================================
*** Using ALOpsDockerCreate image, disabling [docker_pull]
*** Importing required PS-Functions
*** Validate configuration
*** Task Inputs:
name value
---- -----
fixed_tag
ignore_no_container_warning False
docker_image myimage:sandbox-22.0.54157.62224-gb-10.0.17763.3046-ltsc2019
accept_image_eula True
accept_image_outdated True
enable_symbol_loading False
enable_api_services False
multitenant False
docker_pull True
dockerauthentication None
docker_login
docker_username
docker_password
docker_registry
memory_gb 8
container_restart no
licensefile
docker_parameters --isolation=hyperv
sql_server
sql_server_instance
sql_database
sql_database_user
sql_database_user_password
sql_backup_file
encryption_key
taskscheduler Keep
*** For documentation, please visit : https://www.alops.be/documentation
*** ALOps License:
* Licensed To: Technology Management (Midlands) Limited (Enterprise License)
*** Splitting Additional Docker Parameters
*** Additional Docker parameters:
--isolation=hyperv
*** Add docker parameter: --isolation=hyperv
"docker" create --memory 8G --env accept_eula=Y --env accept_outdated=Y --restart no --label TFSBuild=Tecman.STO004.BulkOrders_71098 --isolation=hyperv myimage:sandbox-22.0.54157.62224-gb-10.0.17763.3046-ltsc2019
*** Checking for Assemblies in App
"docker" start f36c467d7b89029ea4cd0f4d7e01c17da7612d71a7057a014c1c2669b5092181
Error response from daemon: hcsshim::CreateComputeSystem f36c467d7b89029ea4cd0f4d7e01c17da7612d71a7057a014c1c2669b5092181: This operation returned because the timeout period expired.
(extra info: {"SystemType":"Container","Name":"f36c467d7b89029ea4cd0f4d7e01c17da7612d71a7057a014c1c2669b5092181","Owner":"docker","IgnoreFlushesDuringBoot":true,"LayerFolderPath":"F:\\ProgramData\\docker\\windowsfilter\\f36c467d7b89029ea4cd0f4d7e01c17da7612d71a7057a014c1c2669b5092181","Layers":[{"ID":"bbd84837-2da6-5545-b782-93cab41ee821","Path":"F:\\ProgramData\\docker\\windowsfilter\\e481b6d4dff995f75ebcb88163eb5ee5dd92364481076d5374a51fd0c6cbed28"},{"ID":"ddc7da26-dd55-5244-99d9-8a3b385583b7","Path":"F:\\ProgramData\\docker\\windowsfilter\\3fa23006559fb26dfd06ffecade4db8b44fcc6e181693313abf44b969c14299b"},{"ID":"f54b9849-5fa9-51aa-a3c3-6991a747de8a","Path":"F:\\ProgramData\\docker\\windowsfilter\\a8c8cf8744318a2b57f860a203153079c42c474e9ae95f0a180e15999e98596a"},{"ID":"fe11ffa4-cd7d-50bd-a911-e1accf92aff8","Path":"F:\\ProgramData\\docker\\windowsfilter\\191a2f97138bd4f51f1802f79e2115c56e6fd535bbae831753ce8e7d39bbca53"},{"ID":"40f5acd7-e306-5e1c-9ebd-f5202c2425ed","Path":"F:\\ProgramData\\docker\\windowsfilter\\10eab03bc33087675ac42b8088babf14b6aa27e440176173e7af8928880e064a"},{"ID":"5270f549-70bd-5a58-97c7-a9b84fbcf310","Path":"F:\\ProgramData\\docker\\windowsfilter\\a0ff84b68716099034e60cfceb36487d8b96e72f5719a6b35fe962baedd3a4a7"},{"ID":"5afae811-65e4-5318-bf8d-afce57312ac3","Path":"F:\\ProgramData\\docker\\windowsfilter\\3e59429b401f6f1ad218d6f574a4f04b4a3a1beb8941c2cb763c0352660cf97b"},{"ID":"0eca9393-a20a-5847-a91c-8a2ad3b92e01","Path":"F:\\ProgramData\\docker\\windowsfilter\\e9dfb166a50adb48b77214c93080d6eda8d1299e076d5db51fd3c1311cccf124"},{"ID":"b0b9c2e9-c132-552a-b58b-aa7d748704f0","Path":"F:\\ProgramData\\docker\\windowsfilter\\6b56e41dcb6d7eb812698adad047ed8c4405b8fba68fda0711038ee62a508562"},{"ID":"83697db6-5b2b-50af-b714-87b3f22bf8a5","Path":"F:\\ProgramData\\docker\\windowsfilter\\1936459bde76a3a1d4e37ea03acb1bf2df3a9928ba6e5dd656df1b827f546064"},{"ID":"ab06f61c-7598-5542-b2fa-4887de3678c9","Path":"F:\\ProgramData\\docker\\windowsfilter\\64e0e6c96ff762a63f25d305c4345694092b82a43bec8fa4f0115b1ae538628a"},{"ID":"67c17c32-9d56-5a9a-8fef-31a047b4e6cf","Path":"F:\\ProgramData\\docker\\windowsfilter\\0189ced5af8b6705e0a26b64a8991afe19633f978ac06e02f7cf1f4ef8c95542"},{"ID":"2ff03125-c5ca-57f3-92ff-f75ecbaaad09","Path":"F:\\ProgramData\\docker\\windowsfilter\\7d6d6d8aceee520d034962eafb9cd19452a826d4240aebccbe19cfba5caa6ab8"},{"ID":"7468e19e-f6c3-5fa0-997d-5cba6de0992b","Path":"F:\\ProgramData\\docker\\windowsfilter\\57b3b651c39a38abb1318e62ef470bf115f2ecb1be456b2a23b901faea762a75"},{"ID":"ae3c3638-c53a-5bc4-855d-761ec8343018","Path":"F:\\ProgramData\\docker\\windowsfilter\\56b407d099a5e9e40d887305d2f16a3417c0cd5808fb3bdf4c679574c90562bb"},{"ID":"f4498c75-30b8-594c-b425-1405ff655660","Path":"F:\\ProgramData\\docker\\windowsfilter\\750c29bcc7b5c23ee4e21f9f21279a5525dd1eca37e4158991e7f94b96b89d25"},{"ID":"f448ef62-118d-5b96-a6f9-6c358d30bcbc","Path":"F:\\ProgramData\\docker\\windowsfilter\\9b2928994d6544082d3403de2c1937d306a92f81986373e5ef7baf9f7fafcd2a"},{"ID":"f849e734-91a5-5341-9543-2b0058c3a716","Path":"F:\\ProgramData\\docker\\windowsfilter\\c8fdefda0c744083083c649995d4619deb16573d5718b650c02eb3a50c5708cc"},{"ID":"aae7200d-1707-554b-8894-ab5f7e0903d1","Path":"F:\\ProgramData\\docker\\windowsfilter\\e60657561d9f11bf0115dd576a533ac956f6426c63ceb25d0da8e8dba3132c37"},{"ID":"e91e9151-6f22-5d3f-b528-0cef473ad046","Path":"F:\\ProgramData\\docker\\windowsfilter\\e0d6d3d1cf9444eb60d5f5986dd28b5574529173b60cfb3766d744bfafae3298"},{"ID":"4884642f-bb55-5094-9439-c1b0e7eaede5","Path":"F:\\ProgramData\\docker\\windowsfilter\\279a70b452302fbf04076658018d5e1b5247a225c779dc6b7f8eb3ce26c2969e"},{"ID":"5dade298-2712-57b4-aa04-1771bc8d0ebc","Path":"F:\\ProgramData\\docker\\windowsfilter\\5ed4e6d4a878e27ba8bfe3ae4330b87fe94c4aa0a7015c97c098917894445f3b"},{"ID":"178365dd-03eb-5278-9bae-6baa142872d0","Path":"F:\\ProgramData\\docker\\windowsfilter\\31b034d951c79361cdf430908533cf81cd235a458d1c3ead97556f2150c21295"},{"ID":"28bd5eea-5e9e-5a97-a7ad-4b1f9187b291","Path":"F:\\ProgramData\\docker\\windowsfilter\\9c0a24ee18ea192ef5172c49d618b80b56267b18e2a8f20f6901dc9996f0eef5"},{"ID":"d4ce109f-58fe-5680-bfe0-4d10d5861df6","Path":"F:\\ProgramData\\docker\\windowsfilter\\d2a98cc44d41480d4fbcf7c82bb0edb2838762c9f6e49e31665320687f60990e"},{"ID":"abf975b0-3f5a-5d50-8ab4-9db0b8b803d8","Path":"F:\\ProgramData\\docker\\windowsfilter\\30953fe36f8fd6a6771f5df70f95d7675dee316312ac7eed87d540ca2246f47d"},{"ID":"355b8604-148c-5dfe-a83a-c0af8d18d693","Path":"F:\\ProgramData\\docker\\windowsfilter\\e248200027f6bf569e438058c1a7d2115092feb15cdbe5706b70a0cecc61b508"},{"ID":"6d922021-4ba5-5b39-9833-32b24209a8ef","Path":"F:\\ProgramData\\docker\\windowsfilter\\cef01bf0c9e4b818562a172c06add253603908c34e411d0495171a589ab65511"},{"ID":"17775fae-c97d-525a-a694-eec51b7648f3","Path":"F:\\ProgramData\\docker\\windowsfilter\\f986ebd6038b8e3ceb425f0c4f74b3264a946cc85b7e88adf5e932fe916c4acc"}],"MemoryMaximumInMB":8192,"HostName":"f36c467d7b89","HvPartition":true,"EndpointList":["5B590D84-B80E-439F-ACFF-D3D78F95460C"],"HvRuntime":{"ImagePath":"F:\\ProgramData\\docker\\windowsfilter\\cef01bf0c9e4b818562a172c06add253603908c34e411d0495171a589ab65511\\UtilityVM"},"AllowUnqualifiedDNSQuery":true})
Error: failed to start containers: f36c467d7b89029ea4cd0f4d7e01c17da7612d71a7057a014c1c2669b5092181
*** Container Started: f36c467d7b89029ea4cd0f4d7e01c17da7612d71a7057a014c1c2669b5092181
*** Container Labels:
*** Docker Start OK.
*** Cleanup VSTS Environment: True
Async Command Start: Add Build Tag
Build '71098' has following tags now: AL.Analyzer.PerTenantExtensionCop, AL.Analyzer.UICop, AL.Analyzer.CodeCop, myimage-sandbox-22.0.54157.62224-gb-10.0.17763.3046-ltsc2019
Async Command End: Add Build Tag
Async Command Start: Add Build Tag
Build '71098' has following tags now: AL.Analyzer.PerTenantExtensionCop, AL.Analyzer.UICop, AL.Analyzer.CodeCop, myimage-sandbox-22.0.54157.62224-gb-10.0.17763.3046-ltsc2019, BC.Platform.22.0.62215.0, BC.Version.22.0.54157.62224
Async Command End: Add Build Tag
Async Command Start: Add Build Tag
Build '71098' has following tags now: AL.Analyzer.PerTenantExtensionCop, AL.Analyzer.UICop, AL.Analyzer.CodeCop, myimage-sandbox-22.0.54157.62224-gb-10.0.17763.3046-ltsc2019, BC.Version.22.0.54157.62224
Async Command End: Add Build Tag
Finishing: ALOpsDockerStart
Hi,
can you please mail us a full log to admin@hodor.be so we can investigate further?
thanks,
/waldo
The build pipeline is stopped due to hitting the maximum time. The AlOpsDockerStart task has actually failed but the task reports Docker Start OK. The AlOPsDockerWait is waiting for the 'Ready For Connections' in the log which will never appear.
the used yaml
the output
Expected behavior When the Docker Start task reports an error it should fail the pipeline.
Screenshots
Additional context Checking the agent I can see the docker container is in a created state. not running. I tried adding a new task to check the container is reporting a 'running' status using the global variable ALOPS_DOCKER_CONTAINER_ID. This is not populated after the DockerStart task, could it be? The ContainerId is known at this point.