[erlang-questions] Erlang release and config includes

Siri Hansen <>
Fri Apr 11 16:45:40 CEST 2014


Hi Alexander!
This is a bug in application_controller:change_application_data/2, which is
called from the release_handler. It occurs for applications that are added
in an upgrade only (i.e. not for already loaded applications).
It will be corrected in OTP-17.1.
Thanks for the report!
/siri



2014-02-20 14:31 GMT+01:00 Alexander Petrovsky <>:

> Hello!
>
> I have the problem on erlang release upgrade and config includes. I have
> the follow config structure of sys.config with app.config (that generated
> dynamically) include:
>
> /usr/local/lib/myapp/releases/1.0.8/sys.config:
> [
> ....
> "/etc/myapp/app.config"
> ].
>
> I added new application myapp2 into myapp, and want to upgrade myapp to
> new version (1.0.9).
>
> Firstly I add the settings for new application myapp2 in app.conf file,
> and then run upgrade the Erlang application:
>
> release_handler:unpack_release,
> release_handler:check_install_release,
> release_handler:install_release
>
> The new version of myapp (1.0.9) run the myapp2 application. myapp2 try
> read the settings and crash due badmatch error, i.e. no settings in config
> for myapp2. When I put settings for new application myapp2 into sys.config,
> all works without any problems.
>
> Looks like, release_handler doesn't re-read included config files.
>
> --
> Петровский Александр / Alexander Petrovsky,
>
> Skype: askjuise
> Phone: +7 914 8 820 815
>
>
> _______________________________________________
> erlang-questions mailing list
> 
> http://erlang.org/mailman/listinfo/erlang-questions
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20140411/b7c66a57/attachment.html>


More information about the erlang-questions mailing list