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

Misleading errors when ca_certs config is incorrect for an image_resource #283

Open
tprobinson opened this issue Oct 21, 2019 · 0 comments

Comments

@tprobinson
Copy link

(moved from concourse/concourse#4576)

Bug Report

When I had an incorrect configuration for the ca_certs key in my image_resource, Concourse returned the following:

resource script '/opt/resource/check []' failed: exit status 1

stderr:
failed to fetch digest for image '<my-registry>/alpine:latest': 503 Service Unavailable
does the image exist?

This is a misleading error, which I unfortunately lost a fair bit of time to trying to figure out.

Steps to Reproduce

  • Create a pipeline using an image_resource with a configuration like the following:
image_resource:
  type: docker-image
  source:
    repository: <something>
    ca_certs:
    - cert: <a certificate that does not match the registry>
      domain: <registry domain>
  • Set the pipeline
  • Try to run the pipeline

Expected Results

I expect to receive an error that says something about failing SSL verification.

Actual Results

resource script '/opt/resource/check []' failed: exit status 1

stderr:
failed to fetch digest for image '<my-registry>/alpine:latest': 503 Service Unavailable
does the image exist?

Version Info

  • Concourse version: 5.6.0
  • Deployment type (BOSH/Docker/binary): Docker
  • Infrastructure/IaaS: Infrastructure
  • Did this used to work? Unknown
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants