You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Error not descriptive enough for when a task cannot be found at the path you've provided #1775
You will get an error like "unknown artifact source: ci" if you specify a relative path to a task yaml file but forget a path component. Can we maybe get a more descriptive error like "could not find task at path: "?
The following can also be handy:
Concourse version: 3.5
Deployment type (BOSH/Docker/binary): N/A
Infrastructure/IaaS: VMs
Browser (if applicable): Chrome
Did this used to work? N/A
Reacted by Aid19801, Daniel Lavoie, Marco Molteni and Linus Guan
Thanks for flagging, Tim. I'm very new to CI/setup and this error left me clueless. It was only because you mentioned task path's that i decided to try messing with the ./ i had at the beginning of my path. Now it works.
For anyone that searches for this error in the future, unknown artifact source refers to the resource containing the task config file. The task config file path should be prefixed with the resource name as the source path so that Concourse can locate the task config file. As of now, we have edited the error message to say unknown artifact source: <source> in task config file path <given_path> to make the error clearer to the user.
This error only occurs if the source path is invalid. If the source path is not present, or if the task config path is incorrect, other errors are surfaced (see below for more info)
I also want to share an experience that might help others in the future who encounter this error.
I've been scratching my head for two hours trying to understand why I had an unknown artifact source. Turns out my task was declared in an aggregate by mistake and collocated with the resource that it needed. Joys of yml indentation :)
Activity
Aid19801 commentedon Dec 4, 2017
Thanks for flagging, Tim. I'm very new to CI/setup and this error left me clueless. It was only because you mentioned task path's that i decided to try messing with the
./i had at the beginning of my path. Now it works.connormckelvey commentedon Jan 20, 2018
Im still lost at what to do here. What do you mean a path component @timrchavez?
bump etree tsa handlers mux clockwork goxmldsig genproto grpc
atc/exec: change message for UnknownArtifactSourceError
ddadlani commentedon Sep 26, 2018
For anyone that searches for this error in the future,
unknown artifact sourcerefers to the resource containing the task config file. The task config file path should be prefixed with the resource name as the source path so that Concourse can locate the task config file. As of now, we have edited the error message to sayunknown artifact source: <source> in task config file path <given_path>to make the error clearer to the user.This error only occurs if the source path is invalid. If the source path is not present, or if the task config path is incorrect, other errors are surfaced (see below for more info)
concourse/atc/exec/task_config_source.go
Lines 94 to 114 in bfa45ef
daniellavoie commentedon Mar 29, 2019
I also want to share an experience that might help others in the future who encounter this error.
I've been scratching my head for two hours trying to understand why I had an
unknown artifact source. Turns out my task was declared in anaggregateby mistake and collocated with the resource that it needed. Joys of yml indentation :)