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

Dapr run with file failing to connect to scheduler on Windows #1496

Open
antontroshin opened this issue Mar 5, 2025 · 0 comments
Open

Dapr run with file failing to connect to scheduler on Windows #1496

antontroshin opened this issue Mar 5, 2025 · 0 comments
Assignees
Labels
kind/bug Something isn't working
Milestone

Comments

@antontroshin
Copy link
Contributor

antontroshin commented Mar 5, 2025

Expected Behavior

Using Workflows .NET quickstart https://github.com/dapr/quickstarts/tree/master/workflows/csharp/sdk

When using dapr run -f . in WIndows, it should connect to the scheduler using the correct port :6060 (which differs from linux/macos default scheduler port :50006)

time="2025-03-04T20:51:07.5626908-06:00" level=info msg="Attempting to connect to scheduler: localhost:6060" app_id=order-processor instance=LAPTOP scope=dapr.runtime.scheduler type=log ver=1.15.2

Actual Behavior

When using dapr run -f . fails to connect to the scheduler, using incorrect port :50006 instead of :6060

time="2025-03-04T14:17:40.5233635+01:00" level=info msg="Attempting to connect to scheduler: localhost:50006" app_id=order-processor instance=LAPTOP scope=dapr.runtime.scheduler type=log ver=1.15.2
time="2025-03-04T14:17:40.524412+01:00" level=error msg="Failed to connect to scheduler host: failed to watch scheduler hosts: rpc error: code = Unavailable desc = connection error: desc = \"transport: Error while dialing: dial tcp [::1]:50006: connectex: No connection could be made because the target machine actively refused it.\"" app_id=order-processor instance=LAPTOP scope=dapr.runtime.scheduler type=log ver=1.15.2

When using standard dapr run -- dotnet run from order-processor folder, everything works as expected.

Steps to Reproduce the Problem

  1. Clone repo https://github.com/dapr/quickstarts/tree/master/workflows/csharp/sdk
  2. Navigate to directory workflows/csharp/sdk
  3. Follow the README.md instructions
  4. Run dapr run -f .

Release Note

RELEASE NOTE: FIX Dapr run with file failing to connect to scheduler on Windows

@antontroshin antontroshin added the kind/bug Something isn't working label Mar 5, 2025
@antontroshin antontroshin self-assigned this Mar 5, 2025
@antontroshin antontroshin added this to the v1.15 milestone Mar 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant