{{case_clause,{{continuation

Error

I want to move ejabberd from machine1 to machine2, so I dumped the Mnesia database of machine1 to a file. I installed ejabberd on machine2, but when I try to restore the Database using the dump, I get this error:

$ ejabberdctl restore /var/lib/ejabberd/backup-200510
{"init terminating in do_boot",
  {{case_clause,
    {aborted,{'EXIT',
      {{case_clause,
        {{continuation,<244.386.0>,8192,<<7 bytes>>},[],8185}},
        {mnesia_backup,read,1},{mnesia_bup,safe_apply,3},
        {mnesia_bup,do_read_schema_section,1},{mnesia_bup,read_schema_section,1},
        {mnesia_bup,read_schema,2},{mnesia_schema,restore,3},
        {rpc,'-handle_call/3-fun-0-',6}]}}}},
  [{ejabberd_ctl,process,2},{ejabberd_ctl,start,0},{init,start_it,1},{init,start_em,1}]}}
init terminating in do_boot ()

Explanation

Your problem may be that you created the dump file with a specific version of Erlang and you are trying to restore (load, recover) it using a significantly different version. It has been reported that this problem occurs when dumping with Erlang R10-B7 and loading with an old Erlang R8.

Solution

Install on the new machine the same Erlang version that was used to generate the dump. Then try again to restore from the backup file.

Syndicate content