[erlang-questions] Possible bug in slave:start?

Eider Oliveira <>
Fri Feb 22 22:09:42 CET 2008


I have a piece of code which runs differently if the remote node is started
through slave:start:
:~/bench> erl +K true -rsh ssh -sname bench -setcookie
bench_cookie
Erlang (BEAM) emulator version 5.6 [source] [smp:2] [async-threads:0] [hipe]
[kernel-poll:true]

Eshell V5.6  (abort with ^G)
()1> slave:start('igaessi14-b',bench1,lists:concat(["
-setcookie ",erlang:get_cookie()])).
{ok,''}
()2> mnesia:create_schema([node()|nodes()]).
{error,{"Cannot install fallback",

 {file_error,"/home/eider/bench//FALLBACK.TMP.BUPTMP",
                    enoent}}}
()3> q().
ok


The problem is the /home/eider/bench/ directory was
created on the first machine (igaessi12-b):

:~/bench> ls -l Mne*
drwxr-xr-x  2 eider implantacao     48 2008-02-22 17:30

drwxr-xr-x  2 eider implantacao    112 2008-02-22 17:30


If erlang is started at the second machine (igaessi14-b) when the previous
code run, it works correctly:

:~/bench> erl +K true -rsh ssh -sname bench -setcookie
bench_cookie
Erlang (BEAM) emulator version 5.6 [source] [smp:2] [async-threads:0] [hipe]
[kernel-poll:true]

Eshell V5.6  (abort with ^G)
()1> slave:start('igaessi14-b',bench1,lists:concat(["
-setcookie ",erlang:get_cookie()])).
{error,{already_running,''}}
()2> mnesia:create_schema([node()|nodes()]).
ok
()3> q().
ok

-- 
Eider Oliveira

Site: http://eider.eti.br
Blog: http://eider.eti.br/Home/Blog/Blog.html

"If I had more time, I'd have written you a shorter letter." Pascal
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20080222/bd4f5ffc/attachment.html>


More information about the erlang-questions mailing list