-
Notifications
You must be signed in to change notification settings - Fork 202
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
"Ports are not available" for dapr_scheduler in Windows using Docker #1464
Comments
This issue has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in the next 7 days unless it is tagged (pinned, good first issue, help wanted or triaged/resolved) or other activity occurs. Thank you for your contributions. |
This issue has been automatically closed because it has not had activity in the last 37 days. If this issue is still valid, please ping a maintainer and ask them to label it as pinned, good first issue, help wanted or triaged/resolved. Thank you for your contributions. |
This is still a bug, any update on how to work around or fix this? @boclifton-MSFT |
Hello @boclifton-MSFT and @deanberris The error
A more permanent solution would be modifying the dynamic port reservation range. BUT I STRONGLY SUGGEST AGAINST IT, ESPECIALLY ON PRODUCTION SYSTEMSWARNING: Modifying system defaults is solely the responsibility of the user and I cannot guarantee the results or be responsible for any harm caused to the system. You can read more on this topic here In my case, I've modified the dynamic limit above the default Dapr port ranges on Windows. |
Thanks for the suggestion. Could this be something that can be fixed in Dapr where it can pick from a set of ports, instead of using a single static port? |
Would be nice, if there will be a fix in DAPR. Restart doesn't solve the problem for me. Limiting the dynamic port range is an option, but not a good one. |
Just chiming in with my workaround. From an elevated terminal, run I've added this as a workaround to the troubleshooting docs in an open PR. |
Expected Behavior
Scheduler container starts as expected.
Actual Behavior
dapr init
gives a Docker error:Docker Desktop reports this error:
(HTTP code 500) server error - Ports are not available: exposing port TCP 0.0.0.0:52379 -> 0.0.0.0:0: listen tcp4 0.0.0.0:52379: bind: An attempt was made to access a socket in a way forbidden by its access permissions.
Steps to Reproduce the Problem
Started from a fresh installation and followed the instructions in Initialize Dapr in your local environment.
Release Note
RELEASE NOTE:
FIX: Docker port issue resolved with default
dapr_scheduler
portThe text was updated successfully, but these errors were encountered: