<div dir="ltr"><div>Hi everyone,</div><div><br></div><div>I'm having problem with unpacking release_handler:unpack_release .</div><div>Looking at <a href="https://github.com/erlang/otp/blob/maint-21/lib/sasl/src/release_handler.erl#L850-L854" target="_blank">https://github.com/erlang/otp/blob/maint-21/lib/sasl/src/release_handler.erl#L850-L854</a> I understand that it's supposed to copy and `releases/app_name.rel` into `releases/<vsn>/app_name.rel` and then delete the origin file.</div><div><br></div><div>Somehow it doesn't work in my case: <br></div><div><br></div><div>- releases/<vsn>/app_name.rel is already present in an archive</div><div>- releases/<vsn>/app_name.rel is not there after upgrade</div><div>- releases/app_name.rel still there <br></div><div><br></div><div>Illustration:</div><div><br></div><div><table class="m_-6963902399041141097gmail-highlight m_-6963902399041141097gmail-tab-size m_-6963902399041141097gmail-js-file-line-container"><tbody><tr><td id="m_-6963902399041141097gmail-file-1-sh-LC1" class="m_-6963902399041141097gmail-blob-code m_-6963902399041141097gmail-blob-code-inner m_-6963902399041141097gmail-js-file-line"><span style="font-family:monospace,monospace">$ mkdir /srv/apps/flowmail_web/releases/1.4.6+5aead53/</span></td>
</tr>
<tr>
</tr></tbody></table><table class="m_-6963902399041141097gmail-highlight m_-6963902399041141097gmail-tab-size m_-6963902399041141097gmail-js-file-line-container"><tbody><tr><td id="m_-6963902399041141097gmail-file-1-sh-LC2" class="m_-6963902399041141097gmail-blob-code m_-6963902399041141097gmail-blob-code-inner m_-6963902399041141097gmail-js-file-line"><span style="font-family:monospace,monospace">$ mv flowmail_web_1.4.6+5aead53.upgrade.tar.gz /srv/apps/flowmail_web/releases/1.4.6+5aead53/flowmail_web.tar.gz</span></td>
</tr>
<tr>
</tr></tbody></table><table class="m_-6963902399041141097gmail-highlight m_-6963902399041141097gmail-tab-size m_-6963902399041141097gmail-js-file-line-container"><tbody><tr><td id="m_-6963902399041141097gmail-file-1-sh-LC3" class="m_-6963902399041141097gmail-blob-code m_-6963902399041141097gmail-blob-code-inner m_-6963902399041141097gmail-js-file-line"><span style="font-family:monospace,monospace">$ ./bin/flowmail_web upgrade 1.4.6+5aead53</span></td>
</tr>
<tr>
</tr></tbody></table><table class="m_-6963902399041141097gmail-highlight m_-6963902399041141097gmail-tab-size m_-6963902399041141097gmail-js-file-line-container"><tbody><tr><td id="m_-6963902399041141097gmail-file-1-sh-LC4" class="m_-6963902399041141097gmail-blob-code m_-6963902399041141097gmail-blob-code-inner m_-6963902399041141097gmail-js-file-line"><span style="font-family:monospace,monospace">Release flowmail_web:1.4.6+5aead53 not found, attempting to unpack releases/1.4.6+5aead53/flowmail_web.tar.gz</span></td>
</tr>
<tr>
</tr></tbody></table><table class="m_-6963902399041141097gmail-highlight m_-6963902399041141097gmail-tab-size m_-6963902399041141097gmail-js-file-line-container"><tbody><tr><td id="m_-6963902399041141097gmail-file-1-sh-LC5" class="m_-6963902399041141097gmail-blob-code m_-6963902399041141097gmail-blob-code-inner m_-6963902399041141097gmail-js-file-line"><span style="font-family:monospace,monospace">Unpacked <span class="m_-6963902399041141097gmail-pl-s"><span class="m_-6963902399041141097gmail-pl-pds">'</span>1.4.6+5aead53<span class="m_-6963902399041141097gmail-pl-pds">'</span></span> successfully<span class="m_-6963902399041141097gmail-pl-k">!</span></span></td>
</tr>
<tr>
</tr></tbody></table><table class="m_-6963902399041141097gmail-highlight m_-6963902399041141097gmail-tab-size m_-6963902399041141097gmail-js-file-line-container"><tbody><tr><td id="m_-6963902399041141097gmail-file-1-sh-LC6" class="m_-6963902399041141097gmail-blob-code m_-6963902399041141097gmail-blob-code-inner m_-6963902399041141097gmail-js-file-line"><span style="font-family:monospace,monospace">Release flowmail_web:1.4.6+5aead53 is already unpacked, installing..</span></td>
</tr>
<tr>
</tr></tbody></table><table class="m_-6963902399041141097gmail-highlight m_-6963902399041141097gmail-tab-size m_-6963902399041141097gmail-js-file-line-container"><tbody><tr><td id="m_-6963902399041141097gmail-file-1-sh-LC7" class="m_-6963902399041141097gmail-blob-code m_-6963902399041141097gmail-blob-code-inner m_-6963902399041141097gmail-js-file-line"><span style="font-family:monospace,monospace">Installed release flowmail_web:1.4.6+5aead53</span></td>
</tr>
<tr>
</tr></tbody></table><table class="m_-6963902399041141097gmail-highlight m_-6963902399041141097gmail-tab-size m_-6963902399041141097gmail-js-file-line-container"><tbody><tr><td id="m_-6963902399041141097gmail-file-1-sh-LC8" class="m_-6963902399041141097gmail-blob-code m_-6963902399041141097gmail-blob-code-inner m_-6963902399041141097gmail-js-file-line"><span style="font-family:monospace,monospace">Updating config..</span></td>
</tr>
<tr>
</tr></tbody></table><table class="m_-6963902399041141097gmail-highlight m_-6963902399041141097gmail-tab-size m_-6963902399041141097gmail-js-file-line-container"><tbody><tr><td id="m_-6963902399041141097gmail-file-1-sh-LC9" class="m_-6963902399041141097gmail-blob-code m_-6963902399041141097gmail-blob-code-inner m_-6963902399041141097gmail-js-file-line"><span style="font-family:monospace,monospace">Made release flowmail_web:1.4.6+5aead53 permanent</span></td>
</tr>
<tr>
</tr></tbody></table><table class="m_-6963902399041141097gmail-highlight m_-6963902399041141097gmail-tab-size m_-6963902399041141097gmail-js-file-line-container"><tbody><tr><td id="m_-6963902399041141097gmail-file-1-sh-LC10" class="m_-6963902399041141097gmail-blob-code m_-6963902399041141097gmail-blob-code-inner m_-6963902399041141097gmail-js-file-line"><span style="font-family:monospace,monospace">$ ./bin/flowmail_web ping</span></td>
</tr>
<tr>
</tr></tbody></table><table class="m_-6963902399041141097gmail-highlight m_-6963902399041141097gmail-tab-size m_-6963902399041141097gmail-js-file-line-container"><tbody><tr><td id="m_-6963902399041141097gmail-file-1-sh-LC11" class="m_-6963902399041141097gmail-blob-code m_-6963902399041141097gmail-blob-code-inner m_-6963902399041141097gmail-js-file-line"><span style="font-family:monospace,monospace">grep: /srv/apps/flowmail_web/releases/1.4.6+5aead53/flowmail_web.rel: No such file or directory</span></td>
</tr>
<tr>
</tr></tbody></table><table class="m_-6963902399041141097gmail-highlight m_-6963902399041141097gmail-tab-size m_-6963902399041141097gmail-js-file-line-container"><tbody><tr><td id="m_-6963902399041141097gmail-file-1-sh-LC12" class="m_-6963902399041141097gmail-blob-code m_-6963902399041141097gmail-blob-code-inner m_-6963902399041141097gmail-js-file-line"><span style="font-family:monospace,monospace">grep: /srv/apps/flowmail_web/releases/1.4.6+5aead53/flowmail_web.rel: No such file or directory</span></td>
</tr>
<tr>
</tr></tbody></table><table class="m_-6963902399041141097gmail-highlight m_-6963902399041141097gmail-tab-size m_-6963902399041141097gmail-js-file-line-container"><tbody><tr><td id="m_-6963902399041141097gmail-file-1-sh-LC13" class="m_-6963902399041141097gmail-blob-code m_-6963902399041141097gmail-blob-code-inner m_-6963902399041141097gmail-js-file-line"><span style="font-family:monospace,monospace">pong</span></td>
</tr>
<tr>
</tr></tbody></table><table class="m_-6963902399041141097gmail-highlight m_-6963902399041141097gmail-tab-size m_-6963902399041141097gmail-js-file-line-container"><tbody><tr><td id="m_-6963902399041141097gmail-file-1-sh-LC14" class="m_-6963902399041141097gmail-blob-code m_-6963902399041141097gmail-blob-code-inner m_-6963902399041141097gmail-js-file-line">
<span style="font-family:monospace,monospace"><br></span></td>
</tr>
<tr>
</tr></tbody></table><table class="m_-6963902399041141097gmail-highlight m_-6963902399041141097gmail-tab-size m_-6963902399041141097gmail-js-file-line-container"><tbody><tr><td id="m_-6963902399041141097gmail-file-1-sh-LC15" class="m_-6963902399041141097gmail-blob-code m_-6963902399041141097gmail-blob-code-inner m_-6963902399041141097gmail-js-file-line"><span style="font-family:monospace,monospace"><span class="m_-6963902399041141097gmail-pl-c"><span class="m_-6963902399041141097gmail-pl-c">#</span># but it's present in an archive </span></span></td>
</tr>
<tr>
</tr></tbody></table><table class="m_-6963902399041141097gmail-highlight m_-6963902399041141097gmail-tab-size m_-6963902399041141097gmail-js-file-line-container"><tbody><tr><td id="m_-6963902399041141097gmail-file-1-sh-LC16" class="m_-6963902399041141097gmail-blob-code m_-6963902399041141097gmail-blob-code-inner m_-6963902399041141097gmail-js-file-line">
<span style="font-family:monospace,monospace"><br></span></td>
</tr>
<tr>
</tr></tbody></table><table class="m_-6963902399041141097gmail-highlight m_-6963902399041141097gmail-tab-size m_-6963902399041141097gmail-js-file-line-container"><tbody><tr><td id="m_-6963902399041141097gmail-file-1-sh-LC17" class="m_-6963902399041141097gmail-blob-code m_-6963902399041141097gmail-blob-code-inner m_-6963902399041141097gmail-js-file-line"><span style="font-family:monospace,monospace">$ tar -C /tmp/5aead53/ -zxvf releases/1.4.6+5aead53/flowmail_web_1.4.6+5aead53.tar.gz</span></td>
</tr>
<tr>
</tr></tbody></table><table class="m_-6963902399041141097gmail-highlight m_-6963902399041141097gmail-tab-size m_-6963902399041141097gmail-js-file-line-container"><tbody><tr><td id="m_-6963902399041141097gmail-file-1-sh-LC18" class="m_-6963902399041141097gmail-blob-code m_-6963902399041141097gmail-blob-code-inner m_-6963902399041141097gmail-js-file-line"><span style="font-family:monospace,monospace">$ [ <span class="m_-6963902399041141097gmail-pl-k">-f</span> /tmp/5aead53/releases/1.4.6+5aead53/flowmail_web.rel ] <span class="m_-6963902399041141097gmail-pl-k">&&</span> <span class="m_-6963902399041141097gmail-pl-c1">echo</span> <span class="m_-6963902399041141097gmail-pl-s"><span class="m_-6963902399041141097gmail-pl-pds">"</span>File exist<span class="m_-6963902399041141097gmail-pl-pds">"</span></span> <span class="m_-6963902399041141097gmail-pl-k">||</span> <span class="m_-6963902399041141097gmail-pl-c1">echo</span> <span class="m_-6963902399041141097gmail-pl-s"><span class="m_-6963902399041141097gmail-pl-pds">"</span>File does not exist<span class="m_-6963902399041141097gmail-pl-pds">"</span></span></span></td>
</tr>
<tr>
</tr></tbody></table><table class="m_-6963902399041141097gmail-highlight m_-6963902399041141097gmail-tab-size m_-6963902399041141097gmail-js-file-line-container"><tbody><tr><td id="m_-6963902399041141097gmail-file-1-sh-LC19" class="m_-6963902399041141097gmail-blob-code m_-6963902399041141097gmail-blob-code-inner m_-6963902399041141097gmail-js-file-line"><span style="font-family:monospace,monospace">File exist</span></td>
</tr>
<tr>
</tr></tbody></table><table class="m_-6963902399041141097gmail-highlight m_-6963902399041141097gmail-tab-size m_-6963902399041141097gmail-js-file-line-container"><tbody><tr><td id="m_-6963902399041141097gmail-file-1-sh-LC20" class="m_-6963902399041141097gmail-blob-code m_-6963902399041141097gmail-blob-code-inner m_-6963902399041141097gmail-js-file-line"><span style="font-family:monospace,monospace">$ [ <span class="m_-6963902399041141097gmail-pl-k">-f</span> releases/flowmail_web.rel ] <span class="m_-6963902399041141097gmail-pl-k">&&</span> <span class="m_-6963902399041141097gmail-pl-c1">echo</span> <span class="m_-6963902399041141097gmail-pl-s"><span class="m_-6963902399041141097gmail-pl-pds">"</span>File exist<span class="m_-6963902399041141097gmail-pl-pds">"</span></span> <span class="m_-6963902399041141097gmail-pl-k">||</span> <span class="m_-6963902399041141097gmail-pl-c1">echo</span> <span class="m_-6963902399041141097gmail-pl-s"><span class="m_-6963902399041141097gmail-pl-pds">"</span>File does not exist<span class="m_-6963902399041141097gmail-pl-pds">"</span></span></span></td>
</tr>
<tr>
</tr></tbody></table><span style="font-family:monospace,monospace">File exist</span></div><div><br></div><div><br></div><div>There are no any special file permissions or anything like that<br></div><div><br></div></div>