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

jaeger-all-in-one running from docker-compose.yaml file cannot exec binary #6

Open
ArQcane opened this issue Oct 11, 2023 · 1 comment

Comments

@ArQcane
Copy link

ArQcane commented Oct 11, 2023

{"level":"fatal","ts":1696996008.1216166,"caller":"./main.go:110","msg":"Failed to init storage factory","error":"grpc-plugin builder failed to create a store: error attempting to connect to plugin rpc client: fork/exec /etc/cmd/jaeger-pg-store: exec format error","stacktrace":"main.main.func1\n\t./main.go:110\ngithub.com/spf13/cobra.(*Command).execute\n\tgithub.com/spf13/cobra@v1.7.0/command.go:940\ngithub.com/spf13/cobra.(*Command).ExecuteC\n\tgithub.com/spf13/cobra@v1.7.0/command.go:1068\ngithub.com/spf13/cobra.(*Command).Execute\n\tgithub.com/spf13/cobra@v1.7.0/command.go:992\nmain.main\n\t./main.go:243\nruntime.main\n\truntime/proc.go:267"}

This is the error i keep getting after running docker-compose up.

docker-compose.yaml:
`version: "3"
services:

Jaeger

jaeger-all-in-one:
image: jaegertracing/all-in-one:latest
ports:
- "16686:16686"
- "14268"
- "14250"
environment:
- SPAN_STORAGE_TYPE=grpc-plugin
- COLLECTOR_OTLP_ENABLED=true
volumes:
- ./jaeger-pg-store:/etc/cmd/jaeger-pg-store
- ./collector-gateway.yaml:/etc/collector-gateway.yaml
command: ["--grpc-storage-plugin.binary=/etc/cmd/jaeger-pg-store", "--grpc-storage-plugin.configuration-file=/etc/collector-gateway.yaml"]

Collector

collector-gateway:
image: otel/opentelemetry-collector-contrib:0.53.0
volumes:
- ./collector-gateway.yaml:/etc/collector-gateway.yaml
- ./jaeger-pg-store:/etc/cmd
command: [ "--config=/etc/collector-gateway.yaml"]
ports:
- "1888:1888" # pprof extension
- "13133:13133" # health_check extension
- "4317:4317" # OTLP gRPC receiver
- "4318:4318" # OTLP HTTP receiver
- "55670:55679" # zpages extension
depends_on:
- jaeger-all-in-one
links:
- jaeger-all-in-one`

@ArQcane
Copy link
Author

ArQcane commented Oct 11, 2023

I have also tried building the plugin with CGO_ENABLED=0 GOARCH=amd64 GOOS=darwin go build ./cmd/jaeger-pg-store/ since im on a mac. New to Golang in general.

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

1 participant