Hi, thanks all! yes this resolved my issue. I did read the release handler docs but didn't figure that downgrading would just mean reinstalling the older version. I did have to work around a couple of gotchas, as I was using rebar to generate my release and my .boot file was called my app.boot not start.boot which the release handler was looking for. A sym link fixed this. Also I didn't realease that code_change was called in my upgrade release gem_server which allowed me to revert the State before downgrading to the original version.<br>
<br>Thanks again for confirming release_handler:install_version was the way to go.<br><br><br>Andy.<br><br><br>On Friday, 16 March 2012, Samuel Elliott <<a href="mailto:sam@lenary.co.uk">sam@lenary.co.uk</a>> wrote:<br>
> On Fri, Mar 16, 2012 at 1:54 PM, Per Melin <<a href="mailto:per.melin@gmail.com">per.melin@gmail.com</a>> wrote:<br>>> On Mar 16, 2012, at 11:13 , Andy Richards wrote:<br>>><br>>>> I'm struggling to find documentation on how I perform a rollback of a<br>
>>> unsuccessful OTP hot deployment. I'm currently manually creating my .appup<br>>>> file with upgrade and downgrade instructions and when I perform a<br>>>> release_handler:install_release("someApp") my application hot deploys<br>
>>> successfully, excellent! What i cant figure out however is if there were a<br>>>> problem following an upgrade how I downgrade / rollback to the previous<br>>>> release?<br>>><br>>> It's been a long time since I last did this by hand, but if I remember correctly you simply do release_handler:install_release("OldVer") to roll back.<br>
><br>> Seems so, reading Ferd's Guide:<br>> <a href="http://learnyousomeerlang.com/relups#upgrading-the-release">http://learnyousomeerlang.com/relups#upgrading-the-release</a><br>><br>> Sam<br>><br>>><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">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
><br>><br>><br>> --<br>> Samuel Elliott<br>> <a href="mailto:sam@lenary.co.uk">sam@lenary.co.uk</a><br>> <a href="http://lenary.co.uk/">http://lenary.co.uk/</a><br>> +44 (0)7891 993 664<br>>