eclipse-edc/MinimumViableDataspace

Execution failed for task ':system-tests:compileTestJava'.

arianman opened this issue · 6 comments

Bug Report

Describe the Bug

Trying to deploy the MVD, faced the error Task: system-tests:compileTestJava FAILED.

Steps to Reproduce

Steps to reproduce the behavior: (also reproduced by @paulocabrita-ionos)
mkdir EDC
cd EDC
git clone https://github.com/eclipse-dataspaceconnector/MinimumViableDataspace
git clone https://github.com/eclipse-dataspaceconnector/DataDashboard
cd MinimumViableDataspace
./gradlew build -x test

Context Information

  • OS: Ubuntu 20.04.5 LTS
  • openjdk version "11.0.17" 2022-10-18

Detailed Description

edc-error

Seems to be the same issue as #120

After this merge:
bscholtes1A merged commit [24c85f2] into eclipse-edc:main
It is failing as Arian mentioned above.

After this merge:

ERROR: for company1-datadashboard  Container "8c3bc58efe3d" is unhealthy.

ERROR: for newman  Container "4ea452274b04" is unhealthy.

ERROR: for cli-tools  Container "75a07fcc0f00" is unhealthy.
ERROR: Encountered errors while bringing up the project.

Detailed output:

root@ubuntu:~# docker-compose --profile ui -f /EDC/MinimumViableDataspace/system                                                                                                           -tests/docker-compose.yml up --build
Building registration-service
Sending build context to Docker daemon  242.2MB
Step 1/13 : FROM openjdk:17-slim-buster
 ---> b97928de0b87
Step 2/13 : ARG JVM_ARGS=""
 ---> Using cache
 ---> c29912772f36
Step 3/13 : RUN apt update     && apt install -y curl     && rm -rf /var/cache/a                                                                                                           pt/archives /var/lib/apt/lists
 ---> Using cache
 ---> d9faea4309aa
Step 4/13 : WORKDIR /app
 ---> Using cache
 ---> 1f83dbc6b3a6
Step 5/13 : COPY ./build/libs/app.jar /app
 ---> Using cache
 ---> 308698476afa
Step 6/13 : EXPOSE 8182
 ---> Using cache
 ---> aabd97c1d9bc
Step 7/13 : HEALTHCHECK --interval=5s --timeout=5s --retries=10 CMD curl --fail                                                                                                            http://localhost:8181/api/check/health
 ---> Using cache
 ---> 42810dee7469
Step 8/13 : ENV WEB_HTTP_PORT="8181"
 ---> Using cache
 ---> 7c0ec395bf9e
Step 9/13 : ENV WEB_HTTP_PATH="/api"
 ---> Using cache
 ---> 340ffe02d7bd
Step 10/13 : ENV WEB_HTTP_IDENTITY_PORT="7171"
 ---> Using cache
 ---> 62487b1a129c
Step 11/13 : ENV WEB_HTTP_IDENTITY_PATH="/api/v1/identity"
 ---> Using cache
 ---> 9896e97e91b0
Step 12/13 : ENV ENV_JVM_ARGS=$JVM_ARGS
 ---> Using cache
 ---> 813922e050fc
Step 13/13 : ENTRYPOINT [ "sh", "-c",     "exec java $ENV_JVM_ARGS -jar app.jar"                                                                                                           ]
 ---> Using cache
 ---> 5dbde8328ed6
Successfully built 5dbde8328ed6
Successfully tagged system-tests_registration-service:latest
Building company3
Sending build context to Docker daemon  252.6MB
Step 1/19 : FROM openjdk:17-slim-buster
 ---> b97928de0b87
Step 2/19 : ARG JVM_ARGS=""
 ---> Using cache
 ---> c29912772f36
Step 3/19 : RUN apt update     && apt install -y curl     && rm -rf /var/cache/apt/archives /var/lib/apt/lists
 ---> Using cache
 ---> 13be22967568
Step 4/19 : WORKDIR /app
 ---> Using cache
 ---> 2c788e3f611e
Step 5/19 : COPY ./build/libs/app.jar /app
 ---> Using cache
 ---> 3beb81669a66
Step 6/19 : EXPOSE 8181
 ---> Using cache
 ---> d4d9471eabdb
Step 7/19 : EXPOSE 9191
 ---> Using cache
 ---> 94c8e276a65d
Step 8/19 : EXPOSE 8282
 ---> Using cache
 ---> f026e4db6f72
Step 9/19 : HEALTHCHECK --interval=5s --timeout=5s --retries=10 CMD curl -H "X-Api-Key: $EDC_API_AUTH_KEY" --fail http://localhost:8181/api/check/health
 ---> Using cache
 ---> 53da0f86d01a
Step 10/19 : ENV WEB_HTTP_PORT="8181"
 ---> Using cache
 ---> dd2ca6a3d906
Step 11/19 : ENV WEB_HTTP_PATH="/api"
 ---> Using cache
 ---> e01747844f2a
Step 12/19 : ENV WEB_HTTP_MANAGEMENT_PORT="9191"
 ---> Using cache
 ---> f80d3890ee39
Step 13/19 : ENV WEB_HTTP_MANAGEMENT_PATH="/api/v1/data"
 ---> Using cache
 ---> 0294ed3d3470
Step 14/19 : ENV WEB_HTTP_IDS_PORT="8282"
 ---> Using cache
 ---> 4e1c7de6a053
Step 15/19 : ENV WEB_HTTP_IDS_PATH="/api/v1/ids"
 ---> Using cache
 ---> 2f589ff284a5
Step 16/19 : ENV WEB_HTTP_IDENTITY_PORT="7171"
 ---> Using cache
 ---> 97dbc8e2c212
Step 17/19 : ENV WEB_HTTP_IDENTITY_PATH="/api/v1/identity"
 ---> Using cache
 ---> 5464732d8c57
Step 18/19 : ENV JVM_ARGS=$JVM_ARGS
 ---> Using cache
 ---> 0f37e2aae99b
Step 19/19 : ENTRYPOINT [ "sh", "-c",     "exec java $JVM_ARGS -jar app.jar"]
 ---> Using cache
 ---> b3a6f1f3e80f
Successfully built b3a6f1f3e80f
Successfully tagged system-tests_company3:latest
Building company2
Sending build context to Docker daemon  252.6MB
Step 1/19 : FROM openjdk:17-slim-buster
 ---> b97928de0b87
Step 2/19 : ARG JVM_ARGS=""
 ---> Using cache
 ---> c29912772f36
Step 3/19 : RUN apt update     && apt install -y curl     && rm -rf /var/cache/apt/archives /var/lib/apt/lists
 ---> Using cache
 ---> 4f371b96cc9f
Step 4/19 : WORKDIR /app
 ---> Using cache
 ---> 2c0a5b32c8aa
Step 5/19 : COPY ./build/libs/app.jar /app
 ---> Using cache
 ---> 2c9185286c7a
Step 6/19 : EXPOSE 8181
 ---> Using cache
 ---> 76e4dbb893bc
Step 7/19 : EXPOSE 9191
 ---> Using cache
 ---> ef0f100a309b
Step 8/19 : EXPOSE 8282
 ---> Using cache
 ---> b39d1765d752
Step 9/19 : HEALTHCHECK --interval=5s --timeout=5s --retries=10 CMD curl -H "X-Api-Key: $EDC_API_AUTH_KEY" --fail http://localhost:8181/api/check/health
 ---> Using cache
 ---> 2af8f9ed9af9
Step 10/19 : ENV WEB_HTTP_PORT="8181"
 ---> Using cache
 ---> 971441d21c13
Step 11/19 : ENV WEB_HTTP_PATH="/api"
 ---> Using cache
 ---> 9f3614e7fed5
Step 12/19 : ENV WEB_HTTP_MANAGEMENT_PORT="9191"
 ---> Using cache
 ---> 80d0413977fb
Step 13/19 : ENV WEB_HTTP_MANAGEMENT_PATH="/api/v1/data"
 ---> Using cache
 ---> 326811818c38
Step 14/19 : ENV WEB_HTTP_IDS_PORT="8282"
 ---> Using cache
 ---> 5ec7047cc809
Step 15/19 : ENV WEB_HTTP_IDS_PATH="/api/v1/ids"
 ---> Using cache
 ---> 35b4813765a1
Step 16/19 : ENV WEB_HTTP_IDENTITY_PORT="7171"
 ---> Using cache
 ---> f69bed724ad3
Step 17/19 : ENV WEB_HTTP_IDENTITY_PATH="/api/v1/identity"
 ---> Using cache
 ---> 0a315ae7d0f7
Step 18/19 : ENV JVM_ARGS=$JVM_ARGS
 ---> Using cache
 ---> 46445f81da5e
Step 19/19 : ENTRYPOINT [ "sh", "-c",     "exec java $JVM_ARGS -jar app.jar"]
 ---> Using cache
 ---> bcaf19a11c32
Successfully built bcaf19a11c32
Successfully tagged system-tests_company2:latest
Building company1
Sending build context to Docker daemon  252.6MB
Step 1/19 : FROM openjdk:17-slim-buster
 ---> b97928de0b87
Step 2/19 : ARG JVM_ARGS=""
 ---> Using cache
 ---> c29912772f36
Step 3/19 : RUN apt update     && apt install -y curl     && rm -rf /var/cache/apt/archives /var/lib/apt/lists
 ---> Using cache
 ---> 15283fb20286
Step 4/19 : WORKDIR /app
 ---> Using cache
 ---> 48cd1622762a
Step 5/19 : COPY ./build/libs/app.jar /app
 ---> Using cache
 ---> 233cde5fb865
Step 6/19 : EXPOSE 8181
 ---> Using cache
 ---> 0e81e7b098fd
Step 7/19 : EXPOSE 9191
 ---> Using cache
 ---> 88c54a361ed2
Step 8/19 : EXPOSE 8282
 ---> Using cache
 ---> 0c4f794907ea
Step 9/19 : HEALTHCHECK --interval=5s --timeout=5s --retries=10 CMD curl -H "X-Api-Key: $EDC_API_AUTH_KEY" --fail http://localhost:8181/api/check/health
 ---> Using cache
 ---> 90c4c25d95da
Step 10/19 : ENV WEB_HTTP_PORT="8181"
 ---> Using cache
 ---> df1c1432b011
Step 11/19 : ENV WEB_HTTP_PATH="/api"
 ---> Using cache
 ---> 2b7c8925566a
Step 12/19 : ENV WEB_HTTP_MANAGEMENT_PORT="9191"
 ---> Using cache
 ---> 6b19c693e446
Step 13/19 : ENV WEB_HTTP_MANAGEMENT_PATH="/api/v1/data"
 ---> Using cache
 ---> 6db146022b3a
Step 14/19 : ENV WEB_HTTP_IDS_PORT="8282"
 ---> Using cache
 ---> 8692ad487a36
Step 15/19 : ENV WEB_HTTP_IDS_PATH="/api/v1/ids"
 ---> Using cache
 ---> 65c01ff781a6
Step 16/19 : ENV WEB_HTTP_IDENTITY_PORT="7171"
 ---> Using cache
 ---> 7bd05f0c546e
Step 17/19 : ENV WEB_HTTP_IDENTITY_PATH="/api/v1/identity"
 ---> Using cache
 ---> 4d613174c711
Step 18/19 : ENV JVM_ARGS=$JVM_ARGS
 ---> Using cache
 ---> 95bf7cc5d42a
Step 19/19 : ENTRYPOINT [ "sh", "-c",     "exec java $JVM_ARGS -jar app.jar"]
 ---> Using cache
 ---> b158c5084bb4
Successfully built b158c5084bb4
Successfully tagged system-tests_company1:latest
Building cli-tools
Sending build context to Docker daemon  41.92MB
Step 1/9 : FROM openjdk:17-slim-buster
 ---> b97928de0b87
Step 2/9 : RUN apt update     && apt install -y uuid-runtime jq     && rm -rf /var/cache/apt/archives /var/lib/apt/lists
 ---> Using cache
 ---> a834e069d73c
Step 3/9 : WORKDIR /app
 ---> Using cache
 ---> 05b378f83295
Step 4/9 : COPY ./registration-service-cli.jar .
 ---> Using cache
 ---> 01c421c561e0
Step 5/9 : COPY ./identity-hub-cli.jar .
 ---> Using cache
 ---> 19bc3d69c898
Step 6/9 : COPY ./entrypoint.sh .
 ---> Using cache
 ---> 6fd6e0a5d27f
Step 7/9 : COPY ./validate_onboarding.sh .
 ---> Using cache
 ---> ca49bd07f50a
Step 8/9 : HEALTHCHECK --start-period=60s --interval=5s --retries=3 CMD test -f finished.flag
 ---> Using cache
 ---> 7786e586cabd
Step 9/9 : ENTRYPOINT "/app/entrypoint.sh"
 ---> Using cache
 ---> bf56b25ec351
Successfully built bf56b25ec351
Successfully tagged system-tests_cli-tools:latest
Building company1-datadashboard
Sending build context to Docker daemon   1.74MB
Step 1/11 : FROM node:lts as build
 ---> b68a472583ef
Step 2/11 : WORKDIR /app
 ---> Using cache
 ---> 886383f70565
Step 3/11 : COPY ./ /app/
 ---> Using cache
 ---> 43701ef38fff
Step 4/11 : RUN npm install
 ---> Using cache
 ---> 9c5cb71d8109
Step 5/11 : RUN npm run build
 ---> Using cache
 ---> aa6fc73cdae0
Step 6/11 : FROM nginx:alpine
 ---> c433c51bbd66
Step 7/11 : COPY --from=build /app/deployment/nginx.conf /etc/nginx/nginx.conf
 ---> Using cache
 ---> f269b01390e4
Step 8/11 : COPY --from=build /app/dist/edc-demo-client /usr/share/nginx/html
 ---> Using cache
 ---> 0505c881a408
Step 9/11 : COPY --from=build /app/src/assets /usr/share/nginx/html/assets
 ---> Using cache
 ---> 137f9c02b82a
Step 10/11 : EXPOSE 80
 ---> Using cache
 ---> 720292e2bcf8
Step 11/11 : HEALTHCHECK --interval=2s --timeout=5s --retries=10   CMD curl -f http://localhost/ || exit 1
 ---> Using cache
 ---> 1e41f77f8a82
Successfully built 1e41f77f8a82
Successfully tagged system-tests_company1-datadashboard:latest
Building company2-datadashboard
Sending build context to Docker daemon   1.74MB
Step 1/11 : FROM node:lts as build
 ---> b68a472583ef
Step 2/11 : WORKDIR /app
 ---> Using cache
 ---> 886383f70565
Step 3/11 : COPY ./ /app/
 ---> Using cache
 ---> 43701ef38fff
Step 4/11 : RUN npm install
 ---> Using cache
 ---> 9c5cb71d8109
Step 5/11 : RUN npm run build
 ---> Using cache
 ---> aa6fc73cdae0
Step 6/11 : FROM nginx:alpine
 ---> c433c51bbd66
Step 7/11 : COPY --from=build /app/deployment/nginx.conf /etc/nginx/nginx.conf
 ---> Using cache
 ---> f269b01390e4
Step 8/11 : COPY --from=build /app/dist/edc-demo-client /usr/share/nginx/html
 ---> Using cache
 ---> 0505c881a408
Step 9/11 : COPY --from=build /app/src/assets /usr/share/nginx/html/assets
 ---> Using cache
 ---> 137f9c02b82a
Step 10/11 : EXPOSE 80
 ---> Using cache
 ---> 720292e2bcf8
Step 11/11 : HEALTHCHECK --interval=2s --timeout=5s --retries=10   CMD curl -f http://localhost/ || exit 1
 ---> Using cache
 ---> 1e41f77f8a82
Successfully built 1e41f77f8a82
Successfully tagged system-tests_company2-datadashboard:latest
Building company3-datadashboard
Sending build context to Docker daemon   1.74MB
Step 1/11 : FROM node:lts as build
 ---> b68a472583ef
Step 2/11 : WORKDIR /app
 ---> Using cache
 ---> 886383f70565
Step 3/11 : COPY ./ /app/
 ---> Using cache
 ---> 43701ef38fff
Step 4/11 : RUN npm install
 ---> Using cache
 ---> 9c5cb71d8109
Step 5/11 : RUN npm run build
 ---> Using cache
 ---> aa6fc73cdae0
Step 6/11 : FROM nginx:alpine
 ---> c433c51bbd66
Step 7/11 : COPY --from=build /app/deployment/nginx.conf /etc/nginx/nginx.conf
 ---> Using cache
 ---> f269b01390e4
Step 8/11 : COPY --from=build /app/dist/edc-demo-client /usr/share/nginx/html
 ---> Using cache
 ---> 0505c881a408
Step 9/11 : COPY --from=build /app/src/assets /usr/share/nginx/html/assets
 ---> Using cache
 ---> 137f9c02b82a
Step 10/11 : EXPOSE 80
 ---> Using cache
 ---> 720292e2bcf8
Step 11/11 : HEALTHCHECK --interval=2s --timeout=5s --retries=10   CMD curl -f http://localhost/ || exit 1
 ---> Using cache
 ---> 1e41f77f8a82
Successfully built 1e41f77f8a82
Successfully tagged system-tests_company3-datadashboard:latest
Starting registration-service ... done
Starting azurite              ... done
Starting did-server           ... done
Starting company2             ... done
Starting company3             ... done
Starting company1             ... done
Starting company2-datadashboard ... done
Starting company3-datadashboard ...
Creating cli-tools              ... done

ERROR: for company1-datadashboard  Container "8c3bc58efe3d" is unhealthy.

ERROR: for newman  Container "4ea452274b04" is unhealthy.

ERROR: for cli-tools  Container "75a07fcc0f00" is unhealthy.
ERROR: Encountered errors while bringing up the project.

I have proven right now and it works.
But there is a bug in DataDashboard because after getting federated catalog:
POST http://82.223.77.67:9191/api/v1/data/federatedcatalog
and then start negotiation in order to get the contract:
POST http://82.223.77.67:9191/api/v1/data/contractnegotiations
getting negotiation state:
GET http://82.223.77.67:9191/api/v1/data/contractnegotiations/4f687f13-e560-4f82-baba-2c47f6ebd1f0
go to contract section:
GET http://82.223.77.67:9191/api/v1/data/contractagreements
and 2 identical agreements are set therefore, there is and error when negotiating the contract because only one there should be created not 2 identical

After re-checking, re-building, I got it working now.

Haven't tested the API regarding Ángel's issue. Perhaps a dedicated ticket would help fixing it quicker.