[erlang-questions] Windows Update 15063 et erl.exe

Frank Muller frank.muller.erl@REDACTED
Tue May 9 11:16:32 CEST 2017


Hi Oliver,

Thanks for the tip. Now starting the service is fine.

Can someone please explain me how the "-stopaction" is called? Does it
needs a "cookie" to be properly set? In other words, how erlsrv.exe can
connect to the nods and apply the "-stopaction" without a cookie?

/Frank

<oliver.bollmann@REDACTED> wrote :

> Hi Frank,
>
> the problem on Windows is a bug in erlsrv,
>
> set the internal service name to display name will fix it!
>
> erlsrv add my_super_app  -i my_super_app ....
>
> No delay or something else needed!!
>
> Regards,
>
> Oliver
>
> Am 09.05.17 um 06:03 schrieb Frank Muller:
>
> Now, stopping the service takes around 30sec to finish with this message
> (in System Events Viewer):
>
> tapp: StopAction did not terminate Erlang. Trying forced kill.
>
> I've defined my stop-action as: "init:stop()."
>
> Any idea?
>
> /Frank
>
> <frank.muller.erl@REDACTED> wrote :
>
>> Hi James,
>>
>> You really saved my day. After copying your exact settings, it's working
>> perfectly now.
>>
>> Thanks again.
>>
>> /Frank
>>
>> <comptekki@REDACTED> wrote :
>>
>> erl 8.2 is running normally for me.  I've never had restart issues like
>>> you mentioned for any erl realease back to at least otp 17.x.
>>>
>>> -wes
>>>
>>> On Mon, May 8, 2017 at 1:35 PM, Frank Muller <frank.muller.erl@REDACTED
>>> > wrote:
>>>
>>>> Same problem even after setting Delayed-Start.
>>>> James, can you please test with erl-8.2 ?
>>>>
>>>> /Frank
>>>>
>>>> <comptekki@REDACTED> wrote :
>>>>
>>>> The only params you can set via erlsrv, are on this page
>>>>> http://erlang.org/doc/man/erlsrv.html .  I don't think you can
>>>>> manipulate the automatic delay or delay time  with erlsrv.  Maybe something
>>>>> they could add later.  I've test this with otp 19.3 (8.3) and opt 20 rc1
>>>>> (9.0) and they both work.
>>>>>
>>>>> -wes
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> On Mon, May 8, 2017 at 10:13 AM, Frank Muller <
>>>>> frank.muller.erl@REDACTED> wrote:
>>>>>
>>>>>> Hi James,
>>>>>>
>>>>>> Thank you. I'll try in few minutes and I'll let you know.
>>>>>>
>>>>>> Question: is there a way to set these parameters via erlsrv.exe?
>>>>>>
>>>>>> /Frank
>>>>>>
>>>>>> <comptekki@REDACTED> wrote :
>>>>>>
>>>>>> I just finished installing the 15063 update and the app I had
>>>>>>> installed via erlsrv is still running fine.  With windows 10, in the first
>>>>>>> place, to get an erl app running as a service, i've had to set the service
>>>>>>> as Automatic (delayed start), but to speed that up I added the registry
>>>>>>> entry AutoStartDelay with decimal 1 value (1 second).  You can see the
>>>>>>> script I use here:  https://github.com/comptekki/esysman .  It's
>>>>>>> the win-erlsrv-installer.cmd script.
>>>>>>>
>>>>>>> -wes
>>>>>>>
>>>>>>> On Mon, May 8, 2017 at 8:44 AM, Wes James <comptekki@REDACTED>
>>>>>>> wrote:
>>>>>>>
>>>>>>>> I'm installing it now to see how it works with my erl service.  If
>>>>>>>> you need your application working, you can select the option to go back to
>>>>>>>> previous build of windows 10.  And wait until the new windows build gets
>>>>>>>> out of alpha.... hmmm...  w10 hasn't gotten out of alpha in the first
>>>>>>>> place, so......
>>>>>>>>
>>>>>>>> -wes
>>>>>>>>
>>>>>>>> On Sun, May 7, 2017 at 11:11 PM, Frank Muller <
>>>>>>>> frank.muller.erl@REDACTED> wrote:
>>>>>>>>
>>>>>>>>> Hi,
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> I've an Erlang application called tapp which was running
>>>>>>>>> perfectly as a service under Windows 10 "build 14393" (and earlier
>>>>>>>>> versions).
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Since Microsoft is forcing updates now, the app stopped working
>>>>>>>>> when I got the update build "15063".
>>>>>>>>>
>>>>>>>>> Here is the syslog error message I'm getting now:
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> <EventData>
>>>>>>>>>
>>>>>>>>>   <Data>tapp</Data>
>>>>>>>>>
>>>>>>>>>   <Data>Possible cyclic restarting of erlang machine.</Data>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> In the Windows's task manager, I can see that both erl.exe and
>>>>>>>>> conhost.exe get restarted every second.
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Does anyone notice this problem? Any idea for a fix?
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> N.B: I'm using erts-8.2
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> /Frank
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> _______________________________________________
>>>>>>>>> erlang-questions mailing list
>>>>>>>>> erlang-questions@REDACTED
>>>>>>>>> http://erlang.org/mailman/listinfo/erlang-questions
>>>>>>>>>
>>>>>>>>>
>>>>>>>>
>>>>>>> _______________________________________________
>>>>>>> erlang-questions mailing list
>>>>>>> erlang-questions@REDACTED
>>>>>>> http://erlang.org/mailman/listinfo/erlang-questions
>>>>>>>
>>>>>>
>>>>>
>>>
>
> _______________________________________________
> erlang-questions mailing listerlang-questions@REDACTED://erlang.org/mailman/listinfo/erlang-questions
>
>
> --
> Grüße
> Oliver Bollmann
>
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20170509/48ee7f8e/attachment.htm>


More information about the erlang-questions mailing list