open-telemetry / open-telemetry/opentelemetry-cpp-contrib

Failed to run the demo

Open
#184 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Python
Stars
153
Forks
184
Avg merge
2d 9h
Merged PRs (30d)
26

Description

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

Steps to reproduce

git config --global http.sslverify false
git clone git@github.com: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.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in examples/demo by running the reported docker-compose up -d command and inspect the demo Dockerfile and main.go dependency installation step. Investigate the certificate-verification and network errors shown during the image build; done means the demo-server image builds and the demo starts successfully in the reported environment.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, docker-compose, go
Domain
build-system, devops
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.