az acr build error, but build is successful
See original GitHub issueThis is autogenerated. Please review and update as needed.
Describe the bug
az acr build queues a task to ACR but fails with this error below
Command Name
az acr build
Errors:
The command failed with an unexpected error. Here is the traceback:
'charmap' codec can't encode character '\u0151' in position 1785: character maps to <undefined>
Traceback (most recent call last):
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\knack/cli.py", line 231, in invoke
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 663, in execute
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 726, in _run_jobs_serially
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 697, in _run_job
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 333, in __call__
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/command_operation.py", line 121, in handler
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/command_modules/acr/build.py", line 143, in acr_build
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/command_modules/acr/_stream_utils.py", line 58, in stream_logs
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/command_modules/acr/_stream_utils.py", line 143, in _stream_logs
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\colorama/ansitowin32.py", line 41, in write
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\colorama/ansitowin32.py", line 162, in write
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\colorama/ansitowin32.py", line 190, in write_and_convert
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\colorama/ansitowin32.py", line 195, in write_plain_text
File "encodings\cp1252.py", line 19, in encode
UnicodeEncodeError: 'charmap' codec can't encode character '\u0151' in position 1785: character maps to <undefined>
To Reproduce:
Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.
az acr build -t <my-image> -r <myacr> --platform linux -f file-in-utf8 <context>
Expected Behavior
Environment Summary
Windows-10-10.0.19042-SP0
Python 3.10.4
Installer: MSI
azure-cli 2.37.0
Extensions:
application-insights 0.1.16
interactive 0.4.5
resource-graph 2.1.0
Dependencies:
msal 1.18.0b1
azure-mgmt-resource 21.1.0b1
Additional Context
Issue Analytics
- State:
- Created a year ago
- Comments:9 (2 by maintainers)
Top Results From Across the Web
az acr build is always failing to run on windows - Stack Overflow
By running the below az acr build we are successfully able to build an image & pushed it to the acr registry ....
Read more >Quickstart - Build a container image on-demand in Azure
Run the az acr build command, which builds the image and, after the image is successfully built, pushes it to your registry.
Read more >az acr build of container that takes more 30 minutes
According to the logs, it appears that the image you specified is not existing there. So,please double check that and make sure the...
Read more >Build your Spring Boot project using Azure Pipelines ... - Medium
Create a simple Spring Boot Maven project and push it to Azure Repos; Build an Azure pipeline to execute a Maven build; Build...
Read more >Automatically create container images using Azure Container ...
In the description box type something like” ACR Auto Build” ... have two failed builds as the platform mismatched and two successful builds, ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Workaround found: It works with
--no-logs --no-format
.Hi, we’re sending this friendly reminder because we haven’t heard back from you in a while. We need more information about this issue to help address it. Please be sure to give us your input within the next 7 days. If we don’t hear back from you within 14 days of this comment the issue will be automatically closed. Thank you!