dapr / dapr

Dapr is a portable, event-driven, runtime for building distributed applications across cloud and edge.
https://dapr.io
Apache License 2.0
23.97k stars 1.9k forks source link

Dapr sidecars don't see each other when they are defined in multiple docker-compose files #4627

Open itsoli91 opened 2 years ago

itsoli91 commented 2 years ago

In what area(s)?

/area runtime

What version of Dapr?

1.7.1

Expected Behavior

I have multiple docker-compose for multiple solution in visual studio. All these docker-compose are in a same network by configuration. When I use service invocation I get a 500 Server Error from service sidecar but when I call the service directly it's ok and working. I put configuration below with logs.

My always running docker-compose

version: '3.8'

services:

  rabbitmq:
    image: rabbitmq:3-management-alpine
    container_name: rabbitmq
    restart: always
    ports:
        - "15672:15672"
    networks:
      - ftc_dev_network

  placement:
    image: daprio/dapr
    restart: always
    container_name: placement
    command: ["./placement", "-port", "50006"]
    ports:
      - "50006:50006"
    networks:
      - ftc_dev_network

  redis:
    container_name: redis
    restart: always
    image: redis:alpine
    ports:
      - "6379:6379"
    networks:
      - ftc_dev_network     
  zipkin:
    image: openzipkin/zipkin
    restart: always
    container_name: zipkin
    ports:
      - "9411:9411"
    networks:
      - ftc_dev_network

networks:
  ftc_dev_network:
    name: ftc_dev_network

volumes:
  redis-data:
  postgres-data:

Service A

version: '3.8'

services:
  sampleapp-service:
    container_name: sampleapp-service
    image: ${DOCKER_REGISTRY-}sampleappapi
    build:
      context: .
      dockerfile: sample-app/src/SampleApp.API/Dockerfile
    environment:
      - ASPNETCORE_ENVIRONMENT=Development
    ports:
      - "1601:80"
    networks:
      - ftc_dev_network

  sampleapp-service-dapr:
    image: "daprio/daprd:1.7.1"
    container_name: sampleapp-service-dapr
    depends_on:
      - sampleapp-service
    restart: always
    command: ["./daprd",
      "-app-id", "sampleapp-service",
      "-app-port", "80",
      "-log-level", "debug",
      "-placement-host-address", "placement:50006",
      "-components-path", "/components",
      "-config","/configuration/config.yaml"]
    network_mode: "service:sampleapp-service"
    volumes:
      - "./dapr/components/:/components"
      - "./dapr/configuration/:/configuration"
networks:
  ftc_dev_network:
    external: true

Service B:

version: '3.8'

services:

  identity-access-management-service:
    container_name: identity-access-management-service
    image: ${DOCKER_REGISTRY-}ftciamapi
    build:
      context: .
      dockerfile: src/Ftc.Iam.Api/Dockerfile
    environment:
      - ASPNETCORE_ENVIRONMENT=Development
    ports:
      - "1600:80"
    networks:
      - ftc_dev_network

  identity-access-management-service-dapr:
    image: "daprio/daprd:1.7.1"
    container_name: identity-access-management-service-dapr
    depends_on:
      - identity-access-management-service
    restart: always
    command: ["./daprd",
      "-app-id", "identity-access-management-service",
      "-app-port", "80",
      "-log-level", "debug",
      "-placement-host-address", "placement:50006",
      "-components-path", "/components",
      "-config","/configuration/config.yaml"]
    network_mode: "service:identity-access-management-service"
    volumes:
      - "./dapr/components/:/components"
      - "./dapr/configuration/:/configuration"
networks:
  ftc_dev_network:
    external: true

The way that I call other service using dapr. When I change this code with a simple HttpClient it works!

        var request = daprClient.CreateInvokeMethodRequest(
            HttpMethod.Post,
            identitySettings.DaprAppName,
            $"{identitySettings.BaseServicesUrl}/CreateOrUpdate",
            new
            {
                Name = appSettings.ServiceName,
                DisplayName = appSettings.ServiceName,
                Description = appSettings.ServiceName,
                Permissions = identitySettings.RbacSettings.Permissions.ToList(),
            });

        await daprClient.InvokeMethodAsync(request);

Service A sidecar logs:

time="2022-05-18T09:22:30.951810054Z" level=info msg="starting Dapr Runtime -- version 1.7.1 -- commit 5fd38aeaaa9cf58f3f00f6f9bfc6c58d8cd82b87" app_id=sampleapp-service instance=c37df0743cf4 scope=dapr.runtime type=log ver=1.7.1
time="2022-05-18T09:22:30.951898598Z" level=info msg="log level set to: debug" app_id=sampleapp-service instance=c37df0743cf4 scope=dapr.runtime type=log ver=1.7.1
time="2022-05-18T09:22:30.952699311Z" level=info msg="metrics server started on :9090/" app_id=sampleapp-service instance=c37df0743cf4 scope=dapr.metrics type=log ver=1.7.1
time="2022-05-18T09:22:30.960062977Z" level=debug msg="Resiliency is not enabled." app_id=sampleapp-service instance=c37df0743cf4 scope=dapr.runtime type=log ver=1.7.1
time="2022-05-18T09:22:30.960173207Z" level=info msg="standalone mode configured" app_id=sampleapp-service instance=c37df0743cf4 scope=dapr.runtime type=log ver=1.7.1
time="2022-05-18T09:22:30.960366605Z" level=info msg="app id: sampleapp-service" app_id=sampleapp-service instance=c37df0743cf4 scope=dapr.runtime type=log ver=1.7.1
time="2022-05-18T09:22:30.96113021Z" level=info msg="mTLS is disabled. Skipping certificate request and tls validation" app_id=sampleapp-service instance=c37df0743cf4 scope=dapr.runtime type=log ver=1.7.1
time="2022-05-18T09:22:30.962837679Z" level=info msg="local service entry announced: sampleapp-service -> 172.20.0.9:46437" app_id=sampleapp-service instance=c37df0743cf4 scope=dapr.contrib type=log ver=1.7.1
time="2022-05-18T09:22:30.962876923Z" level=info msg="Initialized name resolution to mdns" app_id=sampleapp-service instance=c37df0743cf4 scope=dapr.runtime type=log ver=1.7.1
time="2022-05-18T09:22:30.963013985Z" level=info msg="loading components" app_id=sampleapp-service instance=c37df0743cf4 scope=dapr.runtime type=log ver=1.7.1
time="2022-05-18T09:22:30.975965669Z" level=debug msg="found component. name: ftc-internal-pubsub, type: pubsub.rabbitmq/v1" app_id=sampleapp-service instance=c37df0743cf4 scope=dapr.runtime type=log ver=1.7.1
time="2022-05-18T09:22:30.976034332Z" level=debug msg="found component. name: statestore, type: state.redis/v1" app_id=sampleapp-service instance=c37df0743cf4 scope=dapr.runtime type=log ver=1.7.1
time="2022-05-18T09:22:30.976175045Z" level=debug msg="loading component. name: ftc-internal-pubsub, type: pubsub.rabbitmq/v1" app_id=sampleapp-service instance=c37df0743cf4 scope=dapr.runtime type=log ver=1.7.1
time="2022-05-18T09:22:30.976527529Z" level=info msg="rabbitmq pub/sub: connectionCount: current=0 reference=0" app_id=sampleapp-service instance=c37df0743cf4 scope=dapr.contrib type=log ver=1.7.1
time="2022-05-18T09:22:30.984635865Z" level=info msg="rabbitmq pub/sub: connected with connectionCount=1" app_id=sampleapp-service instance=c37df0743cf4 scope=dapr.contrib type=log ver=1.7.1
time="2022-05-18T09:22:30.984780814Z" level=info msg="component loaded. name: ftc-internal-pubsub, type: pubsub.rabbitmq/v1" app_id=sampleapp-service instance=c37df0743cf4 scope=dapr.runtime type=log ver=1.7.1
time="2022-05-18T09:22:30.984816018Z" level=debug msg="loading component. name: statestore, type: state.redis/v1" app_id=sampleapp-service instance=c37df0743cf4 scope=dapr.runtime type=log ver=1.7.1
time="2022-05-18T09:22:30.985228551Z" level=info msg="waiting for all outstanding components to be processed" app_id=sampleapp-service instance=c37df0743cf4 scope=dapr.runtime type=log ver=1.7.1
time="2022-05-18T09:22:30.986046967Z" level=info msg="detected actor state store: statestore" app_id=sampleapp-service instance=c37df0743cf4 scope=dapr.runtime type=log ver=1.7.1
time="2022-05-18T09:22:30.986111305Z" level=info msg="component loaded. name: statestore, type: state.redis/v1" app_id=sampleapp-service instance=c37df0743cf4 scope=dapr.runtime type=log ver=1.7.1
time="2022-05-18T09:22:30.986166276Z" level=info msg="all outstanding components processed" app_id=sampleapp-service instance=c37df0743cf4 scope=dapr.runtime type=log ver=1.7.1
time="2022-05-18T09:22:30.986222601Z" level=info msg="gRPC proxy enabled" app_id=sampleapp-service instance=c37df0743cf4 scope=dapr.runtime type=log ver=1.7.1
time="2022-05-18T09:22:30.986465958Z" level=info msg="enabled gRPC tracing middleware" app_id=sampleapp-service instance=c37df0743cf4 scope=dapr.runtime.grpc.api type=log ver=1.7.1
time="2022-05-18T09:22:30.986523393Z" level=info msg="enabled gRPC metrics middleware" app_id=sampleapp-service instance=c37df0743cf4 scope=dapr.runtime.grpc.api type=log ver=1.7.1
time="2022-05-18T09:22:30.986785682Z" level=info msg="API gRPC server is running on port 50001" app_id=sampleapp-service instance=c37df0743cf4 scope=dapr.runtime type=log ver=1.7.1
time="2022-05-18T09:22:30.987269286Z" level=info msg="enabled metrics http middleware" app_id=sampleapp-service instance=c37df0743cf4 scope=dapr.runtime.http type=log ver=1.7.1
time="2022-05-18T09:22:30.987316265Z" level=info msg="enabled tracing http middleware" app_id=sampleapp-service instance=c37df0743cf4 scope=dapr.runtime.http type=log ver=1.7.1
time="2022-05-18T09:22:30.987437021Z" level=info msg="http server is running on port 3500" app_id=sampleapp-service instance=c37df0743cf4 scope=dapr.runtime type=log ver=1.7.1
time="2022-05-18T09:22:30.987486785Z" level=info msg="The request body size parameter is: 4" app_id=sampleapp-service instance=c37df0743cf4 scope=dapr.runtime type=log ver=1.7.1
time="2022-05-18T09:22:30.987569106Z" level=info msg="enabled gRPC tracing middleware" app_id=sampleapp-service instance=c37df0743cf4 scope=dapr.runtime.grpc.internal type=log ver=1.7.1
time="2022-05-18T09:22:30.987613378Z" level=info msg="enabled gRPC metrics middleware" app_id=sampleapp-service instance=c37df0743cf4 scope=dapr.runtime.grpc.internal type=log ver=1.7.1
time="2022-05-18T09:22:30.987853079Z" level=info msg="internal gRPC server is running on port 46437" app_id=sampleapp-service instance=c37df0743cf4 scope=dapr.runtime type=log ver=1.7.1
time="2022-05-18T09:22:30.987888912Z" level=info msg="application protocol: http. waiting on port 80.  This will block until the app is listening on that port." app_id=sampleapp-service instance=c37df0743cf4 scope=dapr.runtime type=log ver=1.7.1
time="2022-05-18T09:23:00.961494079Z" level=debug msg="Refreshing all mDNS addresses." app_id=sampleapp-service instance=c37df0743cf4 scope=dapr.contrib type=log ver=1.7.1
time="2022-05-18T09:23:00.961586Z" level=debug msg="no mDNS apps to refresh." app_id=sampleapp-service instance=c37df0743cf4 scope=dapr.contrib type=log ver=1.7.1
time="2022-05-18T09:23:30.963295936Z" level=debug msg="Refreshing all mDNS addresses." app_id=sampleapp-service instance=c37df0743cf4 scope=dapr.contrib type=log ver=1.7.1
time="2022-05-18T09:23:30.963549365Z" level=debug msg="no mDNS apps to refresh." app_id=sampleapp-service instance=c37df0743cf4 scope=dapr.contrib type=log ver=1.7.1
time="2022-05-18T09:24:00.964465485Z" level=debug msg="Refreshing all mDNS addresses." app_id=sampleapp-service instance=c37df0743cf4 scope=dapr.contrib type=log ver=1.7.1
time="2022-05-18T09:24:00.964542846Z" level=debug msg="no mDNS apps to refresh." app_id=sampleapp-service instance=c37df0743cf4 scope=dapr.contrib type=log ver=1.7.1
time="2022-05-18T09:24:30.964545844Z" level=debug msg="Refreshing all mDNS addresses." app_id=sampleapp-service instance=c37df0743cf4 scope=dapr.contrib type=log ver=1.7.1
time="2022-05-18T09:24:30.964608359Z" level=debug msg="no mDNS apps to refresh." app_id=sampleapp-service instance=c37df0743cf4 scope=dapr.contrib type=log ver=1.7.1
time="2022-05-18T09:25:00.965475622Z" level=debug msg="Refreshing all mDNS addresses." app_id=sampleapp-service instance=c37df0743cf4 scope=dapr.contrib type=log ver=1.7.1
time="2022-05-18T09:25:00.965545431Z" level=debug msg="no mDNS apps to refresh." app_id=sampleapp-service instance=c37df0743cf4 scope=dapr.contrib type=log ver=1.7.1
time="2022-05-18T09:25:30.966105506Z" level=debug msg="Refreshing all mDNS addresses." app_id=sampleapp-service instance=c37df0743cf4 scope=dapr.contrib type=log ver=1.7.1
time="2022-05-18T09:25:30.966169588Z" level=debug msg="no mDNS apps to refresh." app_id=sampleapp-service instance=c37df0743cf4 scope=dapr.contrib type=log ver=1.7.1
time="2022-05-18T09:26:00.966296115Z" level=debug msg="Refreshing all mDNS addresses." app_id=sampleapp-service instance=c37df0743cf4 scope=dapr.contrib type=log ver=1.7.1
time="2022-05-18T09:26:00.966353374Z" level=debug msg="no mDNS apps to refresh." app_id=sampleapp-service instance=c37df0743cf4 scope=dapr.contrib type=log ver=1.7.1
time="2022-05-18T09:26:30.967863743Z" level=debug msg="Refreshing all mDNS addresses." app_id=sampleapp-service instance=c37df0743cf4 scope=dapr.contrib type=log ver=1.7.1
time="2022-05-18T09:26:30.967961309Z" level=debug msg="no mDNS apps to refresh." app_id=sampleapp-service instance=c37df0743cf4 scope=dapr.contrib type=log ver=1.7.1
time="2022-05-18T09:27:00.968492829Z" level=debug msg="Refreshing all mDNS addresses." app_id=sampleapp-service instance=c37df0743cf4 scope=dapr.contrib type=log ver=1.7.1
time="2022-05-18T09:27:00.968557746Z" level=debug msg="no mDNS apps to refresh." app_id=sampleapp-service instance=c37df0743cf4 scope=dapr.contrib type=log ver=1.7.1

Service A logs:

Exception InvocationException with message An exception occurred while invoking method: 'api/v1.0/Services/CreateOrUpdate' on app-id: 'identity-access-management-service' detected on attempt 1 of 5
Dapr.Client.InvocationException: An exception occurred while invoking method: 'api/v1.0/Services/CreateOrUpdate' on app-id: 'identity-access-management-service'
 ---> System.Net.Http.HttpRequestException: Response status code does not indicate success: 500 (Internal Server Error).
   at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode()
   at Dapr.Client.DaprClientGrpc.InvokeMethodAsync(HttpRequestMessage request, CancellationToken cancellationToken)
   --- End of inner exception stack trace ---
   at Dapr.Client.DaprClientGrpc.InvokeMethodAsync(HttpRequestMessage request, CancellationToken cancellationToken)
   at Ftc.CleanArchitecture.Api.Extensions.WebApplicationExtensions.IdentitySeed(DaprClient daprClient, IConfiguration configuration) in C:\ftc\repos\ftc-clean-architecture\src\Ftc.CleanArchitecture.Api\Extensions\WebApplicationExtensions.cs:line 203
   at Ftc.CleanArchitecture.Api.Extensions.WebApplicationExtensions.<>c__DisplayClass2_0.<<ApplyIdentitySeed>b__0>d.MoveNext() in C:\ftc\repos\ftc-clean-architecture\src\Ftc.CleanArchitecture.Api\Extensions\WebApplicationExtensions.cs:line 146
--- End of stack trace from previous location ---
   at Polly.AsyncPolicy.<>c__DisplayClass40_0.<<ImplementationAsync>b__0>d.MoveNext()
--- End of stack trace from previous location ---
   at Polly.Retry.AsyncRetryEngine.ImplementationAsync[TResult](Func`3 action, Context context, CancellationToken cancellationToken, ExceptionPredicates shouldRetryExceptionPredicates, ResultPredicates`1 shouldRetryResultPredicates, Func`5 onRetryAsync, Int32 permittedRetryCount, IEnumerable`1 sleepDurationsEnumerable, Func`4 sleepDurationProvider, Boolean continueOnCapturedContext)

Service B sidecar logs:

time="2022-05-18T09:19:35.195147035Z" level=info msg="starting Dapr Runtime -- version 1.7.1 -- commit 5fd38aeaaa9cf58f3f00f6f9bfc6c58d8cd82b87" app_id=identity-access-management-service instance=cb2a2de28dda scope=dapr.runtime type=log ver=1.7.1
time="2022-05-18T09:19:35.195220654Z" level=info msg="log level set to: debug" app_id=identity-access-management-service instance=cb2a2de28dda scope=dapr.runtime type=log ver=1.7.1
time="2022-05-18T09:19:35.197126826Z" level=info msg="metrics server started on :9090/" app_id=identity-access-management-service instance=cb2a2de28dda scope=dapr.metrics type=log ver=1.7.1
time="2022-05-18T09:19:35.237726477Z" level=debug msg="Resiliency is not enabled." app_id=identity-access-management-service instance=cb2a2de28dda scope=dapr.runtime type=log ver=1.7.1
time="2022-05-18T09:19:35.237813568Z" level=info msg="standalone mode configured" app_id=identity-access-management-service instance=cb2a2de28dda scope=dapr.runtime type=log ver=1.7.1
time="2022-05-18T09:19:35.237827001Z" level=info msg="app id: identity-access-management-service" app_id=identity-access-management-service instance=cb2a2de28dda scope=dapr.runtime type=log ver=1.7.1
time="2022-05-18T09:19:35.238289885Z" level=info msg="mTLS is disabled. Skipping certificate request and tls validation" app_id=identity-access-management-service instance=cb2a2de28dda scope=dapr.runtime type=log ver=1.7.1
time="2022-05-18T09:19:35.240660163Z" level=info msg="local service entry announced: identity-access-management-service -> 172.20.0.8:37645" app_id=identity-access-management-service instance=cb2a2de28dda scope=dapr.contrib type=log ver=1.7.1
time="2022-05-18T09:19:35.240886475Z" level=info msg="Initialized name resolution to mdns" app_id=identity-access-management-service instance=cb2a2de28dda scope=dapr.runtime type=log ver=1.7.1
time="2022-05-18T09:19:35.241170819Z" level=info msg="loading components" app_id=identity-access-management-service instance=cb2a2de28dda scope=dapr.runtime type=log ver=1.7.1
time="2022-05-18T09:19:35.324136089Z" level=debug msg="found component. name: ftc-internal-pubsub, type: pubsub.rabbitmq/v1" app_id=identity-access-management-service instance=cb2a2de28dda scope=dapr.runtime type=log ver=1.7.1
time="2022-05-18T09:19:35.324234612Z" level=debug msg="found component. name: statestore, type: state.redis/v1" app_id=identity-access-management-service instance=cb2a2de28dda scope=dapr.runtime type=log ver=1.7.1
time="2022-05-18T09:19:35.324320665Z" level=debug msg="loading component. name: ftc-internal-pubsub, type: pubsub.rabbitmq/v1" app_id=identity-access-management-service instance=cb2a2de28dda scope=dapr.runtime type=log ver=1.7.1
time="2022-05-18T09:19:35.324565758Z" level=info msg="rabbitmq pub/sub: connectionCount: current=0 reference=0" app_id=identity-access-management-service instance=cb2a2de28dda scope=dapr.contrib type=log ver=1.7.1
time="2022-05-18T09:19:35.369971983Z" level=info msg="rabbitmq pub/sub: connected with connectionCount=1" app_id=identity-access-management-service instance=cb2a2de28dda scope=dapr.contrib type=log ver=1.7.1
time="2022-05-18T09:19:35.370717671Z" level=info msg="component loaded. name: ftc-internal-pubsub, type: pubsub.rabbitmq/v1" app_id=identity-access-management-service instance=cb2a2de28dda scope=dapr.runtime type=log ver=1.7.1
time="2022-05-18T09:19:35.370814231Z" level=debug msg="loading component. name: statestore, type: state.redis/v1" app_id=identity-access-management-service instance=cb2a2de28dda scope=dapr.runtime type=log ver=1.7.1
time="2022-05-18T09:19:35.371123957Z" level=info msg="waiting for all outstanding components to be processed" app_id=identity-access-management-service instance=cb2a2de28dda scope=dapr.runtime type=log ver=1.7.1
time="2022-05-18T09:19:35.379939621Z" level=info msg="detected actor state store: statestore" app_id=identity-access-management-service instance=cb2a2de28dda scope=dapr.runtime type=log ver=1.7.1
time="2022-05-18T09:19:35.380014487Z" level=info msg="component loaded. name: statestore, type: state.redis/v1" app_id=identity-access-management-service instance=cb2a2de28dda scope=dapr.runtime type=log ver=1.7.1
time="2022-05-18T09:19:35.380045085Z" level=info msg="all outstanding components processed" app_id=identity-access-management-service instance=cb2a2de28dda scope=dapr.runtime type=log ver=1.7.1
time="2022-05-18T09:19:35.38007106Z" level=info msg="gRPC proxy enabled" app_id=identity-access-management-service instance=cb2a2de28dda scope=dapr.runtime type=log ver=1.7.1
time="2022-05-18T09:19:35.393358447Z" level=info msg="enabled gRPC tracing middleware" app_id=identity-access-management-service instance=cb2a2de28dda scope=dapr.runtime.grpc.api type=log ver=1.7.1
time="2022-05-18T09:19:35.393463858Z" level=info msg="enabled gRPC metrics middleware" app_id=identity-access-management-service instance=cb2a2de28dda scope=dapr.runtime.grpc.api type=log ver=1.7.1
time="2022-05-18T09:19:35.393597326Z" level=info msg="API gRPC server is running on port 50001" app_id=identity-access-management-service instance=cb2a2de28dda scope=dapr.runtime type=log ver=1.7.1
time="2022-05-18T09:19:35.394010287Z" level=info msg="enabled metrics http middleware" app_id=identity-access-management-service instance=cb2a2de28dda scope=dapr.runtime.http type=log ver=1.7.1
time="2022-05-18T09:19:35.394056702Z" level=info msg="enabled tracing http middleware" app_id=identity-access-management-service instance=cb2a2de28dda scope=dapr.runtime.http type=log ver=1.7.1
time="2022-05-18T09:19:35.394314638Z" level=info msg="http server is running on port 3500" app_id=identity-access-management-service instance=cb2a2de28dda scope=dapr.runtime type=log ver=1.7.1
time="2022-05-18T09:19:35.394351946Z" level=info msg="The request body size parameter is: 4" app_id=identity-access-management-service instance=cb2a2de28dda scope=dapr.runtime type=log ver=1.7.1
time="2022-05-18T09:19:35.394443192Z" level=info msg="enabled gRPC tracing middleware" app_id=identity-access-management-service instance=cb2a2de28dda scope=dapr.runtime.grpc.internal type=log ver=1.7.1
time="2022-05-18T09:19:35.394464905Z" level=info msg="enabled gRPC metrics middleware" app_id=identity-access-management-service instance=cb2a2de28dda scope=dapr.runtime.grpc.internal type=log ver=1.7.1
time="2022-05-18T09:19:35.394505338Z" level=info msg="internal gRPC server is running on port 37645" app_id=identity-access-management-service instance=cb2a2de28dda scope=dapr.runtime type=log ver=1.7.1
time="2022-05-18T09:19:35.394540379Z" level=info msg="application protocol: http. waiting on port 80.  This will block until the app is listening on that port." app_id=identity-access-management-service instance=cb2a2de28dda scope=dapr.runtime type=log ver=1.7.1
time="2022-05-18T09:19:58.184310475Z" level=info msg="application discovered on port 80" app_id=identity-access-management-service instance=cb2a2de28dda scope=dapr.runtime type=log ver=1.7.1
time="2022-05-18T09:19:58.184564039Z" level=warning msg="[DEPRECATION NOTICE] Adding a default content type to incoming service invocation requests is deprecated and will be removed in the future. See https://docs.dapr.io/operations/support/support-preview-features/ for more details. You can opt into the new behavior today by setting the configuration option `ServiceInvocation.NoDefaultContentType` to true." app_id=identity-access-management-service instance=cb2a2de28dda scope=dapr.runtime type=log ver=1.7.1
time="2022-05-18T09:19:58.307587985Z" level=info msg="application configuration loaded" app_id=identity-access-management-service instance=cb2a2de28dda scope=dapr.runtime type=log ver=1.7.1
time="2022-05-18T09:19:58.308023393Z" level=info msg="actor runtime started. actor idle timeout: 1h0m0s. actor scan interval: 30s" app_id=identity-access-management-service instance=cb2a2de28dda scope=dapr.runtime.actor type=log ver=1.7.1
time="2022-05-18T09:19:58.309248027Z" level=debug msg="try to connect to placement service: dns:///placement:50006" app_id=identity-access-management-service instance=cb2a2de28dda scope=dapr.runtime.actor.internal.placement type=log ver=1.7.1
time="2022-05-18T09:19:58.380232394Z" level=debug msg="established connection to placement service at dns:///placement:50006" app_id=identity-access-management-service instance=cb2a2de28dda scope=dapr.runtime.actor.internal.placement type=log ver=1.7.1
time="2022-05-18T09:19:58.399384002Z" level=debug msg="placement order received: lock" app_id=identity-access-management-service instance=cb2a2de28dda scope=dapr.runtime.actor.internal.placement type=log ver=1.7.1
time="2022-05-18T09:19:58.400816328Z" level=debug msg="app responded with subscriptions [{ftc-internal-pubsub CreateOrUpdateServiceIntegrationEvent map[] [0xc0008f2520] []}]" app_id=identity-access-management-service instance=cb2a2de28dda scope=dapr.runtime type=log ver=1.7.1
time="2022-05-18T09:19:58.403690155Z" level=debug msg="placement order received: update" app_id=identity-access-management-service instance=cb2a2de28dda scope=dapr.runtime.actor.internal.placement type=log ver=1.7.1
time="2022-05-18T09:19:58.404382454Z" level=info msg="placement tables updated, version: 0" app_id=identity-access-management-service instance=cb2a2de28dda scope=dapr.runtime.actor.internal.placement type=log ver=1.7.1
time="2022-05-18T09:19:58.404648209Z" level=debug msg="placement order received: unlock" app_id=identity-access-management-service instance=cb2a2de28dda scope=dapr.runtime.actor.internal.placement type=log ver=1.7.1
time="2022-05-18T09:19:58.412749821Z" level=info msg="app is subscribed to the following topics: [CreateOrUpdateServiceIntegrationEvent] through pubsub=ftc-internal-pubsub" app_id=identity-access-management-service instance=cb2a2de28dda scope=dapr.runtime type=log ver=1.7.1
time="2022-05-18T09:19:58.41282318Z" level=debug msg="subscribing to topic=CreateOrUpdateServiceIntegrationEvent on pubsub=ftc-internal-pubsub" app_id=identity-access-management-service instance=cb2a2de28dda scope=dapr.runtime type=log ver=1.7.1
time="2022-05-18T09:19:58.412966172Z" level=info msg="rabbitmq pub/sub: subscribe to topic/queue 'CreateOrUpdateServiceIntegrationEvent/identity-access-management-service-CreateOrUpdateServiceIntegrationEvent'" app_id=identity-access-management-service instance=cb2a2de28dda scope=dapr.contrib type=log ver=1.7.1
time="2022-05-18T09:19:58.413071633Z" level=debug msg="rabbitmq pub/sub: declaring exchange 'CreateOrUpdateServiceIntegrationEvent' of kind 'fanout'" app_id=identity-access-management-service instance=cb2a2de28dda scope=dapr.contrib type=log ver=1.7.1

22-05-18T09:19:58.414408423Z" level=info msg="rabbitmq pub/sub: declaring queue 'identity-access-management-service-CreateOrUpdateServiceIntegrationEvent'" app_id=identity-access-management-service instance=cb2a2de28dda scope=dapr.contrib type=log ver=1.7.1
time="2022-05-18T09:19:58.415444546Z" level=info msg="rabbitmq pub/sub: setting prefetch count to 1" app_id=identity-access-management-service instance=cb2a2de28dda scope=dapr.contrib type=log ver=1.7.1
time="2022-05-18T09:19:58.415862317Z" level=info msg="rabbitmq pub/sub: binding queue 'identity-access-management-service-CreateOrUpdateServiceIntegrationEvent' to exchange 'CreateOrUpdateServiceIntegrationEvent' with routing key ''" app_id=identity-access-management-service instance=cb2a2de28dda scope=dapr.contrib type=log ver=1.7.1
time="2022-05-18T09:19:58.426193675Z" level=info msg="dapr initialized. Status: Running. Init Elapsed 23188.326449ms" app_id=identity-access-management-service instance=cb2a2de28dda scope=dapr.runtime type=log ver=1.7.1
time="2022-05-18T09:20:05.238734016Z" level=debug msg="Refreshing all mDNS addresses." app_id=identity-access-management-service instance=cb2a2de28dda scope=dapr.contrib type=log ver=1.7.1
time="2022-05-18T09:20:05.238814213Z" level=debug msg="no mDNS apps to refresh." app_id=identity-access-management-service instance=cb2a2de28dda scope=dapr.contrib type=log ver=1.7.1
time="2022-05-18T09:20:35.239233152Z" level=debug msg="Refreshing all mDNS addresses." app_id=identity-access-management-service instance=cb2a2de28dda scope=dapr.contrib type=log ver=1.7.1
time="2022-05-18T09:20:35.239276813Z" level=debug msg="no mDNS apps to refresh." app_id=identity-access-management-service instance=cb2a2de28dda scope=dapr.contrib type=log ver=1.7.1
time="2022-05-18T09:21:05.23989963Z" level=debug msg="Refreshing all mDNS addresses." app_id=identity-access-management-service instance=cb2a2de28dda scope=dapr.contrib type=log ver=1.7.1
time="2022-05-18T09:21:05.239988968Z" level=debug msg="no mDNS apps to refresh." app_id=identity-access-management-service instance=cb2a2de28dda scope=dapr.contrib type=log ver=1.7.1
time="2022-05-18T09:21:35.240342638Z" level=debug msg="Refreshing all mDNS addresses." app_id=identity-access-management-service instance=cb2a2de28dda scope=dapr.contrib type=log ver=1.7.1
time="2022-05-18T09:21:35.240413352Z" level=debug msg="no mDNS apps to refresh." app_id=identity-access-management-service instance=cb2a2de28dda scope=dapr.contrib type=log ver=1.7.1
time="2022-05-18T09:22:05.240309225Z" level=debug msg="Refreshing all mDNS addresses." app_id=identity-access-management-service instance=cb2a2de28dda scope=dapr.contrib type=log ver=1.7.1
time="2022-05-18T09:22:05.240408821Z" level=debug msg="no mDNS apps to refresh." app_id=identity-access-management-service instance=cb2a2de28dda scope=dapr.contrib type=log ver=1.7.1
time="2022-05-18T09:22:35.240723302Z" level=debug msg="Refreshing all mDNS addresses." app_id=identity-access-management-service instance=cb2a2de28dda scope=dapr.contrib type=log ver=1.7.1
time="2022-05-18T09:22:35.240779932Z" level=debug msg="no mDNS apps to refresh." app_id=identity-access-management-service instance=cb2a2de28dda scope=dapr.contrib type=log ver=1.7.1
time="2022-05-18T09:23:05.240902282Z" level=debug msg="Refreshing all mDNS addresses." app_id=identity-access-management-service instance=cb2a2de28dda scope=dapr.contrib type=log ver=1.7.1
time="2022-05-18T09:23:05.240947023Z" level=debug msg="no mDNS apps to refresh." app_id=identity-access-management-service instance=cb2a2de28dda scope=dapr.contrib type=log ver=1.7.1
time="2022-05-18T09:23:35.243053171Z" level=debug msg="Refreshing all mDNS addresses." app_id=identity-access-management-service instance=cb2a2de28dda scope=dapr.contrib type=log ver=1.7.1
time="2022-05-18T09:23:35.243457699Z" level=debug msg="no mDNS apps to refresh." app_id=identity-access-management-service instance=cb2a2de28dda scope=dapr.contrib type=log ver=1.7.1
time="2022-05-18T09:24:05.24405026Z" level=debug msg="Refreshing all mDNS addresses." app_id=identity-access-management-service instance=cb2a2de28dda scope=dapr.contrib type=log ver=1.7.1
time="2022-05-18T09:24:05.244148799Z" level=debug msg="no mDNS apps to refresh." app_id=identity-access-management-service instance=cb2a2de28dda scope=dapr.contrib type=log ver=1.7.1
time="2022-05-18T09:24:35.244916302Z" level=debug msg="Refreshing all mDNS addresses." app_id=identity-access-management-service instance=cb2a2de28dda scope=dapr.contrib type=log ver=1.7.1
time="2022-05-18T09:24:35.244967004Z" level=debug msg="no mDNS apps to refresh." app_id=identity-access-management-service instance=cb2a2de28dda scope=dapr.contrib type=log ver=1.7.1
time="2022-05-18T09:25:05.245280331Z" level=debug msg="Refreshing all mDNS addresses." app_id=identity-access-management-service instance=cb2a2de28dda scope=dapr.contrib type=log ver=1.7.1
time="2022-05-18T09:25:05.245329625Z" level=debug msg="no mDNS apps to refresh." app_id=identity-access-management-service instance=cb2a2de28dda scope=dapr.contrib type=log ver=1.7.1
time="2022-05-18T09:25:35.245283359Z" level=debug msg="Refreshing all mDNS addresses." app_id=identity-access-management-service instance=cb2a2de28dda scope=dapr.contrib type=log ver=1.7.1
time="2022-05-18T09:25:35.245347969Z" level=debug msg="no mDNS apps to refresh." app_id=identity-access-management-service instance=cb2a2de28dda scope=dapr.contrib type=log ver=1.7.1
time="2022-05-18T09:26:05.244993049Z" level=debug msg="Refreshing all mDNS addresses." app_id=identity-access-management-service instance=cb2a2de28dda scope=dapr.contrib type=log ver=1.7.1
time="2022-05-18T09:26:05.245097056Z" level=debug msg="no mDNS apps to refresh." app_id=identity-access-management-service instance=cb2a2de28dda scope=dapr.contrib type=log ver=1.7.1
time="2022-05-18T09:26:35.246767976Z" level=debug msg="Refreshing all mDNS addresses." app_id=identity-access-management-service instance=cb2a2de28dda scope=dapr.contrib type=log ver=1.7.1
time="2022-05-18T09:26:35.246887572Z" level=debug msg="no mDNS apps to refresh." app_id=identity-access-management-service instance=cb2a2de28dda scope=dapr.contrib type=log ver=1.7.1
time="2022-05-18T09:27:05.24807897Z" level=debug msg="Refreshing all mDNS addresses." app_id=identity-access-management-service instance=cb2a2de28dda scope=dapr.contrib type=log ver=1.7.1
time="2022-05-18T09:27:05.248134605Z" level=debug msg="no mDNS apps to refresh." app_id=identity-access-management-service instance=cb2a2de28dda scope=dapr.contrib type=log ver=1.7.1
time="2022-05-18T09:27:35.249009326Z" level=debug msg="Refreshing all mDNS addresses." app_id=identity-access-management-service instance=cb2a2de28dda scope=dapr.contrib type=log ver=1.7.1
time="2022-05-18T09:27:35.249064728Z" level=debug msg="no mDNS apps to refresh." app_id=identity-access-management-service instance=cb2a2de28dda scope=dapr.contrib type=log ver=1.7.1
time="2022-05-18T09:28:05.249951373Z" level=debug msg="Refreshing all mDNS addresses." app_id=identity-access-management-service instance=cb2a2de28dda scope=dapr.contrib type=log ver=1.7.1
time="2022-05-18T09:28:05.250016509Z" level=debug msg="no mDNS apps to refresh." app_id=identity-access-management-service instance=cb2a2de28dda scope=dapr.contrib type=log ver=1.7.1
time="2022-05-18T09:28:35.2502122Z" level=debug msg="Refreshing all mDNS addresses." app_id=identity-access-management-service instance=cb2a2de28dda scope=dapr.contrib type=log ver=1.7.1
time="2022-05-18T09:28:35.250283622Z" level=debug msg="no mDNS apps to refresh." app_id=identity-access-management-service instance=cb2a2de28dda scope=dapr.contrib type=log ver=1.7.1
time="2022-05-18T09:29:05.250929948Z" level=debug msg="Refreshing all mDNS addresses." app_id=identity-access-management-service instance=cb2a2de28dda scope=dapr.contrib type=log ver=1.7.1
time="2022-05-18T09:29:05.251121864Z" level=debug msg="no mDNS apps to refresh." app_id=identity-access-management-service instance=cb2a2de28dda scope=dapr.contrib type=log ver=1.7.1
time="2022-05-18T09:29:35.251584046Z" level=debug msg="Refreshing all mDNS addresses." app_id=identity-access-management-service instance=cb2a2de28dda scope=dapr.contrib type=log ver=1.7.1
time="2022-05-18T09:29:35.252225984Z" level=debug msg="no mDNS apps to refresh." app_id=identity-access-management-service instance=cb2a2de28dda scope=dapr.contrib type=log ver=1.7.1

Please let me know if you need any other information.

beiwei30 commented 2 years ago

@itsoli91 it looks like mDNS fails to work in your environment, pls. make sure your VPN software is not running. Right now the community are working on simpler solution like: https://github.com/dapr/components-contrib/pull/1455 and https://github.com/dapr/components-contrib/pull/1380. Feel free to give it a try.