-
-
Notifications
You must be signed in to change notification settings - Fork 499
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 while using class rabbitmq_user #771
Comments
I think that #671 needs opening again because even with the environment variables line in the rabbitmq class I still get the same error about the locale. |
So, I forked the repo and have managed to get past the issue by adding a utf entry for LC_ALL into the environment in the
I think that the language locale just has to be available on the system and utf-8. I don't think that this is the end solution, there must be a much better way to get this working (if it was |
@JayH5: you have any thoughts about this one? I’d rather not hard-code env in here, and in the past, setting it in If we hard coded it, we’d have to pick a locale, and then things wouldn’t work if the user didn’t have that locale installed. I don’t think there are actual cases where the output requires a non-ascii character set, but this is a requirement of the underlying tool that RabbitMQ uses for CLI |
@wyardley 😬 not really, haven't had this problem myself. Adding the
|
Just as a note, I didn't check whether other language settings worked here, like LANG. |
@JayH5: yeah, that’s what #694 was supposed to do, I think it sets it in the RMQ config vs in Puppet’s env directly, so wondering if somehow the new changes are causing that to get ignored or overridden, or if we can take those env vars and merge them in (that seems like it might not be a good idea though?) Agree about renaming the function. All of this is just one more reason that hitting the API directly is the cleanest solution. |
And FWIW, setting the locale correctly on the instance itself should fix the problem. However, this affects enough users that we still need to set some kind of default. |
@wyardley Sorry for the excessively long wait for me to reply to this. We're deploying on FreeBSD and I am setting a default in the
What I'm wondering is if when puppet is run and it executes the rabbitmqctl command but that command doesn't inherit the shell's locale, and I can see from the
The puppet daemon explicitly sets this when it runs:
|
I am having the same issue where |
Affected Puppet, Ruby, OS and module versions/distributions
How to reproduce (e.g Puppet code you use)
i am trying to use rabbitmq module to create users but i am getting this error using rabbitmq_user class using below code,
What are you seeing
and when i see locale is set to
LC_ALL=en_US.UTF-8
on the VM. and when i comment out the above code and run apuppet agent -t
then it is working as expected.What behaviour did you expect instead
rabbitmq creating users.
Output log
Any additional information you'd like to impart
is it still related to
#671
The text was updated successfully, but these errors were encountered: