Bug 6135

Summary: ejabberdctl restore crashes
Product: Sisyphus Reporter: mwanaanga <d-i-g-i-t-a-l>
Component: ejabberdAssignee: Anton Farygin <rider>
Status: CLOSED FIXED QA Contact: qa-sisyphus
Severity: normal    
Priority: P2 CC: rider
Version: unstable   
Hardware: all   
OS: Linux   

Description mwanaanga 2005-02-18 11:59:44 MSK
/usr/sbin/ejabberdctl restore <filename> doesn't work

teo's (Sergei Golovan) fix for ejabberd-0.7.5 source code is:

--- ejabberd-0.7.5/src/ejabberd_ctl.erl 2004-09-10 13:56:59 -0700
+++ ejabberd-0.7.5-patched/src/ejabberd_ctl.erl 2005-02-16 01:21:05 -0800
@@ -147,7 +147,7 @@
 process(Node, ["restore", Path]) ->
     case rpc:call(Node,
                  mnesia, restore, [Path, [{default_op, keep_tables}]]) of
-       {atomic, ok} ->
+       {atomic, _} ->
            ?STATUS_SUCCESS;
        {error, Reason} ->
            io:format("Can't restore backup from ~p on node ~p: ~p~n",


Steps to Reproduce:
1. ejabberdctl backup /tmp/somefile
2. ejabberdctl restore /tmp/somefile
3.
Actual Results:  
erl_crash.dump
Comment 1 Mikhail Yakshin 2005-03-08 13:13:21 MSK
Fixed in ejabberd-0.7.5-alt2, патч приложен.