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
RabbitMQ commands fail due to wrong locale #45383
Comments
If you set the locale using https://docs.saltstack.com/en/latest/ref/states/all/salt.states.locale.html#salt.states.locale.system does the problem go away?
the |
i've additionally set the locale as outlined - running the highstate didn't trigger a change (so it was already set). |
Hi @jodok |
I recently found out that Sounds like rabbit might need it to be set to false in some cases. I am marking this as a bug. Daniel |
Ok, eventually i'v found a workaround - |
Well I can confirm the problem on Debian stretch too with RabbitMQ 3.7.4 (and erlang 20.3-1) |
This is an Elixir requirement and their team seems to feel strongly about this. Configuration software that uses CLI tools can override locale environment variables for the calls that expect an output that is parsed:
Team RabbitMQ will consider forcing this in our shell scripts (rabbitmq/rabbitmq-server#1573) but IIRC this has been considered before and rejected. |
This request was rejected by the rabbitmq folks. Is there any other workaround? |
pass reset_system_locale=False to any cmd.run commands in the rabbitmq module If someone more familiar with rabbitmq wanted to modify and test that and submit a pr it would be greatly appreciated |
Set the locale to be a UTF-8 one for RabbitMQ CLI calls. |
This is marked as closed, but as is documented in the comments on #47453 its not fixed in 2018.3.x, currently this causes rabbitmq functions to fail on all minions. |
It will be in the 2018.3.3 release. |
Description of Issue/Question
it seems that the salt-runner on the minion doesn't set the proper locale for the rabbitmq commands of erlang-20.1.7-1, rabbitmq-server-3.7.1
Steps to Reproduce Issue
whenever i run a rabbitmq command on a minion from salt-master (e.g.
salt 'queue*' rabbitmq.status
I receive:ERROR: RabbitMQ command failed: 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)
if i run the command on the minion directly (
salt-call rabbitmq.status
) everything is fine.running
cmd.run locale
from salt-master:running
salt-call cmd.run locale
on salt-minion:Versions Report
CentOS 7, erlang-20.1.7-1, rabbitmq-server-3.7.1
salt-master:
salt-minion:
The text was updated successfully, but these errors were encountered: