<div dir="ltr"><div dir="ltr">Hello Yao,<br><br>`rebar3_appup_plugin` may help you:<br><br><a href="https://github.com/lrascao/rebar3_appup_plugin">https://github.com/lrascao/rebar3_appup_plugin</a><br><br>(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><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">by@meetlost.com</a>> wrote:<br></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;">Hello,<div><br></div><div>I use rebar3 to build my Erlang applications.</div><div><br></div><div>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><br></div><div>I found some information with this link: <a href="https://www.rebar3.org/docs/releases#section-deploying-an-upgrade" target="_blank">https://www.rebar3.org/docs/releases#section-deploying-an-upgrade</a></div><div><br></div><div>But I got error when I try to unpack/install my new release:</div><div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;background-color:rgb(255,255,255)"><span style="font-variant-ligatures:no-common-ligatures">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)"><span style="font-variant-ligatures:no-common-ligatures">Installed versions:</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;background-color:rgb(255,255,255)"><span style="font-variant-ligatures:no-common-ligatures">* 1.0.2<span style="white-space:pre-wrap">    </span>permanent</span></div></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;background-color:rgb(255,255,255)"><span style="font-variant-ligatures:no-common-ligatures"><br></span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;background-color:rgb(255,255,255)"><span style="font-variant-ligatures:no-common-ligatures">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)"><br></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;background-color:rgb(255,255,255)">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)"><br></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;background-color:rgb(255,255,255)">Kind Regards,</div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;background-color:rgb(255,255,255)">Yao</div></div></blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr">Guilherme<br></div></div></div></div></div></div></div>