Skip to content

az acr build command timed out after 10 minutes after waiting for acr agent #31841

@almmechanics

Description

@almmechanics

Describe the bug

Running an azure devops task to use az acr build we are experiencing agents not being available to execute the tasks.

WARNING: Packing source code into tar to upload...
WARNING: Sending context (8.136 MiB) to registry: XXXXXX...
WARNING: Queued a build with ID: cgk73
WARNING: Waiting for an agent...

As these are small containers we regularaly see this takes less than a minute to complete - so we have a 10 minute timeout on the azure devops task.

We are now hitting the 10 minute timeouts with no feedback apart from wating on agent

Related command

The following has been executing fine for the last year in this repo

 az acr build -t ${{ parameters.DockerId }}:latest -t ${{ parameters.DockerId }}:$(build.buildnumber) -r ${{ parameters.AcrName }} .

Errors

WARNING: Waiting for an agent...

Issue script & Debug output

WARNING: Waiting for an agent...

And no other feedback until the azure devops task timeout after 10 minutes

Expected behavior

build the image in the target acr with the required tags

Environment Summary

/usr/bin/az --version
azure-cli 2.74.0 *

core 2.74.0 *
telemetry 1.1.0

Extensions:
azure-devops 1.0.1

Dependencies:
msal 1.32.3
azure-mgmt-resource 23.3.0

Python location '/opt/az/bin/python3'
Config directory '/home/vsts/.azure'
Extensions directory '/opt/az/azcliextensions'

Additional context

No response

Metadata

Metadata

Assignees

Labels

Auto-ResolveAuto resolve by botContainer Registryaz acrService AttentionThis issue is responsible by Azure service team.bugThis issue requires a change to an existing behavior in the product in order to be resolved.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions