roxctl image scan is failing with an error "failed to get the manifest digest: xxx http: non-successful response (status=401 body=)"

Solution Verified - Updated -

Issue

  • While scanning the image using roxctl image scan following error is observed:

    ERROR:   Scanning image failed: retrieving image scan result: could not scan image: "IMAGE_NAME:tag": rpc error: code = Internal desc = image enrichment error: error getting metadata for image: "IMAGE_NAME:tag" error: getting metadata from registry: "REGISTRY_NAME": failed to get the manifest digest: Head "xxxxxxx/manifests/xxx": http: non-successful response (status=401 body=""). Retrying after 3 seconds...
    

Environment

  • Red Hat Advanced Cluster Security (RHACS) / StackRox
    • 4.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content