microsoft / azure-container-apps

Roadmap and issues for Azure Container Apps
MIT License
372 stars 29 forks source link

Cannot connect/read logs of a working Container App #1299

Open CezaryKlus opened 1 month ago

CezaryKlus commented 1 month ago

This issue is a:

Issue description

  1. Cannot connect to a working Container App:

    • From Portal image
    • From console The command failed with an unexpected error. Here is the traceback: Handshake status 401 Unauthorized Traceback (most recent call last): File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\knack/cli.py", line 233, in invoke File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 666, in execute File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 733, in _run_jobs_serially File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 703, in _run_job File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 336, in __call__ File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/command_operation.py", line 121, in handler File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/command_modules/containerapp/custom.py", line 3525, in containerapp_ssh File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/command_modules/containerapp/_ssh_utils.py", line 61, in __init__ File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\websocket/_core.py", line 253, in connect File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\websocket/_handshake.py", line 57, in handshake File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\websocket/_handshake.py", line 148, in _get_resp_headers websocket._exceptions.WebSocketBadStatusException: Handshake status 401 Unauthorized
  2. Cannot read log stream in Portal of another working (all green) Container App, neither Console nor System image

  3. az logout/login performed. Refreshed credentials in Azure Portal. Didn't help

  4. Redeploying all the apps (creating new revisions) in the Azure Container App environment didn't help.

This affects the whole environment in West Europe

admsallai commented 1 month ago

I have the same issue

v-vish commented 1 month ago

@CezaryKlus Hi...We have just replicated this from our end and it worked for us. Could you please retest and confirm.

CezaryKlus commented 1 month ago

@v-vish it started to work but I would like to know that this won't happen again if ACA considers itself to be a production-grade platform. Thanks

naveensky commented 1 month ago

I am facing same issue when connecting to ACA replica. Is there a way to get it working?

simonjj commented 1 month ago

Thank you for continuing to report these issues. We've identified a potential issue and are continuing to investigate.

simonjj commented 1 month ago

@naveensky can you please share your environment and app details via acasupport at microsoft.com and reference this issue in the email please?

simonjj commented 4 weeks ago

We've identified the issue and have a fix. This will be deployed in the coming days and should be available globally by November 7th.