Closed allnightlong closed 9 years ago
@allnightlong I'm willing to wager that the riak configuration file is missing:
under riak_core
{default_bucket_props, [{allow_mult, true}]}
If you notice in the .kitchen.yml
config:
riak_kv:
storage_backend: riak_cs_kv_multi_backend
The above triggers this block in the riak-chef-cookbook attributes which sets some attributes that are needed for riak-cs operation: https://github.com/basho/riak-chef-cookbook/blob/riak-1.x/attributes/default.rb#L124
Yeah, it seems, you are right. After providing:
default['riak']['config']['riak_kv']['storage_backend'] = "riak_cs_kv_multi_backend"
riak-cs is up and running.
My fault, missed this item in the docs (relied on defaults).
But shouldn't the error message be more clear? Spend some time, to resolve this.
The docs note the setting here: http://docs.basho.com/riakcs/latest/cookbooks/configuration/Configuring-Riak/#Allowing-for-Sibling-Creation
I'm all for better error messages but you'd have to take that up on the https://github.com/basho/riak_cs repo. As this isn't a cookbook issue specifically but an upstream documentation one I'm closing the issue.
I am getting the same issue in the version of riak 2.2.0 I've followed the documentatation ./riak start -> works ./stanchion start -> works ./riak-cs start -> shows an error
config is OK
-config /usr/local/Cellar/stanchion-2.1.1/data/generated.configs/app.2017.01.12.19.48.19.config -args_file /usr/local/Cellar/stanchion-2.1.1/data/generated.configs/vm.2017.01.12.19.48.19.args -vm_args /usr/local/Cellar/stanchion-2.1.1/data/generated.configs/vm.2017.01.12.19.48.19.args
Exec: /usr/local/Cellar/stanchion-2.1.1/bin/../erts-5.10.3/bin/erlexec -boot /usr/local/Cellar/stanchion-2.1.1/bin/../releases/2.1.0/stanchion -config /usr/local/Cellar/stanchion-2.1.1/data/generated.configs/app.2017.01.12.19.48.19.config -args_file /usr/local/Cellar/stanchion-2.1.1/data/generated.configs/vm.2017.01.12.19.48.19.args -vm_args /usr/local/Cellar/stanchion-2.1.1/data/generated.configs/vm.2017.01.12.19.48.19.args -pa /usr/local/Cellar/stanchion-2.1.1/bin/../lib/basho-patches -- console
Root: /usr/local/Cellar/stanchion-2.1.1/bin/..
Erlang R16B02_basho8 (erts-5.10.3) [source] [64-bit] [smp:4:4] [async-threads:64] [kernel-poll:true] [frame-pointer] [dtrace]
=INFO REPORT==== 12-Jan-2017::19:48:20 ===
alarm_handler: {set,{{disk_almost_full,"/"},[]}}
Setup running ...
Directories verified. Res = {[ok],[]}
Setup finished processing hooks ...
Eshell V5.10.3 (abort with ^G)
(stanchion@127.0.0.1)1>
=INFO REPORT==== 12-Jan-2017::19:48:20 ===
alarm_handler: {clear,{disk_almost_full,"/"}}
{"Kernel pid terminated",application_controller,"{application_start_failure,stanchion,{{riak_connect_failed,{{tcp,econnrefused},\"127.0.0.1\",8087}},{stanchion_app,start,[normal,[]]}}}"}
Crash dump was written to: ./log/erl_crash.dump
Kernel pid terminated (application_controller) ({application_start_failure,stanchion,{{riak_connect_failed,{{tcp,econnrefused},"127.0.0.1",8087}},{stanchion_app,start,[normal,[]]}}})
riak-cs version 2.1.1
it looks like the problem is problem is disk_almost_full
what is this error? and how do I overcome this error?
My system configuration:
OS : macOS 10.12.2
RAM : 4 GB
I'm trying to set single-node riak-cs instance. For test purpose, I use vagrant and ubuntu 14.04 LTS. After creating brand new virtual box, installing chef-dk, I've created Berksfile:
then installing riak-cs cookbook with deps
and finally run chef-client in local-mode (run-list was taken from docs)
Chef run is successful, but riak-cs is not running:
Here is console output:
And here is /var/log/riak-cs/erl_crash.dump (22k+ lines of code - can slow down your browser).
I've googled, but didn't find anything similar.