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

could not start the proxy for the service #7783

Open
1 task done
Aydinmfatih opened this issue Feb 26, 2025 · 15 comments
Open
1 task done

could not start the proxy for the service #7783

Aydinmfatih opened this issue Feb 26, 2025 · 15 comments
Milestone

Comments

@Aydinmfatih
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

I am getting the error "could not start the proxy for the service".

All I did was add Aspire Orchestrator Support to my project. There is no conflict in the launchSettings.json, but I still get this error:

fail: Aspire.Hosting.Dcp.dcpctrl.ServiceReconciler[0]
could not start the proxy {"ServiceName": {"name":"servicea-http"}, "Reconciliation": 6, "error": "could not start the proxy for the service: listen tcp 127.0.0.1:5010: bind: Only one usage of each socket address (protocol/network address/port) is normally permitted."}

Expected Behavior

No response

Steps To Reproduce

No response

Exceptions (if any)

No response

.NET Version info

No response

Anything else?

No response

@davidfowl
Copy link
Member

Is that port in use?

@karolz-ms @dbreshears

@Aydinmfatih
Copy link
Author

Here is my Service port : "applicationUrl": "https://localhost:7206;http://localhost:5010",

Aspire port : "applicationUrl": "https://localhost:17145;http://localhost:15184",

@davidfowl
Copy link
Member

if you change the 5010 port does it work?

@Aydinmfatih
Copy link
Author

Unfortunately, I have tried this before, but I keep getting the same error.

"could not start the proxy for the service: listen tcp 127.0.0.1:5025"

@davidfowl
Copy link
Member

Does this help?

#3355 (comment)

@Aydinmfatih
Copy link
Author

I checked the ports, but the ones I am using are not in use.

@davidfowl
Copy link
Member

Can you try this #7317 (comment)

@Aydinmfatih
Copy link
Author

I Tried for diffrent project and ı get System.IO.IOException: 'Failed to bind to address https://127.0.0.1:7094: address already in use.'

I tried #7317 (comment)

@afscrome
Copy link
Contributor

Are you using aspire 9.1? If not, try upgrading. 9.0 has known issues whereby if you restart your project, you'll see these errors as the new instance tries to use port before the old instance releases them.

@Aydinmfatih
Copy link
Author

I was using Aspire 9 and updated to 9.1, but I'm still getting the same error:
System.IO.IOException: 'Failed to bind to address https://127.0.0.1:7094/: address already in use.'

@davidfowl
Copy link
Member

@Aydinmfatih Can you share your project information? The csproj file of the app host and dotnet --info on the command line?

@dbreshears
Copy link
Contributor

@Aydinmfatih, when this occurs, how many instances of dcp.exe or dcpctrl.exe are running?

@Aydinmfatih
Copy link
Author

@Aydinmfatih, when this occurs, how many instances of dcp.exe or dcpctrl.exe are running?

two instance running

H:>tasklist | findstr /i "dcp.exe dcpctrl.exe"
dcp.exe 32092 RDP-Tcp#85 3 59.492 K
dcpctrl.exe 24172 RDP-Tcp#85 3 48.744 K

@Aydinmfatih
Copy link
Author

@Aydinmfatih Can you share your project information? The csproj file of the app host and dotnet --info on the command line?

`.NET SDK:
Version: 9.0.101
Commit: eedb237549
Workload version: 9.0.100-manifests.69179adf
MSBuild version: 17.12.12+1cce77968

Çalışma Zamanı Ortamı:
OS Name: Windows
OS Version: 10.0.19045
OS Platform: Windows
RID: win-x64
Base Path: C:\Program Files\dotnet\sdk\9.0.101\

.NET iş yükleri yüklendi:
[aspire]
Yükleme Kaynağı: SDK 9.0.100, VS 17.12.35527.113
Bildirim Sürümü: 8.2.2/8.0.100
Bildirim Yolu: C:\Program Files\dotnet\sdk-manifests\8.0.100\microsoft.net.sdk.aspire\8.2.2\WorkloadManifest.json
Yükleme Türü: Msi

[wasm-tools-net6]
Yükleme Kaynağı: SDK 9.0.100, VS 17.12.35527.113
Bildirim Sürümü: 9.0.2/9.0.100
Bildirim Yolu: C:\Program Files\dotnet\sdk-manifests\9.0.100\microsoft.net.workload.mono.toolchain.net6\9.0.2\WorkloadManifest.json
Yükleme Türü: Msi

[wasm-tools-net7]
Yükleme Kaynağı: SDK 9.0.100, VS 17.12.35527.113
Bildirim Sürümü: 9.0.2/9.0.100
Bildirim Yolu: C:\Program Files\dotnet\sdk-manifests\9.0.100\microsoft.net.workload.mono.toolchain.net7\9.0.2\WorkloadManifest.json
Yükleme Türü: Msi

[wasm-tools-net8]
Yükleme Kaynağı: SDK 9.0.100, VS 17.12.35527.113
Bildirim Sürümü: 9.0.2/9.0.100
Bildirim Yolu: C:\Program Files\dotnet\sdk-manifests\9.0.100\microsoft.net.workload.mono.toolchain.net8\9.0.2\WorkloadManifest.json
Yükleme Türü: Msi

Yeni bildirimler yüklenirken loose manifests kullanılacak şekilde yapılandırıldı.

Host:
Version: 9.0.0
Architecture: x64
Commit: 9d5a6a9aa4

.NET SDKs installed:
3.1.426 [C:\Program Files\dotnet\sdk]
5.0.213 [C:\Program Files\dotnet\sdk]
6.0.423 [C:\Program Files\dotnet\sdk]
7.0.410 [C:\Program Files\dotnet\sdk]
8.0.404 [C:\Program Files\dotnet\sdk]
9.0.101 [C:\Program Files\dotnet\sdk]

.NET runtimes installed:
Microsoft.AspNetCore.App 3.1.32 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 5.0.16 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 6.0.31 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 7.0.20 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 8.0.11 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 9.0.0 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 2.1.30 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 3.1.32 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 5.0.16 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 6.0.31 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 7.0.20 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 8.0.11 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 9.0.0 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 3.1.32 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 5.0.16 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 6.0.31 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 7.0.20 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 8.0.11 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 9.0.0 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]

Other architectures found:
x86 [C:\Program Files (x86)\dotnet]
registered at [HKLM\SOFTWARE\dotnet\Setup\InstalledVersions\x86\InstallLocation]

Environment variables:
Not set

global.json file:
Not found

Learn more:
https://aka.ms/dotnet/info

Download .NET:
https://aka.ms/dotnet/download`

here is dotnet info for AppHost

@davidfowl davidfowl added this to the 9.2 milestone Feb 27, 2025
@davidfowl
Copy link
Member

@dbreshears putting this in 9.2 to investigate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants