Skip to content

Intermittent network connectivity issues to containers and service-to-service + "Rejoining Server" message in Aspire Dashboard #15869

@jasonshave

Description

@jasonshave

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

Set up my new workstation and I'm plagued by this 'rejoining server' message. Networking generally seems broken (apps can't connect to my infra containers like Cosmos DB emulator, Azurite, etc.). It doesn't happen all the time. I can restart 2, 3, 4 times and it continues to be an issue, then on the 5th try, it works and is fine for an hour. I can't seem to nail down what's wrong.

Same codebase on another PC works mostly fine including 4 other team member machines. I did get this same issue on my corporate laptop (Lenovo) as well but it was much less often. Sometimes I can get lucky by shutting down Visual Studio, giving it a minute, then starting back up will usually clear things up but not always.

We don't use any proxy servers and there is nothing other than standard Intune enrollment going on.

Here is the Azurite error: System.AggregateException: 'Retry failed after 3 tries. Retry settings can be adjusted in ClientOptions.Retry or by configuring a custom retry policy in ClientOptions.RetryPolicy. (No connection could be made because the target machine actively refused it. (127.0.0.1:62311))

Here is Redis: StackExchange.Redis.RedisConnectionException: It was not possible to connect to the redis server(s). Error connecting right now. To allow this multiplexer to continue retrying until it's able to connect, use abortConnect=false in your connection string or AbortOnConnectFail=false; in your code. ConnectTimeout

Running about 25 ASP.NET 8 services and several infrastructure containers like Cosmos DB Emulator, Raven DB, NATS, Azurite.

Expected Behavior

When things work, there are no issues. All services start, containers which are persisted are always available and function properly.

Steps To Reproduce

We have a very large code base so reproducing this would take a lot of work.

Exceptions (if any)

No response

.NET Version info

All services run .NET 8.

Anything else?

Aspire version is 13.2.1
Visual Studio 18.4.3

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-app-modelIssues pertaining to the APIs in Aspire.Hosting, e.g. DistributedApplication

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions