Layer7 API Management

 View Only
  • 1.  API Developer Portal - "Pulling image failed" error in docker

    Posted Jun 07, 2023 12:00 AM

    Hi Team,

    When I try to run the portal.sh script the DB schema update failed. On checking the docker logs i'm getting the following errors.

    Jun 06 23:37:08 apiportal dockerd[2940]: time="2023-06-06T23:37:08.971540792-04:00" level=error msg="pulling image failed" error="pull access denied for caapim/db-upgra
    Jun 06 23:39:25 apiportal dockerd[2940]: time="2023-06-06T23:39:25.183010897-04:00" level=info msg="NetworkDB stats apiportal(3def73f53eae) - netID:ppboocu3ganlj3v6hymg
    Jun 06 23:39:25 apiportal dockerd[2940]: time="2023-06-06T23:39:25.183115637-04:00" level=info msg="NetworkDB stats apiportal(3def73f53eae) - netID:rdvqz5qjkp2174suae33
    Jun 06 23:41:09 apiportal dockerd[2940]: time="2023-06-06T23:41:09.113691777-04:00" level=info msg="ignoring event" container=f2d9c262ae47579edb11affcf284d00ae534ffd5cd
    Jun 06 23:41:09 apiportal dockerd[2940]: time="2023-06-06T23:41:09.247707055-04:00" level=error msg="fatal task error" error="task: non-zero exit (2)" module=node/agent
    Jun 06 23:41:12 apiportal dockerd[2940]: time="2023-06-06T23:41:12.155281221-04:00" level=info msg="ignoring event" container=a0cce6e3b343ddda4e552c4be96f199b7c4b47ac2a
    Jun 06 23:41:12 apiportal dockerd[2940]: time="2023-06-06T23:41:12.254058353-04:00" level=error msg="Not continuing with pull after error: errors:\ndenied: requested ac
    Jun 06 23:41:12 apiportal dockerd[2940]: time="2023-06-06T23:41:12.254102776-04:00" level=info msg="Ignoring extra error returned from registry" error="unauthorized: au
    Jun 06 23:41:12 apiportal dockerd[2940]: time="2023-06-06T23:41:12.256233560-04:00" level=error msg="pulling image failed" error="pull access denied for caapim/db-upgra
    Jun 06 23:41:12 apiportal dockerd[2940]: time="2023-06-06T23:41:12.295899532-04:00" level=error msg="fatal task error" error="task: non-zero exit (2)" module=node/agent
    Jun 06 23:41:15 apiportal dockerd[2940]: time="2023-06-06T23:41:15.384573986-04:00" level=error msg="Not continuing with pull after error: errors:\ndenied: requested ac
    Jun 06 23:41:15 apiportal dockerd[2940]: time="2023-06-06T23:41:15.384621638-04:00" level=info msg="Ignoring extra error returned from registry" error="unauthorized: au
    Jun 06 23:41:15 apiportal dockerd[2940]: time="2023-06-06T23:41:15.386936200-04:00" level=error msg="pulling image failed" error="pull access denied for caapim/db-upgra

    My Portal is running on CentOS 7.9 and docker 24.0.2

    Recently i did yum update on the server. after that only this problem started occuring.

    Can someone plz help me on this error?

    Thanks,

    Nandadeeban



  • 2.  RE: API Developer Portal - "Pulling image failed" error in docker

    Posted Jun 07, 2023 01:46 PM

    Hi,

    All the images related to the Portal are on a private section of the CAAPIM repository and you need a secret in order to access it. 

    I guess this is the swarm version of the Portal? since I see that it is on docker?

    it looks like when the update was done, docker lost its authentication file for some reason.

    We will need to see more in depth why that is, 

    you can always use the script to start the Portal that should be in the folder of your portal version (the one you get when you download the zip file.

    Ideally we should know how you start your portal, meaning, what command you use and from where.

     

    Maurizio



    ------------------------------
    Maurizio Garzelli
    APIIDA
    APIIDA Chief Technology Advisor APIM
    maurizio.garzelli@apiida.com
    https://apiida.com
    ------------------------------



  • 3.  RE: API Developer Portal - "Pulling image failed" error in docker

    Posted Jun 08, 2023 12:25 AM

    Hi Maurizio Garzelli,

    Thanks for the reply.

    Yes, I'm running Portal 5.1 on Docker Swarm.

    But this is not OVA configuration. I've done seperate installation of centOS 7.9, docker 24.0.2 and Portal 5.1.

    I'm using the script from the default installation directory only, to start the Portal.
    /opt/apim-portal-5.1-final/portal.sh

    since it is not OVA, do we need to manually configure authentication for connecting with CAAPIM repository?

    if so can u plz share me the steps for that?

    Thanks,

    Nandadeeban.




  • 4.  RE: API Developer Portal - "Pulling image failed" error in docker

    Posted Jun 22, 2023 02:16 AM

    Hi,

    This issue was due to insufficient Swap memory in the Portal Server.

    Once I increased the Swap Space on the server, Docker Images got pulled successfully and Containers are created & running healthy.

    Thanks.

    Nandadeeban