Skip to content
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

# ERROR: Ansible could not initialize the preferred locale #3

Open
jsanc525 opened this issue Nov 17, 2023 · 0 comments
Open

# ERROR: Ansible could not initialize the preferred locale #3

jsanc525 opened this issue Nov 17, 2023 · 0 comments

Comments

@jsanc525
Copy link

jsanc525 commented Nov 17, 2023

When trying to run ansible-playbooks from the tdp-dev node the error Ansible could not initialize the preferred locale is encountered.

CAUSE:

since ansible 2.14.0 ansible-core requires the locale to have UTF-8 encoding. Excerpt from the 2.14.0 release notes1

ansible - At startup the filesystem encoding and locale are checked to verify they are UTF-8. If not, the process exits with an error reporting the errant encoding.

PROPOSED SOLUTIONS:
  • The install guide could be updated to alert users they need to install glibc-all-langpacks or run export LC_ALL="C.UTF-8 on the tdp-dev node.
  • Update so that glibc-all-langpacks is installed on the tdp-dev node.

Footnotes

  1. https://github.com/ansible/ansible/blob/7bb078bd740fba8ad43cc69e18fc8aeb4719180a/changelogs/CHANGELOG-v2.14.rst#id11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant