<html><head><meta http-equiv="Content-Type" content="text/html charset=gb2312"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hello Guilherme,<div class=""><br class=""></div><div class="">Thanks for the tip!</div><div class=""><br class=""></div><div class="">After some experiments (follow the instructions of rebar3_appup_plugin), I can deploy my application upgrade to my running system!</div><div class=""><br class=""></div><div class="">Although there are some other problems (on my running system, the established WebSocket connection (process) been killed after the upgrade), the whole thing works fine.</div><div class=""><br class=""></div><div class="">I will investigate more about why the running process been killed after the upgrade, I think the link below might be helpful:</div><div class=""><a href="https://github.com/lrascao/rebar3_appup_plugin/blob/develop/doc/UPGRADE_DOWNGRADE.md#soft-vs-brutal-purge" class="">https://github.com/lrascao/rebar3_appup_plugin/blob/develop/doc/UPGRADE_DOWNGRADE.md#soft-vs-brutal-purge</a></div><div class=""><div class=""><br class=""></div><div class="">Kind Regards,</div><div class="">Yao</div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">在 2020年2月23日,08:14,Guilherme Andrade <<a href="mailto:g@gandrade.net" class="">g@gandrade.net</a>> 写道:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div dir="ltr" class="">Hello Yao,<br class=""><br class="">`rebar3_appup_plugin` may help you:<br class=""><br class=""><a href="https://github.com/lrascao/rebar3_appup_plugin" class="">https://github.com/lrascao/rebar3_appup_plugin</a><br class=""><br class="">(I know this doesn't answer your actual question - I'm not knowledgeable enough - but it works very well for me and perhaps it will solve your problem, too.)</div><br class=""><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, 22 Feb 2020 at 12:27, by <<a href="mailto:by@meetlost.com" class="">by@meetlost.com</a>> wrote:<br class=""></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="overflow-wrap: break-word;" class="">Hello,<div class=""><br class=""></div><div class="">I use rebar3 to build my Erlang applications.</div><div class=""><br class=""></div><div class="">For application deployment, I build a compressed archive and copy it to the target. The first release works, but how can I upgrade my application on the running system?</div><div class=""><br class=""></div><div class="">I found some information with this link: <a href="https://www.rebar3.org/docs/releases#section-deploying-an-upgrade" target="_blank" class="">https://www.rebar3.org/docs/releases#section-deploying-an-upgrade</a></div><div class=""><br class=""></div><div class="">But I got error when I try to unpack/install my new release:</div><div class=""><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;background-color:rgb(255,255,255)" class=""><span style="font-variant-ligatures:no-common-ligatures" class="">Unpack failed: release_package_not_found</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;background-color:rgb(255,255,255)" class=""><span style="font-variant-ligatures:no-common-ligatures" class="">Installed versions:</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;background-color:rgb(255,255,255)" class=""><span style="font-variant-ligatures:no-common-ligatures" class="">* 1.0.2<span style="white-space:pre-wrap" class="">   </span>permanent</span></div></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;background-color:rgb(255,255,255)" class=""><span style="font-variant-ligatures:no-common-ligatures" class=""><br class=""></span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;background-color:rgb(255,255,255)" class=""><span style="font-variant-ligatures:no-common-ligatures" class="">Say, I have a release (1.0.2) which is running, and there are some code changes, I build ($ rebar3 as prod tar) a new release (1.0.3). Is myrel</span>-1.0.3.tar.gz sufficient for deploying the upgrade? I copied the myrel-1.0.3.tar.gz to the root directory of my application.</div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;background-color:rgb(255,255,255)" class=""><br class=""></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;background-color:rgb(255,255,255)" class="">I think the problem is how to make my new release/version being listed with command: $ bin/myrel versions</div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;background-color:rgb(255,255,255)" class=""><br class=""></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;background-color:rgb(255,255,255)" class="">Kind Regards,</div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;background-color:rgb(255,255,255)" class="">Yao</div></div></blockquote></div><br clear="all" class=""><br class="">-- <br class=""><div dir="ltr" class="gmail_signature"><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div class=""><div dir="ltr" class="">Guilherme<br class=""></div></div></div></div></div></div></div>
</div></blockquote></div><br class=""></div></div></body></html>