[erlang-questions] Mnesia cluster across releases

Dan Gudmundsson <>
Wed Mar 19 08:14:21 CET 2014


Me and Wiger managed to mess up the upgrades for a while, see mnesia rel
notes between 4.4.18-4.5.1 otherwise it should work.

But bad_object_header might to be something else though..looks like the
dets file is corrupt or?

/Dan

On Wed, Mar 19, 2014 at 6:05 AM, Chandru <
> wrote:

> On 18 March 2014 21:38, Daniel Dormont <> wrote:
>
>> Hi all,
>>
>> Can a Mnesia cluster exist across two OTP releases, specifically R15B
>> and R16B? I'm testing some upgrades here and seeing this error about
>> two minutes after trying to join a node running R16B to an existing
>> cluster running R15B:
>>
>
> The simplest way to test this is to try this on two standalone nodes, one
> running R15B and the other R16B. I've tried this, and had no problem
> joining an R15B-1 node into an R16B-2 node.
>
> You say "trying to join", how exactly are you doing this? When a node
> joins an existing mnesia installation, it should not have a schema of its
> own.
>
> Chandru
>
>
>> =ERROR REPORT==== 2014-03-18 17:13:29 ===
>> Mnesia(''): ** ERROR ** (core
>> dumped to file:
>> "/var/lib/ejabberd/")
>>  ** FATAL ** Schema update error {{badmatch,
>>                                    {error,
>>                                     {bad_object_header,
>>                                      "/var/lib/ejabberd/schema.DAT"}}},
>>                                   [{mnesia_dumper,dets_insert,4,
>>
>> [{file,"mnesia_dumper.erl"},{line,342}]},
>>                                    {mnesia_dumper,insert_cstruct,5,
>>
>> [{file,"mnesia_dumper.erl"},{line,1117}]},
>>                                    {mnesia_dumper,insert_ops,6,
>>
>> [{file,"mnesia_dumper.erl"},{line,309}]},
>>                                    {mnesia_dumper,perform_update,4,
>>
>> [{file,"mnesia_dumper.erl"},{line,292}]},
>>                                    {mnesia_dumper,update,3,
>>
>> [{file,"mnesia_dumper.erl"},{line,273}]},
>>                                    {mnesia_tm,do_commit,3,
>>                                     [{file,"mnesia_tm.erl"},{line,1780}]},
>>                                    {mnesia_tm,commit_participant,6,
>>
>> [{file,"mnesia_tm.erl"},{line,1699}]}]} [{op,
>>
>>        merge_schema,
>>
>>        [{name,
>>
>> ... etc.
>>
>> If not, are there strategies for dealing with such an upgrade? Or is
>> this caused by something else entirely?
>>
>> Thanks,
>> Dan
>> _______________________________________________
>> erlang-questions mailing list
>> 
>> http://erlang.org/mailman/listinfo/erlang-questions
>>
>
>
> _______________________________________________
> erlang-questions mailing list
> 
> http://erlang.org/mailman/listinfo/erlang-questions
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20140319/26386068/attachment.html>


More information about the erlang-questions mailing list