Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

Feed GUID not recognized for project-scoped feeds #40

Open
sten-rosendahl opened this issue Apr 23, 2020 · 4 comments
Open

Feed GUID not recognized for project-scoped feeds #40

sten-rosendahl opened this issue Apr 23, 2020 · 4 comments

Comments

@sten-rosendahl
Copy link

sten-rosendahl commented Apr 23, 2020

We got exit code 19 error when the universal artifact download call is done in the RestoreAndSaveCache task. This happens in a hosted Ubuntu agent with a project-scoped feed with default permissions. It's exactly the same error (feed not found) which we got previously with the beta Cache@2 task until we used the 'project-name/feed-name' syntax for the feed but that trick does not work in this extension. The feed guid was retrieved by using the task wizard and its generated YAML code in the pipeline file.

I would also argue that an error like this should really fail the task without failing the pipeline so that this kind of problem can be detected easier. A plain cache miss would of course not fail the task.

Slightly blurred log snippets:
...
/opt/hostedtoolcache/ArtifactTool/0.2.128/x64/artifacttool universal download --feed *** --service https://dev.azure.com/***/ --package-name pipelinesdemoci --package-version 1.0.0-linux-0ded3c5f6f3d1e3ad4d55df155f8233c909403ac42cd19f4c173c3dfe230ed42 --path /home/vsts/work/1/s/tmp_cache --patvar UNIVERSAL_DOWNLOAD_PAT --verbosity Trace
...
{"@t":"2020-04-22T15:23:45.4281724Z","@m":"The feed with ID '***' doesn't exist.","@i":"09f7690a","@l":"Error","SourceContext":"ArtifactTool.Program","UtcTimestamp":"2020-04-22 15:23:45.428Z"}
##[warning]Error: An unexpected error occurred while trying to download the package. Exit code(19) and error({"@t":"2020-04-22T15:23:44.6194844Z","@m":"ArtifactHttpClientFactory.CreateVssHttpClient: DedupStoreHttpClient with BaseUri: https://vsblobprodsu6weu.vsblob.visualstudio.com/***/, MaxRetries:5, SendTimeout:00:15:00","@i":"372f5d96","@l":"Verbose","SourceContext":"ArtifactTool.Commands.UPackDownloadCommand","UtcTimestamp":"2020-04-22 15:23:44.619Z"}
...

@ethanis
Copy link
Member

ethanis commented Apr 23, 2020

@sten-rosendahl this repository doesn't contain the Cache@2 tasks, but instead the tasks are: 1ESLighthouseEng.PipelineArtifactCaching.RestoreAndSaveCacheV1.RestoreAndSaveCache@1.

If you're trying to use the cache@2 tasks, you should head to the official pipeline caching documentation.

It is important to note, that this repository's tasks don't support project-scoped feeds, only organization-scoped feeds.

Sorry for the confusion!

@sten-rosendahl
Copy link
Author

sten-rosendahl commented Apr 24, 2020

Thanks for the clarification about the kind of feeds needed for these tasks. As Azure DevOps recommends new feeds to be project-scoped only (and the web UI does not support the creation of organization-wide feeds any more), are you planning to support the new feed type?

@ethanis
Copy link
Member

ethanis commented Apr 27, 2020

I'd love to support project-scoped feeds. However I honestly don't know what the effort would be to add it and my team has low bandwidth currently. That said, if you were opening to investigating, I would absolutely take contributions.

Out of curiosity, do the official pipeline caching tasks not work for some reason? If possible, I'd recommend using the cache@2 tasks as they have dedicated teams to maintain them.

@boylec
Copy link

boylec commented Oct 16, 2021

The Cache@2 task doesn't allow caches to be shared across pipelines :|

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants