<div dir="ltr">Where's that "grep" coming from? You might need to tell it to treat the filename as fixed, i.e. use "grep -F" or "fgrep" instead.</div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Aug 14, 2018 at 10:22 AM, Eric Pailleau <span dir="ltr"><<a href="mailto:eric.pailleau@wanadoo.fr" target="_blank">eric.pailleau@wanadoo.fr</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr">Hi, </p>
<p dir="ltr">Looks like error is raised by grep. + is a special character for grep. Can you look at those grep line? </p>
<p dir="ltr">Envoyé depuis mon mobile</p>
<br><br>---- Yevhenii Kurtov a écrit ----<div class="HOEnZb"><div class="h5"><br><br><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/<wbr>blob/maint-21/lib/sasl/src/<wbr>release_handler.erl#L850-L854</a> I understand that it's supposed to copy and `releases/<a href="http://app_name.rel" target="_blank">app_name.rel</a>` into `releases/<vsn>/<a href="http://app_name.rel" target="_blank">app_name.rel</a>` 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>/<a href="http://app_name.rel" target="_blank">app_name.rel</a> is already present in an archive</div><div>- releases/<vsn>/<a href="http://app_name.rel" target="_blank">app_name.rel</a> is not there after upgrade</div><div>- releases/<a href="http://app_name.rel" target="_blank">app_name.rel</a> still there <br></div><div><br></div><div>Illustration:</div><div><br></div><div><table class="m_9093112776602101942m_-6963902399041141097gmail-highlight m_9093112776602101942m_-6963902399041141097gmail-tab-size m_9093112776602101942m_-6963902399041141097gmail-js-file-line-container"><tbody><tr><td id="m_9093112776602101942m_-6963902399041141097gmail-file-1-sh-LC1" class="m_9093112776602101942m_-6963902399041141097gmail-blob-code m_9093112776602101942m_-6963902399041141097gmail-blob-code-inner m_9093112776602101942m_-6963902399041141097gmail-js-file-line"><span style="font-family:monospace,monospace">$ mkdir /srv/apps/flowmail_web/<wbr>releases/1.4.6+5aead53/</span></td>
</tr>
<tr>
</tr></tbody></table><table class="m_9093112776602101942m_-6963902399041141097gmail-highlight m_9093112776602101942m_-6963902399041141097gmail-tab-size m_9093112776602101942m_-6963902399041141097gmail-js-file-line-container"><tbody><tr><td id="m_9093112776602101942m_-6963902399041141097gmail-file-1-sh-LC2" class="m_9093112776602101942m_-6963902399041141097gmail-blob-code m_9093112776602101942m_-6963902399041141097gmail-blob-code-inner m_9093112776602101942m_-6963902399041141097gmail-js-file-line"><span style="font-family:monospace,monospace">$ mv flowmail_web_1.4.6+<a href="http://5aead53.upgrade.tar.gz" target="_blank">5aead53.<wbr>upgrade.tar.gz</a> /srv/apps/flowmail_web/<wbr>releases/1.4.6+5aead53/<a href="http://flowmail_web.tar.gz" target="_blank">flowmai<wbr>l_web.tar.gz</a></span></td>
</tr>
<tr>
</tr></tbody></table><table class="m_9093112776602101942m_-6963902399041141097gmail-highlight m_9093112776602101942m_-6963902399041141097gmail-tab-size m_9093112776602101942m_-6963902399041141097gmail-js-file-line-container"><tbody><tr><td id="m_9093112776602101942m_-6963902399041141097gmail-file-1-sh-LC3" class="m_9093112776602101942m_-6963902399041141097gmail-blob-code m_9093112776602101942m_-6963902399041141097gmail-blob-code-inner m_9093112776602101942m_-6963902399041141097gmail-js-file-line"><span style="font-family:monospace,monospace">$ ./bin/flowmail_web upgrade <a href="tel:1.4.6" target="_blank">1.4.6</a>+5aead53</span></td>
</tr>
<tr>
</tr></tbody></table><table class="m_9093112776602101942m_-6963902399041141097gmail-highlight m_9093112776602101942m_-6963902399041141097gmail-tab-size m_9093112776602101942m_-6963902399041141097gmail-js-file-line-container"><tbody><tr><td id="m_9093112776602101942m_-6963902399041141097gmail-file-1-sh-LC4" class="m_9093112776602101942m_-6963902399041141097gmail-blob-code m_9093112776602101942m_-6963902399041141097gmail-blob-code-inner m_9093112776602101942m_-6963902399041141097gmail-js-file-line"><span style="font-family:monospace,monospace">Release flowmail_web:<a href="tel:1.4.6" target="_blank">1.4.6</a>+5aead53 not found, attempting to unpack releases/1.4.6+5aead53/<a href="http://flowmail_web.tar.gz" target="_blank">flowmai<wbr>l_web.tar.gz</a></span></td>
</tr>
<tr>
</tr></tbody></table><table class="m_9093112776602101942m_-6963902399041141097gmail-highlight m_9093112776602101942m_-6963902399041141097gmail-tab-size m_9093112776602101942m_-6963902399041141097gmail-js-file-line-container"><tbody><tr><td id="m_9093112776602101942m_-6963902399041141097gmail-file-1-sh-LC5" class="m_9093112776602101942m_-6963902399041141097gmail-blob-code m_9093112776602101942m_-6963902399041141097gmail-blob-code-inner m_9093112776602101942m_-6963902399041141097gmail-js-file-line"><span style="font-family:monospace,monospace">Unpacked <span class="m_9093112776602101942m_-6963902399041141097gmail-pl-s"><span class="m_9093112776602101942m_-6963902399041141097gmail-pl-pds">'</span><a href="tel:1.4.6" target="_blank">1.4.6</a>+5aead53<span class="m_9093112776602101942m_-6963902399041141097gmail-pl-pds">'</span></span> successfully<span class="m_9093112776602101942m_-6963902399041141097gmail-pl-k">!</span></span></td>
</tr>
<tr>
</tr></tbody></table><table class="m_9093112776602101942m_-6963902399041141097gmail-highlight m_9093112776602101942m_-6963902399041141097gmail-tab-size m_9093112776602101942m_-6963902399041141097gmail-js-file-line-container"><tbody><tr><td id="m_9093112776602101942m_-6963902399041141097gmail-file-1-sh-LC6" class="m_9093112776602101942m_-6963902399041141097gmail-blob-code m_9093112776602101942m_-6963902399041141097gmail-blob-code-inner m_9093112776602101942m_-6963902399041141097gmail-js-file-line"><span style="font-family:monospace,monospace">Release flowmail_web:<a href="tel:1.4.6" target="_blank">1.4.6</a>+5aead53 is already unpacked, installing..</span></td>
</tr>
<tr>
</tr></tbody></table><table class="m_9093112776602101942m_-6963902399041141097gmail-highlight m_9093112776602101942m_-6963902399041141097gmail-tab-size m_9093112776602101942m_-6963902399041141097gmail-js-file-line-container"><tbody><tr><td id="m_9093112776602101942m_-6963902399041141097gmail-file-1-sh-LC7" class="m_9093112776602101942m_-6963902399041141097gmail-blob-code m_9093112776602101942m_-6963902399041141097gmail-blob-code-inner m_9093112776602101942m_-6963902399041141097gmail-js-file-line"><span style="font-family:monospace,monospace">Installed release flowmail_web:<a href="tel:1.4.6" target="_blank">1.4.6</a>+5aead53</span></td>
</tr>
<tr>
</tr></tbody></table><table class="m_9093112776602101942m_-6963902399041141097gmail-highlight m_9093112776602101942m_-6963902399041141097gmail-tab-size m_9093112776602101942m_-6963902399041141097gmail-js-file-line-container"><tbody><tr><td id="m_9093112776602101942m_-6963902399041141097gmail-file-1-sh-LC8" class="m_9093112776602101942m_-6963902399041141097gmail-blob-code m_9093112776602101942m_-6963902399041141097gmail-blob-code-inner m_9093112776602101942m_-6963902399041141097gmail-js-file-line"><span style="font-family:monospace,monospace">Updating config..</span></td>
</tr>
<tr>
</tr></tbody></table><table class="m_9093112776602101942m_-6963902399041141097gmail-highlight m_9093112776602101942m_-6963902399041141097gmail-tab-size m_9093112776602101942m_-6963902399041141097gmail-js-file-line-container"><tbody><tr><td id="m_9093112776602101942m_-6963902399041141097gmail-file-1-sh-LC9" class="m_9093112776602101942m_-6963902399041141097gmail-blob-code m_9093112776602101942m_-6963902399041141097gmail-blob-code-inner m_9093112776602101942m_-6963902399041141097gmail-js-file-line"><span style="font-family:monospace,monospace">Made release flowmail_web:<a href="tel:1.4.6" target="_blank">1.4.6</a>+5aead53 permanent</span></td>
</tr>
<tr>
</tr></tbody></table><table class="m_9093112776602101942m_-6963902399041141097gmail-highlight m_9093112776602101942m_-6963902399041141097gmail-tab-size m_9093112776602101942m_-6963902399041141097gmail-js-file-line-container"><tbody><tr><td id="m_9093112776602101942m_-6963902399041141097gmail-file-1-sh-LC10" class="m_9093112776602101942m_-6963902399041141097gmail-blob-code m_9093112776602101942m_-6963902399041141097gmail-blob-code-inner m_9093112776602101942m_-6963902399041141097gmail-js-file-line"><span style="font-family:monospace,monospace">$ ./bin/flowmail_web ping</span></td>
</tr>
<tr>
</tr></tbody></table><table class="m_9093112776602101942m_-6963902399041141097gmail-highlight m_9093112776602101942m_-6963902399041141097gmail-tab-size m_9093112776602101942m_-6963902399041141097gmail-js-file-line-container"><tbody><tr><td id="m_9093112776602101942m_-6963902399041141097gmail-file-1-sh-LC11" class="m_9093112776602101942m_-6963902399041141097gmail-blob-code m_9093112776602101942m_-6963902399041141097gmail-blob-code-inner m_9093112776602101942m_-6963902399041141097gmail-js-file-line"><span style="font-family:monospace,monospace">grep: /srv/apps/flowmail_web/<wbr>releases/1.4.6+5aead53/<a href="http://flowmail_web.rel" target="_blank">flowmai<wbr>l_web.rel</a>: No such file or directory</span></td>
</tr>
<tr>
</tr></tbody></table><table class="m_9093112776602101942m_-6963902399041141097gmail-highlight m_9093112776602101942m_-6963902399041141097gmail-tab-size m_9093112776602101942m_-6963902399041141097gmail-js-file-line-container"><tbody><tr><td id="m_9093112776602101942m_-6963902399041141097gmail-file-1-sh-LC12" class="m_9093112776602101942m_-6963902399041141097gmail-blob-code m_9093112776602101942m_-6963902399041141097gmail-blob-code-inner m_9093112776602101942m_-6963902399041141097gmail-js-file-line"><span style="font-family:monospace,monospace">grep: /srv/apps/flowmail_web/<wbr>releases/1.4.6+5aead53/<a href="http://flowmail_web.rel" target="_blank">flowmai<wbr>l_web.rel</a>: No such file or directory</span></td>
</tr>
<tr>
</tr></tbody></table><table class="m_9093112776602101942m_-6963902399041141097gmail-highlight m_9093112776602101942m_-6963902399041141097gmail-tab-size m_9093112776602101942m_-6963902399041141097gmail-js-file-line-container"><tbody><tr><td id="m_9093112776602101942m_-6963902399041141097gmail-file-1-sh-LC13" class="m_9093112776602101942m_-6963902399041141097gmail-blob-code m_9093112776602101942m_-6963902399041141097gmail-blob-code-inner m_9093112776602101942m_-6963902399041141097gmail-js-file-line"><span style="font-family:monospace,monospace">pong</span></td>
</tr>
<tr>
</tr></tbody></table><table class="m_9093112776602101942m_-6963902399041141097gmail-highlight m_9093112776602101942m_-6963902399041141097gmail-tab-size m_9093112776602101942m_-6963902399041141097gmail-js-file-line-container"><tbody><tr><td id="m_9093112776602101942m_-6963902399041141097gmail-file-1-sh-LC14" class="m_9093112776602101942m_-6963902399041141097gmail-blob-code m_9093112776602101942m_-6963902399041141097gmail-blob-code-inner m_9093112776602101942m_-6963902399041141097gmail-js-file-line">
<span style="font-family:monospace,monospace"><br></span></td>
</tr>
<tr>
</tr></tbody></table><table class="m_9093112776602101942m_-6963902399041141097gmail-highlight m_9093112776602101942m_-6963902399041141097gmail-tab-size m_9093112776602101942m_-6963902399041141097gmail-js-file-line-container"><tbody><tr><td id="m_9093112776602101942m_-6963902399041141097gmail-file-1-sh-LC15" class="m_9093112776602101942m_-6963902399041141097gmail-blob-code m_9093112776602101942m_-6963902399041141097gmail-blob-code-inner m_9093112776602101942m_-6963902399041141097gmail-js-file-line"><span style="font-family:monospace,monospace"><span class="m_9093112776602101942m_-6963902399041141097gmail-pl-c"><span class="m_9093112776602101942m_-6963902399041141097gmail-pl-c">#</span># but it's present in an archive </span></span></td>
</tr>
<tr>
</tr></tbody></table><table class="m_9093112776602101942m_-6963902399041141097gmail-highlight m_9093112776602101942m_-6963902399041141097gmail-tab-size m_9093112776602101942m_-6963902399041141097gmail-js-file-line-container"><tbody><tr><td id="m_9093112776602101942m_-6963902399041141097gmail-file-1-sh-LC16" class="m_9093112776602101942m_-6963902399041141097gmail-blob-code m_9093112776602101942m_-6963902399041141097gmail-blob-code-inner m_9093112776602101942m_-6963902399041141097gmail-js-file-line">
<span style="font-family:monospace,monospace"><br></span></td>
</tr>
<tr>
</tr></tbody></table><table class="m_9093112776602101942m_-6963902399041141097gmail-highlight m_9093112776602101942m_-6963902399041141097gmail-tab-size m_9093112776602101942m_-6963902399041141097gmail-js-file-line-container"><tbody><tr><td id="m_9093112776602101942m_-6963902399041141097gmail-file-1-sh-LC17" class="m_9093112776602101942m_-6963902399041141097gmail-blob-code m_9093112776602101942m_-6963902399041141097gmail-blob-code-inner m_9093112776602101942m_-6963902399041141097gmail-js-file-line"><span style="font-family:monospace,monospace">$ tar -C /tmp/5aead53/ -zxvf releases/1.4.6+5aead53/<wbr>flowmail_web_1.4.6+<a href="http://5aead53.tar.gz" target="_blank">5aead53.<wbr>tar.gz</a></span></td>
</tr>
<tr>
</tr></tbody></table><table class="m_9093112776602101942m_-6963902399041141097gmail-highlight m_9093112776602101942m_-6963902399041141097gmail-tab-size m_9093112776602101942m_-6963902399041141097gmail-js-file-line-container"><tbody><tr><td id="m_9093112776602101942m_-6963902399041141097gmail-file-1-sh-LC18" class="m_9093112776602101942m_-6963902399041141097gmail-blob-code m_9093112776602101942m_-6963902399041141097gmail-blob-code-inner m_9093112776602101942m_-6963902399041141097gmail-js-file-line"><span style="font-family:monospace,monospace">$ [ <span class="m_9093112776602101942m_-6963902399041141097gmail-pl-k">-f</span> /tmp/5aead53/releases/1.4.6+<wbr>5aead53/<a href="http://flowmail_web.rel" target="_blank">flowmail_web.rel</a> ] <span class="m_9093112776602101942m_-6963902399041141097gmail-pl-k">&&</span> <span class="m_9093112776602101942m_-6963902399041141097gmail-pl-c1">echo</span> <span class="m_9093112776602101942m_-6963902399041141097gmail-pl-s"><span class="m_9093112776602101942m_-6963902399041141097gmail-pl-pds">"</span>File exist<span class="m_9093112776602101942m_-6963902399041141097gmail-pl-pds">"</span></span> <span class="m_9093112776602101942m_-6963902399041141097gmail-pl-k">||</span> <span class="m_9093112776602101942m_-6963902399041141097gmail-pl-c1">echo</span> <span class="m_9093112776602101942m_-6963902399041141097gmail-pl-s"><span class="m_9093112776602101942m_-6963902399041141097gmail-pl-pds">"</span>File does not exist<span class="m_9093112776602101942m_-6963902399041141097gmail-pl-pds">"</span></span></span></td>
</tr>
<tr>
</tr></tbody></table><table class="m_9093112776602101942m_-6963902399041141097gmail-highlight m_9093112776602101942m_-6963902399041141097gmail-tab-size m_9093112776602101942m_-6963902399041141097gmail-js-file-line-container"><tbody><tr><td id="m_9093112776602101942m_-6963902399041141097gmail-file-1-sh-LC19" class="m_9093112776602101942m_-6963902399041141097gmail-blob-code m_9093112776602101942m_-6963902399041141097gmail-blob-code-inner m_9093112776602101942m_-6963902399041141097gmail-js-file-line"><span style="font-family:monospace,monospace">File exist</span></td>
</tr>
<tr>
</tr></tbody></table><table class="m_9093112776602101942m_-6963902399041141097gmail-highlight m_9093112776602101942m_-6963902399041141097gmail-tab-size m_9093112776602101942m_-6963902399041141097gmail-js-file-line-container"><tbody><tr><td id="m_9093112776602101942m_-6963902399041141097gmail-file-1-sh-LC20" class="m_9093112776602101942m_-6963902399041141097gmail-blob-code m_9093112776602101942m_-6963902399041141097gmail-blob-code-inner m_9093112776602101942m_-6963902399041141097gmail-js-file-line"><span style="font-family:monospace,monospace">$ [ <span class="m_9093112776602101942m_-6963902399041141097gmail-pl-k">-f</span> releases/<a href="http://flowmail_web.rel" target="_blank">flowmail_web.rel</a> ] <span class="m_9093112776602101942m_-6963902399041141097gmail-pl-k">&&</span> <span class="m_9093112776602101942m_-6963902399041141097gmail-pl-c1">echo</span> <span class="m_9093112776602101942m_-6963902399041141097gmail-pl-s"><span class="m_9093112776602101942m_-6963902399041141097gmail-pl-pds">"</span>File exist<span class="m_9093112776602101942m_-6963902399041141097gmail-pl-pds">"</span></span> <span class="m_9093112776602101942m_-6963902399041141097gmail-pl-k">||</span> <span class="m_9093112776602101942m_-6963902399041141097gmail-pl-c1">echo</span> <span class="m_9093112776602101942m_-6963902399041141097gmail-pl-s"><span class="m_9093112776602101942m_-6963902399041141097gmail-pl-pds">"</span>File does not exist<span class="m_9093112776602101942m_-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>
</div></div><br>______________________________<wbr>_________________<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" rel="noreferrer" target="_blank">http://erlang.org/mailman/<wbr>listinfo/erlang-questions</a><br>
<br></blockquote></div><br></div>