Hi Allen!<div><br></div><div>I have to be honest and say I don't really know how this is supposed to work. I know that the appup files in kernel and stdlib are intentionally left empty, since it is never an option to hot-swap code from these applications - i.e. the emulator must always be restarted. However, it is of course not ok that systools:make_relup fails due to this! I will investigate further, but I can not promise a quick answer since most of my colleagues are on vacation and I definitely need to discuss this...</div>
<div><br></div><div>It would be interesting though, if it is possible, to see your fixed .appup-files and the resulting relup that caused the second problem with code loading.</div><div><br></div><div>Regards</div><div>/siri@otp</div>
<div><br></div><div><br></div><div><br></div><div><br><div class="gmail_quote">2011/7/19 Allen Kim <span dir="ltr"><<a href="mailto:allen.kim@epicadvertising.com">allen.kim@epicadvertising.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div style="word-wrap:break-word;color:rgb(0, 0, 0);font-size:14px;font-family:Calibri, sans-serif"><div><div><div>Did make all .appup files for all system applications. I don't see the previous errors any more.</div>
<div>Then, installed erlang otp r14b03 to target machine</div><div>and when I run release_handler:install_release/1 I see the following error.</div><div><div><br></div><div>=ERROR REPORT==== 19-Jul-2011::14:15:36 ===</div>
<div>Loading of /home/tracking/projects/tracking/erlang/lib/inets-5.6/ebin/httpd_manager.beam failed: badfile</div><div><br></div><div>=ERROR REPORT==== 19-Jul-2011::14:15:36 ===</div><div>beam/beam_load.c(1300): Error loading module httpd_manager:</div>
<div>  use of opcode 151; this emulator supports only up to 148</div><div><br></div><div><br></div><div>=ERROR REPORT==== 19-Jul-2011::14:15:36 ===</div><div>beam/beam_load.c(1300): Error loading module tftp_engine:</div>
<div>  use of opcode 151; this emulator supports only up to 148</div><div><br></div><div><br></div><div>=ERROR REPORT==== 19-Jul-2011::14:15:36 ===</div><div>Loading of /home/tracking/projects/tracking/erlang/lib/inets-5.6/ebin/tftp_engine.beam failed: badfile</div>
<div><br></div></div><div>anyone?</div></div></div><div><br></div><span><div style="font-family:Calibri;font-size:11pt;text-align:left;color:black;border-bottom:medium none;border-left:medium none;padding-bottom:0in;padding-left:0in;padding-right:0in;border-top:#b5c4df 1pt solid;border-right:medium none;padding-top:3pt">
<span style="font-weight:bold">From: </span> Allen Kim <<a href="mailto:bighostkim@gmail.com" target="_blank">bighostkim@gmail.com</a>><br><span style="font-weight:bold">Date: </span> Thu, 14 Jul 2011 15:31:22 -0500<br>
<span style="font-weight:bold">To: </span> "<a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a>" <<a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a>><br>
<span style="font-weight:bold">Cc: </span> Allen Kim <<a href="mailto:allen.kim@epicadvertising.com" target="_blank">allen.kim@epicadvertising.com</a>><br><span style="font-weight:bold">Subject: </span> Upgrade from R13B02 to R14B03<br>
</div><div><br></div>Hi,<br><br><div>I have installed elrang otp R14B03 on my machine. <br>Then, I wanted to upgrade erlang otp from R13B02 to R14B03. <br><br>I have myapp-1.9.0.rel  like this:<br><br>{release,{"tracking","1.9.0"},<b>{erts,"5.7.3"},</b><br>

[<br>    {kernel,"2.13.3"},    {sasl,"2.1.7"},    {stdlib,"1.16.3"},    {compiler, "4.6.3", load},    {crypto, "1.6.1", permanent},    {edoc,"0.7.6.4", load},    {et,"1.3.2"},<br>

    {syntax_tools,"1.6.3", load},    {gs,"1.5.10"},    {inets,"5.1.3"},    {mnesia,"4.4.11", permanent},    {observer,"0.9.8.1"},    {os_mon,"2.2.3", permanent},<br>

    {otp_mibs,"1.0.5", load},    {snmp,"4.13.5", load},    {public_key,"0.3", load},    {ssl,"3.10.4", load},    {tools,"2.6.4", load},    {webtool,"0.8.4", load},<br>
    {xmerl,"1.2.1", load},    {myapp,"1.0.0", load}<br>]}.<br><br>and, I have myapp-2.0.0.rel like this:<br><br>{release,{"tracking","2.0.0"},<b>{erts,"5.8.4"},</b><br>[<br>

    {kernel,"2.14.4"},    {sasl,"2.1.9.4"},    {stdlib,"1.17.4"},    {compiler, "4.7.4", load},    {crypto, "2.0.3", permanent},    {edoc,"0.7.8", load},    {et,"1.4.3"},<br>

    {syntax_tools,"1.6.7.1", load},    {gs,"1.5.13"},    {inets,"5.6"},    {mnesia,"4.4.19", permanent},    {observer,"0.9.9"},    {os_mon,"2.2.6", permanent},<br>

    {otp_mibs,"1.0.6", load},    {snmp,"4.20", load},    {public_key,"0.12", load},    {ssl,"4.1.5", load},    {tools,"2.6.6.4", load},    {webtool,"0.8.8", load},<br>
    {xmerl,"1.2.9", load},    {myapp,"1.0.0", load}<br>]}.<br><br>when I run make_relup command, I see the following error.<br><br>error = systools:make_relup("myapp-2.0.0", ["myapp-1.9.0"], ["myapp-1.9.0"], [restart_emulator, {path, ["/home/allen/releases/1.9.0/lib/*/ebin", "/home/allen/applications/*/ebin"]}])<br>
<font color="#ff0000">No release upgrade script entry for kernel-2.14.4 to kernel-2.13.3 in file "/home/azoogle/projects/releases/1.9.0/lib/kernel-2.14.4/ebin/kernel.appup"<br></font><br>
that appup file looks like this.<br>$ cat /home/azoogle/projects/releases/1.9.0/lib/kernel-2.14.4/ebin/kernel.appup<br>{"2.14.4",[],[]}.<br><br>Does it mean do I have to write all .appup files for all application that I want to upgrade with erlang version upgrade?<br>
<br>Is there any one who upgraded erlang version with systools:make_relup?<br><br>Thanks for your reply in advance<br><font color="#888888"><br>Allen.</font></div></span></div>
<br>_______________________________________________<br>
erlang-questions mailing list<br>
<a 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></blockquote></div><br></div>