Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't install APIM 4.0.0 with docker-compose #412

Open
dhomsatbodas opened this issue May 27, 2021 · 4 comments
Open

Can't install APIM 4.0.0 with docker-compose #412

dhomsatbodas opened this issue May 27, 2021 · 4 comments

Comments

@dhomsatbodas
Copy link

dhomsatbodas commented May 27, 2021

Description:
If I try to install WSO2 API Manager with Analytics and WSO2 Identity Server as Key Manager following the instructions in this page https://wso2.com/api-management/install/docker-compose/get-started/ the installation can not finish successfully. Here is the output:

Creating network "apim-is-as-km-with-analytics_default" with the default driver
Pulling mysql (mysql:5.7.34)...
5.7.34: Pulling from library/mysql
69692152171a: Pull complete
1651b0be3df3: Pull complete
951da7386bc8: Pull complete
0f86c95aa242: Pull complete
37ba2d8bd4fe: Pull complete
6d278bb05e94: Pull complete
497efbd93a3e: Pull complete
a023ae82eef5: Pull complete
e76c35f20ee7: Pull complete
e887524d2ef9: Pull complete
ccb65627e1c3: Pull complete
Digest: sha256:a682e3c78fc5bd941e9db080b4796c75f69a28a8cad65677c23f7a9f18ba21fa
Status: Downloaded newer image for mysql:5.7.34
Building is-as-km
[+] Building 53.8s (11/11) FINISHED
 => [internal] load build definition from Dockerfile                                                                                          0.0s
 => => transferring dockerfile: 1.76kB                                                                                                        0.0s
 => [internal] load .dockerignore                                                                                                             0.0s
 => => transferring context: 2B                                                                                                               0.0s
 => [internal] load metadata for docker.wso2.com/wso2is:5.11.0.0                                                                              6.9s
 => [auth] wso2is:pull token for docker.wso2.com                                                                                              0.0s
 => https://repo1.maven.org/maven2/mysql/mysql-connector-java/8.0.17/mysql-connector-java-8.0.17.jar                                          0.0s
 => [1/4] FROM docker.wso2.com/wso2is:5.11.0.0@sha256:b0fd14e1510dca56f4650279711ea9269c877e7e810701feef113e57ea1796bd                       46.6s
 => => resolve docker.wso2.com/wso2is:5.11.0.0@sha256:b0fd14e1510dca56f4650279711ea9269c877e7e810701feef113e57ea1796bd                        0.0s
 => => sha256:b0fd14e1510dca56f4650279711ea9269c877e7e810701feef113e57ea1796bd 2.63kB / 2.63kB                                                0.0s
 => => sha256:8bfcb157079133beaa51613348662e4e6ca3fbf4d53b1195cf0c248dd40b3f9f 14.67kB / 14.67kB                                              0.0s
 => => sha256:6a5697faee43339ef8e33e3839060252392ad99325a48f7c9d7e93c22db4d4cf 28.56MB / 28.56MB                                             28.2s
 => => sha256:ba13d3bc422b493440f97a8f148d245e1999cb616cb05876edc3ef29e79852f2 847B / 847B                                                    0.8s
 => => sha256:a254829d9e55168306fd80a49e02eb015551facee9c444d9dce3b26d19238b82 162B / 162B                                                    0.8s
 => => sha256:03adaffd7e576f90e30e1dede0962fbbb0b58baede693e6375c2c137e506ef92 16.03MB / 16.03MB                                              2.8s
 => => sha256:5a421c0fca60f934e802e573f080f193512407c17e09df50b94e6267d6fb9504 195.61MB / 195.61MB                                           29.5s
 => => sha256:5d8c61d8ad568f0ccae210a51c2445ce91953cfa846a9f65d574d96dd2e36916 4.43kB / 4.43kB                                                2.9s
 => => sha256:b1bcc9635a1d5311feebe0b6e946655fddb4e1d88a0ebec649dd3a43b4103dad 852B / 852B                                                    3.1s
 => => sha256:0a83861d5abf99143e7fa5d8252e5e8f9f07508e8dae616e036d5cf124fd660c 904.51kB / 904.51kB                                            3.5s
 => => sha256:b6de9a0aa597ae92e920941bb4c571f40d0893bf2cce3aa49ccf4a09301ff44e 395.46MB / 395.46MB                                           37.7s
 => => sha256:4503a0a39b0a9173d46c499aca26d072e0a591502b7b2829f33f1f33f41df620 296.97kB / 296.97kB                                           28.4s
 => => extracting sha256:6a5697faee43339ef8e33e3839060252392ad99325a48f7c9d7e93c22db4d4cf                                                     1.3s
 => => sha256:3be8f83eaef98df46965c8ef0360d4bc51043cb42569c6e70e15266f3a8b6b08 1.32MB / 1.32MB                                               29.1s
 => => extracting sha256:ba13d3bc422b493440f97a8f148d245e1999cb616cb05876edc3ef29e79852f2                                                     0.0s
 => => extracting sha256:a254829d9e55168306fd80a49e02eb015551facee9c444d9dce3b26d19238b82                                                     0.0s
 => => extracting sha256:03adaffd7e576f90e30e1dede0962fbbb0b58baede693e6375c2c137e506ef92                                                     0.7s
 => => extracting sha256:5a421c0fca60f934e802e573f080f193512407c17e09df50b94e6267d6fb9504                                                     4.5s
 => => extracting sha256:5d8c61d8ad568f0ccae210a51c2445ce91953cfa846a9f65d574d96dd2e36916                                                     0.0s
 => => extracting sha256:b1bcc9635a1d5311feebe0b6e946655fddb4e1d88a0ebec649dd3a43b4103dad                                                     0.0s
 => => extracting sha256:0a83861d5abf99143e7fa5d8252e5e8f9f07508e8dae616e036d5cf124fd660c                                                     0.1s
 => => extracting sha256:b6de9a0aa597ae92e920941bb4c571f40d0893bf2cce3aa49ccf4a09301ff44e                                                     8.3s
 => => extracting sha256:4503a0a39b0a9173d46c499aca26d072e0a591502b7b2829f33f1f33f41df620                                                     0.1s
 => => extracting sha256:3be8f83eaef98df46965c8ef0360d4bc51043cb42569c6e70e15266f3a8b6b08                                                     0.1s
 => [internal] load build context                                                                                                             0.0s
 => => transferring context: 1.05MB                                                                                                           0.0s
 => [2/4] ADD --chown=wso2carbon:wso2 https://repo1.maven.org/maven2/mysql/mysql-connector-java/8.0.17/mysql-connector-java-8.0.17.jar /home  0.1s
 => [3/4] COPY dropins /home/wso2carbon/wso2is-5.11.0/repository/components/dropins/                                                          0.0s
 => [4/4] COPY webapps /home/wso2carbon/wso2is-5.11.0/repository/deployment/server/webapps/                                                   0.0s
 => exporting to image                                                                                                                        0.0s
 => => exporting layers                                                                                                                       0.0s
 => => writing image sha256:472cf52b276a8720d9dc5e8ff5899557268e36514b2aae893801723d2539ef6d                                                  0.0s
 => => naming to docker.io/library/apim-is-as-km-with-analytics_is-as-km                                                                      0.0s
Building api-manager
[+] Building 4.0s (4/4) FINISHED
 => [internal] load build definition from Dockerfile                                                                                          0.0s
 => => transferring dockerfile: 1.41kB                                                                                                        0.0s
 => [internal] load .dockerignore                                                                                                             0.0s
 => => transferring context: 2B                                                                                                               0.0s
 => ERROR [internal] load metadata for docker.wso2.com/wso2am:4.0.0.0                                                                         3.9s
 => [auth] wso2am:pull token for docker.wso2.com                                                                                              0.0s
------
 > [internal] load metadata for docker.wso2.com/wso2am:4.0.0.0:
------
failed to solve with frontend dockerfile.v0: failed to create LLB definition: pull access denied, repository does not exist or may require authorization: server message: insufficient_scope: authorization failed

Suggested Labels:
docker-compose , APIM

Suggested Assignees:

Affected Product Version:
WSO2AM 4.0.0

OS, DB, other environment details and versions:
macOS 11.4, Docker Desktop 3.3.3, Docker Engine 20.10.6, Docker Compose 1.29.1

Steps to reproduce:

  • docker login docker.wso2.com
  • cd docker-apim-4.0.0/docker-compose
  • cd apim-is-as-km-with-analytics
  • docker-compose up --build

Related Issues:

@prokopsimek
Copy link

@dhomsatbodas You probably forgot step 2: docker login docker.wso2.com. I had the same issue.

@borice
Copy link

borice commented Jan 24, 2022

I did "step 2" successfully (the docker login docker.wso2.com) but am getting the same error as OP

$ docker login docker.wso2.com
Authenticating with existing credentials...
Login Succeeded
$ docker-compose up --build
[+] Building 2.2s (4/4) FINISHED
 => [internal] load build definition from Dockerfile                                                                                                                      0.0s
 => => transferring dockerfile: 116B                                                                                                                                      0.0s
 => [internal] load .dockerignore                                                                                                                                         0.0s
 => => transferring context: 2B                                                                                                                                           0.0s
 => ERROR [internal] load metadata for docker.wso2.com/wso2am:4.0.0.0                                                                                                     2.1s
 => [auth] wso2am:pull token for docker.wso2.com                                                                                                                          0.0s
------
 > [internal] load metadata for docker.wso2.com/wso2am:4.0.0.0:
------
failed to solve: rpc error: code = Unknown desc = failed to solve with frontend dockerfile.v0: failed to create LLB definition: pull access denied, repository does not exist or may require authorization: server message: insufficient_scope: authorization failed

@etiquet
Copy link

etiquet commented Jun 5, 2022

one more for me on this.

Tried originaly to deploy kubernetes (helm) but did not succeed neither
The provided docker compose with analytics have issue too... could'not make it work from docker.wso2 registry
(seems to be an issue with wso2 registry)

The workaround I found is to use the docker hub image, hope it helps you guys too...

  • use apim-with-mi ( git clone it )
  • alter the following files...

docker-apim/docker-compose/apim-with-mi/dockerfiles/apim/Dockerfile
change
# set base Docker image to WSO2 API Manager Docker image with latest WSO2 Updates
#FROM docker.wso2.com/wso2am:4.1.0.0
FROM wso2/wso2am:4.1.0

then docker-apim/docker-compose/apim-with-mi/docker-compose.yml
comment out the micro integrator content at the bottom (just put # a beg of line
sorry wso2 guys, i guess you work hard on this feature, but one pb at a time and don't have yet the usage... yet

docker compose up -d
docker compose logs -f
an ssh tunnel on the machine ( for being able to type localhost:9443/carbon on my local machine browser )
few seconds and tada... :)

@jimwong666
Copy link

i got the same error...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants