Skip to content

az containerapp logs show intermittent SSL errors (UNEXPECTED_EOF_WHILE_READING) #33146

@achandmsft

Description

@achandmsft

Problem

az containerapp logs show intermittently fails with SSL errors when the container is restarting or shortly after deployment:

HTTPSConnectionPool(host='eastus2.azurecontainerapps.dev', port=443): Max retries exceeded
Caused by SSLError(SSLEOFError(8, '[SSL: UNEXPECTED_EOF_WHILE_READING] EOF occurred in violation of protocol'))

This makes debugging container startup issues difficult since logs are unavailable precisely when they're most needed.

Reproduction

  1. Deploy a container app to ACA
  2. While the container is activating/restarting, run:
    az containerapp logs show --name <app> --resource-group <rg> --tail 20
  3. SSL error occurs intermittently

Expected behavior

Log streaming should handle connection interruptions gracefully, perhaps with retries or a clearer error message indicating the container is still starting.

Environment

  • Azure CLI 2.x (latest)
  • ACA in East US 2
  • Container in Activating/Restarting state

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions