-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Always got "Please ensure your locale is set to UTF-8" #3548
Comments
You need to set those variables properly. Here is how it looks in my machine:
See this Stack Overflow answer for more ideas. Finally, please use the mailing list or stack overflow for questions. |
You need to set at least |
Thanks @josevalim , I'll check it now |
When we use rabbitmq 3.7 we might hit the following issue when running rabbitmqctl commands inside containers (as puppet does): Error: Failed to apply catalog: Cannot parse invalid user line: warning: the VM is running with native name encoding of latin1 which may cause Elixir to malfunction as it expects utf8. Please ensure your locale is set to UTF-8 (which can be verified by running "locale" in your shell) This is fundamentally the tripleo version of voxpupuli/puppet-rabbitmq#671 This is a strict requirement coming from Elixir: elixir-lang/elixir#3548 Since containers do not have UTF-8 as a default we have this problem: [root@overcloud-controller-0 ~]# podman exec -it rabbitmq-bundle-podman-0 sh ()[root@overcloud-controller-0 /]$ rabbitmqctl -q list_users warning: the VM is running with native name encoding of latin1 which may cause Elixir to malfunction as it expects utf8. Please ensure your locale is set to UTF-8 (which can be verified by ru nning "locale" in your shell) user tags guest [administrator] ()[root@overcloud-controller-0 /]$ locale LANG= LC_CTYPE="POSIX" LC_NUMERIC="POSIX" LC_TIME="POSIX" LC_COLLATE="POSIX" LC_MONETARY="POSIX" LC_MESSAGES="POSIX" LC_PAPER="POSIX" LC_NAME="POSIX" LC_ADDRESS="POSIX" LC_TELEPHONE="POSIX" LC_MEASUREMENT="POSIX" LC_IDENTIFICATION="POSIX" LC_ALL= Co-Authored-By: Damien Ciabrini <dciabrin@redhat.com> Related-Bug: #1822673 Change-Id: I21ef2e7862f3e5e21812d342b1681f8d5f7f005d
* Update puppet-tripleo from branch 'master' - Merge "Force C.UTF-8 when dealing with rabbitmq" - Force C.UTF-8 when dealing with rabbitmq When we use rabbitmq 3.7 we might hit the following issue when running rabbitmqctl commands inside containers (as puppet does): Error: Failed to apply catalog: Cannot parse invalid user line: warning: the VM is running with native name encoding of latin1 which may cause Elixir to malfunction as it expects utf8. Please ensure your locale is set to UTF-8 (which can be verified by running "locale" in your shell) This is fundamentally the tripleo version of voxpupuli/puppet-rabbitmq#671 This is a strict requirement coming from Elixir: elixir-lang/elixir#3548 Since containers do not have UTF-8 as a default we have this problem: [root@overcloud-controller-0 ~]# podman exec -it rabbitmq-bundle-podman-0 sh ()[root@overcloud-controller-0 /]$ rabbitmqctl -q list_users warning: the VM is running with native name encoding of latin1 which may cause Elixir to malfunction as it expects utf8. Please ensure your locale is set to UTF-8 (which can be verified by ru nning "locale" in your shell) user tags guest [administrator] ()[root@overcloud-controller-0 /]$ locale LANG= LC_CTYPE="POSIX" LC_NUMERIC="POSIX" LC_TIME="POSIX" LC_COLLATE="POSIX" LC_MONETARY="POSIX" LC_MESSAGES="POSIX" LC_PAPER="POSIX" LC_NAME="POSIX" LC_ADDRESS="POSIX" LC_TELEPHONE="POSIX" LC_MEASUREMENT="POSIX" LC_IDENTIFICATION="POSIX" LC_ALL= Co-Authored-By: Damien Ciabrini <dciabrin@redhat.com> Related-Bug: #1822673 Change-Id: I21ef2e7862f3e5e21812d342b1681f8d5f7f005d
* Update tripleo-heat-templates from branch 'master' - Merge "Force C.UTF-8 when dealing with rabbitmq" - Force C.UTF-8 when dealing with rabbitmq When we use rabbitmq 3.7 we might hit the following issue when running rabbitmqctl commands inside containers (as puppet does): Error: Failed to apply catalog: Cannot parse invalid user line: warning: the VM is running with native name encoding of latin1 which may cause Elixir to malfunction as it expects utf8. Please ensure your locale is set to UTF-8 (which can be verified by running "locale" in your shell) This is fundamentally the tripleo version of voxpupuli/puppet-rabbitmq#671 This is a strict requirement coming from Elixir: elixir-lang/elixir#3548 Since containers do not have UTF-8 as a default we have this problem: [root@overcloud-controller-0 ~]# podman exec -it rabbitmq-bundle-podman-0 sh ()[root@overcloud-controller-0 /]$ rabbitmqctl -q list_users warning: the VM is running with native name encoding of latin1 which may cause Elixir to malfunction as it expects utf8. Please ensure your locale is set to UTF-8 (which can be verified by ru nning "locale" in your shell) user tags guest [administrator] ()[root@overcloud-controller-0 /]$ locale LANG= LC_CTYPE="POSIX" LC_NUMERIC="POSIX" LC_TIME="POSIX" LC_COLLATE="POSIX" LC_MONETARY="POSIX" LC_MESSAGES="POSIX" LC_PAPER="POSIX" LC_NAME="POSIX" LC_ADDRESS="POSIX" LC_TELEPHONE="POSIX" LC_MEASUREMENT="POSIX" LC_IDENTIFICATION="POSIX" LC_ALL= This is the THT version of forcing UTF-8 on all rabbitmq_init_bundles and on epmd itself. The puppet-tripleo one is the depends-on: Depends-on: I21ef2e7862f3e5e21812d342b1681f8d5f7f005d Tested on the original environment from Emilien where we saw this issue during scale-up. After appling this review and its dependency we correctly got a scaleup with rabbitm3.7 working Closes-Bug: #1822673 Co-Authored-By: Damien Ciabrini <dciabrin@redhat.com> Change-Id: Ifc1377811de68bf14ea4aea4dfb52e22a8864d46
When we use rabbitmq 3.7 we might hit the following issue when running rabbitmqctl commands inside containers (as puppet does): Error: Failed to apply catalog: Cannot parse invalid user line: warning: the VM is running with native name encoding of latin1 which may cause Elixir to malfunction as it expects utf8. Please ensure your locale is set to UTF-8 (which can be verified by running "locale" in your shell) This is fundamentally the tripleo version of voxpupuli/puppet-rabbitmq#671 This is a strict requirement coming from Elixir: elixir-lang/elixir#3548 Since containers do not have UTF-8 as a default we have this problem: [root@overcloud-controller-0 ~]# podman exec -it rabbitmq-bundle-podman-0 sh ()[root@overcloud-controller-0 /]$ rabbitmqctl -q list_users warning: the VM is running with native name encoding of latin1 which may cause Elixir to malfunction as it expects utf8. Please ensure your locale is set to UTF-8 (which can be verified by ru nning "locale" in your shell) user tags guest [administrator] ()[root@overcloud-controller-0 /]$ locale LANG= LC_CTYPE="POSIX" LC_NUMERIC="POSIX" LC_TIME="POSIX" LC_COLLATE="POSIX" LC_MONETARY="POSIX" LC_MESSAGES="POSIX" LC_PAPER="POSIX" LC_NAME="POSIX" LC_ADDRESS="POSIX" LC_TELEPHONE="POSIX" LC_MEASUREMENT="POSIX" LC_IDENTIFICATION="POSIX" LC_ALL= This is the THT version of forcing UTF-8 on all rabbitmq_init_bundles and on epmd itself. The puppet-tripleo one is the depends-on: Depends-on: I21ef2e7862f3e5e21812d342b1681f8d5f7f005d Tested on the original environment from Emilien where we saw this issue during scale-up. After appling this review and its dependency we correctly got a scaleup with rabbitm3.7 working Closes-Bug: #1822673 Co-Authored-By: Damien Ciabrini <dciabrin@redhat.com> Change-Id: Ifc1377811de68bf14ea4aea4dfb52e22a8864d46
Just for the record. I don't think you should set LC_ALL in your config files, as it overrides everything. If you had set every other LC_ env variable, there is no need for LC_ALL, and actually they will be overriden. Reference: https://wiki.debian.org/Locale
|
My locale is set as below:
When I run
iex
, it always gotI don't know how to avoid it.
The text was updated successfully, but these errors were encountered: