2016-08-11 8 views
0

sshがサーバーとの接続を失ったとき、私はriak-shellになっていました。再接続した後、私は次のようにします。riak-shellの実行中のインスタンスに戻るにはどうすればよいですか?

sudo riak-shell 

とget:

An instance of riak-shell is already running 

だから、私は、問題のRiakにノードを再起動します。これは問題を解決していないようだ。私は殺すためにps -auxを使用して何も表示されません。ドキュメントによると、一度に実行できるインスタンスは1つだけです。それは理にかなって、私は別のノードからRiakにシェルを実行して、任意のノードに接続しようとすると、私は今、次を得る:

Error: invalid function call : connection_EXT:connect ["[email protected]<<<ip_address_elided>>>"] 
You can connect to a specific node (whether in your riak_shell.config 
or not) by typing 'connect "[email protected]";' substituting your 
node name for dev1. 

You may need to change the Erlang cookie to do this. 

See also the 'reconnect' command. 
Unhandled message received is {#Ref<0.0.0.135>,disconnected} 

riak-shell(3)> 

私は、このプロセスの間にクッキーを変更していない、とクッキーがに表示されます同じである(少なくとも/etc/riak/riak_shell.config)。独自のErlangのVMで(私はAWS上でRiakにTS AMIを実行しています)

答えて

5

riak-shell実行 - Riakにノード

から完全に独立した(あなたのノードがオンになっているマシンからriak-shellを実行する必要はありません 08:30:45:~ $ ps aux | grep riak_shell_app vagrant 4671 0.0 0.3 493260 34884 pts/4 Sl+ Aug17 0:03 /home/vagrant/riak_ee/dev/dev1/erts-5.10.3/bin/beam.smp -- -root /home/vagrant/riak_ee/dev/dev1 -progname erl -- -home /home/vagrant -- -boot /home/vagrant/riak_ee/dev/dev1/releases/2.1.1/start_clean -run riak_shell_app boot debug_off /home/vagrant/riak_ee/dev/dev1/bin/../log/riak_shell/riak_shell -noshell -config /home/vagrant/riak_ee/dev/dev1/bin/../etc/riak

私はAGを書いた: - それはそれはあなたがそのインスタンスを殺すために必要なプロセス番号を与えるあなたは、Linux上にある場合ps aux | grep riak_shell_appを行う

riakに話すために、通常のriak-erlang-clientを使用していますあなたの気持ちを教えてください: https://github.com/basho/riak_shell/graphs/contributors

+0

ありがとうございました。私はこれが動作することを確認することができました。 – augb

関連する問題