<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 ----<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/blob/maint-21/lib/sasl/src/release_handler.erl#L850-L854</a> I understand that it's supposed to copy and  `releases/<a href="http://app_name.rel">app_name.rel</a>` into `releases/<vsn>/<a href="http://app_name.rel">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">app_name.rel</a> is already present in an archive</div><div>- releases/<vsn>/<a href="http://app_name.rel">app_name.rel</a> is not there after upgrade</div><div>- releases/<a href="http://app_name.rel">app_name.rel</a> 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+<a href="http://5aead53.upgrade.tar.gz">5aead53.upgrade.tar.gz</a> /srv/apps/flowmail_web/releases/1.4.6+5aead53/<a href="http://flowmail_web.tar.gz">flowmail_web.tar.gz</a></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 <a href="tel:1.4.6">1.4.6</a>+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:<a href="tel:1.4.6">1.4.6</a>+5aead53 not found, attempting to unpack releases/1.4.6+5aead53/<a href="http://flowmail_web.tar.gz">flowmail_web.tar.gz</a></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><a href="tel:1.4.6">1.4.6</a>+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:<a href="tel:1.4.6">1.4.6</a>+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:<a href="tel:1.4.6">1.4.6</a>+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:<a href="tel:1.4.6">1.4.6</a>+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/<a href="http://flowmail_web.rel">flowmail_web.rel</a>: 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/<a href="http://flowmail_web.rel">flowmail_web.rel</a>: 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+<a href="http://5aead53.tar.gz">5aead53.tar.gz</a></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/<a href="http://flowmail_web.rel">flowmail_web.rel</a> ] <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/<a href="http://flowmail_web.rel">flowmail_web.rel</a> ] <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>