<html><body><div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:12pt"><div><span>I made some progress but still have several issues with rebar and I'm not able to unpack the release.</span></div><div><span>Is it possible to unpack the release manually? (the deb package will do it).</span></div><div><span>What's wrong with steps 11 and 12?</span></div><div><br><span></span></div><div><span>Thanks<br></span></div><div><span><br></span></div><div><span>1. ./rebar generate (generate the first release).<br></span></div><div><span>2. generated the </span><span>myserver/rel/myserver/releases/RELEASES file with:<br></span></div><div><span></span><span>release_handler:create_RELEASES(".", "./releases", "./releases/1/myserver.rel", []).</span></div><div><span>Why doesn't rebar create the RELEASES file?</span></div><div><span>3. created a deb package: </span><span>myserver-1_amd64.deb and installed it on the target
machine.</span></div><div><span>4. made a change to myserver:ver() so I'll have something to verify that the upgrade works.</span></div><div><span>5. created myserver.appup in the ebin dir which reflects the myserver module change.</span></div><div><span>6. renamed myserver release to myserver_first.</span></div><div><span>7. </span><span>./rebar generate</span></div><div><span>8. created a new RELEASES file (is it required?).</span></div><div><span>9. ./rebar generate-upgrade previous_release=myserver_first</span></div><div><span>I'm getting error:</span></div><div><span>ERROR: Systools aborted with: {modules,<br>
[{error,<br> {{module_not_found,erlydtl,<br> erlydtl_dateformat_tests},<br> {erlydtl_dateformat_tests,'$$ignore$$',<br>
erlydtl,"0.6.1",<br> "./myserver/lib/erlydtl-0.6.1/ebin"}}},</span></div><div><span> </span><span> </span><span> </span><span> </span><span> </span><span> ...</span></div><div><span>Is this a bug in rebar?</span></div><div><span>I copied of erlydtl-0.6.1/ebintest to erlydtl-0.6.1/ebin and it fixed that error.<br></span></div><div><span>10 copy myserver_2.tar.gz to the target machine under the folder /usr/lib/myserver/releases</span></div><div><span>11. /usr/lib/myserver/bin/myserver
attach</span></div><div><span>release_handler:unpack_release("myserver_2").</span></div><div><span>{error,{enoent,"/usr/lib/myserver/releases/myserver_2.rel"}}</span></div><div><span>Why am I getting the enoent error?</span></div><div><span>12. trying to fix the error - copy manually the myserver_2.rel file to </span><span>/usr/lib/myserver/releases</span></div><div><span>release_handler:unpack_release("myserver_2").</span></div><div><span>{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></div><div><br></div><div style="font-family: arial,
helvetica, sans-serif; font-size: 12pt;"><div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"><font face="Arial" size="2"><hr size="1"><b><span style="font-weight:bold;">From:</span></b> Pablo Platt <pablo.platt@yahoo.com><br><b><span style="font-weight: bold;">To:</span></b> Per Melin <per.melin@gmail.com><br><b><span style="font-weight: bold;">Cc:</span></b> erlang-questions <erlang-questions@erlang.org><br><b><span style="font-weight: bold;">Sent:</span></b> Friday, April 22, 2011 4:15 PM<br><b><span style="font-weight: bold;">Subject:</span></b> Re: [erlang-questions] use only parts of a release<br></font><br>
<meta http-equiv="x-dns-prefetch-control" content="off"><div id="yiv1893791912"><div style="color:#000;background-color:#fff;font-family:arial, helvetica, sans-serif;font-size:12pt;"><div><span>The release does include ERTS but I'm excluding it when creating the deb package.</span></div><div><span>Is it possible to create a release without the ERTS?<br></span></div><div><br></div><div style="font-family:arial, helvetica, sans-serif;font-size:12pt;"><div style="font-family:times new roman, new york, times, serif;font-size:12pt;"><font face="Arial" size="2"><hr size="1"><b><span style="font-weight:bold;">From:</span></b> Per Melin <per.melin@gmail.com><br><b><span style="font-weight:bold;">To:</span></b> Pablo Platt <pablo.platt@yahoo.com><br><b><span style="font-weight:bold;">Cc:</span></b> erlang-questions <erlang-questions@erlang.org><br><b><span style="font-weight:bold;">Sent:</span></b> Friday, April 22, 2011 4:10 PM<br><b><span
style="font-weight:bold;">Subject:</span></b> Re:
[erlang-questions] use only parts of a release<br></font><br>
On Fri, Apr 22, 2011 at 2:02 PM, Pablo Platt <<a rel="nofollow" ymailto="mailto:pablo.platt@yahoo.com" target="_blank" href="mailto:pablo.platt@yahoo.com">pablo.platt@yahoo.com</a>> wrote:<br>> init:get_argument(boot) gives me:<br>> {ok,[["/usr/lib/myserver/releases/1/myserver"]]}<br><br>Good. Please disregard the part where I said that the start script is<br>broken. I forgot that your release doesn't include the ERTS.<br><br><br></div></div></div></div><meta http-equiv="x-dns-prefetch-control" content="on"><br>_______________________________________________<br>erlang-questions mailing list<br><a ymailto="mailto:erlang-questions@erlang.org" href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br><a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br><br><br></div></div></div></body></html>