opentelemetry-cpp-contrib icon indicating copy to clipboard operation
opentelemetry-cpp-contrib copied to clipboard

Failed to run the demo

Open luozenglin opened this issue 3 years ago • 1 comments

Describe your environment macOS v11.2.3 M1 docker-compose v1.29.2

Steps to reproduce

git config --global http.sslverify false
git clone [email protected]:open-telemetry/opentelemetry-collector-contrib.git; \
    cd opentelemetry-collector-contrib/examples/demo; \
    docker-compose up -d

What is the expected behavior? What did you expect to see?

What is the actual behavior?

Building demo-server
[+] Building 94.5s (9/9) FINISHED
 => [internal] load build definition from Dockerfile                                                                                                                                                   0.0s
 => => transferring dockerfile: 37B                                                                                                                                                                    0.0s
 => [internal] load .dockerignore                                                                                                                                                                      0.0s
 => => transferring context: 2B                                                                                                                                                                        0.0s
 => [internal] load metadata for docker.io/library/golang:1.17                                                                                                                                         3.0s
 => [build 1/4] FROM docker.io/library/golang:1.17@sha256:e4d220556e80a686fad8874b40ccfa2f3172dfe5c6ca7f36f8ee79d594a9c959                                                                             0.0s
 => [internal] load build context                                                                                                                                                                      0.0s
 => => transferring context: 139B                                                                                                                                                                      0.0s
 => CACHED [2/5] COPY . /usr/src/server/                                                                                                                                                               0.0s
 => CACHED [3/5] WORKDIR /usr/src/server/                                                                                                                                                              0.0s
 => CACHED [4/5] RUN go env -w GOPROXY=direct                                                                                                                                                          0.0s
 => ERROR [5/5] RUN go install ./main.go                                                                                                                                                              91.5s
------
 > [5/5] RUN go install ./main.go:
#9 0.165 go: downloading go.opentelemetry.io/otel v1.7.0
#9 0.165 go: downloading go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.32.0
#9 0.506 go: downloading go.opentelemetry.io/otel/exporters/otlp/otlpmetric v0.30.0
#9 0.506 go: downloading go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc v0.30.0
#9 0.506 go: downloading go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.7.0
#9 0.794 go: downloading go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.7.0
#9 0.795 go: downloading go.opentelemetry.io/otel/metric v0.30.0
#9 0.865 go: downloading go.opentelemetry.io/otel/sdk/metric v0.30.0
#9 1.028 go: downloading go.opentelemetry.io/otel/sdk v1.7.0
#9 1.085 go: downloading go.opentelemetry.io/otel/trace v1.7.0
#9 1.099 go: downloading google.golang.org/grpc v1.47.0
#9 91.49 main.go:27:2: reading go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp/instrumentation/net/http/otelhttp/go.mod at revision instrumentation/net/http/otelhttp/v0.32.0: git ls-remote -q origin in /go/pkg/mod/cache/vcs/9cecf883a7c225e0fabecc9dfebcdef6bf71cee25d961ba30788c8b1c3aaf6c4: exit status 128:
#9 91.49 	fatal: unable to access 'https://github.com/open-telemetry/opentelemetry-go-contrib/': server certificate verification failed. CAfile: none CRLfile: none
#9 91.49 main.go:28:2: reading go.opentelemetry.io/otel/go.mod at revision v1.7.0: git ls-remote -q origin in /go/pkg/mod/cache/vcs/120ed83a5398471fd96078bf9b08dae227790644165deaa562918513d1c8be34: exit status 128:
#9 91.49 	fatal: unable to access 'https://github.com/open-telemetry/opentelemetry-go/': server certificate verification failed. CAfile: none CRLfile: none
#9 91.49 main.go:29:2: reading go.opentelemetry.io/otel/go.mod at revision v1.7.0: git ls-remote -q origin in /go/pkg/mod/cache/vcs/120ed83a5398471fd96078bf9b08dae227790644165deaa562918513d1c8be34: exit status 128:
#9 91.49 	fatal: unable to access 'https://github.com/open-telemetry/opentelemetry-go/': server certificate verification failed. CAfile: none CRLfile: none
#9 91.49 main.go:30:2: reading go.opentelemetry.io/otel/go.mod at revision v1.7.0: git ls-remote -q origin in /go/pkg/mod/cache/vcs/120ed83a5398471fd96078bf9b08dae227790644165deaa562918513d1c8be34: exit status 128:
#9 91.49 	fatal: unable to access 'https://github.com/open-telemetry/opentelemetry-go/': server certificate verification failed. CAfile: none CRLfile: none
#9 91.49 main.go:31:2: reading go.opentelemetry.io/otel/exporters/otlp/otlpmetric/exporters/otlp/otlpmetric/go.mod at revision exporters/otlp/otlpmetric/v0.30.0: git ls-remote -q origin in /go/pkg/mod/cache/vcs/120ed83a5398471fd96078bf9b08dae227790644165deaa562918513d1c8be34: exit status 128:
#9 91.49 	fatal: unable to access 'https://github.com/open-telemetry/opentelemetry-go/': server certificate verification failed. CAfile: none CRLfile: none
#9 91.49 main.go:32:2: reading go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc/exporters/otlp/otlpmetric/otlpmetricgrpc/go.mod at revision exporters/otlp/otlpmetric/otlpmetricgrpc/v0.30.0: git ls-remote -q origin in /go/pkg/mod/cache/vcs/120ed83a5398471fd96078bf9b08dae227790644165deaa562918513d1c8be34: exit status 128:
#9 91.49 	fatal: unable to access 'https://github.com/open-telemetry/opentelemetry-go/': server certificate verification failed. CAfile: none CRLfile: none
#9 91.49 main.go:33:2: reading go.opentelemetry.io/otel/exporters/otlp/otlptrace/exporters/otlp/otlptrace/go.mod at revision exporters/otlp/otlptrace/v1.7.0: git ls-remote -q origin in /go/pkg/mod/cache/vcs/120ed83a5398471fd96078bf9b08dae227790644165deaa562918513d1c8be34: exit status 128:
#9 91.49 	fatal: unable to access 'https://github.com/open-telemetry/opentelemetry-go/': server certificate verification failed. CAfile: none CRLfile: none
#9 91.49 main.go:34:2: reading go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc/exporters/otlp/otlptrace/otlptracegrpc/go.mod at revision exporters/otlp/otlptrace/otlptracegrpc/v1.7.0: git ls-remote -q origin in /go/pkg/mod/cache/vcs/120ed83a5398471fd96078bf9b08dae227790644165deaa562918513d1c8be34: exit status 128:
#9 91.49 	fatal: unable to access 'https://github.com/open-telemetry/opentelemetry-go/': server certificate verification failed. CAfile: none CRLfile: none
#9 91.49 main.go:35:2: reading go.opentelemetry.io/otel/metric/metric/go.mod at revision metric/v0.30.0: git ls-remote -q origin in /go/pkg/mod/cache/vcs/120ed83a5398471fd96078bf9b08dae227790644165deaa562918513d1c8be34: exit status 128:
#9 91.49 	fatal: unable to access 'https://github.com/open-telemetry/opentelemetry-go/': server certificate verification failed. CAfile: none CRLfile: none
#9 91.49 main.go:36:2: reading go.opentelemetry.io/otel/metric/metric/go.mod at revision metric/v0.30.0: git ls-remote -q origin in /go/pkg/mod/cache/vcs/120ed83a5398471fd96078bf9b08dae227790644165deaa562918513d1c8be34: exit status 128:
#9 91.49 	fatal: unable to access 'https://github.com/open-telemetry/opentelemetry-go/': server certificate verification failed. CAfile: none CRLfile: none
#9 91.49 main.go:37:2: reading go.opentelemetry.io/otel/go.mod at revision v1.7.0: git ls-remote -q origin in /go/pkg/mod/cache/vcs/120ed83a5398471fd96078bf9b08dae227790644165deaa562918513d1c8be34: exit status 128:
#9 91.49 	fatal: unable to access 'https://github.com/open-telemetry/opentelemetry-go/': server certificate verification failed. CAfile: none CRLfile: none
#9 91.49 main.go:38:2: reading go.opentelemetry.io/otel/sdk/metric/sdk/metric/go.mod at revision sdk/metric/v0.30.0: git ls-remote -q origin in /go/pkg/mod/cache/vcs/120ed83a5398471fd96078bf9b08dae227790644165deaa562918513d1c8be34: exit status 128:
#9 91.49 	fatal: unable to access 'https://github.com/open-telemetry/opentelemetry-go/': server certificate verification failed. CAfile: none CRLfile: none
#9 91.49 main.go:39:2: reading go.opentelemetry.io/otel/sdk/metric/sdk/metric/go.mod at revision sdk/metric/v0.30.0: git ls-remote -q origin in /go/pkg/mod/cache/vcs/120ed83a5398471fd96078bf9b08dae227790644165deaa562918513d1c8be34: exit status 128:
#9 91.49 	fatal: unable to access 'https://github.com/open-telemetry/opentelemetry-go/': server certificate verification failed. CAfile: none CRLfile: none
#9 91.49 main.go:40:2: reading go.opentelemetry.io/otel/sdk/metric/sdk/metric/go.mod at revision sdk/metric/v0.30.0: git ls-remote -q origin in /go/pkg/mod/cache/vcs/120ed83a5398471fd96078bf9b08dae227790644165deaa562918513d1c8be34: exit status 128:
#9 91.49 	fatal: unable to access 'https://github.com/open-telemetry/opentelemetry-go/': server certificate verification failed. CAfile: none CRLfile: none
#9 91.49 main.go:41:2: reading go.opentelemetry.io/otel/sdk/sdk/go.mod at revision sdk/v1.7.0: git ls-remote -q origin in /go/pkg/mod/cache/vcs/120ed83a5398471fd96078bf9b08dae227790644165deaa562918513d1c8be34: exit status 128:
#9 91.49 	fatal: unable to access 'https://github.com/open-telemetry/opentelemetry-go/': server certificate verification failed. CAfile: none CRLfile: none
#9 91.49 main.go:42:2: reading go.opentelemetry.io/otel/sdk/sdk/go.mod at revision sdk/v1.7.0: git ls-remote -q origin in /go/pkg/mod/cache/vcs/120ed83a5398471fd96078bf9b08dae227790644165deaa562918513d1c8be34: exit status 128:
#9 91.49 	fatal: unable to access 'https://github.com/open-telemetry/opentelemetry-go/': server certificate verification failed. CAfile: none CRLfile: none
#9 91.49 main.go:43:2: reading go.opentelemetry.io/otel/go.mod at revision v1.7.0: git ls-remote -q origin in /go/pkg/mod/cache/vcs/120ed83a5398471fd96078bf9b08dae227790644165deaa562918513d1c8be34: exit status 128:
#9 91.49 	fatal: unable to access 'https://github.com/open-telemetry/opentelemetry-go/': server certificate verification failed. CAfile: none CRLfile: none
#9 91.49 main.go:44:2: reading go.opentelemetry.io/otel/trace/trace/go.mod at revision trace/v1.7.0: git ls-remote -q origin in /go/pkg/mod/cache/vcs/120ed83a5398471fd96078bf9b08dae227790644165deaa562918513d1c8be34: exit status 128:
#9 91.49 	fatal: unable to access 'https://github.com/open-telemetry/opentelemetry-go/': server certificate verification failed. CAfile: none CRLfile: none
#9 91.49 main.go:45:2: unrecognized import path "google.golang.org/grpc": https fetch: Get "https://google.golang.org/grpc?go-get=1": dial tcp 142.251.42.241:443: i/o timeout
------
executor failed running [/bin/sh -c go install ./main.go]: exit code: 1
ERROR: Service 'demo-server' failed to build : Build failed

Additional context Add any other context about the problem here.

luozenglin avatar Jul 01 '22 06:07 luozenglin

I think you need to raise this issue on "opentelemetry-collector-contrib" instead of "opentelemetry-cpp-contrib"?

DebajitDas avatar Jul 04 '22 11:07 DebajitDas