<html><body><div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:12pt">I have successfully installed the second release on the dev machine with release_handle:unpack_release, install_release and make_permanent<br>but when trying to install myserver_2.tar.gz on the new machine I'm still getting same errors.<br><br>I'm able  to extract myserver_2.tar.gz with erl_tar:extract("myserver_2.tar.gz", [compressed])<br>so I don't think it's a permission issue.<br>I also see the myserver_2.rel file so maybe the error is because the path is not correct?<br><br>The contents after extracting are:<br>lib\<br><span>     all the application folders...</span><br>releases\<br><span>     myserver_2.rel</span><br><span>     \2</span><span></span><br><span>     </span><span>     relup<br></span><span>    
 </span><span>     myserver.boot (symlink)<br></span><span>     </span><span>     start.boot<br></span><span>     </span><span>     start_clean.boot</span><br><br>Again, the errors I'm getting are:<br>1. Error when trying to use release_handler:unpack_release("myserver_2"):<br>{error,{enoent,"/usr/lib/myserver/releases/myserver_2.rel"}}<br><br>2. After I copy myserver_2.rel manually to /usr/lib/myserver/releases and trying release_handler:unpack_release("myserver_2") again I'm getting:<br>{error,{{case_clause,{error,eacces}},<br>        [{release_handler,extract_tar,2},<br>         {release_handler,do_unpack_release,4},<br>         {release_handler,handle_call,3},<br>        
 {gen_server,handle_msg,5},<br>         {proc_lib,init_p_do_apply,3}]}}<br><span>     </span><span>     </span><br><br>>> 11. /usr/lib/myserver/bin/myserver attach<br>>> release_handler:unpack_release("myserver_2").<br>>> {error,{enoent,"/usr/lib/myserver/releases/myserver_2.rel"}}<br>>> Why am I getting the enoent error?<br>><br>>I don't use rebar for releases so I can't help you here. I don't know<br>>why this file didn't exist.<br>><br>>> 12. trying to fix the error - copy manually the myserver_2.rel file to<br>>> /usr/lib/myserver/releases<br>>> release_handler:unpack_release("myserver_2").<br>>> {error,{{case_clause,{error,eacces}},<br>>>         [{release_handler,extract_tar,2},<br>>>         
 {release_handler,do_unpack_release,4},<br>>>          {release_handler,handle_call,3},<br>>>          {gen_server,handle_msg,5},<br>>>          {proc_lib,init_p_do_apply,3}]}}<br>><br>>The obvious guess here would be that the user running the Erlang VM<br>>doesn't have write access to all the paths in the tar.</div></body></html>