[erlang-questions] systools problem?

Andy Richards <>
Thu Mar 29 22:54:09 CEST 2012


Hi Jared, yes I ran into this problem. There is a long old thread about it here..
http://erlang.org/pipermail/erlang-patches/2012-January/002563.html

I have a shell script from which I call rebar to generate my upgrades and releases and from this script I grep the .app files and replace the undefined tuple with a empty list which solved my problem in a simple application when generating upgrades. I'm not sure if this is a suitable work a round for a more complex application.

Andy.

Sent from my iPad

On 29 Mar 2012, at 19:34, Jared Kofron <> wrote:

> When I do ./rebar generate-upgrade previous_release=v0p1, I get "ERROR: Systools [systools:make_relup/4] aborted with", and then a huge
> list of errors of the form:
> 
> {error_reading,
>                                                        {mochiweb,
>                                                         {{bad_param,
>                                                           start_phases},
>                                                          {application,
>                                                           mochiweb,
>                                                           [{description,
>                                                             "MochiMedia Web Server"},
>                                                            {vsn,"2.3.1"},
>                                                            {id,[]},
>                                                            {modules,
>                                                             [mochifmt,
>                                                              mochifmt_records,
>                                                              mochifmt_std,
>                                                              mochiglobal,
>                                                              mochihex,
>                                                              mochijson,
>                                                              mochijson2,
>                                                              mochilists,
>                                                              mochilogfile2,
>                                                              mochinum,
>                                                              mochitemp,
>                                                              mochiutf8,
>                                                              mochiweb,
>                                                              mochiweb_acceptor,
>                                                              mochiweb_charref,
>                                                              mochiweb_cookies,
>                                                              mochiweb_cover,
>                                                              mochiweb_echo,
>                                                              mochiweb_headers,
>                                                              mochiweb_html,
>                                                              mochiweb_http,
>                                                              mochiweb_io,
>                                                              mochiweb_mime,
>                                                              mochiweb_multipart,
>                                                              mochiweb_request,
>                                                              mochiweb_request_tests,
>                                                              mochiweb_response,
>                                                              mochiweb_socket,
>                                                              mochiweb_socket_server,
>                                                              mochiweb_util,
>                                                              reloader]},
>                                                            {registered,[]},
>                                                            {applications,
>                                                             [kernel,stdlib,
>                                                              crypto,inets,
>                                                              ssl,xmerl,
>                                                              compiler,
>                                                              syntax_tools]},
>                                                            {included_applications,
>                                                             []},
>                                                            {env,[]},
>                                                            {start_phases,
>                                                             undefined},
>                                                            {maxT,infinity},
>                                                            {maxP,
>                                                             infinity}]}}}}
> 
> Digging in a little bit it seems like systools is expecting an empty list instead of 'undefined' for start_phases.  Has anybody else run in to this?
> _______________________________________________
> erlang-questions mailing list
> 
> http://erlang.org/mailman/listinfo/erlang-questions



More information about the erlang-questions mailing list