IBM Support

Pods are in ImagePullBackOff error with "You are not authorized to access the specified resource" error

Troubleshooting


Problem

After restarting cluster, several pods failed in ImagePullBackOff state with "You are not authorized to access the specified resource." error.
oc get pod -A -o wide | grep -Ev '([[:digit:]])/\\1.*Running|Completed'

NAMESPACE                                          NAME                                                              READY   STATUS             RESTARTS   AGE    

cpd-instance                                       ax-cdsx-jupyter-notebooks-converter-deploy-55759c4499-nj9tm       0/1     ErrImagePull       0          67s     
cpd-instance                                       ax-cdsx-notebooks-job-manager-deploy-85d4b7b9d9-b8tz7             0/1     ImagePullBackOff   0          61s     
cpd-instance                                       ax-wdp-notebooks-api-deploy-857658f8fb-7ssl7                      0/1     ErrImagePull       0          43s     
cpd-instance                                       ax-ws-notebooks-ui-deploy-74c5c9fccc-5t5f9                        0/1     ImagePullBackOff   0          37s   
oc describe pod
 Warning  Failed          56s (x4 over 2m24s)  kubelet            Failed to pull image "cp.icr.io/cp/cpd/jupyter-notebooks-converter@sha256:34a6fe4f062c2f133fdd33e735a70d85f4e902f89b835caa034f2042554401dd": rpc error: code = Unknown desc = Error reading manifest sha256:34a6fe4f062c2f133fdd33e735a70d85f4e902f89b835caa034f2042554401dd in cp.icr.io/cp/cpd/jupyter-notebooks-converter: denied: You are not authorized to access the specified resource. See https://cloud.ibm.com/docs/Registry?topic=Registry-troubleshoot-access-denied
podman login cp.icr.io -u cp -p <apikey>
--> login ok
podman pull cp.icr.io/cp/cpd/jupyter-notebooks-converter@sha256:34a6fe4f062c2f133fdd33e735a70d85f4e902f89b835caa034f2042554401dd  
--> same error

Document Location

Worldwide

[{"Type":"MASTER","Line of Business":{"code":"LOB76","label":"Data Platform"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSHGYS","label":"IBM Cloud Pak for Data"},"ARM Category":[{"code":"a8m3p000000UoSFAA0","label":"Installation-\u003EEntitlement Key"}],"ARM Case Number":"TS014108704","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"All Versions"},{"Type":"MASTER","Line of Business":{"code":"LOB76","label":"Data Platform"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSHGYS","label":"IBM Cloud Pak for Data"},"ARM Category":[{"code":"a8m3p000000UoSFAA0","label":"Installation-\u003EEntitlement Key"}],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"All Versions"}]

Log InLog in to view more of this document

This document has the abstract of a technical article that is available to authorized users once you have logged on. Please use Log in button above to access the full document. After log in, if you do not have the right authorization for this document, there will be instructions on what to do next.

Document Information

Modified date:
05 October 2023

UID

ibm17047615