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

SkyApm.Transport.Grpc.V8.ServiceRegister : Report service instance properties fail. #571

Open
laiys opened this issue Dec 8, 2023 · 1 comment

Comments

@laiys
Copy link

laiys commented Dec 8, 2023

运行项目日志报错

  • 环境:环境docker, skywalking 9.3
    `version: '3.8'
    services:
    elasticsearch:
    image: elasticsearch:7.12.1
    container_name: skywalking-elasticsearch
    restart: always
    ports:
    - "9200:9200"
    - "9300:9300"
    healthcheck:
    test: [ "CMD-SHELL", "curl --silent --fail localhost:9200/_cluster/health || exit 1" ]
    interval: 30s
    timeout: 10s
    retries: 3
    start_period: 10s
    environment:
    - http.cors.enabled=true
    - http.cors.allow-origin=*
    - discovery.type=single-node
    - bootstrap.memory_lock=true
    - TZ=Asia/Shanghai
    - ES_JAVA_OPTS=-Xms512m -Xmx512m
    ulimits:
    memlock:
    soft: -1
    hard: -1

    oap:
    image: apache/skywalking-oap-server:9.3.0
    container_name: skywalking-oap
    restart: always
    depends_on:
    elasticsearch:
    condition: service_healthy
    links:
    - elasticsearch
    ports:
    - "11800:11800"
    - "12800:12800"
    healthcheck:
    test: [ "CMD-SHELL", "/skywalking/bin/swctl ch" ]
    interval: 30s
    timeout: 10s
    retries: 3
    start_period: 10s
    environment:
    SW_STORAGE: elasticsearch
    SW_STORAGE_ES_CLUSTER_NODES: elasticsearch:9200
    SW_HEALTH_CHECKER: default
    SW_TELEMETRY: prometheus
    TZ: Asia/Shanghai
    JAVA_OPTS: "-Xms2048m -Xmx2048m"
    ui:
    image: apache/skywalking-ui:9.3.0
    container_name: skywalking-ui
    restart: always
    depends_on:
    oap:
    condition: service_healthy
    links:
    - oap
    ports:
    - "8088:8080"
    environment:
    SW_OAP_ADDRESS: http://oap:12800
    TZ: Asia/Shanghai`

  • 项目:SkyApm.Sample.Logging

  • log文件存现错误信息:
    2023-12-08 09:47:33.633 +08:00 [asp-net-core-backend-logging] [Error] SkyApm.Transport.Grpc.V8.ServiceRegister : Report service instance properties fail. Grpc.Core.RpcException: Status(StatusCode="Internal", Detail="Error starting gRPC call. HttpRequestException: Requesting HTTP version 2.0 with version policy RequestVersionOrHigher while unable to establish HTTP/2 connection.", DebugException="System.Net.Http.HttpRequestException: Requesting HTTP version 2.0 with version policy RequestVersionOrHigher while unable to establish HTTP/2 connection. at System.Net.Http.HttpConnectionPool.ThrowGetVersionException(HttpRequestMessage request, Int32 desiredVersion, Exception inner) at System.Net.Http.HttpConnectionPool.SendWithVersionDetectionAndRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken) at System.Net.Http.DiagnosticsHandler.SendAsyncCore(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken) at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken) at Grpc.Net.Client.Balancer.Internal.BalancerHttpHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken) at System.Net.Http.HttpMessageInvoker.<SendAsync>g__SendAsyncWithTelemetry|6_0(HttpMessageHandler handler, HttpRequestMessage request, CancellationToken cancellationToken) at Grpc.Net.Client.Internal.GrpcCall2.RunCall(HttpRequestMessage request, Nullable1 timeout)") at SkyApm.Transport.Grpc.V8.ServiceRegister.<>c__DisplayClass9_0.<<ReportInstancePropertiesAsync>b__0>d.MoveNext() in F:\work\SkyAPM-dotnet\src\SkyApm.Transport.Grpc\V8\ServiceRegister.cs:line 80 --- End of stack trace from previous location --- at SkyApm.Transport.Grpc.Common.Call.Execute[T](Func1 task, Func1 errCallback, Func1 errMessage) in F:\work\SkyAPM-dotnet\src\SkyApm.Transport.Grpc\Common\Call.cs:line 53
    2023-12-08 09:47:33.633 +08:00 [asp-net-core-backend-logging] [Warning] SkyApm.Transport.Grpc.ConnectionManager : Connection state changed. Status(StatusCode="Internal", Detail="Error starting gRPC call. HttpRequestException: Requesting HTTP version 2.0 with version policy RequestVersionOrHigher while unable to establish HTTP/2 connection.", DebugException="System.Net.Http.HttpRequestException: Requesting HTTP version 2.0 with version policy RequestVersionOrHigher while unable to establish HTTP/2 connection.
    at System.Net.Http.HttpConnectionPool.ThrowGetVersionException(HttpRequestMessage request, Int32 desiredVersion, Exception inner)
    at System.Net.Http.HttpConnectionPool.SendWithVersionDetectionAndRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken)
    at System.Net.Http.DiagnosticsHandler.SendAsyncCore(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
    at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
    at Grpc.Net.Client.Balancer.Internal.BalancerHttpHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
    at System.Net.Http.HttpMessageInvoker.g__SendAsyncWithTelemetry|6_0(HttpMessageHandler handler, HttpRequestMessage request, CancellationToken cancellationToken)
    at Grpc.Net.Client.Internal.GrpcCall2.RunCall(HttpRequestMessage request, Nullable1 timeout)")`


@goodsxx
Copy link

goodsxx commented Jan 15, 2024

同问

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

2 participants