Describe the bug
az artifacts universal download --organization {myorg} --feed {myfeed} --name {artifactname} --version *.*.* --path .
fails with error : No release could be found based on the provided information.
This stopped working suddenly from one day to the other. We thought it was a transient error so we waited but after a couple of days we are still not able to download artifacts.
To Reproduce
azure-cli (2.24.2) (latest)
azure-devops (0.18.0)
Steps to reproduce the behavior:
Use the following action in a github workflow (replace the values between { } witrh actual values.
- uses: azure/CLI@v1
env:
AZURE_DEVOPS_EXT_PAT: ${{ secrets.AZURE_DEVOPS_PAT_TOKEN }}
with:
inlineScript: |
az extension add --name azure-devops
az artifacts universal download --organization {myorg} --feed {myfeed} --name {artifactname} --version *.*.* --path .
Expected behavior
The artifacts to be downloaded.
Debug logs
We run the az with debug mode and we get the following:
2021-06-09T09:36:00.2566683Z DEBUG: azext_devops.devops_sdk.client: Route template: _apis/***area***/***toolName***/***resource***
2021-06-09T09:36:00.2568747Z DEBUG: azext_devops.devops_sdk.client: Api version '5.0-preview'
2021-06-09T09:36:00.2570739Z DEBUG: azext_devops.devops_sdk.client: GET https://vsblob.dev.azure.com/{myorg}/_apis/clienttools/ArtifactTool/release?osName=Linux&arch=x86_64&distroName=alpine&distroVersion=3.13.5
2021-06-09T09:36:00.2572604Z DEBUG: azext_devops.devops_sdk.client: Request content: None
2021-06-09T09:36:00.2573890Z DEBUG: msrest.universal_http: Configuring redirects: allow=True, max=30
2021-06-09T09:36:00.2575468Z DEBUG: msrest.universal_http: Configuring request: timeout=100, verify=True, cert=None
2021-06-09T09:36:00.2577009Z DEBUG: msrest.universal_http: Configuring proxies: ''
2021-06-09T09:36:00.2578244Z DEBUG: msrest.universal_http: Evaluate proxies against ENV settings: True
2021-06-09T09:36:00.5743143Z DEBUG: urllib3.connectionpool: https://vsblob.dev.azure.com:443 "GET /{myorg}/_apis/clienttools/ArtifactTool/release?osName=Linux&arch=x86_64&distroName=alpine&distroVersion=3.13.5 HTTP/1.1" 404 326
2021-06-09T09:36:00.5775785Z DEBUG: azext_devops.devops_sdk.client: Response content: b'***"$id":"1","innerException":null,"message":"No release could be found based on the provided information.","typeName":"Microsoft.VisualStudio.Services.BlobStore.WebApi.Exceptions.ClientToolNotFoundException, Microsoft.VisualStudio.Services.BlobStore.WebApi","typeKey":"ClientToolNotFoundException","errorCode":0,"eventId":3000***'
2021-06-09T09:36:00.5805603Z DEBUG: msrest.exceptions: No release could be found based on the provided information.
2021-06-09T09:36:00.5807831Z DEBUG: cli.azext_devops.dev.common.artifacttool_updater: No release could be found based on the provided information.
2021-06-09T09:36:00.5809534Z Traceback (most recent call last):
2021-06-09T09:36:00.5848325Z File "/opt/az/azcliextensions/azure-devops/azext_devops/dev/common/artifacttool_updater.py", line 59, in _get_artifacttool
2021-06-09T09:36:00.5849940Z release = _get_current_release(organization, override_version)
2021-06-09T09:36:00.5851636Z File "/opt/az/azcliextensions/azure-devops/azext_devops/dev/common/artifacttool_updater.py", line 161, in _get_current_release
2021-06-09T09:36:00.5852914Z release = client.get_clienttool_release(
2021-06-09T09:36:00.5854814Z File "/opt/az/azcliextensions/azure-devops/azext_devops/dev/common/client_tool/client_tool_client.py", line 44, in get_clienttool_release
2021-06-09T09:36:00.5856267Z response = self._send(http_method='GET',
2021-06-09T09:36:00.5857598Z File "/opt/az/azcliextensions/azure-devops/azext_devops/devops_sdk/client.py", line 90, in _send
2021-06-09T09:36:00.5859028Z response = self._send_request(request=request, headers=headers, content=content, media_type=media_type)
2021-06-09T09:36:00.5860827Z File "/opt/az/azcliextensions/azure-devops/azext_devops/devops_sdk/client.py", line 54, in _send_request
2021-06-09T09:36:00.5861966Z self._handle_error(request, response)
2021-06-09T09:36:00.5863354Z File "/opt/az/azcliextensions/azure-devops/azext_devops/devops_sdk/client.py", line 233, in _handle_error
2021-06-09T09:36:00.5864666Z raise AzureDevOpsServiceError(wrapped_exception)
2021-06-09T09:36:00.5866397Z azext_devops.devops_sdk.exceptions.AzureDevOpsServiceError: No release could be found based on the provided information.
2021-06-09T09:36:00.5868212Z DEBUG: cli.azext_devops.dev.common.exception_handler: handling generic error
2021-06-09T09:36:00.5869801Z DEBUG: cli.azure.cli.core.util: azure.cli.core.util.handle_exception is called with an exception:
2021-06-09T09:36:00.5871312Z DEBUG: cli.azure.cli.core.util: Traceback (most recent call last):
2021-06-09T09:36:00.5873023Z File "/opt/az/azcliextensions/azure-devops/azext_devops/dev/common/artifacttool_updater.py", line 59, in _get_artifacttool
2021-06-09T09:36:00.5874404Z release = _get_current_release(organization, override_version)
2021-06-09T09:36:00.5876071Z File "/opt/az/azcliextensions/azure-devops/azext_devops/dev/common/artifacttool_updater.py", line 161, in _get_current_release
2021-06-09T09:36:00.5877365Z release = client.get_clienttool_release(
2021-06-09T09:36:00.5878940Z File "/opt/az/azcliextensions/azure-devops/azext_devops/dev/common/client_tool/client_tool_client.py", line 44, in get_clienttool_release
2021-06-09T09:36:00.5880348Z response = self._send(http_method='GET',
2021-06-09T09:36:00.5881673Z File "/opt/az/azcliextensions/azure-devops/azext_devops/devops_sdk/client.py", line 90, in _send
2021-06-09T09:36:00.5883095Z response = self._send_request(request=request, headers=headers, content=content, media_type=media_type)
2021-06-09T09:36:00.5884759Z File "/opt/az/azcliextensions/azure-devops/azext_devops/devops_sdk/client.py", line 54, in _send_request
2021-06-09T09:36:00.5885892Z self._handle_error(request, response)
2021-06-09T09:36:00.5887279Z File "/opt/az/azcliextensions/azure-devops/azext_devops/devops_sdk/client.py", line 233, in _handle_error
2021-06-09T09:36:00.5888599Z raise AzureDevOpsServiceError(wrapped_exception)
2021-06-09T09:36:00.5890330Z azext_devops.devops_sdk.exceptions.AzureDevOpsServiceError: No release could be found based on the provided information.
Additional context
We run our actions on a latest-ubuntu runner in github:
2021-06-09T09:35:03.3953438Z Current runner version: '2.278.0'
2021-06-09T09:35:03.3987837Z ##[group]Operating System
2021-06-09T09:35:03.3989264Z Ubuntu
2021-06-09T09:35:03.3990105Z 20.04.2
2021-06-09T09:35:03.3990908Z LTS
2021-06-09T09:35:03.3991788Z ##[endgroup]
2021-06-09T09:35:03.3992733Z ##[group]Virtual Environment
2021-06-09T09:35:03.3993801Z Environment: ubuntu-20.04
2021-06-09T09:35:03.3994766Z Version: 20210531.0
If I read the log and code correctly it tries to find the version for the image where the az artifact tool will run from ( in order to install it) and ends up resolving :
https://vsblob.dev.azure.com/{myorg}/_apis/clienttools/ArtifactTool/release?osName=Linux&arch=x86_64&distroName=alpine&distroVersion=3.13.5
which in turn returns an error. The distro name does not exist indeed and results in an error in
https://github.com/Azure/azure-devops-cli-extension/blob/effbefe7bc6a41d3f319790f287de49558bd5fa6/azure-devops/azext_devops/dev/common/artifacttool_updater.py#L59
Thanks in advance.
Hi,
I have the same issue. This is very problematic for us unfortunately.
Our CICD pipeline in Azure DevOps stopped working a few days ago. The step that fails is trying to publish a universal package to our dev ops artifacts feed from inside a docker build container.
Additionally i have pulled the mcr.microsoft.com/azure-cli image locally on docker for desktop and i see exactly the same issue if i try inside a running the container to download an existing artifact from our feed after doing an az login and installing the az dev ops extension.
Please could you confirm you see this issue and when a fix may be available.
Regards
Doug
This is the output i see when trying to download a universal package in the container running locally
bash-5.1# az artifacts universal download --organization "xxxxx" --feed "xxxxx" --name "xxxxx" --version "0.1.16076" --path . --debug
cli.knack.cli: Command arguments: ['artifacts', 'universal', 'download', '--organization', 'xxxx', '--feed', 'xxxx', '--name', 'xxxx', '--version', '0.1.16076', '--path', '.', '--debug']
cli.knack.cli: init debug log:
Enable color in terminal.
cli.knack.cli: Event: Cli.PreExecute []
cli.knack.cli: Event: CommandParser.OnGlobalArgumentsCreate [
cli.knack.cli: Event: CommandInvoker.OnPreCommandTableCreate []
cli.azure.cli.core: Modules found from index for 'artifacts': ['azext_devops']
cli.azure.cli.core: Loading command modules:
cli.azure.cli.core: Name Load Time Groups Commands
cli.azure.cli.core: Total (0) 0.000 0 0
cli.azure.cli.core: These extensions are not installed and will be skipped: ['azext_ai_examples', 'azext_next']
cli.azure.cli.core: Loading extensions:
cli.azure.cli.core: Name Load Time Groups Commands Directory
cli.azure.cli.core: azure-devops 0.086 60 191 /root/.azure/cliextensions/azure-devops
cli.azure.cli.core: Total (1) 0.086 60 191
cli.azure.cli.core: Loaded 60 groups, 191 commands.
cli.azure.cli.core: Found a match in the command table.
cli.azure.cli.core: Raw command : artifacts universal download
cli.azure.cli.core: Command table: artifacts universal download
cli.knack.cli: Event: CommandInvoker.OnPreCommandTableTruncate [
cli.azure.cli.core.azlogging: metadata file logging enabled - writing logs to '/root/.azure/commands/2021-06-17.06-09-07.artifacts_universal_download.26.log'.
az_command_data_logger: command args: artifacts universal download --organization {} --feed {} --name {} --version {} --path {} --debug
cli.knack.cli: Event: CommandInvoker.OnPreArgumentLoad [
cli.knack.cli: Event: CommandInvoker.OnPostArgumentLoad []
cli.knack.cli: Event: CommandInvoker.OnPostCommandTableCreate [
cli.knack.cli: Event: CommandInvoker.OnCommandTableLoaded []
cli.knack.cli: Event: CommandInvoker.OnPreParseArgs []
cli.knack.cli: Event: CommandInvoker.OnPostParseArgs [
az_command_data_logger: extension name: azure-devops
az_command_data_logger: extension version: 0.18.0
cli.azext_devops.dev.common.artifacttool_updater: Checking for a new ArtifactTool
cli.azext_devops.dev.common.artifacttool_updater: Checking for ArtifactTool updates
cli.azext_devops.dev.common._credentials: Getting credential: azdevops-cli:https://dev.azure.com/xxx
cli.azext_devops.dev.common._credentials: Getting credential: azdevops-cli: default
cli.azure.cli.core: Current cloud config:
AzureCloud
cli.azext_devops.dev.common.services: trying to get token (temp) for tenant xxxxxx and user Douglas.Waights@xxxxxx
cli.azure.cli.core.util: attempting to read file /root/.azure/accessTokens.json as utf-8-sig
adal-python: 7b09b504-d6a0-4a6c-8e6a-0ec44d620ea4 - Authority:Performing instance discovery: ...
adal-python: 7b09b504-d6a0-4a6c-8e6a-0ec44d620ea4 - Authority:Performing static instance discovery
adal-python: 7b09b504-d6a0-4a6c-8e6a-0ec44d620ea4 - Authority:Authority validated via static instance discovery
adal-python: 7b09b504-d6a0-4a6c-8e6a-0ec44d620ea4 - TokenRequest:Getting token from cache with refresh if necessary.
adal-python: 7b09b504-d6a0-4a6c-8e6a-0ec44d620ea4 - CacheDriver:finding with query keys: {'_clientId': '...', 'userId': '...'}
adal-python: 7b09b504-d6a0-4a6c-8e6a-0ec44d620ea4 - CacheDriver:Looking for potential cache entries: {'_clientId': '...', 'userId': '...'}
adal-python: 7b09b504-d6a0-4a6c-8e6a-0ec44d620ea4 - CacheDriver:Found 5 potential entries.
adal-python: 7b09b504-d6a0-4a6c-8e6a-0ec44d620ea4 - CacheDriver:Resource specific token found.
adal-python: 7b09b504-d6a0-4a6c-8e6a-0ec44d620ea4 - CacheDriver:Returning token from cache lookup, AccessTokenId: xxxxx=', RefreshTokenId: xxxxx='
cli.azext_devops.dev.common.services: instance recieved in validate_token_for_instance https://dev.azure.com/xxxxx/
cli.azext_devops.dev.common.services: instance processed in validate_token_for_instance https://dev.azure.com/xxxxx/
msrest.universal_http.requests: Configuring retry: max_retries=3, backoff_factor=0.8, max_backoff=90
msrest.universal_http.requests: Configuring retry: max_retries=3, backoff_factor=0.8, max_backoff=90
azext_devops.devops_sdk._file_cache: Loading cache file: /root/.azure-devops/python-sdk/cache/resources.json
azext_devops.devops_sdk._file_cache: attempting to read file /root/.azure-devops/python-sdk/cache/resources.json as utf-8-sig
azext_devops.devops_sdk.connection: File cache hit for resources on: https://dev.azure.com/xxxxxx
msrest.universal_http.requests: Configuring retry: max_retries=3, backoff_factor=0.8, max_backoff=90
azext_devops.devops_sdk._file_cache: Loading cache file: /root/.azure-devops/python-sdk/cache/options.json
azext_devops.devops_sdk._file_cache: attempting to read file /root/.azure-devops/python-sdk/cache/options.json as utf-8-sig
azext_devops.devops_sdk.client: File cache hit for options on: https://xxxxx.visualstudio.com
azext_devops.devops_sdk.client: Route template: _apis/{resource}/{*projectId}
azext_devops.devops_sdk.client: Api version '5.0'
azext_devops.devops_sdk.client: GET https://xxxxxx.visualstudio.com/_apis/projects?stateFilter=all&$top=1&$skip=0
azext_devops.devops_sdk.client: Request content: None
msrest.universal_http: Configuring redirects: allow=True, max=30
msrest.universal_http: Configuring request: timeout=100, verify=True, cert=None
msrest.universal_http: Configuring proxies: ''
msrest.universal_http: Evaluate proxies against ENV settings: True
urllib3.connectionpool: Starting new HTTPS connection (1): xxxxx.visualstudio.com:443
urllib3.connectionpool: https://xxxxx.visualstudio.com:443 "GET /_apis/projects?stateFilter=all&$top=1&$skip=0 HTTP/1.1" 200 345
azext_devops.devops_sdk.client: Response content: b'{"count":1,"value":[{"id":"04b395a3-f76a-4700-8292-521eec875b06","name":"Equinor Avocado","url":"https://xxxxx.visualstudio.com/_apis/projects/xxxxxx-f76a-4700-8292-521eec875b06","state":"wellFormed","revision":1397,"visibility":"private","lastUpdateTime":"2021-06-10T13:51:21.323Z"}]}'
msrest.universal_http.requests: Configuring retry: max_retries=3, backoff_factor=0.8, max_backoff=90
cli.azext_devops.dev.common.telemetry: Azure devops telemetry enabled.
cli.azext_devops.dev.common.telemetry: Logging telemetry to azure devops server.
msrest.universal_http.requests: Configuring retry: max_retries=3, backoff_factor=0.8, max_backoff=90
azext_devops.devops_sdk.client: File cache hit for options on: https://dev.azure.com/xxxx
msrest.universal_http.requests: Configuring retry: max_retries=3, backoff_factor=0.8, max_backoff=90
azext_devops.devops_sdk.connection: File cache hit for resources on: https://dev.azure.com/xxx
msrest.universal_http.requests: Configuring retry: max_retries=3, backoff_factor=0.8, max_backoff=90
cli.azext_devops.dev.common.artifacttool_updater: Looking up current version of ArtifactTool...
azext_devops.devops_sdk.client: File cache hit for options on: https://xxxxx.vsblob.visualstudio.com
azext_devops.devops_sdk.client: Route template: _apis/{area}/{resource}
azext_devops.devops_sdk.client: Api version '5.0-preview.1'
azext_devops.devops_sdk.client: POST https://dev.azure.com/xxxxxx/_apis/CustomerIntelligence/Events
azext_devops.devops_sdk.client: Request content: [{'area': 'AzureDevopsCli', 'feature': 'artifacts', 'properties': {'Command': 'universal download', 'Args': 'feed name version path scope organization', 'ShellType': None, 'IsInteractive': 'True', 'OutputType': 'json', 'OrgPresentInCommand': True, 'ProjectPresentInCommand': False, 'RepoPresentInCommand': False}}]
msrest.universal_http: Configuring redirects: allow=True, max=30
azext_devops.devops_sdk.client: Route template: _apis/{area}/{toolName}/{resource}
msrest.universal_http: Configuring request: timeout=100, verify=True, cert=None
azext_devops.devops_sdk.client: Api version '5.0-preview'
msrest.universal_http: Configuring proxies: ''
azext_devops.devops_sdk.client: GET https://xxxxxx.vsblob.visualstudio.com/_apis/clienttools/ArtifactTool/release?osName=Linux&arch=x86_64&distroName=alpine&distroVersion=3.13.5
msrest.universal_http: Evaluate proxies against ENV settings: True
azext_devops.devops_sdk.client: Request content: None
msrest.universal_http: Configuring redirects: allow=True, max=30
urllib3.connectionpool: Starting new HTTPS connection (1): dev.azure.com:443
msrest.universal_http: Configuring request: timeout=100, verify=True, cert=None
msrest.universal_http: Configuring proxies: ''
msrest.universal_http: Evaluate proxies against ENV settings: True
urllib3.connectionpool: Starting new HTTPS connection (1): xxxxx.vsblob.visualstudio.com:443
urllib3.connectionpool: https://dev.azure.com:443 "POST /xxxxx/_apis/CustomerIntelligence/Events HTTP/1.1" 204 0
urllib3.connectionpool: https://xxxxxx.vsblob.visualstudio.com:443 "GET /_apis/clienttools/ArtifactTool/release?osName=Linux&arch=x86_64&distroName=alpine&distroVersion=3.13.5 HTTP/1.1" 404 326
azext_devops.devops_sdk.client: Response content: b'{"$id":"1","innerException":null,"message":"No release could be found based on the provided information.","typeName":"Microsoft.VisualStudio.Services.BlobStore.WebApi.Exceptions.ClientToolNotFoundException, Microsoft.VisualStudio.Services.BlobStore.WebApi","typeKey":"ClientToolNotFoundException","errorCode":0,"eventId":3000}'
msrest.exceptions: No release could be found based on the provided information.
cli.azext_devops.dev.common.artifacttool_updater: No release could be found based on the provided information.
Traceback (most recent call last):
File "/root/.azure/cliextensions/azure-devops/azext_devops/dev/common/artifacttool_updater.py", line 59, in _get_artifacttool
release = _get_current_release(organization, override_version)
File "/root/.azure/cliextensions/azure-devops/azext_devops/dev/common/artifacttool_updater.py", line 161, in _get_current_release
release = client.get_clienttool_release(
File "/root/.azure/cliextensions/azure-devops/azext_devops/dev/common/client_tool/client_tool_client.py", line 44, in get_clienttool_release
response = self._send(http_method='GET',
File "/root/.azure/cliextensions/azure-devops/azext_devops/devops_sdk/client.py", line 90, in _send
response = self._send_request(request=request, headers=headers, content=content, media_type=media_type)
File "/root/.azure/cliextensions/azure-devops/azext_devops/devops_sdk/client.py", line 54, in _send_request
self._handle_error(request, response)
File "/root/.azure/cliextensions/azure-devops/azext_devops/devops_sdk/client.py", line 233, in _handle_error
raise AzureDevOpsServiceError(wrapped_exception)
azext_devops.devops_sdk.exceptions.AzureDevOpsServiceError: No release could be found based on the provided information.
cli.azext_devops.dev.common.exception_handler: handling generic error
cli.azure.cli.core.util: azure.cli.core.util.handle_exception is called with an exception:
cli.azure.cli.core.util: Traceback (most recent call last):
File "/root/.azure/cliextensions/azure-devops/azext_devops/dev/common/artifacttool_updater.py", line 59, in _get_artifacttool
release = _get_current_release(organization, override_version)
File "/root/.azure/cliextensions/azure-devops/azext_devops/dev/common/artifacttool_updater.py", line 161, in _get_current_release
release = client.get_clienttool_release(
File "/root/.azure/cliextensions/azure-devops/azext_devops/dev/common/client_tool/client_tool_client.py", line 44, in get_clienttool_release
response = self._send(http_method='GET',
File "/root/.azure/cliextensions/azure-devops/azext_devops/devops_sdk/client.py", line 90, in _send
response = self._send_request(request=request, headers=headers, content=content, media_type=media_type)
File "/root/.azure/cliextensions/azure-devops/azext_devops/devops_sdk/client.py", line 54, in _send_request
self._handle_error(request, response)
File "/root/.azure/cliextensions/azure-devops/azext_devops/devops_sdk/client.py", line 233, in _handle_error
azext_devops.devops_sdk.exceptions.AzureDevOpsServiceError: No release could be found based on the provided information.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/knack/cli.py", line 231, in invoke
cmd_result = self.invocation.execute(args)
File "/usr/local/lib/python3.8/site-packages/azure/cli/core/commands/init.py", line 657, in execute
raise ex
File "/usr/local/lib/python3.8/site-packages/azure/cli/core/commands/init.py", line 720, in _run_jobs_serially
results.append(self._run_job(expanded_arg, cmd_copy))
File "/usr/local/lib/python3.8/site-packages/azure/cli/core/commands/init.py", line 712, in _run_job
return cmd_copy.exception_handler(ex)
File "/root/.azure/cliextensions/azure-devops/azext_devops/dev/common/exception_handler.py", line 31, in azure_devops_exception_handler
reraise(sys.exc_info())
File "/usr/local/lib/python3.8/site-packages/six.py", line 703, in reraise
raise value
File "/usr/local/lib/python3.8/site-packages/azure/cli/core/commands/init.py", line 691, in _run_job
result = cmd_copy(params)
File "/usr/local/lib/python3.8/site-packages/azure/cli/core/commands/init.py", line 328, in call
return self.handler(args, kwargs)
File "/usr/local/lib/python3.8/site-packages/azure/cli/core/commands/command_operation.py", line 121, in handler
return op(command_args)
File "/root/.azure/cliextensions/azure-devops/azext_devops/dev/artifacts/universal.py", line 98, in download_package
return artifact_tool.download_universal(organization, project, feed, name, version, path, file_filter)
File "/root/.azure/cliextensions/azure-devops/azext_devops/dev/common/artifacttool.py", line 43, in download_universal
return self.run_artifacttool(organization, args, "Downloading")
File "/root/.azure/cliextensions/azure-devops/azext_devops/dev/common/artifacttool.py", line 58, in run_artifacttool
artifacttool_dir = self._artifacttool_updater.get_latest_artifacttool(organization)
File "/root/.azure/cliextensions/azure-devops/azext_devops/dev/common/artifacttool_updater.py", line 43, in get_latest_artifacttool
artifacttool_binary_path = self._get_artifacttool(organization)
File "/root/.azure/cliextensions/azure-devops/azext_devops/dev/common/artifacttool_updater.py", line 62, in _get_artifacttool
raise CLIError('Failed to update Universal Packages tooling.\n {}'.format(ex))
knack.util.CLIError: Failed to update Universal Packages tooling.
No release could be found based on the provided information.
cli.azure.cli.core.azclierror: Failed to update Universal Packages tooling.
No release could be found based on the provided information.
az_command_data_logger: Failed to update Universal Packages tooling.
No release could be found based on the provided information.
cli.knack.cli: Event: Cli.PostExecute [
az_command_data_logger: exit code: 1
cli.main: Command ran in 0.909 seconds (init: 0.080, invoke: 0.829)
telemetry.save: Save telemetry record of length 3227 in cache
telemetry.check: Negative: The /root/.azure/telemetry.txt was modified at 2021-06-17 06:07:56.648871, which in less than 600.000000 s
Hi is there any update on this?
It is unfortunately still not working.
I checked and distro is indeed getting the correct distribution name from the /etc/os-release file :
Starting script execution via docker image mcr.microsoft.com/azure-cli:2.19.1
NAME="Alpine Linux"
ID=alpine
VERSION_ID=3.13.5
PRETTY_NAME="Alpine Linux v3.13"
HOME_URL="https://alpinelinux.org/"
BUG_REPORT_URL="https://bugs.alpinelinux.org/"
So I am quiet still at a loss why this stopped working suddenly and fails retrieving the artifacttool for linux with https://vsblob.dev.azure.com/{myorg}/_apis/clienttools/ArtifactTool/release?osName=Linux&arch=x86_64&distroName=alpine&distroVersion=3.13.5
The funny part is that removing the distroName from the url does yield a correct download location of the artifact tool.
Any tips or workaround are much welcome.
@fidou I managed to work around this by creating my own container image and installing the azure cli bits manually
I have a docker file based off ubuntu latest that looks something like this
FROM ubuntu as publisher
ARG GIT_SHA
ARG BUILD_ID
ARG AZURE_DEVOPS_EXT_PAT
ENV git_sha=$GIT_SHA
ENV build_id=$BUILD_ID
ENV AZURE_DEVOPS_EXT_PAT=$AZURE_DEVOPS_EXT_PAT
WORKDIR /app
RUN apt-get update
RUN apt-get install -y ca-certificates curl apt-transport-https lsb-release gnupg
RUN curl -sL https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor | tee /etc/apt/trusted.gpg.d/microsoft.gpg > /dev/null
RUN apt-get update
RUN apt-get install -y azure-cli
RUN az extension add --name azure-devops
RUN export DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=1
RUN az artifacts universal publish blah blah
This works for me!
I put together the above steps from the ubuntu linux azure cli install page
https://docs.microsoft.com/en-us/cli/azure/install-azure-cli-linux?pivots=apt
Hope this helps!
@douglaswaights thanks for the tip.
I took your suggestion and made it into a generic action:
https://github.com/marketplace/actions/azcli-artifacttool-workaround
you can use this for now to upload/download artifacts. I don't know when this issue will/can be solved.
In order to consolidate to fewer feedback channels, we've moved suggestions and issue reporting to Developer Community.