8000 http://127.0.0.1:63267/v1.0/healthz/outbound failed: Service Unavailable · Issue #98 · dapr/dapr-agents · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

http://127.0.0.1:63267/v1.0/healthz/outbound failed: Service Unavailable #98

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

Open
codebased opened this issue Apr 24, 2025 · 3 comments

Comments

@codebased
Copy link
codebased commented Apr 24, 2025

Hi, After running through helloworld example the workflow example is not working. The sidecar dapr is not able to get attached along and here is the log (debug enabled)

dapr run --app-id dapr-agent-wf --log-level debug -- python 04_chain_tasks.py

ℹ️ Starting Dapr with id dapr-agent-wf. HTTP Port: 53839. gRPC Port: 53840
ℹ️ Checking if Dapr sidecar is listening on HTTP port 53839
Flag --components-path has been deprecated, use --resources-path
INFO[0000] Starting Dapr Runtime -- version 1.15.4 -- commit eb94584f0e14b9fb61d2d139277c2962c1567064 app_id=dapr-agent-wf instance=MNM-D529FK7QX3 scope=dapr.runtime type=log ver=1.15.4
INFO[0000] Log level set to: debug app_id=dapr-agent-wf instance=MNM-D529FK7QX3 scope=dapr.runtime type=log ver=1.15.4
WARN[0000] mTLS is disabled. Skipping certificate request and tls validation app_id=dapr-agent-wf instance=MNM-D529FK7QX3 scope=dapr.runtime.security type=log ver=1.15.4
DEBU[0000] Loading config from file(s): /Users/amit.malhotra2/.dapr/config.yaml app_id=dapr-agent-wf instance=MNM-D529FK7QX3 scope=dapr.runtime type=log ver=1.15.4
INFO[0000] Enabled features: SchedulerReminders app_id=dapr-agent-wf instance=MNM-D529FK7QX3 scope=dapr.runtime type=log ver=1.15.4
INFO[0000] metric spec: {"enabled":true} app_id=dapr-agent-wf instance=MNM-D529FK7QX3 scope=dapr.runtime.diagnostics type=log ver=1.15.4
INFO[0000] Using default latency distribution buckets: [1 2 3 4 5 6 8 10 13 16 20 25 30 40 50 65 80 100 130 160 200 250 300 400 500 650 800 1000 2000 5000 10000 20000 50000 100000] app_id=dapr-agent-wf instance=MNM-D529FK7QX3 scope=dapr.runtime.diagnostics type=log ver=1.15.4
WARN[0000] The default value for 'spec.metric.http.increasedCardinality' will change to 'false' in Dapr 1.15 or later app_id=dapr-agent-wf instance=MNM-D529FK7QX3 scope=dapr.runtime.diagnostics type=log ver=1.15.4
DEBU[0000] Found 0 resiliency configurations in resources path app_id=dapr-agent-wf instance=MNM-D529FK7QX3 scope=dapr.runtime type=log ver=1.15.4
DEBU[0000] Hot reloading disabled app_id=dapr-agent-wf instance=MNM-D529FK7QX3 scope=dapr.runtime.hotreload type=log ver=1.15.4
INFO[0000] standalone mode configured app_id=dapr-agent-wf instance=MNM-D529FK7QX3 scope=dapr.runtime type=log ver=1.15.4
INFO[0000] app id: dapr-agent-wf app_id=dapr-agent-wf instance=MNM-D529FK7QX3 scope=dapr.runtime type=log ver=1.15.4
DEBU[0000] Attempting to connect to scheduler to WatchHosts: localhost:50006 app_id=dapr-agent-wf instance=MNM-D529FK7QX3 scope=dapr.runtime.scheduler.watchhosts type=log ver=1.15.4
INFO[0000] Dapr trace sampler initialized: ParentBased{root:AlwaysOnSampler,remoteParentSampled:AlwaysOnSampler,remoteParentNotSampled:AlwaysOffSampler,localParentSampled:AlwaysOnSampler,localParentNotSampled:AlwaysOffSampler} app_id=dapr-agent-wf instance=MNM-D529FK7QX3 scope=dapr.runtime type=log ver=1.15.4
INFO[0000] metrics server started on 0.0.0.0:53841/ app_id=dapr-agent-wf instance=MNM-D529FK7QX3 scope=dapr.runtime type=log ver=1.15.4
INFO[0000] local service entry announced: dapr-agent-wf -> 10.205.4.221:53842 app_id=dapr-agent-wf component="nr (mdns/v1)" instance=MNM-D529FK7QX3 scope=dapr.contrib type=log ver=1.15.4
INFO[0000] Initialized name resolution to mdns app_id=dapr-agent-wf instance=MNM-D529FK7QX3 scope=dapr.runtime type=log ver=1.15.4
INFO[0000] Loading components… app_id=dapr-agent-wf instance=MNM-D529FK7QX3 scope=dapr.runtime type=log ver=1.15.4
DEBU[0000] Found component: pubsub (pubsub.redis/v1) app_id=dapr-agent-wf instance=MNM-D529FK7QX3 scope=dapr.runtime type=log ver=1.15.4
DEBU[0000] Found component: statestore (state.redis/v1) app_id=dapr-agent-wf instance=MNM-D529FK7QX3 scope=dapr.runtime type=log ver=1.15.4
DEBU[0000] Loading component: pubsub (pubsub.redis/v1) app_id=dapr-agent-wf instance=MNM-D529FK7QX3 scope=dapr.runtime.processor type=log ver=1.15.4
INFO[0000] Received updated scheduler hosts addresses: [localhost:50006] app_id=dapr-agent-wf instance=MNM-D529FK7QX3 scope=dapr.runtime.scheduler.watchhosts type=log ver=1.15.4
DEBU[0000] Attempting to connect to Scheduler at address: localhost:50006 app_id=dapr-agent-wf instance=MNM-D529FK7QX3 scope=dapr.runtime.scheduler.clients type=log ver=1.15.4
INFO[0000] Scheduler client initialized for address: localhost:50006 app_id=dapr-agent-wf instance=MNM-D529FK7QX3 scope=dapr.runtime.scheduler.clients type=log ver=1.15.4
INFO[0000] Scheduler clients initialized app_id=dapr-agent-wf instance=MNM-D529FK7QX3 scope=dapr.runtime.scheduler.clients type=log ver=1.15.4
INFO[0000] Component loaded: pubsub (pubsub.redis/v1) app_id=dapr-agent-wf instance=MNM-D529FK7QX3 scope=dapr.runtime.processor type=log ver=1.15.4
DEBU[0000] Loading component: statestore (state.redis/v1) app_id=dapr-agent-wf instance=MNM-D529FK7QX3 scope=dapr.runtime.processor type=log ver=1.15.4
INFO[0000] Waiting for all outstanding components to be processed… app_id=dapr-agent-wf instance=MNM-D529FK7QX3 scope=dapr.runtime type=log ver=1.15.4
INFO[0000] Using 'statestore' as actor state store app_id=dapr-agent-wf instance=MNM-D529FK7QX3 scope=dapr.runtime.processor.state type=log ver=1.15.4
INFO[0000] Component loaded: statestore (state.redis/v1) app_id=dapr-agent-wf instance=MNM-D529FK7QX3 scope=dapr.runtime.processor type=log ver=1.15.4
INFO[0000] All outstanding components processed app_id=dapr-agent-wf instance=MNM-D529FK7QX3 scope=dapr.runtime type=log ver=1.15.4
INFO[0000] Loading endpoints… app_id=dapr-agent-wf instance=MNM-D529FK7QX3 scope=dapr.runtime type=log ver=1.15.4
INFO[0000] Waiting for all outstanding http endpoints to be processed… app_id=dapr-agent-wf instance=MNM-D529FK7QX3 scope=dapr.runtime type=log ver=1.15.4
INFO[0000] All outstanding http endpoints processed app_id=dapr-agent-wf instance=MNM-D529FK7QX3 scope=dapr.runtime type=log ver=1.15.4
INFO[0000] Loading Declarative Subscriptions… app_id=dapr-agent-wf instance=MNM-D529FK7QX3 scope=dapr.runtime type=log ver=1.15.4
DEBU[0000] Refreshing channels app_id=dapr-agent-wf instance=MNM-D529FK7QX3 scope=dapr.runtime.channels type=log ver=1.15.4
WARN[0000] App channel is not initialized. Did you configure an app-port? app_id=dapr-agent-wf instance=MNM-D529FK7QX3 scope=dapr.runtime.channels type=log ver=1.15.4
INFO[0000] gRPC server listening on TCP address: :53840 app_id=dapr-agent-wf instance=MNM-D529FK7QX3 scope=dapr.runtime.grpc.api type=log ver=1.15.4
INFO[0000] Enabled gRPC tracing middleware app_id=dapr-agent-wf instance=MNM-D529FK7QX3 scope=dapr.runtime.grpc.api type=log ver=1.15.4
INFO[0000] Enabled gRPC metrics middleware app_id=dapr-agent-wf instance=MNM-D529FK7QX3 scope=dapr.runtime.grpc.api type=log ver=1.15.4
INFO[0000] Registering workflow engine for gRPC endpoint: [::]:53840 app_id=dapr-agent-wf instance=MNM-D529FK7QX3 scope=dapr.runtime.grpc.api type=log ver=1.15.4
INFO[0000] API gRPC server is running on port 53840 app_id=dapr-agent-wf instance=MNM-D529FK7QX3 scope=dapr.runtime type=log ver=1.15.4
WARN[0000] The default value for 'spec.metric.http.increasedCardinality' will change to 'false' in Dapr 1.15 or later app_id=dapr-agent-wf instance=MNM-D529FK7QX3 scope=dapr.runtime.http type=log ver=1.15.4
INFO[0000] Enabled max body size HTTP middleware with size 4194304 bytes app_id=dapr-agent-wf instance=MNM-D529FK7QX3 scope=dapr.runtime.http type=log ver=1.15.4
INFO[0000] Enabled tracing HTTP middleware app_id=dapr-agent-wf instance=MNM-D529FK7QX3 scope=dapr.runtime.http type=log ver=1.15.4
INFO[0000] Enabled metrics HTTP middleware app_id=dapr-agent-wf instance=MNM-D529FK7QX3 scope=dapr.runtime.http type=log ver=1.15.4
INFO[0000] HTTP server listening on TCP address: :53839 app_id=dapr-agent-wf instance=MNM-D529FK7QX3 scope=dapr.runtime.http type=log ver=1.15.4
INFO[0000] HTTP server is running on port 53839 app_id=dapr-agent-wf instance=MNM-D529FK7QX3 scope=dapr.runtime type=log ver=1.15.4
INFO[0000] The request body size parameter is: 4194304 bytes app_id=dapr-agent-wf instance=MNM-D529FK7QX3 scope=dapr.runtime type=log ver=1.15.4
INFO[0000] gRPC server listening on TCP address: :53842 app_id=dapr-agent-wf instance=MNM-D529FK7QX3 scope=dapr.runtime.grpc.internal type=log ver=1.15.4
INFO[0000] Enabled gRPC tracing middleware app_id=dapr-agent-wf instance=MNM-D529FK7QX3 scope=dapr.runtime.grpc.internal type=log ver=1.15.4
INFO[0000] Enabled gRPC metrics middleware app_id=dapr-agent-wf instance=MNM-D529FK7QX3 scope=dapr.runtime.grpc.internal type=log ver=1.15.4
INFO[0000] Internal gRPC server is running on :53842 app_id=dapr-agent-wf instance=MNM-D529FK7QX3 scope=dapr.runtime type=log ver=1.15.4
INFO[0000] Using Scheduler service for reminders. app_id=dapr-agent-wf instance=MNM-D529FK7QX3 scope=dapr.runtime.actor.reminders.scheduler type=log ver=1.15.4
INFO[0000] Registering hosted actors: [] app_id=dapr-agent-wf instance=MNM-D529FK7QX3 scope=dapr.runtime.actor type=log ver=1.15.4
INFO[0000] dapr initialized. Status: Running. Init Elapsed 14ms app_id=dapr-agent-wf instance=MNM-D529FK7QX3 scope=dapr.runtime type=log ver=1.15.4
INFO[0000] Actor runtime started app_id=dapr-agent-wf instance=MNM-D529FK7QX3 scope=dapr.runtime.actor type=log ver=1.15.4
INFO[0000] worker started with backend dapr.actors/v1 app_id=dapr-agent-wf instance=MNM-D529FK7QX3 scope=dapr.wfengine.durabletask.backend type=log ver=1.15.4
INFO[0000] Scheduler stream connected app_id=dapr-agent-wf instance=MNM-D529FK7QX3 scope=dapr.runtime.scheduler.cluster type=log ver=1.15.4
INFO[0000] Workflow engine started app_id=dapr-agent-wf instance=MNM-D529FK7QX3 scope=dapr.runtime.wfengine type=log ver=1.15.4
WARN[0000] Graceful shutdown timeout is infinite, will wait indefinitely to shutdown app_id=dapr-agent-wf instance=MNM-D529FK7QX3 scope=dapr.kit.concurrency type=log ver=1.15.4
DEBU[0000] Actor backend is waiting for an activity actor to schedule an invocation. app_id=dapr-agent-wf instance=MNM-D529FK7QX3 scope=dapr.wfengine.backend.actors type=log ver=1.15.4
DEBU[0000] Actor backend is waiting for a workflow actor to schedule an invocation. app_id=dapr-agent-wf instance=MNM-D529FK7QX3 scope=dapr.wfengine.backend.actors type=log ver=1.15.4
DEBU[0000] Attempting to connect to placement dns:///localhost:50005 app_id=dapr-agent-wf instance=MNM-D529FK7QX3 scope=dapr.runtime.actors.placement.client type=log ver=1.15.4
INFO[0000] Reporting actor types: [] app_id=dapr-agent-wf instance=MNM-D529FK7QX3 scope=dapr.runtime.actors.placement type=log ver=1.15.4
ℹ️ Checking if Dapr sidecar is listening on GRPC port 53840
ℹ️ Dapr sidecar is up and running.
ℹ️ Updating metadata for appPID: 85273
ℹ️ Updating metadata for app command: python 04_chain_tasks.py
✅ You're up and running! Both Dapr and your app logs will appear here.

INFO[0020] Connected to placement dns:///localhost:50005 app_id=dapr-agent-wf instance=MNM-D529FK7QX3 scope=dapr.runtime.actors.placement.client type=log ver=1.15.4
DEBU[0020] Placement order received: lock app_id=dapr-agent-wf instance=MNM-D529FK7QX3 scope=dapr.runtime.actors.placement type=log ver=1.15.4
DEBU[0020] Placement order received: update app_id=dapr-agent-wf instance=MNM-D529FK7QX3 scope=dapr.runtime.actors.placement type=log ver=1.15.4
INFO[0020] Placement tables updated, version: 0 app_id=dapr-agent-wf instance=MNM-D529FK7QX3 scope=dapr.runtime.actors.placement type=log ver=1.15.4
DEBU[0020] Placement order received: unlock app_id=dapr-agent-wf instance=MNM-D529FK7QX3 scope=dapr.runtime.actors.placement type=log ver=1.15.4
INFO[0020] Running actor reminder migration from state store to scheduler app_id=dapr-agent-wf instance=MNM-D529FK7QX3 scope=dapr.runtime.actors.reminders.migration type=log ver=1.15.4
INFO[0020] Skipping migration, no missing scheduler reminders found app_id=dapr-agent-wf instance=MNM-D529FK7QX3 scope=dapr.runtime.actors.reminders.migration type=log ver=1.15.4
INFO[0020] Found 0 missing scheduler reminders from state store app_id=dapr-agent-wf instance=MNM-D529FK7QX3 scope=dapr.runtime.actors.reminders.migration type=log ver=1.15.4
INFO[0020] Migrated 0 reminders from state store to scheduler successfully app_id=dapr-agent-wf instance=MNM-D529FK7QX3 scope=dapr.runtime.actors.reminders.migration type=log ver=1.15.4
DEBU[0030] Refreshing all mDNS addresses. app_id=dapr-agent-wf component="nr (mdns/v1)" instance=MNM-D529FK7QX3 scope=dapr.contrib type=log ver=1.15.4
DEBU[0030] no mDNS apps to refresh. app_id=dapr-agent-wf component="nr (mdns/v1)" instance=MNM-D529FK7QX3 scope=dapr.contrib type=log ver=1.15.4
DEBU[0060] Refreshing all mDNS addresses. app_id=dapr-agent-wf component="nr (mdns/v1)" instance=MNM-D529FK7QX3 scope=dapr.contrib type=log ver=1.15.4
DEBU[0060] no mDNS apps to refresh. app_id=dapr-agent-wf component="nr (mdns/v1)" instance=MNM-D529FK7QX3 scope=dapr.contrib type=log ver=1.15.4
== APP == Health check on http://127.0.0.1:53839/v1.0/healthz/outbound failed: Service Unavailable
== APP == Health check on http://127.0.0.1:53839/v1.0/healthz/outbound failed: Service Unavailable
== APP == Health check on http://127.0.0.1:53839/v1.0/healthz/outbound failed: Service Unavailable
== APP == Health check on http://127.0.0.1:53839/v1.0/healthz/outbound failed: Service Unavailable
== APP == Health check on http://127.0.0.1:53839/v1.0/healthz/outbound failed: Service Unavailable
== APP == Health check on http://127.0.0.1:53839/v1.0/healthz/outbound failed: Service Unavailable
== APP == Traceback (most recent call last):
== APP == File "/Users/amit.malhotra2/Documents/git/dapr-agents/quickstarts/01-hello-world/04_chain_tasks.py", line 30, in
== APP == wfapp = WorkflowApp( llm=llm, )
== APP == File "/Users/amit.malhotra2/Documents/git/dapr-agents/quickstarts/01-hello-world/.venv/lib/python3.13/site-packages/pydantic/main.py", line 253, in init
== APP == validated_self = self.pydantic_validator.validate_python(data, self_instance=self)
== APP == File "/Users/amit.malhotra2/Documents/git/dapr-agents/quickstarts/01-hello-world/.venv/lib/python3.13/site-packages/dapr_agents/workflow/base.py", line 57, in model_post_init
== APP == self.client = DaprClient()
== APP == ~~~~~~~~~~^^
== APP == File "/Users/amit.malhotra2/Documents/git/dapr-agents/quickstarts/01-hello-world/.venv/lib/python3.13/site-packages/dapr/clients/init.py", line 83, in init
== APP == super().init(address, interceptors, max_grpc_message_length, retry_policy)
== APP == ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
== APP == File "/Users/amit.malhotra2/Documents/git/dapr-agents/quickstarts/01-hello-world/.venv/lib/python3.13/site-packages/dapr/clients/grpc/client.py", line 146, in init
== APP == DaprHealth.wait_until_ready()
== APP == ~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
== APP == File "/Users/amit.malhotra2/Documents/git/dapr-agents/quickstarts/01-hello-world/.venv/lib/python3.13/site-packages/dapr/clients/health.py", line 47, in wait_until_ready
== APP == raise TimeoutError(f'Dapr health check timed out, after {timeout}.')
== APP == TimeoutError: Dapr health check timed out, after 60.0.
❌ The App process exited with error code: exit status 1
ℹ️
terminated signal received: shutting down
✅ Exited Dapr successfully
❌ Error exiting App: exit status 1
Any thoughts?

@yaron2
Copy link
Member
yaron2 commented Apr 24, 2025

Are you running the latest version of the CLI, 1.15.1? Also, can you paste the entire log output?

@codebased
Copy link
Author

Are you running the latest version of the CLI, 1.15.1? Also, can you paste the entire log output?

dapr --version
CLI version: 1.15.1
Runtime version: 1.15.4

I have update my question with logs.

@codebased
Copy link
Author
codebased commented Apr 28, 2025

Are you running the latest version of the CLI, 1.15.1? Also, can you paste the entire log output?

Hey any thoughts?
I am passing llm object, using litellm gateway, instead of env. settings

llm = OpenAIChatClient( model="gpt-4o_v S", api_key="sk-xxxxx", base_url="https:/xxxxx")
wfapp = WorkflowApp( llm=llm)

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 2F11

2 participants
0