<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>6135</bug_id>
          
          <creation_ts>2005-02-18 11:59:43 +0300</creation_ts>
          <short_desc>ejabberdctl restore crashes</short_desc>
          <delta_ts>2005-09-04 17:53:10 +0400</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>ejabberd</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="mwanaanga">d-i-g-i-t-a-l</reporter>
          <assigned_to name="Anton Farygin">rider</assigned_to>
          <cc>rider</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>22138</commentid>
    <comment_count>0</comment_count>
    <who name="mwanaanga">d-i-g-i-t-a-l</who>
    <bug_when>2005-02-18 11:59:44 +0300</bug_when>
    <thetext>/usr/sbin/ejabberdctl restore &lt;filename&gt; doesn&apos;t work

teo&apos;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, [&quot;restore&quot;, Path]) -&gt;
     case rpc:call(Node,
                  mnesia, restore, [Path, [{default_op, keep_tables}]]) of
-       {atomic, ok} -&gt;
+       {atomic, _} -&gt;
            ?STATUS_SUCCESS;
        {error, Reason} -&gt;
            io:format(&quot;Can&apos;t restore backup from ~p on node ~p: ~p~n&quot;,


Steps to Reproduce:
1. ejabberdctl backup /tmp/somefile
2. ejabberdctl restore /tmp/somefile
3.
Actual Results:  
erl_crash.dump</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>22410</commentid>
    <comment_count>1</comment_count>
    <who name="Mikhail Yakshin">greycat</who>
    <bug_when>2005-03-08 13:13:21 +0300</bug_when>
    <thetext>Fixed in ejabberd-0.7.5-alt2, патч приложен.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>