<div dir="ltr">Ivan, by the way for generate appup files you can use genappup - <a href="http://www.echorussia.ru/erlang-releases.html">http://www.echorussia.ru/erlang-releases.html</a></div><div class="gmail_extra"><br><br>
<div class="gmail_quote">2014-02-13 23:26 GMT+03:00 Ivan Uemlianin <span dir="ltr"><<a href="mailto:ivan@llaisdy.com" target="_blank">ivan@llaisdy.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Paul's interpretation is what I was trying to do with this upgrade.<br>
<br>
Ivan<br>
<br>
--<br>
festina lente<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
> On 13 Feb 2014, at 20:17, Paul Davis <<a href="mailto:paul.joseph.davis@gmail.com">paul.joseph.davis@gmail.com</a>> wrote:<br>
><br>
> Mike, pretty sure its upgrading two apps to the same version.<br>
><br>
> app1 is 20140211.1 -> 20140213.1<br>
> app2 is 20140207.1 -> 20140213.1<br>
><br>
>> On Thu, Feb 13, 2014 at 1:59 PM, Mike Oxford <<a href="mailto:moxford@gmail.com">moxford@gmail.com</a>> wrote:<br>
>> It looks like you're trying to suspend version 20140213.1 and replace it<br>
>> with 20140213.1 (the same version.)<br>
>><br>
>><br>
>><br>
>>> On Thu, Feb 13, 2014 at 11:51 AM, Ivan Uemlianin <<a href="mailto:ivan@llaisdy.com">ivan@llaisdy.com</a>> wrote:<br>
>>><br>
>>> Sorry don't follow<br>
>>><br>
>>> --<br>
>>> festina lente<br>
>>><br>
>>><br>
>>> On 13 Feb 2014, at 19:35, Mike Oxford <<a href="mailto:moxford@gmail.com">moxford@gmail.com</a>> wrote:<br>
>>><br>
>>> [{"1.0.6",[],<br>
>>>   [{load_object_code,{app1,"20140213.1",[app1]}},<br>
>>>    {load_object_code,{app2,"20140213.1",[app2]}},<br>
>>><br>
>>> Replacing a version with itself?<br>
>>><br>
>>><br>
>>><br>
>>>> On Thu, Feb 13, 2014 at 11:03 AM, Ivan Uemlianin <<a href="mailto:ivan@llaisdy.com">ivan@llaisdy.com</a>> wrote:<br>
>>>><br>
>>>> Dear Mike<br>
>>>><br>
>>>> Thanks for your help.<br>
>>>><br>
>>>> Here's a recent relup.  After this upgrade, I had to manually code_load<br>
>>>> and purge app1:<br>
>>>><br>
>>>> {"1.0.7",<br>
>>>> [{"1.0.6",[],<br>
>>>>   [{load_object_code,{app1,"20140213.1",[app1]}},<br>
>>>>    {load_object_code,{app2,"20140213.1",[app2]}},<br>
>>>>    point_of_no_return,<br>
>>>>    {suspend,[app1]},<br>
>>>>    {load,{app1,brutal_purge,brutal_purge}},<br>
>>>>    {code_change,up,[{app1,[from1to2]}]},<br>
>>>>    {resume,[app1]},<br>
>>>>    {suspend,[app2]},<br>
>>>>    {load,{app2,brutal_purge,brutal_purge}},<br>
>>>>    {code_change,up,[{app2,[from1to2]}]},<br>
>>>>    {resume,[app2]}]}],<br>
>>>> [{"1.0.6",[],<br>
>>>>   [{load_object_code,{app1,"20140211.1",[app1]}},<br>
>>>>    {load_object_code,{app2,"20140207.1",[app2]}},<br>
>>>>    point_of_no_return,<br>
>>>>    {suspend,[app1]},<br>
>>>>    {code_change,down,[{app1,[from2to1]}]},<br>
>>>>    {load,{app1,brutal_purge,brutal_purge}},<br>
>>>>    {resume,[app1]},<br>
>>>>    {suspend,[app2]},<br>
>>>>    {code_change,down,[{app2,[from2to1]}]},<br>
>>>>    {load,{app2,brutal_purge,brutal_purge}},<br>
>>>>    {resume,[app2]}]}]}.<br>
>>>><br>
>>>> Best wishes<br>
>>>><br>
>>>> Ivan<br>
>>>><br>
>>>><br>
>>>><br>
>>>>> On 13/02/2014 18:54, Mike Oxford wrote:<br>
>>>>><br>
>>>>> Is your brutal_purge on the PostPurge or the PrePurge?<br>
>>>>><br>
>>>>><br>
>>>>> On Thu, Feb 13, 2014 at 10:00 AM, Ivan Uemlianin <<a href="mailto:ivan@llaisdy.com">ivan@llaisdy.com</a><br>
>>>>> <mailto:<a href="mailto:ivan@llaisdy.com">ivan@llaisdy.com</a>>> wrote:<br>
>>>>><br>
>>>>>    Dear All<br>
>>>>><br>
>>>>>    I am just getting started with live release upgrades, using relx and<br>
>>>>>    following this tutorial:<br>
>>>>><br>
>>>>>    <a href="http://blog.troutwine.us/2013/__09/13/trivial_otp_releases.__html" target="_blank">http://blog.troutwine.us/2013/__09/13/trivial_otp_releases.__html</a><br>
>>>>><br>
>>>>>    <<a href="http://blog.troutwine.us/2013/09/13/trivial_otp_releases.html" target="_blank">http://blog.troutwine.us/2013/09/13/trivial_otp_releases.html</a>><br>
>>>>><br>
>>>>>    Everything seems to work as advertised, except sometimes I need to<br>
>>>>>    explicitly load the code into the running vm (i.e., using<br>
>>>>>    code_load_file/1) for the new stuff to take effect.  The function<br>
>>>>>    release_handler:which___releases/0 reports the new release as active<br>
>>>>><br>
>>>>>    and permanent, but I can see from behaviour that old versions of<br>
>>>>>    certain modules are still running and handling data.<br>
>>>>><br>
>>>>>    I can't be much more specific I'm afraid.  One example: one<br>
>>>>>    application uses cowboy.  If a release upgrade changes a cowboy<br>
>>>>>    resource module, the new release version might still be running the<br>
>>>>>    old version of that module until I load_file and purge.<br>
>>>>><br>
>>>>>    Why might this be happening?  Am I missing something in the<br>
>>>>>    packaging and upgrade process?  Is there a better way I can write my<br>
>>>>>    modules?<br>
>>>>><br>
>>>>>    If the information above is too vague, what should I look out for<br>
>>>>>    next time this happens?<br>
>>>>><br>
>>>>>    With thanks and best wishes<br>
>>>>><br>
>>>>>    Ivan<br>
>>>>><br>
>>>>><br>
>>>>>    --<br>
>>>>>    ==============================__==============================<br>
>>>>><br>
>>>>>    Ivan A. Uemlianin PhD<br>
>>>>>    Llaisdy<br>
>>>>>    Speech Technology Research and Development<br>
>>>>><br>
>>>>>    <a href="mailto:ivan@llaisdy.com">ivan@llaisdy.com</a> <mailto:<a href="mailto:ivan@llaisdy.com">ivan@llaisdy.com</a>><br>
>>>>>    <a href="http://www.llaisdy.com" target="_blank">www.llaisdy.com</a> <<a href="http://www.llaisdy.com" target="_blank">http://www.llaisdy.com</a>><br>
>>>>>    <a href="http://llaisdy.wordpress.com" target="_blank">llaisdy.wordpress.com</a> <<a href="http://llaisdy.wordpress.com" target="_blank">http://llaisdy.wordpress.com</a>><br>
>>>>>    <a href="http://github.com/llaisdy" target="_blank">github.com/llaisdy</a> <<a href="http://github.com/llaisdy" target="_blank">http://github.com/llaisdy</a>><br>
>>>>>    <a href="http://www.linkedin.com/in/__ivanuemlianin" target="_blank">www.linkedin.com/in/__ivanuemlianin</a><br>
>>>>>    <<a href="http://www.linkedin.com/in/ivanuemlianin" target="_blank">http://www.linkedin.com/in/ivanuemlianin</a>><br>
>>>>><br>
>>>>>                             festina lente<br>
>>>>>    ==============================__==============================<br>
>>>>>    _________________________________________________<br>
>>>>>    erlang-questions mailing list<br>
>>>>>    <a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a> <mailto:<a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a>><br>
>>>>>    <a href="http://erlang.org/mailman/__listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/__listinfo/erlang-questions</a><br>
>>>>>    <<a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a>><br>
>>>><br>
>>>> --<br>
>>>> ============================================================<br>
>>>> Ivan A. Uemlianin PhD<br>
>>>> Llaisdy<br>
>>>> Speech Technology Research and Development<br>
>>>><br>
>>>>                    <a href="mailto:ivan@llaisdy.com">ivan@llaisdy.com</a><br>
>>>>                     <a href="http://www.llaisdy.com" target="_blank">www.llaisdy.com</a><br>
>>>>                         <a href="http://llaisdy.wordpress.com" target="_blank">llaisdy.wordpress.com</a><br>
>>>>              <a href="http://github.com/llaisdy" target="_blank">github.com/llaisdy</a><br>
>>>>                     <a href="http://www.linkedin.com/in/ivanuemlianin" target="_blank">www.linkedin.com/in/ivanuemlianin</a><br>
>>>><br>
>>>>                        festina lente<br>
>>>> ============================================================<br>
>><br>
>><br>
>> _______________________________________________<br>
>> erlang-questions mailing list<br>
>> <a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
>> <a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
>><br>
_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr">Петровский Александр / Alexander Petrovsky,<br><br>Skype: askjuise<br><div>Phone: +7 914 8 820 815<div><br></div></div></div>
</div>