Cloud Pak for Data Group

Expand all | Collapse all

[Error] - Unable to install Watson Studio

  • 1.  [Error] - Unable to install Watson Studio

    Posted Mon June 14, 2021 05:12 PM
    Hi all,

    i'm trying to install Watson Studio on Cloud Pak for Data 3.5 running on OpenShift 4.6. I'm following the Documentation found here Installing Watson Studio

    Now i'm facing a error that it can't download the files from docker because of invalid username/password.

    [ERROR] [2021-06-14 12:49:50-0673] Unable to obtain the digest from the source docker://cp.icr.io/cp/cpd/rabbitmq:3.8.9-130: Error resolving image source reference for docker://cp.icr.io/cp/cpd/rabbitmq:3.8.9-130 - unable to retrieve auth token: invalid username/password: unauthorized: The login credentials are not valid.
    [ERROR] [2021-06-14 12:49:50-0676] worker 2 received error Error in handling image request regarding rabbitmq:3.8.9-130 from registry docker://cp.icr.io/cp/cpd/rabbitmq:3.8.9-130 after 4 retries. Abort
    [ERROR] [2021-06-14 12:49:50-0791] Unable to obtain the digest from the source docker://cp.icr.io/cp/cpd/wkc-init-container:1.0.133: Error resolving image source reference for docker://cp.icr.io/cp/cpd/wkc-init-container:1.0.133 - unable to retrieve auth token: invalid username/password: unauthorized: The login credentials are not valid.
    [ERROR] [2021-06-14 12:49:50-0794] worker 0 received error Error in handling image request regarding wkc-init-container:1.0.133 from registry docker://cp.icr.io/cp/cpd/wkc-init-container:1.0.133 after 4 retries. Abort
    [ERROR] [2021-06-14 12:49:50-0940] Unable to obtain the digest from the source docker://cp.icr.io/cp/cpd/elasticsearch:7.9.3-135: Error resolving image source reference for docker://cp.icr.io/cp/cpd/elasticsearch:7.9.3-135 - unable to retrieve auth token: invalid username/password: unauthorized: The login credentials are not valid.
    [ERROR] [2021-06-14 12:49:50-0943] worker 1 received error Error in handling image request regarding elasticsearch:7.9.3-135 from registry docker://cp.icr.io/cp/cpd/elasticsearch:7.9.3-135 after 4 retries. Abort
    ​

    I have tried to access and download the files manual by calling 'podman login' and 'podman pull'. This works as you can see below...
    $ podman login cp.icr.io/cp/cpd -u cp -p XXX
    Login Succeeded!
    $ podman pull cp.icr.io/cp/cpd/wkc-init-container:1.0.133
    Trying to pull cp.icr.io/cp/cpd/wkc-init-container:1.0.133...
    Getting image source signatures
    Checking if image destination supports signatures
    Copying blob 76b9354adec6 done
    Copying blob a591faa84ab0 [========>-----------------------------] 8.9MiB / 37.6MiB
    Copying blob 52c952a5cd3b done
    


    Does anybody has an idea what the problem is?
    Thanks!



    ------------------------------
    Dominik
    ------------------------------


  • 2.  RE: [Error] - Unable to install Watson Studio

    Posted Mon June 14, 2021 05:21 PM
    Hi Dominik,
    Could you confirm the openshift registry credentials are correct ie username & password
    You can verify it by running oc whoami for username and oc whoami -t for password.

    Thanks,

    ------------------------------
    Sidrah Junaid
    ------------------------------



  • 3.  RE: [Error] - Unable to install Watson Studio

    Posted Tue June 15, 2021 02:48 AM
    Hi,
    the username and password from the oc whoami commands are both different from the ones i used for the install command. oc whoami -t returns a string starting with sha256

    But if i use username and password from oc whoami for the install command, the same error as i my first post occurs. If i try the credentials from oc whoami to login with podman login, i can't login, resulting in following error:
    Error: error authenticating creds for "cp.icr.io": unexpected http code: 400 (Bad Request), URL: https://cp.icr.io/oauth/token?account=cp4dadmin&service=registry


    In my first post i used username cp (found in repo.yaml) and the CPD Key. With those podman login works, as written earlier...



    ------------------------------
    Dominik
    ------------------------------



  • 4.  RE: [Error] - Unable to install Watson Studio

    Posted Tue June 15, 2021 03:18 AM
    Hi,

    1) Please check if you can manually pull
    cp.icr.io/cp/cpd/rabbitmq:3.8.9-130​

    using the cp/<your_token> credentials.

    2) Make sure your repo.yaml file has the same credentials as used above (sometimes there are hidden white characters which cause the issues).

    Thanks

    ------------------------------
    TOMASZ HANUSIAK
    ------------------------------



  • 5.  RE: [Error] - Unable to install Watson Studio

    Posted Tue June 15, 2021 04:46 AM
    Hi,

    podman login and podman pull work with the cp/ <token> credentials.
    I have checked the the repo.yaml file. It also uses the cp username. The installation still fails, but with a slightly different error massage then in my first message. It now says authentication required. 
    [ERROR] [2021-06-15 08:32:48-0378] Error trying to reuse blob sha256:a591faa84ab05242a17131e396a336da172b0e1ec66d921c9f130b7c4c24586d at destination: unable to retrieve auth token: invalid username/password: unauthorized: authentication required
    [ERROR] [2021-06-15 08:32:48-0383] worker 0 received error Error in handling image request regarding wkc-init-container:1.0.133 from registry docker://cp.icr.io/cp/cpd/wkc-init-container:1.0.133 after 4 retries. Abort
    [ERROR] [2021-06-15 08:32:48-0730] Error trying to reuse blob sha256:a591faa84ab05242a17131e396a336da172b0e1ec66d921c9f130b7c4c24586d at destination: unable to retrieve auth token: invalid username/password: unauthorized: authentication required
    [ERROR] [2021-06-15 08:32:48-0733] worker 1 received error Error in handling image request regarding elasticsearch:7.9.3-135 from registry docker://cp.icr.io/cp/cpd/elasticsearch:7.9.3-135 after 4 retries. Abort
    [ERROR] [2021-06-15 08:32:48-0907] Error trying to reuse blob sha256:a591faa84ab05242a17131e396a336da172b0e1ec66d921c9f130b7c4c24586d at destination: unable to retrieve auth token: invalid username/password: unauthorized: authentication required
    [ERROR] [2021-06-15 08:32:48-0910] worker 2 received error Error in handling image request regarding rabbitmq:3.8.9-130 from registry docker://cp.icr.io/cp/cpd/rabbitmq:3.8.9-130 after 4 retries. Abort
    ​


    And i have another question. Directly after executing the install command and before accepting the licence, i am asked to enter an other username and password. Which should i use here?

    Thanks

    ------------------------------
    Dominik
    ------------------------------



  • 6.  RE: [Error] - Unable to install Watson Studio

    Posted Tue June 15, 2021 05:26 AM
    Hi,

     at destination: unable to retrieve auth token: invalid username/password: unauthorized: authentication required​

    this indicates issues with your image repository - it could be the built-in one to OCP or an external one.
    If the former, then you want to use your oc username (oc whoami  , please remove ':' if you use kubeadmin) and your token (oc whomi -t).

    Thanks

    ------------------------------
    TOMASZ HANUSIAK
    ------------------------------



  • 7.  RE: [Error] - Unable to install Watson Studio

    Posted Tue June 15, 2021 07:30 AM
    Hi Tomasz,

    the oc username and the token from oc whoami -t finally worked!

    Thanks for your help!

    ------------------------------
    Dominik
    ------------------------------