2016-11-08 3 views
0

"쿠키 파일을 저장하지 않음"은 무엇을 의미합니까? 그리고 나는이 문제를 해결하려면 어떻게 :Erlang 쿠키 파일이없는 집

export BINDIR=/usr/lib/disco/master/ebin/;/usr/lib/erlang/erts-5.10.4/bin/beam -K true -P 10000000 -scl false -stbt s -- -root /usr/lib/erlang -progname erl -- -home /usr/var/disco info -- -lager handlers [{lager_file_backend,[{file,"/usr/var/disco/log/error.log"}, {level, error}, {size, 1048576000}, {date, "$D0"}, {count, 5}]},{lager_file_backend,[{file,"/usr/var/disco/log/console.log"}, {level, debug}, {size, 1048576000}, {date, "$D0"}, {count, 5}]}] -lager error_logger_hwm 200 -lager crash_log "/usr/var/disco/log/crash.log" -rsh ssh -connect_all false -sname disco_8989_master -pa /usr/lib/disco/master/ebin -pa /usr/lib/disco/master/deps/mochiweb/ebin -pa /usr/lib/disco/master/deps/goldrush/ebin -pa /usr/lib/disco/master/deps/lager/ebin -pa /usr/lib/disco/master/deps/meck/ebin -pa /usr/lib/disco/master/deps/bear/ebin -pa /usr/lib/disco/master/deps/folsom/ebin -pa /usr/lib/disco/master/deps/folsomite/ebin -pa /usr/lib/disco/master/deps/plists/ebin -eval "application:start(disco)" 

{error_logger,{{2016,11,7},{17,25,49}},"No home for cookie file",[]} 
{error_logger,{{2016,11,7},{17,25,49}},crash_report,[[{initial_call,{auth,init,['Argument__1']}},{pid,<0.20.0>},{registered_name,[]},{error_info,{exit,{"No home for cookie file",[{auth,init_cookie,0,[{file,"auth.erl"},{line,285}]},{auth,init,1,[{file,"auth.erl"},{line,139}]},{gen_server,init_it,6,[{file,"gen_server.erl"},{line,304}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,239}]}]},[{gen_server,init_it,6,[{file,"gen_server.erl"},{line,328}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,239}]}]}},{ancestors,[net_sup,kernel_sup,<0.10.0>]},{messages,[]},{links,[<0.18.0>]},{dictionary,[]},{trap_exit,true},{status,running},{heap_size,610},{stack_size,27},{reductions,139}],[]]} 
{error_logger,{{2016,11,7},{17,25,49}},supervisor_report,[{supervisor,{local,net_sup}},{errorContext,start_error},{reason,{"No home for cookie file",[{auth,init_cookie,0,[{file,"auth.erl"},{line,285}]},{auth,init,1,[{file,"auth.erl"},{line,139}]},{gen_server,init_it,6,[{file,"gen_server.erl"},{line,304}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,239}]}]}},{offender,[{pid,undefined},{name,auth},{mfargs,{auth,start_link,[]}},{restart_type,permanent},{shutdown,2000},{child_type,worker}]}]} 
{error_logger,{{2016,11,7},{17,25,49}},supervisor_report,[{supervisor,{local,kernel_sup}},{errorContext,start_error},{reason,{shutdown,{failed_to_start_child,auth,{"No home for cookie file",[{auth,init_cookie,0,[{file,"auth.erl"},{line,285}]},{auth,init,1,[{file,"auth.erl"},{line,139}]},{gen_server,init_it,6,[{file,"gen_server.erl"},{line,304}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,239}]}]}}}},{offender,[{pid,undefined},{name,net_sup},{mfargs,{erl_distribution,start_link,[]}},{restart_type,permanent},{shutdown,infinity},{child_type,supervisor}]}]} 
{error_logger,{{2016,11,7},{17,25,49}},crash_report,[[{initial_call,{application_master,init,['Argument__1','Argument__2','Argument__3','Argument__4']}},{pid,<0.9.0>},{registered_name,[]},{error_info,{exit,{{shutdown,{failed_to_start_child,net_sup,{shutdown,{failed_to_start_child,auth,{"No home for cookie file",[{auth,init_cookie,0,[{file,"auth.erl"},{line,285}]},{auth,init,1,[{file,"auth.erl"},{line,139}]},{gen_server,init_it,6,[{file,"gen_server.erl"},{line,304}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,239}]}]}}}}},{kernel,start,[normal,[]]}},[{application_master,init,4,[{file,"application_master.erl"},{line,133}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,239}]}]}},{ancestors,[<0.8.0>]},{messages,[{'EXIT',<0.10.0>,normal}]},{links,[<0.8.0>,<0.7.0>]},{dictionary,[]},{trap_exit,true},{status,running},{heap_size,987},{stack_size,27},{reductions,179}],[]]} 
{error_logger,{{2016,11,7},{17,25,49}},std_info,[{application,kernel},{exited,{{shutdown,{failed_to_start_child,net_sup,{shutdown,{failed_to_start_child,auth,{"No home for cookie file",[{auth,init_cookie,0,[{file,"auth.erl"},{line,285}]},{auth,init,1,[{file,"auth.erl"},{line,139}]},{gen_server,init_it,6,[{file,"gen_server.erl"},{line,304}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,239}]}]}}}}},{kernel,start,[normal,[]]}}},{type,permanent}]} 
{"Kernel pid terminated",application_controller,"{application_start_failure,kernel,{{shutdown,{failed_to_start_child,net_sup,{shutdown,{failed_to_start_child,auth,{\"No home for cookie file\",[{auth,init_cookie,0,[{file,\"auth.erl\"},{line,285}]},{auth,init,1,[{file,\"auth.erl\"},{line,139}]},{gen_server,init_it,6,[{file,\"gen_server.erl\"},{line,304}]},{proc_lib,init_p_do_apply,3,[{file,\"proc_lib.erl\"},{line,239}]}]}}}}},{kernel,start,[normal,[]]}}}"} 

더 많은 상황 :

[email protected]:~$ cat $HOME/.erlang.cookie;echo;ls -ail .erlang.cookie 
QCQSMBOQOJCGVKZCUXQL 
263466 -rw------- 1 disco disco 20 Nov 4 00:00 .erlang.cookie 
+0

문제의 Python이 보이지 않습니다. 왜 "파이썬"이라는 태그를 사용 했습니까? – furas

+2

일반적으로'BINDIR'과 다른 환경 변수와'-home'과 같은 명령 행 옵션은'/ usr/local/bin' 또는'/ usr/bin '에 일반적으로 들어있는'erl' 스크립트를 사용하여 Erlang을 시작함으로써 적절하게 설정됩니다 '. 얼랑 (Erlang)을 보여주기 위해 정말로 시작하고 있습니까? 또한'BINDIR'은 보통'ebin' 디렉토리에 설정되어 있지는 않습니다 만'erl' 스크립트에 의해'$ ROOTDIR/erts-8.1/bin'과 같은 것으로 설정됩니다. 여기서'ROOTDIR'는'/usr/local/lib/erlang' 또는'/ usr/lib/erlang' 명령을 사용하십시오. –

+0

@furas disco는 백엔드에서 erlang을 사용하는 python 기반의 map reduce입니다. – jmunsch

답변

1

당신은 그것을 아래 등의 단계를, 그것을 중지, 그것을 시작하는 상태를 확인하기 위해 제공하는 스크립트를 사용하여 disco을 실행할 수 있습니다 나를 위해 일했지만, 그들은 git, make, rebarworking Erlang installation이 필요합니다. (난 안 여기 보여줄 수있을만큼 가져 긴 출력을 표시하기 위해 아래의 타원을 사용합니다.)

$ git clone [email protected]:discoproject/disco.git 
... 
$ cd disco 
$ make 
... 
$ PATH=$PWD/bin:$PATH ./bin/disco start 
Master bignosk:8989 started 

내가 처음 얼랑, 19.x의 최신 버전이 시도하지만, 빌드가 실패, 그래서 얼랑까지 백업 18.3 그리고 모든 것이 잘 작동했습니다.

+0

'.erlang.cookie'는'magic cookie'와 관련이 있습니다 http://erlang.org/doc/reference_manual/distributed.html#id88336 – jmunsch

+0

@jmunsch : 예,'~/.erlang.cookie' 파일에있는 내용은 다음과 같습니다. 적절한 경우 "마법 쿠키"로 사용됩니다. –