<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">&lt;<a href="mailto:simon@rabbitmq.com" target="_blank">simon@rabbitmq.com</a>&gt;</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&#39;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 &lt;<a href="mailto:simon@rabbitmq.com" target="_blank">simon@rabbitmq.com</a>&gt; wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hmm. There&#39;s nothing very obvious that I can think of. I&#39;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 &quot;echo $HOME&quot; just<br>
before &quot;exec erl&quot;, see if it&#39;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 = &quot;2.8.7&quot;<br>
$url � � =<br>
&quot;<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>&quot;<br>

<br>
package{&quot;erlang&quot;:<br>
� � � ensure =&gt; &quot;present&quot;,<br>
}<br>
<br>
package{&quot;rabbitmq-server&quot;:<br>
� � � provider =&gt; &quot;rpm&quot;,<br>
� � � source � =&gt; $url,<br>
� � � require �=&gt; Package[&quot;erlang&quot;]<br>
}<br>
<br>
exec{&quot;rabbitmq-plugins&quot;:<br>
� � � path � �=&gt; &quot;/usr/bin:/usr/sbin:/bin&quot;,<br>
� � � command =&gt; &quot;rabbitmq-plugins enable rabbitmq_management&quot;,<br>
� � � require =&gt; Package[&quot;rabbitmq-server&quot;]<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 &quot;rabbitmq-plugins enable rabbitmq_management&quot; 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,&quot;RabbitMQ&quot;,&quot;2.8.7&quot;},<br>
� � � � � � � � � � � {ssl,&quot;Erlang/OTP SSL application&quot;,&quot;4.1.6&quot;},<br>
� � � � � � � � � � � {public_key,&quot;Public key infrastructure&quot;,&quot;0.13&quot;},<br>
� � � � � � � � � � � {crypto,&quot;CRYPTO version 2&quot;,&quot;2.0.4&quot;},<br>
� � � � � � � � � � � {mnesia,&quot;MNESIA �CXC 138 12&quot;,&quot;4.5&quot;},<br>
� � � � � � � � � � � {os_mon,&quot;CPO �CXC 138 46&quot;,&quot;2.2.7&quot;},<br>
� � � � � � � � � � � {sasl,&quot;SASL �CXC 138 11&quot;,&quot;2.1.10&quot;},<br>
� � � � � � � � � � � {stdlib,&quot;ERTS �CXC 138 10&quot;,&quot;1.17.5&quot;},<br>
� � � � � � � � � � � {kernel,&quot;ERTS �CXC 138 10&quot;,&quot;2.14.5&quot;}]},<br>
{os,{unix,linux}},<br>
{erlang_version,&quot;Erlang R14B04 (erts-5.8.5) [source] [64-bit] [rq:1]<br>
[async-threads:30] [kernel-poll:true]\n&quot;},<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>
&lt;<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>&gt;.<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>