[erlang-questions] Help running Erlang as a Service on XP Embedded

Robert Raschke <>
Wed Dec 12 21:55:39 CET 2012


Hi Daniel,

a few things to verify:

Is RabbitMQ actually up and running? That is, can you use it normally,
connect, create/use exchanges, queues etc.? Is the REST API running? Or the
managment plugin?

If yes, then the next step would be to fix the cookie in the bat files. For
that you'll need to unregister the service again, then edit the register
service bat to include the -setcookie argument, and as Dave mentions it
might be worth ensuring that your local name is set to include the host
part explicitly as well here. Also add the -setcookie into the
rabbitmqctl.bat.

If your service is in fact not usable at all, then having a closer look at
the log files is in order.

Actually, looking at the log files is a good idea in any case.

Regards,
Robby

On Wed, Dec 12, 2012 at 7:52 PM, Dave Cottlehuber <> wrote:

> On 12 December 2012 20:41, Daniel Lewis <>
> wrote:
> > Hi Robby,
> >
> >
> >
> > Thanks for the suggestion.
> >
> >
> >
> > I searched for files called ".erlang.cookie" and I only see two of them -
> > should there be more?   I checked and these two files are identical,
> > including contents, size, and date.
>
> Likely if you are running this as a service the home directory will
> not be where you are expecting it to be. This was covered in
> erlang-question archives in the last few months, I can't recall the
> specifics off the top of my head.
>
> Try adding `-setcookie yumyumyum` to the batch file as suggested earlier.
>
> You might be able to try setting this up with erlsrv.exe and adding
> `-debugtype console` to the parameters. You can then interact with the
> hidden service console (winsta0) directly. I don't know if this works
> on embedded XP but its a good way to try.
>
> I'm not sure on the rabbit parameters but your shortname probably
> should be "erl  -sname " if you want to set the
> @…. section directly.
>
> A+
> Dave
> _______________________________________________
> erlang-questions mailing list
> 
> http://erlang.org/mailman/listinfo/erlang-questions
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20121212/31a437d8/attachment.html>


More information about the erlang-questions mailing list