Skip to content

500 Error Durable Agent in Quickstart #179

@agardnerIT

Description

@agardnerIT

I'm trying to follow the Quickstart on a MacBook Air + Docker Desktop. I can successfully complete 1 and 2 but ex. 3 (Durable Agent) fails.

https://github.com/dapr/dapr-agents/tree/main/quickstarts/01-hello-world

ERRO[0020] Failed to watch scheduler jobs, retrying: rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing: dial tcp 172.17.0.6:50006: i/o timeout"  app_id=stateful-llm instance=Adams-MacBook-Air.local scope=dapr.runtime.scheduler.cluster type=log ver=1.15.9
ERRO[0021] error watching scheduler jobs: rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing: dial tcp 172.17.0.6:50006: i/o timeout"failed to run scheduler cluster clients  app_id=stateful-llm instance=Adams-MacBook-Air.local scope=dapr.runtime.scheduler.loops.connector type=log ver=1.15.9
== APP == INFO:dapr_agents.workflow.agentic:Starting workflow 'ToolCallingWorkflow' with input: {'task': 'I want to find flights to Paris'}
== APP == INFO:dapr_agents.workflow.base:Starting workflow runtime.
== APP == 2025-08-17 12:38:22.594 durabletask-worker INFO: Starting gRPC worker that connects to dns:127.0.0.1:60027
== APP == 2025-08-17 12:38:22.597 durabletask-client INFO: Starting new 'ToolCallingWorkflow' instance with ID = '472f8edc0b124de39d6af7af063c5313'.
== APP == 2025-08-17 12:38:22.613 durabletask-worker INFO: Successfully connected to dns:127.0.0.1:60027. Waiting for work items...
INFO[0150] work item stream established by user-agent: [grpc-python/1.74.0 grpc-c/49.0.0 (osx; chttp2)]  app_id=stateful-llm instance=Adams-MacBook-Air.local scope=dapr.runtime.wfengine type=log ver=1.15.9
INFO[0150] Updating actor types: [dapr.internal.default.stateful-llm.workflow dapr.internal.default.stateful-llm.activity]  app_id=stateful-llm instance=Adams-MacBook-Air.local scope=dapr.runtime.actors.placement type=log ver=1.15.9
WARN[0150] Error processing operation DaprBuiltInActorNotFoundRetries. Retrying in 1s…  app_id=stateful-llm instance=Adams-MacBook-Air.local scope=dapr.runtime type=log ver=1.15.9
INFO[0152] Placement tables updated, version: 1          app_id=stateful-llm instance=Adams-MacBook-Air.local scope=dapr.runtime.actors.placement type=log ver=1.15.9
INFO[0152] Running actor reminder migration from state store to scheduler  app_id=stateful-llm instance=Adams-MacBook-Air.local scope=dapr.runtime.actors.reminders.migration type=log ver=1.15.9
ERRO[0152] Failed to watch scheduler jobs, retrying: rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing: dial tcp 172.17.0.6:50006: i/o timeout"  app_id=stateful-llm instance=Adams-MacBook-Air.local scope=dapr.runtime.scheduler.cluster type=log ver=1.15.9
ERRO[0152] Error attempting to migrate reminders to scheduler: rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing: dial tcp 172.17.0.6:50006: i/o timeout"  app_id=stateful-llm instance=Adams-MacBook-Air.local scope=dapr.runtime.actor.reminders.scheduler type=log ver=1.15.9
WARN[0153] Redis does not support transaction rollbacks and should not be used in production as an actor state store.  app_id=stateful-llm component="workflowstatestore (state.redis/v1)" instance=Adams-MacBook-Air.local scope=dapr.contrib type=log ver=1.15.9
ERRO[0153] Error scheduling reminder job start-I0lXKNAZ due to: rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing: dial tcp 172.17.0.6:50006: i/o timeout"  app_id=stateful-llm instance=Adams-MacBook-Air.local scope=dapr.runtime.actor.reminders.scheduler type=log ver=1.15.9
== APP == ERROR:dapr_agents.workflow.base:Failed to start workflow ToolCallingWorkflow: <_InactiveRpcError of RPC that terminated with:
== APP ==       status = StatusCode.UNAVAILABLE
== APP ==       details = "error from worfklow actor: rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing: dial tcp 172.17.0.6:50006: i/o timeout""
== APP ==       debug_error_string = "UNKNOWN:Error received from peer ipv4:127.0.0.1:60027 {grpc_message:"error from worfklow actor: rpc error: code = Unavailable desc = connection error: desc = \"transport: Error while dialing: dial tcp 172.17.0.6:50006: i/o timeout\"", grpc_status:14}"
== APP == >
== APP == ERROR:dapr_agents.workflow.agentic:Error starting workflow: <_InactiveRpcError of RPC that terminated with:
== APP ==       status = StatusCode.UNAVAILABLE
== APP ==       details = "error from worfklow actor: rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing: dial tcp 172.17.0.6:50006: i/o timeout""
== APP ==       debug_error_string = "UNKNOWN:Error received from peer ipv4:127.0.0.1:60027 {grpc_message:"error from worfklow actor: rpc error: code = Unavailable desc = connection error: desc = \"transport: Error while dialing: dial tcp 172.17.0.6:50006: i/o timeout\"", grpc_status:14}"
== APP == >
== APP == Traceback (most recent call last):
== APP ==   File "/Users/adamgardner/dapr/agents/lib/python3.11/site-packages/dapr_agents/workflow/agentic.py", line 390, in run_workflow_from_request
== APP ==     instance_id = self.run_workflow(workflow=workflow_name, input=input_data)
== APP ==                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
== APP ==   File "/Users/adamgardner/dapr/agents/lib/python3.11/site-packages/dapr_agents/workflow/base.py", line 479, in run_workflow
== APP ==     instance_id = self.wf_client.schedule_new_workflow(
== APP ==                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
== APP ==   File "/Users/adamgardner/dapr/agents/lib/python3.11/site-packages/dapr/ext/workflow/dapr_workflow_client.py", line 104, in schedule_new_workflow
== APP ==     return self.__obj.schedule_new_orchestration(
== APP ==            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
== APP ==   File "/Users/adamgardner/dapr/agents/lib/python3.11/site-packages/durabletask/client.py", line 122, in schedule_new_orchestration
== APP ==     res: pb.CreateInstanceResponse = self._stub.StartInstance(req)
== APP ==                                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
== APP ==   File "/Users/adamgardner/dapr/agents/lib/python3.11/site-packages/grpc/_channel.py", line 1178, in __call__
== APP ==     return _end_unary_response_blocking(state, call, False, None)
== APP ==            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
== APP ==   File "/Users/adamgardner/dapr/agents/lib/python3.11/site-packages/grpc/_channel.py", line 1006, in _end_unary_response_blocking
== APP ==     raise _InactiveRpcError(state)  # pytype: disable=not-instantiable
== APP ==     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
== APP == grpc._channel._InactiveRpcError: <_InactiveRpcError of RPC that terminated with:
== APP ==       status = StatusCode.UNAVAILABLE
== APP ==       details = "error from worfklow actor: rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing: dial tcp 172.17.0.6:50006: i/o timeout""
== APP ==       debug_error_string = "UNKNOWN:Error received from peer ipv4:127.0.0.1:60027 {grpc_message:"error from worfklow actor: rpc error: code = Unavailable desc = connection error: desc = \"transport: Error while dialing: dial tcp 172.17.0.6:50006: i/o timeout\"", grpc_status:14}"
== APP == >
== APP == INFO:     127.0.0.1:60111 - "POST /start-workflow HTTP/1.1" 500 Internal Server Error
ERRO[0153] error watching scheduler jobs: rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing: dial tcp 172.17.0.6:50006: i/o timeout"failed to run scheduler cluster clients  app_id=stateful-llm instance=Adams-MacBook-Air.local scope=dapr.runtime.scheduler.loops.connector type=log ver=1.15.9

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions