Open ubexplorer opened 2 years ago
route to CXP team
@SerhiiZavalko Is your resource name containing any Unicode characters?
@SaurabhSharma-MSFT No, but I suppose stdout containing such characters. This error occurs only with az logs
command.
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @macolso.
Author: | SerhiiZavalko |
---|---|
Assignees: | SaurabhSharma-MSFT |
Labels: | `Service Attention`, `Container Instances`, `customer-reported`, `Auto-Assign` |
Milestone: | - |
This happned to me as well, I was trying to build a docker container on a windows VM targeting a linux environment
UnicodeEncodeError: 'charmap' codec can't encode character '\u2192' in position 3564: character maps to <undefined>
Got the same error as @esdccs1 where I am on a windows VM targeting a linux environment
ERROR: The command failed with an unexpected error. Here is the traceback:
ERROR: 'charmap' codec can't encode characters in position 1977-2016: character maps to
Any updates? or a workaround?
Having same issue on Windows
22:14:52 [DBG] ERROR: The command failed with an unexpected error. Here is the traceback:
22:14:52 [DBG] (Reading database ... 10312 files and directories currently installed.)
22:14:52 [DBG]
22:14:52 [DBG] Preparing to unpack .../00-python3_3.8.2-0ubuntu2_amd64.deb ...
22:14:52 [DBG]
22:14:52 [DBG] ERROR: 'charmap' codec can't encode character '\u2192' in position 516: character maps to <undefined>
22:14:52 [DBG] Unpacking python3 (3.8.2-0ubuntu2) ...
22:14:52 [DBG] Traceback (most recent call last):
22:14:52 [DBG]
22:14:52 [DBG] File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\knack/cli.py", line 233, in invoke
22:14:52 [DBG] Selecting previously unselected package libapparmor1:amd64.
22:14:52 [DBG] File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 664, in execute
22:14:52 [DBG]
22:14:52 [DBG] File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 731, in _run_jobs_serially
22:14:52 [DBG] Preparing to unpack .../01-libapparmor1_2.13.3-7ubuntu5.3_amd64.deb ...
22:14:52 [DBG] File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 701, in _run_job
22:14:52 [DBG]
22:14:52 [DBG] File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 334, in __call__
22:14:52 [DBG] Unpacking libapparmor1:amd64 (2.13.3-7ubuntu5.3) ...
22:14:52 [DBG] 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
22:14:52 [DBG]
22:14:52 [DBG] File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/command_modules/acr/build.py", line 143, in acr_build
22:14:52 [DBG] Selecting previously unselected package libcap2:amd64.
22:14:52 [DBG] File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/command_modules/acr/_stream_utils.py", line 58, in stream_logs
22:14:52 [DBG]
22:14:52 [DBG] File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/command_modules/acr/_stream_utils.py", line 143, in _stream_logs
22:14:52 [DBG] Preparing to unpack .../02-libcap2_1%3a2.32-1ubuntu0.1_amd64.deb ...
22:14:52 [DBG] File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\colorama/ansitowin32.py", line 47, in write
22:14:52 [DBG]
22:14:52 [DBG] File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\colorama/ansitowin32.py", line 177, in write
22:14:52 [DBG] Unpacking libcap2:amd64 (1:2.32-1ubuntu0.1) ...
22:14:52 [DBG] File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\colorama/ansitowin32.py", line 205, in write_and_convert
22:14:52 [DBG]
22:14:52 [DBG] File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\colorama/ansitowin32.py", line 210, in write_plain_text
22:14:52 [DBG] Selecting previously unselected package libargon2-1:amd64.
22:14:52 [DBG] File "encodings\cp1252.py", line 19, in encode
This is autogenerated. Please review and update as needed.
Describe the bug
Command Name
az container logs
Errors:
To Reproduce:
Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.
az container logs --resource-group {} --name {}
Expected Behavior
Environment Summary
Additional Context