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

Azure Functions won't start due to port is unavailable exception #6699

Open
1 task done
Depechie opened this issue Nov 17, 2024 · 0 comments
Open
1 task done

Azure Functions won't start due to port is unavailable exception #6699

Depechie opened this issue Nov 17, 2024 · 0 comments
Labels
area-integrations Issues pertaining to Aspire Integrations packages area-orchestrator azure Issues associated specifically with scenarios tied to using Azure azure-functions Issues related to the Azure Functions integration
Milestone

Comments

@Depechie
Copy link
Contributor

Depechie commented Nov 17, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

When running a .NET Aspire solution after the first time, containing an Azure Functions project with the https://learn.microsoft.com/en-us/dotnet/aspire/serverless/functions?tabs=dotnet-cli&pivots=dotnet-cli integration, the functions will not start because of the fact that the configured port is still in use.
Seems the cleanup process does not stop all processes.

Expected Behavior

All running processes are stopped when pressing ctrl+c to shut down the running Aspire project

Steps To Reproduce

Create an Aspire project containing an Azure function project
Run the Aspire apphost for the first time with dotnet run --project AspireFunctions.AppHost
See that the function app is loaded and working
Stop the AppHost with ctrl+c
Run the Aspire apphost for a second time with dotnet run --project AspireFunctions.AppHost
See that the function app fails to start due to port still being in use

Project running on MacOS

Exceptions (if any)

Port 7288 is unavailable

.NET Version info

9.0.100

Anything else?

Project running on MacOS
List running processes with sudo lsof -i -P -n | grep LISTEN and see that dotnet still has running items

Image

@davidfowl davidfowl added area-integrations Issues pertaining to Aspire Integrations packages azure Issues associated specifically with scenarios tied to using Azure azure-functions Issues related to the Azure Functions integration labels Nov 18, 2024
@dbreshears dbreshears modified the milestone: Backlog Nov 18, 2024
@dbreshears dbreshears added the untriaged New issue has not been triaged label Nov 18, 2024
@joperezr joperezr added this to the Backlog milestone Nov 20, 2024
@joperezr joperezr removed the untriaged New issue has not been triaged label Nov 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-integrations Issues pertaining to Aspire Integrations packages area-orchestrator azure Issues associated specifically with scenarios tied to using Azure azure-functions Issues related to the Azure Functions integration
Projects
None yet
Development

No branches or pull requests

4 participants