Skip to content

Unrecoverable error: amqp:not-allowed - connection is closing. Operation 'begin' cannot be performed. #27016

Description

@benlings

Bug Report

  • import path of package in question: "github.com/Azure/azure-sdk-for-go/sdk/messaging/azservicebus"

  • SDK version: v1.8.1

  • output of go version: go version go1.26.1

  • What happened?

Periodically (every few months), we see the following error in one of our services.

Error{Condition: amqp:not-allowed, Description: The AMQP object in-connection656105([SERVER NAME REDACTED]) is closing. Operation 'begin' cannot be performed., Info: map[]}

We get this error in both our receive loop and when sending a message. The receive loop seems to recover on the next iteration of the loop. Sending doesn't recover - we don't see any successful sends from the service instance until it's restarted.

  • What did you expect or want to happen?

SDK either shouldn't error in this situation or should successfully recover/retry.

  • How can we reproduce it?

Unfortunately, we've not been able to reliably reproduce.

  • Anything we should know about your environment.

This is a microservice running in Kubernetes (AKS). Container image has debian:12 as a base image. Each service opens a single connection (azservicebus.NewClientFromConnectionString), then one Sender per topic/queue and one Receiver per topic subscription/queue. These all have a lifetime of the whole service process.

Metadata

Metadata

Assignees

No one assigned

    Labels

    ClientThis issue points to a problem in the data-plane of the library.Service AttentionWorkflow: This issue is responsible by Azure service team.Service Buscustomer-reportedIssues that are reported by GitHub users external to the Azure organization.needs-team-attentionWorkflow: This issue needs attention from Azure service team or SDK teamquestionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions