<div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">Now I got past this error, it was a mistake from my side. I didn't create </div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
the node on the server before running generate but copied files from my </div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">dev machine. After creating node and with some tweaking to the reltool config, </div>
<div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">release is generated on the prod server but fails on startup with,</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
<br></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">{"init terminating in do_boot",{'cannot load',error_handler,get_file}}</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
<br></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">From erlang docs[1] </div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
<br></div>"Init terminating in do_boot ()" - The primitive Erlang boot sequence was terminated, most probably because the boot script has errors or cannot be read. This is usually a configuration error - the system may have been started with a faulty -boot parameter or with a boot script from the wrong version of OTP.<div>
<br></div><div>How can I check whether boot script running from the wrong version of OTP is </div><div>the problem? </div><div><br></div><div>[1]: <a href="http://www.erlang.org/doc/apps/erts/crash_dump.html#id71973">http://www.erlang.org/doc/apps/erts/crash_dump.html#id71973</a></div>
<div><br></div><div>Regards,</div><div>Vineet</div><div><br><div class="gmail_quote">On Fri, Dec 14, 2012 at 4:05 PM, Vineet Naik <span dir="ltr"><<a href="mailto:naikvin@gmail.com" target="_blank">naikvin@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>Hello,</div><div><br></div><div>Now that I have successfully built a release of my app using rebar, I am stuck at </div>
<div>deploying the packaged release because the server I want to deploy to has different </div><div>
version of erlang and different architecture from my development machine. <div><br></div><div>Development Env</div><div>-------------------------</div><div>i686 i686 i386 GNU/Linux</div><div>Erlang R14B04</div><div>erts-5.8.5</div>

<div><br></div><div>Remote Server</div><div>----------------------</div><div>x86_64 GNU/Linux</div><div>Erlang R13B03</div><div>erts-5.7.4</div><div><br></div><div>I tried compiling on the server but it's failing with a series of errors such as </div>

<div><br></div><div><div>ERROR: Unable to generate spec: Mandatory application kernel is not included in [{app,crypto,false,undefined,</div><div>                                                  "/usr/lib/erlang/lib/crypto-1.6.3",</div>

<div>                                                  ["/usr/lib/erlang/lib/crypto-1.6.3"],</div><div>                                                  "1.6.3","crypto-1.6.3",</div></div><div>

                                                  .....</div><div><br></div><div>I have two questions:</div><div><br></div><div>1. Is this due to the old version of erlang? And considering that I have </div><div>ejabberd and rabbitmq-server running in production on the same server</div>

<div>can I upgrade erlang to R14B04 on it without having to take them down for much</div><div>time?</div><div><br></div><div>2. What is the recommended strategy for developing and deploying erlang code on </div><div>differently configured servers?</div>

<div><br></div><div>Thanks,</div><div>Vineet</div><br><br>
</div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Vineet Naik<br><br><br>
</div>