Erlang/OTP Forums

Author Message

<  Advanced Erlang/OTP  ~  problem with mnesia:change_config acoss network

ptmoy
Posted: Thu Jun 02, 2011 12:41 am Reply with quote
User Joined: 24 Dec 2009 Posts: 10 Location: New Jersey, U.S.A.
I can't get mnesia:change_config to work across my network. Nodes a & b in the example below are on the same computer (T110), and things work as expected. But if I try the change_config call from a node on a different computer (WS420), I get an error. Does anyone know how I can get this to work across the network?




pm@T110:~/test/mnesia2$ erl -sname a
Erlang R14B03 (erts-5.8.4) [source] [64-bit] [smp:4:4] [rq:4] [async-threads:0] [hipe] [kernel-poll:false]

Eshell V5.8.4 (abort with ^G)
(a@T110)1> mnesia:create_schema ([node()]).
ok
(a@T110)2> mnesia:start().
ok
(a@T110)3>




pm@T110:~$ erl -sname b
Erlang R14B03 (erts-5.8.4) [source] [64-bit] [smp:4:4] [rq:4] [async-threads:0] [hipe] [kernel-poll:false]

Eshell V5.8.4 (abort with ^G)
(b@T110)1> mnesia:start().
ok
(b@T110)2> mnesia:change_config (extra_db_nodes, [a@T110]).
{ok,[a@T110]}
(b@T110)3>





pm@WS420:~$ erl -sname c
Erlang R14B02 (erts-5.8.3) [source] [smp:2:2] [rq:2] [async-threads:0] [kernel-poll:false]

Eshell V5.8.3 (abort with ^G)
(c@WS420)1> net_adm:ping (a@T110).
pong
(c@WS420)2> mnesia:start().
ok
(c@WS420)3> mnesia:change_config (extra_db_nodes, [a@T110]).
{error,
{aborted,
{function_clause,
[{mnesia_schema,cs2list,
[{cstruct,schema,set,
[b@T110],
[a@T110],
[],0,read_write,false,[],[],false,schema,
[table,cstruct],
[],[],
{{...},...},
{...}}]},
{mnesia_schema,do_merge_schema,1},
{mnesia_tm,apply_fun,3},
{mnesia_tm,execute_transaction,5},
{mnesia_schema,schema_coordinator,3}]}}}
(c@WS420)4>
View user's profile Send private message
ptmoy
Posted: Thu Jun 02, 2011 1:24 am Reply with quote
User Joined: 24 Dec 2009 Posts: 10 Location: New Jersey, U.S.A.
I figured out what's going on. I upgraded Erlang on my WS420 computer to release R14B03, so that all three nodes are running the same version. Everything now works as expected.

So I guess Mnesia is not 100% compatible across Erlang versions.
View user's profile Send private message
NedFrank
Posted: Thu Jan 05, 2012 11:24 pm Reply with quote
Joined: 21 Dec 2011 Posts: 7 Location: Kansas
Nothing is compatible across all Erlang versions. I've had some email issues as well when it came to logging names and addresses and trying to keep them separated by region. They kept overlapping. Twisted Evil Thought I was going to have to call in the pst repair or something.
View user's profile Send private message

Display posts from previous:  

All times are GMT
Page 1 of 1
This forum is locked: you cannot post, reply to, or edit topics.

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum