Skip to content

Unable to query console logs via CLI #299

@zlatko-ms

Description

@zlatko-ms

Please provide us with the following information:

This issue is a: (mark with an x)

  • [ X] bug report -> please search issues before submitting
  • documentation issue or request
  • regression (a behavior that used to work and stopped in a new release)

Issue description

When querying the console logs of an app using the CLI with the following command :

az containerapp logs show -n helloer -g privatecapps

I get the following error :

HTTPSConnectionPool(host='helloer.politesky-4265fa35.westeurope.azurecontainerapps.io', port=443): Max retries exceeded with url: / (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fd008c21ea0>: Failed to establish a new connection: [Errno -2] Name or service not known'))

Please note that :

  • the log stream from the portal correctly displays the logs for this application
  • the apps serves via HTTP with an average load around 100 Requests per second

An app within the same Environnement, but not serving HTTP requests can be queried for logs without issues.

Steps to reproduct

  1. Deploy an app with HTTP serving ~ 100 Requests/seconds
  2. Issue the `az containerapp logs show -n ...' command

Expected behavior [What you expected to happen.]

Application console logs are displayed.

Actual behavior [What actually happened.]

Throws an error with the following message :

HTTPSConnectionPool(host='helloer.politesky-4265fa35.westeurope.azurecontainerapps.io', port=443): Max retries exceeded with url: / (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fd008c21ea0>: Failed to establish a new connection: [Errno -2] Name or service not known'))

Screenshots

See command and error in the screenshot.

Additional context

Ex. Did this issue occur in the CLI or the Portal?
errorLogsACA

Metadata

Metadata

Assignees

No one assigned

    Labels

    CLIRelated to CLI

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions