dapr / cli

Command-line tools for Dapr.
Apache License 2.0
318 stars 202 forks source link

Clean install of dapr fails to find sidecar on port #1321

Closed thoefkens closed 1 year ago

thoefkens commented 1 year ago

In what area(s)?

/area runtime

What version of Dapr?

1.11.0

Expected Behavior

Performed a clean install of dapr 1.11.0 via homebrew on Mac with M2 chip:

arch -arm64 brew install dapr/tap/dapr-cli

Confirmed that v1.11.0 of the CLI and dapr is installed. Then ran:

dapr run --dapr-http-port 3500

but dapr does not start successfully:

ℹ️  Starting Dapr with id sargentmaze-nose. HTTP Port: 3500. gRPC Port: 53133
ℹ️  Checking if Dapr sidecar is listening on HTTP port 3500
INFO[0000] starting Dapr Runtime -- version 1.11.0 -- commit 58f50c943b893f2bc62941c4400d9b2293f7890e  app_id=sargentmaze-nose instance=Thomass-MacBook-Pro.local scope=dapr.runtime type=log ver=1.11.0
INFO[0000] log level set to: info                        app_id=sargentmaze-nose instance=Thomass-MacBook-Pro.local scope=dapr.runtime type=log ver=1.11.0
INFO[0000] metrics server started on :53134/             app_id=sargentmaze-nose instance=Thomass-MacBook-Pro.local scope=dapr.metrics type=log ver=1.11.0
INFO[0000] Resiliency configuration loaded               app_id=sargentmaze-nose instance=Thomass-MacBook-Pro.local scope=dapr.runtime type=log ver=1.11.0
INFO[0000] standalone mode configured                    app_id=sargentmaze-nose instance=Thomass-MacBook-Pro.local scope=dapr.runtime type=log ver=1.11.0
INFO[0000] app id: sargentmaze-nose                      app_id=sargentmaze-nose instance=Thomass-MacBook-Pro.local scope=dapr.runtime type=log ver=1.11.0
INFO[0000] mTLS is disabled. Skipping certificate request and tls validation  app_id=sargentmaze-nose instance=Thomass-MacBook-Pro.local scope=dapr.runtime type=log ver=1.11.0
INFO[0000] Dapr trace sampler initialized: DaprTraceSampler(P=1.000000)  app_id=sargentmaze-nose instance=Thomass-MacBook-Pro.local scope=dapr.runtime type=log ver=1.11.0
INFO[0000] local service entry announced: sargentmaze-nose -> 192.168.30.13:53135  app_id=sargentmaze-nose component="mdns (nameResolution/v1)" instance=Thomass-MacBook-Pro.local scope=dapr.contrib type=log ver=1.11.0
INFO[0000] Initialized name resolution to mdns           app_id=sargentmaze-nose instance=Thomass-MacBook-Pro.local scope=dapr.runtime type=log ver=1.11.0
INFO[0000] Loading components…                           app_id=sargentmaze-nose instance=Thomass-MacBook-Pro.local scope=dapr.runtime type=log ver=1.11.0
INFO[0000] Component loaded: pubsub (pubsub.redis/v1)    app_id=sargentmaze-nose instance=Thomass-MacBook-Pro.local scope=dapr.runtime type=log ver=1.11.0
INFO[0000] Waiting for all outstanding components to be processed  app_id=sargentmaze-nose instance=Thomass-MacBook-Pro.local scope=dapr.runtime type=log ver=1.11.0
INFO[0000] Using 'statestore' as actor state store       app_id=sargentmaze-nose instance=Thomass-MacBook-Pro.local scope=dapr.runtime type=log ver=1.11.0
INFO[0000] Component loaded: statestore (state.redis/v1)  app_id=sargentmaze-nose instance=Thomass-MacBook-Pro.local scope=dapr.runtime type=log ver=1.11.0
INFO[0000] All outstanding components processed          app_id=sargentmaze-nose instance=Thomass-MacBook-Pro.local scope=dapr.runtime type=log ver=1.11.0
INFO[0000] Loading endpoints                             app_id=sargentmaze-nose instance=Thomass-MacBook-Pro.local scope=dapr.runtime type=log ver=1.11.0
INFO[0000] Waiting for all outstanding http endpoints to be processed  app_id=sargentmaze-nose instance=Thomass-MacBook-Pro.local scope=dapr.runtime type=log ver=1.11.0
INFO[0000] All outstanding http endpoints processed      app_id=sargentmaze-nose instance=Thomass-MacBook-Pro.local scope=dapr.runtime type=log ver=1.11.0
INFO[0000] gRPC proxy enabled                            app_id=sargentmaze-nose instance=Thomass-MacBook-Pro.local scope=dapr.runtime type=log ver=1.11.0
INFO[0000] gRPC server listening on TCP address: :53133  app_id=sargentmaze-nose instance=Thomass-MacBook-Pro.local scope=dapr.runtime.grpc.api type=log ver=1.11.0
INFO[0000] Enabled gRPC tracing middleware               app_id=sargentmaze-nose instance=Thomass-MacBook-Pro.local scope=dapr.runtime.grpc.api type=log ver=1.11.0
INFO[0000] Enabled gRPC metrics middleware               app_id=sargentmaze-nose instance=Thomass-MacBook-Pro.local scope=dapr.runtime.grpc.api type=log ver=1.11.0
INFO[0000] configuring workflow engine gRPC endpoint     app_id=sargentmaze-nose instance=Thomass-MacBook-Pro.local scope=dapr.runtime.wfengine type=log ver=1.11.0
INFO[0000] API gRPC server is running on port 53133      app_id=sargentmaze-nose instance=Thomass-MacBook-Pro.local scope=dapr.runtime type=log ver=1.11.0
INFO[0000] enabled metrics http middleware               app_id=sargentmaze-nose instance=Thomass-MacBook-Pro.local scope=dapr.runtime.http type=log ver=1.11.0
INFO[0000] enabled tracing http middleware               app_id=sargentmaze-nose instance=Thomass-MacBook-Pro.local scope=dapr.runtime.http type=log ver=1.11.0
INFO[0000] HTTP server listening on TCP address: :3500   app_id=sargentmaze-nose instance=Thomass-MacBook-Pro.local scope=dapr.runtime.http type=log ver=1.11.0
INFO[0000] http server is running on port 3500           app_id=sargentmaze-nose instance=Thomass-MacBook-Pro.local scope=dapr.runtime type=log ver=1.11.0
INFO[0000] The request body size parameter is: 4         app_id=sargentmaze-nose instance=Thomass-MacBook-Pro.local scope=dapr.runtime type=log ver=1.11.0
INFO[0000] gRPC server listening on TCP address: :53135  app_id=sargentmaze-nose instance=Thomass-MacBook-Pro.local scope=dapr.runtime.grpc.internal type=log ver=1.11.0
INFO[0000] Enabled gRPC tracing middleware               app_id=sargentmaze-nose instance=Thomass-MacBook-Pro.local scope=dapr.runtime.grpc.internal type=log ver=1.11.0
INFO[0000] Enabled gRPC metrics middleware               app_id=sargentmaze-nose instance=Thomass-MacBook-Pro.local scope=dapr.runtime.grpc.internal type=log ver=1.11.0
INFO[0000] internal gRPC server is running on port 53135  app_id=sargentmaze-nose instance=Thomass-MacBook-Pro.local scope=dapr.runtime type=log ver=1.11.0
WARN[0000] App channel is not initialized. Did you configure an app-port?  app_id=sargentmaze-nose instance=Thomass-MacBook-Pro.local scope=dapr.runtime type=log ver=1.11.0
WARN[0000] App channel is not initialized. Did you configure an app-port?  app_id=sargentmaze-nose instance=Thomass-MacBook-Pro.local scope=dapr.runtime type=log ver=1.11.0
INFO[0000] actor runtime started. actor idle timeout: 1h0m0s. actor scan interval: 30s  app_id=sargentmaze-nose instance=Thomass-MacBook-Pro.local scope=dapr.runtime.actor type=log ver=1.11.0
INFO[0000] configuring workflow engine with actors backend  app_id=sargentmaze-nose instance=Thomass-MacBook-Pro.local scope=dapr.runtime.wfengine type=log ver=1.11.0
INFO[0000] Registering component for dapr workflow engine...  app_id=sargentmaze-nose instance=Thomass-MacBook-Pro.local scope=dapr.runtime type=log ver=1.11.0
INFO[0000] initializing Dapr workflow component          app_id=sargentmaze-nose component="dapr (workflow.dapr/v1)" instance=Thomass-MacBook-Pro.local scope=dapr.contrib type=log ver=1.11.0
WARN[0000] app channel not initialized, make sure -app-port is specified if pubsub subscription is required  app_id=sargentmaze-nose instance=Thomass-MacBook-Pro.local scope=dapr.runtime type=log ver=1.11.0
WARN[0000] failed to read from bindings: app channel not initialized   app_id=sargentmaze-nose instance=Thomass-MacBook-Pro.local scope=dapr.runtime type=log ver=1.11.0
INFO[0000] dapr initialized. Status: Running. Init Elapsed 13ms  app_id=sargentmaze-nose instance=Thomass-MacBook-Pro.local scope=dapr.runtime type=log ver=1.11.0
INFO[0000] placement tables updated, version: 0          app_id=sargentmaze-nose instance=Thomass-MacBook-Pro.local scope=dapr.runtime.actor.internal.placement type=log ver=1.11.0
⚠  Dapr sidecar is not listening on HTTP port: dial tcp 127.0.0.1:3500: i/o timeout
ℹ️  Checking if Dapr sidecar is listening on GRPC port 53133
⚠  Dapr sidecar is not listening on GRPC port: dial tcp 127.0.0.1:53133: i/o timeout
⚠  Dapr sidecar might not be responding.

Actual Behavior

Expecting "dapr sidecar is up and running"

Steps to Reproduce the Problem

See description - performed a clean installation of dapr but cannot get it to start up.

ls-2018 commented 1 year ago

you should specify a program to run using dapr

yaron2 commented 1 year ago

Moving to CLI

thoefkens commented 1 year ago

@ls-2018 That is not true. One can run it as I indicated. @yaron2 I found the issue... a VPN connection was active, causing the CLI to no longer find "localhost"... seems like a DNS resolution issue when connected to a VPN.. had similar issues with mDNS in the past.. thanks

yaron2 commented 1 year ago

Glad you figured it out