<div dir="ltr">Hi Simon and James,<div><br></div><div>first, my apologies for not responding for so long. </div><div><br></div><div style>That is correct, the answer can be found on the link on <a href="http://serverfault.com">serverfault.com</a> you mentioned. That actually did the trick.</div>
<div style><br></div><div style>I have also written about everything in a blog post, you can find it here: <a href="http://bit.ly/Mb0D0v">http://bit.ly/Mb0D0v</a></div><div style><br></div><div style>Cheers and all the best,</div>
<div style>Tobi</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Feb 1, 2013 at 11:31 AM, Simon MacMullen <span dir="ltr"><<a href="mailto:simon@rabbitmq.com" target="_blank">simon@rabbitmq.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Ah, thanks for the pointer.<br>
<br>
Hmm, maybe we should explicitly set HOME in these scripts...<br>
<br>
Cheers, Simon<div class="HOEnZb"><div class="h5"><br>
<br>
On 01/02/13 07:24, James Carr wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I thought I'd point out the original author solved his problems:<br>
<a href="http://serverfault.com/questions/434942/veewee-vagrant-puppet-erlang-and-rabbitmq" target="_blank">http://serverfault.com/<u></u>questions/434942/veewee-<u></u>vagrant-puppet-erlang-and-<u></u>rabbitmq</a><br>
<br>
Only posting this on the list to help others who come across it as I<br>
had the exact same problem this evening. :)<br>
<br>
<br>
Thanks,<br>
James<br>
<br>
<br>
On Fri, Oct 5, 2012 at 4:45 AM, Simon MacMullen <<a href="mailto:simon@rabbitmq.com" target="_blank">simon@rabbitmq.com</a>> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hmm. There's nothing very obvious that I can think of. I've looked in the<br>
OTP source and that message really only appears if HOME is not set.<br>
<br>
Things you might try:<br>
<br>
* Run /usr/lib/rabbitmq/bin/<u></u>rabbitmq-plugins instead, to remove a wrapper<br>
script<br>
<br>
* Edit /usr/lib/rabbitmq/bin/<u></u>rabbitmq-plugins to insert "echo $HOME" just<br>
before "exec erl", see if it's really set at that point.<br>
<br>
* If all else fails, edit the enabled plugins file directly rather than<br>
invoking rabbitmq-plugins. Set the contents of /etc/rabbitmq/enabled_plugins<br>
to exactly the string:<br>
<br>
[rabbitmq_management].<br>
<br>
including the full stop.<br>
<br>
Cheers, Simon<br>
<br>
<br>
On 05/10/12 07:05, Tobias Wissmüller wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Hi Everyone,<br>
<br>
I encounter a strange problem when applying my puppet module I have<br>
created for installing RabbitMQ. To be more precise, I encounter the<br>
problem when enabling the plugins.<br>
<br>
The relevant resources look as follows:<br>
<br>
|$version = "2.8.7"<br>
$url =<br>
"<a href="http://www.rabbitmq.com/releases/rabbitmq-server/v$%7Bversion%7D/rabbitmq-server-$%7Bversion%7D-1.noarch.rpm" target="_blank">http://www.rabbitmq.com/<u></u>releases/rabbitmq-server/v${<u></u>version}/rabbitmq-server-${<u></u>version}-1.noarch.rpm</a>"<br>
<br>
package{"erlang":<br>
ensure => "present",<br>
}<br>
<br>
package{"rabbitmq-server":<br>
provider => "rpm",<br>
source => $url,<br>
require => Package["erlang"]<br>
}<br>
<br>
exec{"rabbitmq-plugins":<br>
path => "/usr/bin:/usr/sbin:/bin",<br>
command => "rabbitmq-plugins enable rabbitmq_management",<br>
require => Package["rabbitmq-server"]<br>
}|<br>
<br>
<br>
The error I get:<br>
<br>
|/Stage[main]/Rabbitmq/Exec[<u></u>rabbitmq-plugins]/returns: erlexec: HOME must<br>
be set|<br>
<br>
|/Stage[main]/Rabbitmq/<u></u>Service[rabbitmq-server]: Dependency<br>
Exec[rabbitmq-plugins] has failures: true<br>
|<br>
<br>
The thing is, that HOME is set. Have checked that during a puppet run by<br>
creating an exec resource to echo HOME.<br>
<br>
When I log into the box that I create with veewee and vagrant, I can<br>
execute "rabbitmq-plugins enable rabbitmq_management" without any<br>
problems. But I always get the error from within puppet.<br>
<br>
Starting rabbitmq-server leaves me with the following:<br>
<br>
|[{pid,2834},<br>
{running_applications,[{<u></u>rabbit,"RabbitMQ","2.8.7"},<br>
{ssl,"Erlang/OTP SSL application","4.1.6"},<br>
{public_key,"Public key infrastructure","0.13"},<br>
{crypto,"CRYPTO version 2","2.0.4"},<br>
{mnesia,"MNESIA CXC 138 12","4.5"},<br>
{os_mon,"CPO CXC 138 46","2.2.7"},<br>
{sasl,"SASL CXC 138 11","2.1.10"},<br>
{stdlib,"ERTS CXC 138 10","1.17.5"},<br>
{kernel,"ERTS CXC 138 10","2.14.5"}]},<br>
{os,{unix,linux}},<br>
{erlang_version,"Erlang R14B04 (erts-5.8.5) [source] [64-bit] [rq:1]<br>
[async-threads:30] [kernel-poll:true]\n"},<br>
{memory,[{total,24993120},<br>
{processes,10328496},<br>
{processes_used,10321296},<br>
{system,14664624},<br>
{atom,1175905},<br>
{atom_used,1143841},<br>
{binary,17192},<br>
{code,11416020},<br>
{ets,766168}]},<br>
{vm_memory_high_watermark,0.4}<u></u>,<br>
{vm_memory_limit,205851852},<br>
{disk_free_limit,1000000000},<br>
{disk_free,<a href="tel:7089795072" value="+17089795072" target="_blank">7089795072</a>},<br>
{file_descriptors,[{total_<u></u>limit,924},<br>
{total_used,4},<br>
{sockets_limit,829},<br>
{sockets_used,2}]},<br>
{processes,[{limit,1048576},{<u></u>used,131}]},<br>
{run_queue,0},<br>
{uptime,6}]|<br>
<br>
<br>
The whole puppet manifest can be found under<br>
<br>
<a href="https://github.com/tobias-wissmueller/dev_ops_central/blob/master/modules/rabbitmq/manifests/init.pp" target="_blank">https://github.com/tobias-<u></u>wissmueller/dev_ops_central/<u></u>blob/master/modules/rabbitmq/<u></u>manifests/init.pp</a><br>
<br>
Also have posted this problem over at Serverfault<br>
<br>
<<a href="http://serverfault.com/questions/434942/veewee-vagrant-puppet-erlang-and-rabbitmq" target="_blank">http://serverfault.com/<u></u>questions/434942/veewee-<u></u>vagrant-puppet-erlang-and-<u></u>rabbitmq</a>>.<br>
<br>
<br>
Any help is highly appreciated since I am totally stuck here.<br>
<br>
Thanks a lot!<br>
<br>
Cheers,<br>
Tobi<br>
<br>
<br>
______________________________<u></u>_________________<br>
rabbitmq-discuss mailing list<br>
<a href="mailto:rabbitmq-discuss@lists.rabbitmq.com" target="_blank">rabbitmq-discuss@lists.<u></u>rabbitmq.com</a><br>
<a href="https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss" target="_blank">https://lists.rabbitmq.com/<u></u>cgi-bin/mailman/listinfo/<u></u>rabbitmq-discuss</a><br>
<br>
</blockquote>
<br>
<br>
--<br>
Simon MacMullen<br>
RabbitMQ, VMware<br>
______________________________<u></u>_________________<br>
rabbitmq-discuss mailing list<br>
<a href="mailto:rabbitmq-discuss@lists.rabbitmq.com" target="_blank">rabbitmq-discuss@lists.<u></u>rabbitmq.com</a><br>
<a href="https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss" target="_blank">https://lists.rabbitmq.com/<u></u>cgi-bin/mailman/listinfo/<u></u>rabbitmq-discuss</a><br>
</blockquote>
______________________________<u></u>_________________<br>
rabbitmq-discuss mailing list<br>
<a href="mailto:rabbitmq-discuss@lists.rabbitmq.com" target="_blank">rabbitmq-discuss@lists.<u></u>rabbitmq.com</a><br>
<a href="https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss" target="_blank">https://lists.rabbitmq.com/<u></u>cgi-bin/mailman/listinfo/<u></u>rabbitmq-discuss</a><br>
<br>
</blockquote>
<br>
<br>
-- <br>
Simon MacMullen<br>
RabbitMQ, VMware<br>
</div></div></blockquote></div><br></div>