Why am I receiving an access denied when pushing to or pulling from Automation Hub?

Solution Verified - Updated -

Issue

  • Receiving an error message similar to the following whenever pushing to or pulling from Automation Hub.

    DEBU[0000] Ping https://automationhub.example.org/v2/ status 401
    DEBU[0000] GET https://automationhub.example.org/token?account=admin&scope=repository%3Aee-supported-rhel8%3Apull%2Cpush&service=automationhub.example.org
    DEBU[0000] GET https://automationhub.example.org/token?account=admin&scope=repository%3Aee-supported-rhel8%3Apull%2Cpush&service=automationhub.example.org
    DEBU[0000] GET https://automationhub.example.org/token?account=admin&scope=repository%3Aee-supported-rhel8%3Apull%2Cpush&service=automationhub.example.org
    DEBU[0000] GET https://automationhub.example.org/token?account=admin&scope=repository%3Aee-supported-rhel8%3Apull%2Cpush&service=automationhub.example.org
    DEBU[0000] HEAD https://automationhub.example.org/v2/ee-supported-rhel8/blobs/sha256:d7857416962e58fcc94f31256fbab5ae9f73a69c71f96947e4ad94fade71a779
    DEBU[0000] HEAD https://automationhub.example.org/v2/ee-supported-rhel8/blobs/sha256:66bc49306438be9234be0740bb2a0dd879bbbf4cf58e2fb571ebfe9fce526019
    DEBU[0000] HEAD https://automationhub.example.org/v2/ee-supported-rhel8/blobs/sha256:4d972eefc8362c7dc63b4fbd7dc0a24c4e714a760cc4521a7a0d38b4374b9a42
    DEBU[0000] HEAD https://automationhub.example.org/v2/ee-supported-rhel8/blobs/sha256:0105008ba8b29d2bc7ed3b24265d4d9f0fbfaf3f20075a02417078beaec86dde
    DEBU[0001] ... not authorized
    DEBU[0001] ... not authorized
    DEBU[0001] ... not authorized
    DEBU[0001] ... not authorized
    DEBU[0001] Looking up image "automationhub.example.org/ee-supported-rhel8" in local containers storage
    DEBU[0001] Normalized platform linux/amd64 to {amd64 linux  [] }
    DEBU[0001] Trying "automationhub.example.org/ee-supported-rhel8:latest" ...
    DEBU[0001] parsed reference into "[overlay@/home/example/.local/share/containers/storage+/run/user/1000/containers]@aB3d4F416ad3b624597258be35b8d9a87141517fb7f636a15b0fbc2740536bd7"
    DEBU[0001] Found image "automationhub.example.org/ee-supported-rhel8" as "automationhub.example.org/ee-supported-rhel8:latest" in local containers storage
    Error: trying to reuse blob sha256:aB3d4F16962e58fcc94f31256fbab5ae9f73a69c71f96947e4ad94fade71a779 at destination: checking whether a blob sha256:aB3d4F16962e58fcc94f31256fbab5ae9f73a69c71f96947e4ad94fade71a779 exists in automationhub.example.org/ee-supported-rhel8: errors:
    denied: requested access to the resource is denied
    error parsing HTTP 401 response body: unexpected end of JSON input:
    

Environment

  • Ansible Automation Platform 2.3

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