-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UnicodeEncodeError: 'charmap' codec can't encode characters in position 192-231: character maps to <undefined> #23776
Comments
route to CXP team |
@mattmazzola Thanks for reaching out to us and reporting this issue. We are looking into this issue and we will provide an update. |
@mattmazzola I think it's a platform issue related to the unique combination Windows + Python. Could you please try to update the Windows system language setting as shown below ? Control panel -> Clock and Region -> Region -> Administrative -> Change system locale -> Check Beta: Use Unicode UTF-8 for worldwide language support. The change will require reboot. Please let me know if you still face the same issue. Awaiting your reply. |
You have listed instructions that show using the Windows GUI. https://github.com/actions/runner-images/blob/main/images/win/Windows2022-Readme.md I assume the setting could be controlled via the Registry or enabled by via PowerShell, although I don't think I would have opportunity to "restart" the container
|
@mattmazzola Could you please try with the below registry key which does the same in the background.
|
I added those commands to modify Registry and It seems to have worked! Before the pipeline was failing on step 4/14 (see fulll snippet above)
It says this is a beta feature, but I imagine this is causing issues for many others trying to create images for python based applications. I will close with these two future items you may consider:
|
How would you go about doing this for an acr task generated through "az acr task create". My task is failing due to this same UnicodeEncodeError |
Describe the bug
When attempting to build a Docker image using
az acr build
the build fails in the ADO pipeline.However, the same
az acr build
works locally.Perhaps this issue could be transferred to ADO if appropriate.
Command Name
az acr build <removed>
Errors:
To Reproduce:
Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.
It's not clear how to reproduce since we can't run ADO pipeline environment locally. The error makes it seems like file encoding issue.
I am attempting to build and push 3 images in the pipeline.
For images 1 and 2
az acr build
executes without issues.This makes it seems like there is something wrong with the 3rd Dockefile.
However, I cans run
az acr build
for that file from my local machine and it succeeds which suggests the Dockerfile is ok, and it is in fact something specific to runningaz
cli in ADOAs I understand the first thing
az acr build
does is create a.tar.gz
of the build context and send it to an ACR agent.It would suggest that the files it is packaging and sending locally are encoded differently than those it packages and sends during the pipeline run. This would explain why the agent succeeds with the former but fails with the latter.
Although both the local machine and pipeline are using Windows
Expected Behavior
az acr build
should work the same in ADO build as it does locally.Environment Summary
Additional Context
The text was updated successfully, but these errors were encountered: