<html><body bgcolor="#FFFFFF"><div>I have only tested on 2008. I could build a 2003 box and test if that's helpful. </div><div><br></div><div>Ben</div><div><br><br>On 10 Jun 2011, at 14:44, Francis Joanis <<a href="mailto:francis.joanis@gmail.com">francis.joanis@gmail.com</a>> wrote:<br>
<br></div><div></div><blockquote type="cite"><div>Hi,<br>
<br>
Do you know if this issue only affects Windows Server 2008 or does it also happen on Windows Server 2003?<br>
<br>
Thanks,<br>
Francis<br><br><div class="gmail_quote">On Thu, Jun 9, 2011 at 6:55 AM, Ben Godfrey <span dir="ltr"><<a href="mailto:ben@ben2.com"><a href="mailto:ben@ben2.com">ben@ben2.com</a></a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Thanks Siri,<br>
<br>
Is there anything I can do to help?<br>
<font color="#888888"><br>
Ben<br>
</font><div><div></div><div class="h5"><br>
On 7 June 2011 09:11, Siri Hansen <<a href="mailto:erlangsiri@gmail.com"><a href="mailto:erlangsiri@gmail.com">erlangsiri@gmail.com</a></a>> wrote:<br>
> Hi Ben!<br>
> Unfortunately, the release handling for windows, including erlsrv.erl and<br>
> start_erl.c, is broken. This was discovered not long ago, after refreshing<br>
> the release_handler test suite where these tests were skipped on windows. We<br>
> are currently working on this issue, and plan to release a correction as<br>
> soon as possible.<br>
> Regards<br>
> siri@otp<br>
><br>
> 2011/6/6 Ben Godfrey <<a href="mailto:ben@ben2.com"><a href="mailto:ben@ben2.com">ben@ben2.com</a></a>><br>
>><br>
>> Hello all,<br>
>><br>
>> I've been trying to deploy an Erlang application as a Windows service<br>
>> and not having much luck.<br>
>><br>
>> I built a release package using rebar. I'm registering the service as<br>
>> follows:<br>
>><br>
>> c:\erl5.8.3\erts-5.8.3\bin\erlsrv.exe add Rolf -c "Collects system<br>
>> data for monitoring." -w c:\rolf -m<br>
>> c:\erl5.8.3\erts-5.8.3\bin\start_erl.exe -debugtype reuse -args<br>
>> "-setcookie xyz123 ++ -reldir c:\rolf\releases"<br>
>><br>
>> This fails with the error "Failed to query BinDir of release." in the<br>
>> .debug file. Looking at the code for start_erl.exe, this is related to<br>
>> registry keys. I can't see any sign of any keys which match the<br>
>> pattern described in the source, but curiously the preceding call to<br>
>> open a registry key succeeds [2].<br>
>><br>
>> Any one have any idea about any of this stuff?<br>
>><br>
>> Server is Windows Server 2008.<br>
>><br>
>> Ben<br>
>><br>
>> [1] <a href="https://github.com/erlang/otp/blob/dev/erts/etc/win32/start_erl.c#L364" target="_blank"><a href="https://github.com/erlang/otp/blob/dev/erts/etc/win32/start_erl.c#L364">https://github.com/erlang/otp/blob/dev/erts/etc/win32/start_erl.c#L364</a></a><br>
>> [2] <a href="https://github.com/erlang/otp/blob/dev/erts/etc/win32/start_erl.c#L342" target="_blank"><a href="https://github.com/erlang/otp/blob/dev/erts/etc/win32/start_erl.c#L342">https://github.com/erlang/otp/blob/dev/erts/etc/win32/start_erl.c#L342</a></a><br>
>><br>
>> --<br>
>> Ben Godfrey, Wandering Hacker<br>
>> <a href="http://aftnn.org" target="_blank"><a href="http://aftnn.org">http://aftnn.org</a></a> | <a href="http://twitter.com/afternoon" target="_blank"><a href="http://twitter.com/afternoon">http://twitter.com/afternoon</a></a> |<br>
>> <a href="http://www.linkedin.com/in/bengodfrey" target="_blank"><a href="http://www.linkedin.com/in/bengodfrey">http://www.linkedin.com/in/bengodfrey</a></a><br>
>> _______________________________________________<br>
>> erlang-questions mailing list<br>
>> <a href="mailto:erlang-questions@erlang.org"><a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a></a><br>
>> <a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank"><a href="http://erlang.org/mailman/listinfo/erlang-questions">http://erlang.org/mailman/listinfo/erlang-questions</a></a><br>
><br>
><br>
<br>
<br>
<br>
</div></div>--<br>
<div><div></div><div class="h5">Ben Godfrey, Wandering Hacker<br>
<a href="http://aftnn.org" target="_blank"><a href="http://aftnn.org">http://aftnn.org</a></a> | <a href="http://twitter.com/afternoon" target="_blank"><a href="http://twitter.com/afternoon">http://twitter.com/afternoon</a></a> |<br>
<a href="http://www.linkedin.com/in/bengodfrey" target="_blank"><a href="http://www.linkedin.com/in/bengodfrey">http://www.linkedin.com/in/bengodfrey</a></a><br>
_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org"><a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a></a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank"><a href="http://erlang.org/mailman/listinfo/erlang-questions">http://erlang.org/mailman/listinfo/erlang-questions</a></a><br>
</div></div></blockquote></div><br>
</div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>erlang-questions mailing list</span><br><span><a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a></span><br>
<span><a href="http://erlang.org/mailman/listinfo/erlang-questions">http://erlang.org/mailman/listinfo/erlang-questions</a></span><br></div></blockquote></body></html>