Discussion:
[erlang-questions] Running a release as a Windows service with erlsrv.exe and start_erl.exe
unknown
2011-06-05 22:34:56 UTC
Permalink
Hello all,

I've been trying to deploy an Erlang application as a Windows service
and not having much luck.

I built a release package using rebar. I'm registering the service as follows:

c:\erl5.8.3\erts-5.8.3\bin\erlsrv.exe add Rolf -c "Collects system
data for monitoring." -w c:\rolf -m
c:\erl5.8.3\erts-5.8.3\bin\start_erl.exe -debugtype reuse -args
"-setcookie xyz123 ++ -reldir c:\rolf\releases"

This fails with the error "Failed to query BinDir of release." in the
.debug file. Looking at the code for start_erl.exe, this is related to
registry keys. I can't see any sign of any keys which match the
pattern described in the source, but curiously the preceding call to
open a registry key succeeds [2].

Any one have any idea about any of this stuff?

Server is Windows Server 2008.

Ben

[1] https://github.com/erlang/otp/blob/dev/erts/etc/win32/start_erl.c#L364
[2] https://github.com/erlang/otp/blob/dev/erts/etc/win32/start_erl.c#L342
--
Ben Godfrey, Wandering Hacker
http://aftnn.org | http://twitter.com/afternoon |
http://www.linkedin.com/in/bengodfrey
unknown
2011-06-07 08:11:38 UTC
Permalink
Hi Ben!

Unfortunately, the release handling for windows, including erlsrv.erl and
start_erl.c, is broken. This was discovered not long ago, after refreshing
the release_handler test suite where these tests were skipped on windows. We
are currently working on this issue, and plan to release a correction as
soon as possible.

Regards
siri


2011/6/6 Ben Godfrey <ben>
Post by unknown
Hello all,
I've been trying to deploy an Erlang application as a Windows service
and not having much luck.
c:\erl5.8.3\erts-5.8.3\bin\erlsrv.exe add Rolf -c "Collects system
data for monitoring." -w c:\rolf -m
c:\erl5.8.3\erts-5.8.3\bin\start_erl.exe -debugtype reuse -args
"-setcookie xyz123 ++ -reldir c:\rolf\releases"
This fails with the error "Failed to query BinDir of release." in the
.debug file. Looking at the code for start_erl.exe, this is related to
registry keys. I can't see any sign of any keys which match the
pattern described in the source, but curiously the preceding call to
open a registry key succeeds [2].
Any one have any idea about any of this stuff?
Server is Windows Server 2008.
Ben
[1] https://github.com/erlang/otp/blob/dev/erts/etc/win32/start_erl.c#L364
[2] https://github.com/erlang/otp/blob/dev/erts/etc/win32/start_erl.c#L342
--
Ben Godfrey, Wandering Hacker
http://aftnn.org | http://twitter.com/afternoon |
http://www.linkedin.com/in/bengodfrey
_______________________________________________
erlang-questions mailing list
erlang-questions
http://erlang.org/mailman/listinfo/erlang-questions
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20110607/b666f6c9/attachment.html>
unknown
2011-06-09 10:55:20 UTC
Permalink
Thanks Siri,

Is there anything I can do to help?

Ben
Post by unknown
Hi Ben!
Unfortunately, the release handling for windows, including erlsrv.erl and
start_erl.c, is broken. This was discovered not long ago, after refreshing
the release_handler test suite where these tests were skipped on windows. We
are currently working on this issue, and plan to release a correction as
soon as possible.
Regards
siri
2011/6/6 Ben Godfrey <ben>
Post by unknown
Hello all,
I've been trying to deploy an Erlang application as a Windows service
and not having much luck.
? ?c:\erl5.8.3\erts-5.8.3\bin\erlsrv.exe add Rolf -c "Collects system
data for monitoring." -w c:\rolf -m
c:\erl5.8.3\erts-5.8.3\bin\start_erl.exe -debugtype reuse -args
"-setcookie xyz123 ++ -reldir c:\rolf\releases"
This fails with the error "Failed to query BinDir of release." in the
.debug file. Looking at the code for start_erl.exe, this is related to
registry keys. I can't see any sign of any keys which match the
pattern described in the source, but curiously the preceding call to
open a registry key succeeds [2].
Any one have any idea about any of this stuff?
Server is Windows Server 2008.
Ben
[1] https://github.com/erlang/otp/blob/dev/erts/etc/win32/start_erl.c#L364
[2] https://github.com/erlang/otp/blob/dev/erts/etc/win32/start_erl.c#L342
--
Ben Godfrey, Wandering Hacker
http://aftnn.org | http://twitter.com/afternoon |
http://www.linkedin.com/in/bengodfrey
_______________________________________________
erlang-questions mailing list
erlang-questions
http://erlang.org/mailman/listinfo/erlang-questions
--
Ben Godfrey, Wandering Hacker
http://aftnn.org | http://twitter.com/afternoon |
http://www.linkedin.com/in/bengodfrey
unknown
2011-06-10 13:44:28 UTC
Permalink
Hi,

Do you know if this issue only affects Windows Server 2008 or does it also
happen on Windows Server 2003?

Thanks,
Francis
Post by unknown
Thanks Siri,
Is there anything I can do to help?
Ben
Post by unknown
Hi Ben!
Unfortunately, the release handling for windows, including erlsrv.erl and
start_erl.c, is broken. This was discovered not long ago, after
refreshing
Post by unknown
the release_handler test suite where these tests were skipped on windows.
We
Post by unknown
are currently working on this issue, and plan to release a correction as
soon as possible.
Regards
siri
2011/6/6 Ben Godfrey <ben>
Post by unknown
Hello all,
I've been trying to deploy an Erlang application as a Windows service
and not having much luck.
c:\erl5.8.3\erts-5.8.3\bin\erlsrv.exe add Rolf -c "Collects system
data for monitoring." -w c:\rolf -m
c:\erl5.8.3\erts-5.8.3\bin\start_erl.exe -debugtype reuse -args
"-setcookie xyz123 ++ -reldir c:\rolf\releases"
This fails with the error "Failed to query BinDir of release." in the
.debug file. Looking at the code for start_erl.exe, this is related to
registry keys. I can't see any sign of any keys which match the
pattern described in the source, but curiously the preceding call to
open a registry key succeeds [2].
Any one have any idea about any of this stuff?
Server is Windows Server 2008.
Ben
[1]
https://github.com/erlang/otp/blob/dev/erts/etc/win32/start_erl.c#L364
Post by unknown
Post by unknown
[2]
https://github.com/erlang/otp/blob/dev/erts/etc/win32/start_erl.c#L342
Post by unknown
Post by unknown
--
Ben Godfrey, Wandering Hacker
http://aftnn.org | http://twitter.com/afternoon |
http://www.linkedin.com/in/bengodfrey
_______________________________________________
erlang-questions mailing list
erlang-questions
http://erlang.org/mailman/listinfo/erlang-questions
--
Ben Godfrey, Wandering Hacker
http://aftnn.org | http://twitter.com/afternoon |
http://www.linkedin.com/in/bengodfrey
_______________________________________________
erlang-questions mailing list
erlang-questions
http://erlang.org/mailman/listinfo/erlang-questions
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20110610/5a07c381/attachment.html>
unknown
2011-06-10 14:31:45 UTC
Permalink
I have only tested on 2008. I could build a 2003 box and test if that's
helpful.

Ben


On 10 Jun 2011, at 14:44, Francis Joanis <francis.joanis> wrote:

Hi,

Do you know if this issue only affects Windows Server 2008 or does it also
happen on Windows Server 2003?

Thanks,
Francis
Post by unknown
Thanks Siri,
Is there anything I can do to help?
Ben
Post by unknown
Hi Ben!
Unfortunately, the release handling for windows, including erlsrv.erl and
start_erl.c, is broken. This was discovered not long ago, after
refreshing
Post by unknown
the release_handler test suite where these tests were skipped on windows.
We
Post by unknown
are currently working on this issue, and plan to release a correction as
soon as possible.
Regards
siri
2011/6/6 Ben Godfrey <ben>
Post by unknown
Hello all,
I've been trying to deploy an Erlang application as a Windows service
and not having much luck.
c:\erl5.8.3\erts-5.8.3\bin\erlsrv.exe add Rolf -c "Collects system
data for monitoring." -w c:\rolf -m
c:\erl5.8.3\erts-5.8.3\bin\start_erl.exe -debugtype reuse -args
"-setcookie xyz123 ++ -reldir c:\rolf\releases"
This fails with the error "Failed to query BinDir of release." in the
.debug file. Looking at the code for start_erl.exe, this is related to
registry keys. I can't see any sign of any keys which match the
pattern described in the source, but curiously the preceding call to
open a registry key succeeds [2].
Any one have any idea about any of this stuff?
Server is Windows Server 2008.
Ben
[1]
https://github.com/erlang/otp/blob/dev/erts/etc/win32/start_erl.c#L364
Post by unknown
Post by unknown
[2]
https://github.com/erlang/otp/blob/dev/erts/etc/win32/start_erl.c#L342
Post by unknown
Post by unknown
--
Ben Godfrey, Wandering Hacker
http://aftnn.org | http://twitter.com/afternoon |
http://www.linkedin.com/in/bengodfrey
_______________________________________________
erlang-questions mailing list
erlang-questions
http://erlang.org/mailman/listinfo/erlang-questions
--
Ben Godfrey, Wandering Hacker
http://aftnn.org | http://twitter.com/afternoon |
http://www.linkedin.com/in/bengodfrey
_______________________________________________
erlang-questions mailing list
erlang-questions
http://erlang.org/mailman/listinfo/erlang-questions
_______________________________________________
erlang-questions mailing list
erlang-questions
http://erlang.org/mailman/listinfo/erlang-questions
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20110610/19c3f708/attachment.html>
unknown
2011-06-15 09:36:02 UTC
Permalink
Hi Francis, Ben!

This problem exists on all windows platforms. Correction will be included in
R14B04.

Regards
/siri

2011/6/10 Francis Joanis <francis.joanis>
Post by unknown
Hi,
Do you know if this issue only affects Windows Server 2008 or does it also
happen on Windows Server 2003?
Thanks,
Francis
Post by unknown
Thanks Siri,
Is there anything I can do to help?
Ben
Post by unknown
Hi Ben!
Unfortunately, the release handling for windows, including erlsrv.erl
and
Post by unknown
start_erl.c, is broken. This was discovered not long ago, after
refreshing
Post by unknown
the release_handler test suite where these tests were skipped on
windows. We
Post by unknown
are currently working on this issue, and plan to release a correction as
soon as possible.
Regards
siri
2011/6/6 Ben Godfrey <ben>
Post by unknown
Hello all,
I've been trying to deploy an Erlang application as a Windows service
and not having much luck.
c:\erl5.8.3\erts-5.8.3\bin\erlsrv.exe add Rolf -c "Collects system
data for monitoring." -w c:\rolf -m
c:\erl5.8.3\erts-5.8.3\bin\start_erl.exe -debugtype reuse -args
"-setcookie xyz123 ++ -reldir c:\rolf\releases"
This fails with the error "Failed to query BinDir of release." in the
.debug file. Looking at the code for start_erl.exe, this is related to
registry keys. I can't see any sign of any keys which match the
pattern described in the source, but curiously the preceding call to
open a registry key succeeds [2].
Any one have any idea about any of this stuff?
Server is Windows Server 2008.
Ben
[1]
https://github.com/erlang/otp/blob/dev/erts/etc/win32/start_erl.c#L364
Post by unknown
Post by unknown
[2]
https://github.com/erlang/otp/blob/dev/erts/etc/win32/start_erl.c#L342
Post by unknown
Post by unknown
--
Ben Godfrey, Wandering Hacker
http://aftnn.org | http://twitter.com/afternoon |
http://www.linkedin.com/in/bengodfrey
_______________________________________________
erlang-questions mailing list
erlang-questions
http://erlang.org/mailman/listinfo/erlang-questions
--
Ben Godfrey, Wandering Hacker
http://aftnn.org | http://twitter.com/afternoon |
http://www.linkedin.com/in/bengodfrey
_______________________________________________
erlang-questions mailing list
erlang-questions
http://erlang.org/mailman/listinfo/erlang-questions
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20110615/ecab6968/attachment.html>
Loading...