Skip to content

gRPC with TLS and authentication - missing selected ALPN property #108

@martinmorch-rsyd

Description

@martinmorch-rsyd

Is your question related to a specific component?

victoriametrics/victoria-traces:v0.7.1
opentelemetry-collector-contrib:0.145.0

Describe the question in detail

First off, apologies in advance, I'm somewhat new to VictoriaTraces and Opentelemetry Collector.

When trying to set up Opentelemetry Collector exporters towards VictoriaTraces gRPC with TLS, the collector throws this error:

2026-02-18T06:28:28.844Z info internal/retry_sender.go:133 Exporting failed. Will retry the request after interval. {"resource": {"service.instance.id": "4720fee1-4b03-4e35-8529-695f5dea8093", "service.name": "otelcol-contrib", "service.version": "0.145.0"}, "otelcol.component.id": "otlp/vt_grpc_0", "otelcol.component.kind": "exporter", "otelcol.signal": "traces", "error": "rpc error: code = Unavailable desc = connection error: desc = \"transport: authentication handshake failed: credentials: cannot check peer: missing selected ALPN property. If you upgraded from a grpc-go version earlier than 1.67, your TLS connections may have stopped working due to ALPN enforcement. For more details, see: https://github.com/grpc/grpc-go/issues/434\"", "interval": "7.111375977s"}

When I test the gRPC port on VT with:
echo QUIT | openssl s_client -connect 10.162.131.63:20192 -alpn h2

I get:
"No ALPN negotiated"

Through searching, the error indicates that the gRPC service collector is trying to communicate with, doesn't support gRPC HTTP/2, where the collector requires H2 ALPN support.

Is this correct with regards to VictoriaTraces, or am I doing something horribly incorrect?

Thanks in advance!

Key concepts docs

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingvtinsert

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions