[erlang-questions] use only parts of a release

Pablo Platt pablo.platt@REDACTED
Fri Apr 22 17:02:16 CEST 2011


I made some progress but still have several issues with rebar and I'm not able to unpack the release.
Is it possible to unpack the release manually? (the deb package will do it).
What's wrong with steps 11 and 12?

Thanks


1. ./rebar generate (generate the first release).

2. generated the myserver/rel/myserver/releases/RELEASES file with:

release_handler:create_RELEASES(".", "./releases", "./releases/1/myserver.rel", []).
Why doesn't rebar create the RELEASES file?
3. created a deb package: myserver-1_amd64.deb and installed it on the target machine.
4. made a change to myserver:ver() so I'll have something to verify that the upgrade works.
5. created myserver.appup in the ebin dir which reflects the myserver module change.
6. renamed myserver release to myserver_first.
7. ./rebar generate
8. created a new RELEASES file (is it required?).
9. ./rebar generate-upgrade previous_release=myserver_first
I'm getting error:
ERROR: Systools aborted with: {modules,
                               [{error,
                                 {{module_not_found,erlydtl,
                                   erlydtl_dateformat_tests},
                                  {erlydtl_dateformat_tests,'$$ignore$$',
                                   erlydtl,"0.6.1",
                                   "./myserver/lib/erlydtl-0.6.1/ebin"}}},
                              ...
Is this a bug in rebar?
I copied of erlydtl-0.6.1/ebintest to erlydtl-0.6.1/ebin and it fixed that error.

10 copy myserver_2.tar.gz to the target machine under the folder /usr/lib/myserver/releases
11. /usr/lib/myserver/bin/myserver attach
release_handler:unpack_release("myserver_2").
{error,{enoent,"/usr/lib/myserver/releases/myserver_2.rel"}}
Why am I getting the enoent error?
12. trying to fix the error - copy manually the myserver_2.rel file to /usr/lib/myserver/releases
release_handler:unpack_release("myserver_2").
{error,{{case_clause,{error,eacces}},
        [{release_handler,extract_tar,2},
         {release_handler,do_unpack_release,4},
         {release_handler,handle_call,3},
         {gen_server,handle_msg,5},
         {proc_lib,init_p_do_apply,3}]}}



________________________________
From: Pablo Platt <pablo.platt@REDACTED>
To: Per Melin <per.melin@REDACTED>
Cc: erlang-questions <erlang-questions@REDACTED>
Sent: Friday, April 22, 2011 4:15 PM
Subject: Re: [erlang-questions] use only parts of a release


The release does include ERTS but I'm excluding it when creating the deb package.
Is it possible to create a release without the ERTS?



________________________________
From: Per Melin <per.melin@REDACTED>
To: Pablo Platt <pablo.platt@REDACTED>
Cc: erlang-questions <erlang-questions@REDACTED>
Sent: Friday, April 22, 2011 4:10 PM
Subject: Re: [erlang-questions] use only parts of a release

On Fri, Apr 22, 2011 at 2:02 PM, Pablo Platt <pablo.platt@REDACTED> wrote:
> init:get_argument(boot) gives me:
> {ok,[["/usr/lib/myserver/releases/1/myserver"]]}

Good. Please disregard the part where I said that the start script is
broken. I forgot that your release doesn't include the ERTS.



_______________________________________________
erlang-questions mailing list
erlang-questions@REDACTED
http://erlang.org/mailman/listinfo/erlang-questions
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20110422/ea720faf/attachment.htm>


More information about the erlang-questions mailing list