Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

when an input artifact does not exist, the error message is cryptic #6070

Closed
christopheblin opened this issue Jun 2, 2021 · 1 comment · Fixed by #6086
Closed

when an input artifact does not exist, the error message is cryptic #6070

christopheblin opened this issue Jun 2, 2021 · 1 comment · Fixed by #6086
Assignees
Labels
Milestone

Comments

@christopheblin
Copy link
Contributor

Summary

create a template that is using an S3 input artifact (cf https://github.com/argoproj/argo-workflows/blob/master/examples/input-artifact-s3.yaml)

if you specify a wrong artifact, the error is "The specified key does not exist."

I suspect this error directly comes from the S3 library (maybe directly from S3 server, I do not know exactly)

This is not very user friendly or helpful

Moreover, the controller logs are also not very useful about this error :

time="2021-06-02T08:54:15.181Z" level=info msg="Processing workflow" namespace=staging-argo workflow=dataset-v2-7w5lf
time="2021-06-02T08:54:15.182Z" level=info msg="Pod failed: Error (exit code 1): The specified key does not exist." displayName=config namespace=staging-argo pod=dataset-v2-7w5lf-3546387270 templateName=dataset-v2-config workflow=dataset-v2-7w5lf
time="2021-06-02T08:54:15.182Z" level=info msg="Updating node dataset-v2-7w5lf-3546387270 status Pending -> Error" namespace=staging-argo workflow=dataset-v2-7w5lf
time="2021-06-02T08:54:15.182Z" level=info msg="Updating node dataset-v2-7w5lf-3546387270 message: Error (exit code 1): The specified key does not exist." namespace=staging-argo workflow=dataset-v2-7w5lf

in my case, the name of the artifact is generated from the workflow inputs (it is not a constant) so it took a bit of time to analyze why this error was popping up

An error like "Cannot retrieve artifact <artifact_name> : the specified key does not exist" would have tremendeously reduced the debug time


Message from the maintainers:

Impacted by this bug? Give it a 👍. We prioritise the issues with the most 👍.

@shuker85
Copy link
Contributor

shuker85 commented Jun 4, 2021

👍

@alexec alexec added this to the v3.0 milestone Jun 4, 2021
@alexec alexec self-assigned this Jun 4, 2021
alexec added a commit to alexec/argo-workflows that referenced this issue Jun 4, 2021
Signed-off-by: Alex Collins <alex_collins@intuit.com>
alexec added a commit that referenced this issue Jun 4, 2021
Signed-off-by: Alex Collins <alex_collins@intuit.com>
alexec added a commit that referenced this issue Jun 8, 2021
Signed-off-by: Alex Collins <alex_collins@intuit.com>
@alexec alexec mentioned this issue Jun 10, 2021
20 tasks
@sarabala1979 sarabala1979 mentioned this issue Jun 10, 2021
88 tasks
@alexec alexec mentioned this issue Jun 21, 2021
16 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants