IBM Support

Docker login fails with 'unauthorized: authentication required'

Troubleshooting


Problem

After upgrading IBM Cloud Private to 3.1.1, the docker login command

docker login <cluster_CA_domain>:8500

fails with the following message after entering user and password:

Error response from daemon: Get https://<cluster_CA_domain>:8500/: unauthorized: authentication required

Before the upgrade, the docker login worked without problems.
All pods are also running correctly and there was no error during the upgrade.

 

Resolving The Problem

Different root causes could lead to this problem. Check below suggestions:

  1. Ensure that the authentication for the Docker CLI is configured correctly:
    https://www.ibm.com/support/knowledgecenter/en/SSBS6K_3.1.1/manage_images/configuring_docker_cli.html
  2. Review your Helm chart versions. If some have not been upgraded to 3.1.1, you might also see problems with the Docker login. You will not see any errors for not upgraded Helm charts during the upgrade itself.
    Either check the versions via the ICP UI > Workloads > Helm releases or via the command:
    helm list --tls
    If you see old releases re-run the upgrade again but delete the /.upgrade folder before:
    • cd /<new_installation_directory>/cluster 
    • sudo rm -rf .upgrade upgrade-version 
    • For Linux® 64-bit, run this command:
      sudo docker run -e LICENSE=accept --net=host --rm -t -v "$(pwd)":/installer/cluster ibmcom/icp-inception-amd64:3.1.1-ee upgrade-chart 
      For Linux® on Power® (ppc64le), run this command:
      sudo docker run -e LICENSE=accept --net=host --rm -t -v "$(pwd)":/installer/cluster ibmcom/icp-inception-ppc64le:3.1.1-ee upgrade-chart
    Afterwards, the Docker login should work again.

[{"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSBS6K","label":"IBM Cloud Private"},"Component":"","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"3.1.1","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
18 December 2018

UID

ibm10791817