Closed yongpro closed 6 months ago
Could you try the newer version of docker compose?
Without the -
.
Try to build the services first:
docker compose build
Then run it:
docker compose up
after use new command, have similar alarm...
root@rdma1:~/opentelemetry-demo# docker compose build
[+] Building 12.4s (40/65)
=> [kafka internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 1.19kB 0.0s
=> [kafka internal] load .dockerignore 0.0s
=> => transferring context: 1.18kB 0.0s
=> [kafka internal] load metadata for docker.io/confluentinc/cp-kafka:latest-ubi8 0.9s
=> [featureflagservice internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 3.36kB 0.0s
=> [featureflagservice internal] load .dockerignore 0.0s
=> => transferring context: 1.18kB 0.0s
=> [featureflagservice internal] load metadata for docker.io/library/debian:buster-20230612-slim 0.9s
=> [featureflagservice internal] load metadata for docker.io/hexpm/elixir:1.15.4-erlang-26.0.2-debian-buster-20230612-slim 0.9s
=> [otelcol internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 997B 0.0s
=> [otelcol internal] load .dockerignore 0.0s
=> => transferring context: 1.18kB 0.0s
=> [otelcol internal] load metadata for docker.io/library/alpine:latest 0.9s
=> [otelcol internal] load metadata for docker.io/library/golang:latest 1.0s
=> [otelcol internal] load metadata for docker.io/library/alpine:3.16 0.9s
=> [kafka] importing cache manifest from ghcr.io/open-telemetry/demo:1.4.0-kafka 0.0s
=> CANCELED [kafka] https://github.com/open-telemetry/opentelemetry-java-instrumentation/releases/download/v1.23.0/opentelemetry-javaagen 11.5s
=> [kafka 1/3] FROM docker.io/confluentinc/cp-kafka:latest-ubi8@sha256:d3acff0466ec26c8048b75c7185dbc9c9d718cb1111f0cc00d535df073d71103 0.0s
=> [featureflagservice] importing cache manifest from ghcr.io/open-telemetry/demo:1.4.0-featureflagservice 3.7s
=> [featureflagservice builder 1/25] FROM docker.io/hexpm/elixir:1.15.4-erlang-26.0.2-debian-buster-20230612-slim@sha256:4869c1e8df9cb2f5 0.0s
=> [featureflagservice internal] load build context 0.0s
=> => transferring context: 5.83kB 0.0s
=> [featureflagservice stage-1 1/6] FROM docker.io/library/debian:buster-20230612-slim@sha256:738002a6e94e8629a0f869be8ea56519887979d5ed41 0.0s
=> ERROR [otelcol] importing cache manifest from ghcr.io/open-telemetry/demo:1.4.0-otelcol 1.0s
=> [otelcol build 1/7] FROM docker.io/library/golang:latest@sha256:cfc9d1b07b1ef4f7a4571f0b60a99646a92ef76adb7d9943f4cb7b606c6554e2 0.0s
=> [otelcol internal] load build context 0.0s
=> => transferring context: 294B 0.0s
=> [otelcol stage-2 1/4] FROM docker.io/library/alpine@sha256:82d1e9d7ed48a7523bdebc18cf6290bdb97b82302a8a9c27d4fe885949ea94d1 0.0s
=> [otelcol certs 1/2] FROM docker.io/library/alpine:3.16@sha256:cbe5d5973103a2d03408d1689a6efde4ea4920bde9f4b51fe7872e60ce2d8e56 0.0s
=> CACHED [featureflagservice stage-1 2/6] RUN apt-get update -y && apt-get install -y openssl libncurses5 locales curl && apt-get clean 0.0s
=> CACHED [featureflagservice stage-1 3/6] RUN sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen && locale-gen 0.0s
=> CACHED [featureflagservice stage-1 4/6] WORKDIR /app 0.0s
=> CACHED [featureflagservice stage-1 5/6] RUN chown nobody /app 0.0s
=> CACHED [featureflagservice builder 2/25] RUN apt-get update -y && apt-get install -y build-essential git wget && apt-get clean && 0.0s
=> CACHED [featureflagservice builder 3/25] WORKDIR /app 0.0s
=> [featureflagservice builder 4/25] RUN mix local.hex --force --verbose 3.2s
=> CACHED [otelcol certs 2/2] RUN apk --update add ca-certificates 0.0s
=> CACHED [otelcol stage-2 2/4] COPY --from=certs /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt 0.0s
=> CACHED [otelcol build 2/7] RUN curl -L -o /builder https://github.com/open-telemetry/opentelemetry-collector/releases/download/cmd%2Fbu 0.0s
=> CACHED [otelcol build 3/7] RUN chmod +x /builder 0.0s
=> CACHED [otelcol build 4/7] WORKDIR /build 0.0s
=> CACHED [otelcol build 5/7] COPY ./src/otelcollector/manifest.yml ./ 0.0s
=> CANCELED [otelcol build 6/7] RUN /builder --config ./manifest.yml --output-path /build/_build 7.7s
=> [featureflagservice builder 5/25] RUN mix local.rebar --force --verbose 3.8s
=> ERROR [featureflagservice builder 6/25] RUN wget https://s3.amazonaws.com/rebar3/rebar3 && chmod +x rebar3 && mv rebar3 ~/.mix 0.6s
------
> [otelcol] importing cache manifest from ghcr.io/open-telemetry/demo:1.4.0-otelcol:
------
------
> [featureflagservice builder 6/25] RUN wget https://s3.amazonaws.com/rebar3/rebar3 && chmod +x rebar3 && mv rebar3 ~/.mix:
0.262 --2023-07-25 09:47:06-- https://s3.amazonaws.com/rebar3/rebar3
0.262 Resolving s3.amazonaws.com (s3.amazonaws.com)... 52.216.214.128, 52.216.248.158, 52.216.62.232, ...
0.312 Connecting to s3.amazonaws.com (s3.amazonaws.com)|52.216.214.128|:443... connected.
0.550 GnuTLS: Error in the pull function.
0.551 Unable to establish SSL connection.
------
failed to solve: process "/bin/sh -c wget https://s3.amazonaws.com/rebar3/rebar3 && chmod +x rebar3 && mv rebar3 ~/.mix" did not complete successfully: exit code: 4
If you have docker in your mac, are you able to build the demo locally? If yes, the issue is with this vmware and Ubuntu setup, not sure how to help there.
Due to poor docker performance in macos, so I am not install docker. I have a powerful server in lab, but that is offline... could we install demo by offline?
That would work, but you would need to pull or build all the images, tar them and import into docker in your offline host. Looks like a lot of effort tbh.
We have users simply using Docker for Desktop in Mac, and that works for them.
Hello, have the same issue on a AWS EC2 instance where I've installed Docker and I have tried to start the demo with the following error
Running 1/1
! otelcol Warning 0.8s
Building 1.4s (17/20)
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 32B 0.0s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 35B 0.0s
=> [internal] load metadata for docker.io/library/alpine:latest 0.5s
=> [internal] load metadata for docker.io/library/golang:latest 0.5s
=> [internal] load metadata for docker.io/library/alpine:3.16 0.5s
=> ERROR importing cache manifest from ghcr.io/open-telemetry/demo:1.4.0-otelcol 0.2s
=> [stage-2 1/4] FROM docker.io/library/alpine@sha256:82d1e9d7ed48a7523bdebc18cf6290bdb97b82302a8a9c27d4fe885949ea94d1 0.0s
=> [internal] load build context 0.0s
=> => transferring context: 294B 0.0s
=> [certs 1/2] FROM docker.io/library/alpine:3.16@sha256:cbe5d5973103a2d03408d1689a6efde4ea4920bde9f4b51fe7872e60ce2d8e56 0.0s
=> [build 1/7] FROM docker.io/library/golang:latest@sha256:010a0ffe47398a3646993df44906c065c526eabf309d01fb0cbc9a5696024a60 0.0s
=> CACHED [certs 2/2] RUN apk --update add ca-certificates 0.0s
=> CACHED [stage-2 2/4] COPY --from=certs /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt 0.0s
=> CACHED [build 2/7] RUN curl -L -o /builder https://github.com/open-telemetry/opentelemetry-collector/releases/download/cmd%2Fbuilder%2Fv0.8 0.0s
=> CACHED [build 3/7] RUN chmod +x /builder 0.0s
=> CACHED [build 4/7] WORKDIR /build 0.0s
=> CACHED [build 5/7] COPY ./src/otelcollector/manifest.yml ./ 0.0s
=> ERROR [build 6/7] RUN /builder --config ./manifest.yml --output-path /build/_build 0.6s
importing cache manifest from ghcr.io/open-telemetry/demo:1.4.0-otelcol:
[build 6/7] RUN /builder --config ./manifest.yml --output-path /build/_build:
0 0.448 /bin/sh: 1: /builder: Exec format error
failed to solve: executor failed running [/bin/sh -c /builder --config ./manifest.yml --output-path /build/_build]: exit code: 126
I also tried to pull the image:
docker pull ghcr.io/open-telemetry/demo:1.4.0-otelcol
Error response from daemon: manifest unknown
Have you found a solution?
Thanks, Leonardo
@leonardo3791 could you try:
docker compose build otelcol --no-cache
@leonardo3791 is this still an issue with the latest release?
Closing this as part of issue cleanup. If there's anything that needs to be done, please create a new issue.
Experience the same problem, Docker version 24.0.6, build ed223bc
Question
My laptop is MBP M1 Pro, and installed vmware arm64 version. Then install ubuntu 22.04.2 TLS arm version in vmware. Then I git clone the demo and docker-compose up build in ubuntu vm, have follow alarm, need your kindly help...
Thanks Frank