Skip to content

Dashboard used wrong ports for the app #9784

Closed as duplicate of#9717
Closed as duplicate of#9717
@KSemenenko

Description

@KSemenenko

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

if port for api service is taken or auto assigned, dashboard can't get it.

logs for app

Microsoft.Hosting.Lifetime: Information: Now listening on: https://localhost:63961
Microsoft.Hosting.Lifetime: Information: Now listening on: http://localhost:63962
Microsoft.Hosting.Lifetime: Information: Application started. Press Ctrl+C to shut down.
Microsoft.Hosting.Lifetime: Information: Hosting environment: Development
Microsoft.Hosting.Lifetime: Information: Content root path: /Users/ksemenenko/Developer/SiloLinker/SiloLinker

as yout can see app started on 63961 and 63962

But in dashboard

Image

as you can see ports are 7079 and 5079 so this is not right

Expected Behavior

dashboard should properly managed ports

Steps To Reproduce

No response

Exceptions (if any)

log for aspire

info: Aspire.Hosting.DistributedApplication[0]
      Aspire version: 9.3.0+f76a033601ade4a17a422d5d1e4d004ab85e5179
info: Aspire.Hosting.DistributedApplication[0]
      Distributed application starting.
info: Aspire.Hosting.DistributedApplication[0]
      Application host directory is: /Users/ksemenenko/Developer/SiloLinker/SiloLinker.AppHost
info: Aspire.Hosting.DistributedApplication[0]
      Now listening on: http://localhost:15160
info: Aspire.Hosting.DistributedApplication[0]
      Login to the dashboard at http://localhost:15160/login?t=57bdc1d4-b026-4750-a9b4-2b15abbf5cab
info: Aspire.Hosting.DistributedApplication[0]
      Distributed application started. Press Ctrl+C to shut down.
fail: Aspire.Hosting.Dcp.dcpctrl.ServiceReconciler[0]
      could not start the proxy {"ServiceName": {"name":"silolinker-http"}, "Reconciliation": 81, "error": "could not start the proxy for the service: listen tcp [::1]:5079: bind: address already in use"}
fail: Aspire.Hosting.Dcp.dcpctrl.ServiceReconciler[0]
      could not start the proxy {"ServiceName": {"name":"silolinker-https"}, "Reconciliation": 82, "error": "could not start the proxy for the service: listen tcp [::1]:7079: bind: address already in use"}
fail: Aspire.Hosting.Dcp.dcpctrl.ServiceReconciler[0]
      could not start the proxy {"ServiceName": {"name":"silolinker-https"}, "Reconciliation": 84, "error": "could not start the proxy for the service: listen tcp [::1]:7079: bind: address already in use"}
fail: Aspire.Hosting.Dcp.dcpctrl.ServiceReconciler[0]
      could not start the proxy {"ServiceName": {"name":"silolinker-http"}, "Reconciliation": 83, "error": "could not start the proxy for the service: listen tcp [::1]:5079: bind: address already in use"}

.NET Version info

.NET SDK:
 Version:           9.0.203
 Commit:            dc7acfa194
 Workload version:  9.0.200-manifests.87b8cca8
 MSBuild version:   17.13.20+a4ef1e90f

Runtime Environment:
 OS Name:     Mac OS X
 OS Version:  15.5
 OS Platform: Darwin
 RID:         osx-arm64
 Base Path:   /usr/local/share/dotnet/sdk/9.0.203/

.NET workloads installed:
 [aspire]
   Installation Source: SDK 9.0.200
   Manifest Version:    8.2.2/8.0.100
   Manifest Path:       /usr/local/share/dotnet/sdk-manifests/8.0.100/microsoft.net.sdk.aspire/8.2.2/WorkloadManifest.json
   Install Type:        FileBased

Configured to use loose manifests when installing new manifests.

Host:
  Version:      9.0.4
  Architecture: arm64
  Commit:       f57e6dc747

.NET SDKs installed:
  7.0.309 [/usr/local/share/dotnet/sdk]
  8.0.404 [/usr/local/share/dotnet/sdk]
  9.0.203 [/usr/local/share/dotnet/sdk]

.NET runtimes installed:
  Microsoft.AspNetCore.App 6.0.18 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 7.0.12 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 8.0.6 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 8.0.7 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 8.0.8 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 8.0.11 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 9.0.0 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 9.0.2 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 9.0.3 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 9.0.4 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 6.0.18 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
  Microsoft.NETCore.App 7.0.12 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
  Microsoft.NETCore.App 8.0.6 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
  Microsoft.NETCore.App 8.0.7 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
  Microsoft.NETCore.App 8.0.8 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
  Microsoft.NETCore.App 8.0.11 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
  Microsoft.NETCore.App 9.0.0 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
  Microsoft.NETCore.App 9.0.2 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
  Microsoft.NETCore.App 9.0.3 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
  Microsoft.NETCore.App 9.0.4 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]

Other architectures found:
  None

Environment variables:
  Not set

global.json file:
  Not found

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions