Closed ghost closed 9 years ago
Anyway I'll be happy to dig a little bit deeper into it, I mentioned I wanted to hack on some CI code anyway to get a piece of the action, I guess there's really no time like the present since I'm not getting anything else done until things start working as expected / indicated
==> log/error.log <==
2014-12-13 13:56:09.780 [error] <0.3054.0> gen_fsm <0.3054.0> in state connected terminated with reason: {error,function_clause,[{riak_api_pb_server,send_error,[{unknown_field_type,<<"objecttype">>},{state,{gen_tcp,inet},#Port<0.12031>,undefined,[{riak_api_basic_pb_service,undefined},{riak_core_pb_bucket,undefined},{riak_core_pb_bucket_type,undefined},{riak_kv_pb_bucket,{state,{riak_client,['riak@127.0.0.1',undefined]},undefined,undefined}},{riak_kv_pb_counter,{state,{riak_client,['riak@127.0.0.1',undefined]}}},{riak_kv_pb_crdt,{state,{riak_client,['riak@127.0.0.1',undefined]},undefined,undefined,...}},...],...}],...},...]}
==> log/crash.log <==
2014-12-13 13:56:09 =ERROR REPORT====
** State machine <0.3054.0> terminating
** Last message in was {tcp,#Port<0.12031>,<<0,0,0,83,25,10,19,83,111,99,105,97,108,77,101,100,105,97,95,101,114,114,97,116,105,99,18,10,79,98,106,101,99,116,84,121,112,101,24,0,34,35,100,101,46,110,101,116,99,114,97,118,101,46,90,111,109,98,105,101,108,101,116,46,90,111,109,98,105,101,108,101,116,80,111,115,116,98,8,85,115,101,114,68,97,116,97>>}
** When State == connected
** Data == {state,{gen_tcp,inet},#Port<0.12031>,undefined,[{riak_api_basic_pb_service,undefined},{riak_core_pb_bucket,undefined},{riak_core_pb_bucket_type,undefined},{riak_kv_pb_bucket,{state,{riak_client,['riak@127.0.0.1',undefined]},undefined,undefined}},{riak_kv_pb_counter,{state,{riak_client,['riak@127.0.0.1',undefined]}}},{riak_kv_pb_crdt,{state,{riak_client,['riak@127.0.0.1',undefined]},undefined,undefined,undefined,undefined,undefined,undefined,undefined}},{riak_kv_pb_csbucket,{state,{riak_client,['riak@127.0.0.1',undefined]},undefined,undefined,undefined,0}},{riak_kv_pb_index,{state,{riak_client,['riak@127.0.0.1',undefined]},undefined,undefined,undefined,0}},{riak_kv_pb_mapred,{state,undefined,undefined}},{riak_kv_pb_object,{state,{riak_client,['riak@127.0.0.1',undefined]},undefined,undefined,<<0,0,0,0>>}}],{{127,0,0,1},59222},undefined,undefined,3,<<0,0,0,83,25,10,19,83,111,99,105,97,108,77,101,100,105,97,95,101,114,114,97,116,105,99,18,10,79,98,106,101,99,116,84,121,112,101,24,0,34,35,100,101,46,110,101,116,99,114,97,118,101,46,90,111,109,98,105,101,108,101,116,46,90,111,109,98,105,101,108,101,116,80,111,115,116,98,8,85,115,101,114,68,97,116,97>>,{buffer,[],0,1024}}
** Reason for termination =
** {error,function_clause,[{riak_api_pb_server,send_error,[{unknown_field_type,<<"objecttype">>},{state,{gen_tcp,inet},#Port<0.12031>,undefined,[{riak_api_basic_pb_service,undefined},{riak_core_pb_bucket,undefined},{riak_core_pb_bucket_type,undefined},{riak_kv_pb_bucket,{state,{riak_client,['riak@127.0.0.1',undefined]},undefined,undefined}},{riak_kv_pb_counter,{state,{riak_client,['riak@127.0.0.1',undefined]}}},{riak_kv_pb_crdt,{state,{riak_client,['riak@127.0.0.1',undefined]},undefined,undefined,undefined,undefined,undefined,undefined,undefined}},{riak_kv_pb_csbucket,{state,{riak_client,['riak@127.0.0.1',undefined]},undefined,undefined,undefined,0}},{riak_kv_pb_index,{state,{riak_client,['riak@127.0.0.1',undefined]},undefined,undefined,undefined,0}},{riak_kv_pb_mapred,{state,undefined,undefined}},{riak_kv_pb_object,{state,{riak_client,['riak@127.0.0.1',undefined]},undefined,undefined,<<0,0,0,0>>}}],{{127,0,0,1},59222},undefined,undefined,3,<<0,0,0,83,25,10,19,83,111,99,105,97,108,77,101,100,105,97,95,101,114,114,97,116,105,99,18,10,79,98,106,101,99,116,84,121,112,101,24,0,34,35,100,101,46,110,101,116,99,114,97,118,101,46,90,111,109,98,105,101,108,101,116,46,90,111,109,98,105,101,108,101,116,80,111,115,116,98,8,85,115,101,114,68,97,116,97>>,{buffer,[],0,1024}}],[{file,"src/riak_api_pb_server.erl"},{line,484}]},{riak_api_pb_server,process_message,4,[{file,"src/riak_api_pb_server.erl"},{line,398}]},{riak_api_pb_server,connected,2,[{file,"src/riak_api_pb_server.erl"},{line,226}]},{riak_api_pb_server,decode_buffer,2,[{file,"src/riak_api_pb_server.erl"},{line,364}]},{gen_fsm,handle_msg,7,[{file,"gen_fsm.erl"},{line,505}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,239}]}]}
2014-12-13 13:56:09 =CRASH REPORT====
crasher:
initial call: riak_api_pb_server:init/1
pid: <0.3054.0>
registered_name: []
exception exit: {{error,function_clause,[{riak_api_pb_server,send_error,[{unknown_field_type,<<"objecttype">>},{state,{gen_tcp,inet},#Port<0.12031>,undefined,[{riak_api_basic_pb_service,undefined},{riak_core_pb_bucket,undefined},{riak_core_pb_bucket_type,undefined},{riak_kv_pb_bucket,{state,{riak_client,['riak@127.0.0.1',undefined]},undefined,undefined}},{riak_kv_pb_counter,{state,{riak_client,['riak@127.0.0.1',undefined]}}},{riak_kv_pb_crdt,{state,{riak_client,['riak@127.0.0.1',undefined]},undefined,undefined,undefined,undefined,undefined,undefined,undefined}},{riak_kv_pb_csbucket,{state,{riak_client,['riak@127.0.0.1',undefined]},undefined,undefined,undefined,0}},{riak_kv_pb_index,{state,{riak_client,['riak@127.0.0.1',undefined]},undefined,undefined,undefined,0}},{riak_kv_pb_mapred,{state,undefined,undefined}},{riak_kv_pb_object,{state,{riak_client,['riak@127.0.0.1',undefined]},undefined,undefined,<<0,0,0,0>>}}],{{127,0,0,1},59222},undefined,undefined,3,<<0,0,0,83,25,10,19,83,111,99,105,97,108,77,101,100,105,97,95,101,114,114,97,116,105,99,18,10,79,98,106,101,99,116,84,121,112,101,24,0,34,35,100,101,46,110,101,116,99,114,97,118,101,46,90,111,109,98,105,101,108,101,116,46,90,111,109,98,105,101,108,101,116,80,111,115,116,98,8,85,115,101,114,68,97,116,97>>,{buffer,[],0,1024}}],[{file,"src/riak_api_pb_server.erl"},{line,484}]},{riak_api_pb_server,process_message,4,[{file,"src/riak_api_pb_server.erl"},{line,398}]},{riak_api_pb_server,connected,2,[{file,"src/riak_api_pb_server.erl"},{line,226}]},{riak_api_pb_server,decode_buffer,2,[{file,"src/riak_api_pb_server.erl"},{line,364}]},{gen_fsm,handle_msg,7,[{file,"gen_fsm.erl"},{line,505}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,239}]}]},[{gen_fsm,terminate,7,[{file,"gen_fsm.erl"},{line,622}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,239}]}]}
ancestors: [riak_api_pb_sup,riak_api_sup,<0.284.0>]
messages: []
links: [<0.288.0>,#Port<0.12031>]
dictionary: []
trap_exit: false
status: running
heap_size: 6772
stack_size: 27
reductions: 12034
neighbours:
2014-12-13 13:56:09 =SUPERVISOR REPORT====
Supervisor: {local,riak_api_pb_sup}
Context: child_terminated
Reason: {error,function_clause,[{riak_api_pb_server,send_error,[{unknown_field_type,<<"objecttype">>},{state,{gen_tcp,inet},#Port<0.12031>,undefined,[{riak_api_basic_pb_service,undefined},{riak_core_pb_bucket,undefined},{riak_core_pb_bucket_type,undefined},{riak_kv_pb_bucket,{state,{riak_client,['riak@127.0.0.1',undefined]},undefined,undefined}},{riak_kv_pb_counter,{state,{riak_client,['riak@127.0.0.1',undefined]}}},{riak_kv_pb_crdt,{state,{riak_client,['riak@127.0.0.1',undefined]},undefined,undefined,undefined,undefined,undefined,undefined,undefined}},{riak_kv_pb_csbucket,{state,{riak_client,['riak@127.0.0.1',undefined]},undefined,undefined,undefined,0}},{riak_kv_pb_index,{state,{riak_client,['riak@127.0.0.1',undefined]},undefined,undefined,undefined,0}},{riak_kv_pb_mapred,{state,undefined,undefined}},{riak_kv_pb_object,{state,{riak_client,['riak@127.0.0.1',undefined]},undefined,undefined,<<0,0,0,0>>}}],{{127,0,0,1},59222},undefined,undefined,3,<<0,0,0,83,25,10,19,83,111,99,105,97,108,77,101,100,105,97,95,101,114,114,97,116,105,99,18,10,79,98,106,101,99,116,84,121,112,101,24,0,34,35,100,101,46,110,101,116,99,114,97,118,101,46,90,111,109,98,105,101,108,101,116,46,90,111,109,98,105,101,108,101,116,80,111,115,116,98,8,85,115,101,114,68,97,116,97>>,{buffer,[],0,1024}}],[{file,"src/riak_api_pb_server.erl"},{line,484}]},{riak_api_pb_server,process_message,4,[{file,"src/riak_api_pb_server.erl"},{line,398}]},{riak_api_pb_server,connected,2,[{file,"src/riak_api_pb_server.erl"},{line,226}]},{riak_api_pb_server,decode_buffer,2,[{file,"src/riak_api_pb_server.erl"},{line,364}]},{gen_fsm,handle_msg,7,[{file,"gen_fsm.erl"},{line,505}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,239}]}]}
Offender: [{pid,<0.3054.0>},{name,undefined},{mfargs,{riak_api_pb_server,start_link,undefined}},{restart_type,temporary},{shutdown,brutal_kill},{child_type,worker}]
==> log/console.log <==
2014-12-13 13:56:09.780 [error] <0.3054.0> gen_fsm <0.3054.0> in state connected terminated with reason: {error,function_clause,[{riak_api_pb_server,send_error,[{unknown_field_type,<<"objecttype">>},{state,{gen_tcp,inet},#Port<0.12031>,undefined,[{riak_api_basic_pb_service,undefined},{riak_core_pb_bucket,undefined},{riak_core_pb_bucket_type,undefined},{riak_kv_pb_bucket,{state,{riak_client,['riak@127.0.0.1',undefined]},undefined,undefined}},{riak_kv_pb_counter,{state,{riak_client,['riak@127.0.0.1',undefined]}}},{riak_kv_pb_crdt,{state,{riak_client,['riak@127.0.0.1',undefined]},undefined,undefined,...}},...],...}],...},...]}
==> log/error.log <==
2014-12-13 13:56:09.781 [error] <0.3054.0> CRASH REPORT Process <0.3054.0> with 0 neighbours exited with reason: {error,function_clause,[{riak_api_pb_server,send_error,[{unknown_field_type,<<"objecttype">>},{state,{gen_tcp,inet},#Port<0.12031>,undefined,[{riak_api_basic_pb_service,undefined},{riak_core_pb_bucket,undefined},{riak_core_pb_bucket_type,undefined},{riak_kv_pb_bucket,{state,{riak_client,['riak@127.0.0.1',undefined]},undefined,undefined}},{riak_kv_pb_counter,{state,{riak_client,['riak@127.0.0.1',undefined]}}},{riak_kv_pb_crdt,{state,{riak_client,['riak@127.0.0.1',undefined]},undefined,undefined,...}},...],...}],...},...]} in gen_fsm:terminate/7 line 622
==> log/console.log <==
2014-12-13 13:56:09.781 [error] <0.3054.0> CRASH REPORT Process <0.3054.0> with 0 neighbours exited with reason: {error,function_clause,[{riak_api_pb_server,send_error,[{unknown_field_type,<<"objecttype">>},{state,{gen_tcp,inet},#Port<0.12031>,undefined,[{riak_api_basic_pb_service,undefined},{riak_core_pb_bucket,undefined},{riak_core_pb_bucket_type,undefined},{riak_kv_pb_bucket,{state,{riak_client,['riak@127.0.0.1',undefined]},undefined,undefined}},{riak_kv_pb_counter,{state,{riak_client,['riak@127.0.0.1',undefined]}}},{riak_kv_pb_crdt,{state,{riak_client,['riak@127.0.0.1',undefined]},undefined,undefined,...}},...],...}],...},...]} in gen_fsm:terminate/7 line 622
==> log/error.log <==
2014-12-13 13:56:09.782 [error] <0.288.0> Supervisor riak_api_pb_sup had child undefined started with {riak_api_pb_server,start_link,undefined} at <0.3054.0> exit with reason {error,function_clause,[{riak_api_pb_server,send_error,[{unknown_field_type,<<"objecttype">>},{state,{gen_tcp,inet},#Port<0.12031>,undefined,[{riak_api_basic_pb_service,undefined},{riak_core_pb_bucket,undefined},{riak_core_pb_bucket_type,undefined},{riak_kv_pb_bucket,{state,{riak_client,['riak@127.0.0.1',undefined]},undefined,undefined}},{riak_kv_pb_counter,{state,{riak_client,['riak@127.0.0.1',undefined]}}},{riak_kv_pb_crdt,{state,{riak_client,['riak@127.0.0.1',undefined]},undefined,undefined,...}},...],...}],...},...]} in context child_terminated
==> log/console.log <==
2014-12-13 13:56:09.782 [error] <0.288.0> Supervisor riak_api_pb_sup had child undefined started with {riak_api_pb_server,start_link,undefined} at <0.3054.0> exit with reason {error,function_clause,[{riak_api_pb_server,send_error,[{unknown_field_type,<<"objecttype">>},{state,{gen_tcp,inet},#Port<0.12031>,undefined,[{riak_api_basic_pb_service,undefined},{riak_core_pb_bucket,undefined},{riak_core_pb_bucket_type,undefined},{riak_kv_pb_bucket,{state,{riak_client,['riak@127.0.0.1',undefined]},undefined,undefined}},{riak_kv_pb_counter,{state,{riak_client,['riak@127.0.0.1',undefined]}}},{riak_kv_pb_crdt,{state,{riak_client,['riak@127.0.0.1',undefined]},undefined,undefined,...}},...],...}],...},...]} in context child_terminated
this just cant be, its definitely a real field
I am uncompromising, real field or gtfo
<node name="dev1" hostAddress="127.0.0.01" pbcPort="8087" restPort="8069" poolSize="1000" />
oh and the rest port.. what was the ACTUAL REAL rest port not hte fake one in the file again?
laptop :: bin/Debug » curl http://localhost:8069
url: (7) Failed to connect to localhost port 8069: Connection refused
laptop :: bin/Debug »
laptop riak # cat etc/riak.conf | grep port
## is 0-1024. If thread support is available, the default is 64.
## The number of concurrent ports/sockets
erlang.max_ports = 65536
## DTrace support Do not enable 'dtrace' unless your Erlang/OTP
## runtime is compiled to support DTrace. DTrace is available in
## R15B01 (supported by the Erlang/OTP official source package) and in
## listener.http.<name> is an IP address and TCP port that the Riak
## - an IP/port pair, e.g. 127.0.0.1:10011
## listener.protobuf.<name> is an IP address and TCP port that the Riak
## - an IP/port pair, e.g. 127.0.0.1:10011
## listener.https.<name> is an IP address and TCP port that the Riak
## - an IP/port pair, e.g. 127.0.0.1:10011
## and secondary indexes (if supported).
## The port number which Solr binds to.
search.solr.port = 8093
## The port number which Solr JMX binds to.
search.solr.jmx_port = 8985
## i.e. -XX, may not be portable across JVM implementations.
laptop riak #
cos um
laptop riak # netstat -an | grep LISTEN
tcp 0 0 127.0.0.1:37806 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:9040 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:8080 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:4369 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:113 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:36307 0.0.0.0:* LISTEN
tcp 0 0 192.168.122.1:53 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:46806 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:8087 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:38327 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:9050 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:34651 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:60092 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:36476 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:50238 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:8098 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:8099 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:33829 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:51429 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN
tcp6 0 0 :::111 :::* LISTEN
tcp6 0 0 :::80 :::* LISTEN
tcp6 0 0 :::113 :::* LISTEN
tcp6 0 0 :::59633 :::* LISTEN
tcp6 0 0 :::22 :::* LISTEN
tcp6 0 0 ::1:631 :::* LISTEN
tcp6 0 0 :::443 :::* LISTEN
unix 2 [ ACC ] STREAM LISTENING 9132 /tmp/runtime-erratic/kdeinit5__0
unix 2 [ ACC ] STREAM LISTENING 10812 /tmp/runtime-erratic/klauncherXM4699.1.slave-socket
unix 2 [ ACC ] STREAM LISTENING 10847 /tmp/.ICE-unix/4708
unix 2 [ ACC ] STREAM LISTENING 1042706 /var/run/cgisock.10205
unix 2 [ ACC ] STREAM LISTENING 10897 /tmp/pulse-QB9I7FKmGvxm/native
unix 2 [ ACC ] STREAM LISTENING 10846 @/tmp/.ICE-unix/4708
unix 2 [ ACC ] STREAM LISTENING 6940 /run/cups/cups.sock
unix 2 [ ACC ] STREAM LISTENING 217541 @/tmp/dbus-c6NtrntCVi
unix 2 [ ACC ] STREAM LISTENING 8732 @/tmp/.X11-unix/X0
unix 2 [ ACC ] STREAM LISTENING 231120 /tmp/tmp9ff4b91.tmp
unix 2 [ ACC ] STREAM LISTENING 819 /var/run/clamav/clamd.sock
unix 2 [ ACC ] STREAM LISTENING 7955 @/tmp/dbus-tTfgqxRjYA
unix 2 [ ACC ] STREAM LISTENING 859 /var/run/rpcbind.sock
unix 2 [ ACC ] STREAM LISTENING 2920 /var/run/mysqld/mysqld.sock
unix 2 [ ACC ] STREAM LISTENING 878 /var/run/libvirt/libvirt-sock
unix 2 [ ACC ] STREAM LISTENING 880 /var/run/libvirt/libvirt-sock-ro
unix 2 [ ACC ] STREAM LISTENING 928210 /tmp/ksocket-erratic/kdeinit4__0
unix 2 [ ACC ] STREAM LISTENING 927554 /tmp/ksocket-erratic/klauncherM32400.slave-socket
unix 2 [ ACC ] STREAM LISTENING 3999 /dev/gpmctl
unix 2 [ ACC ] STREAM LISTENING 3047 /tmp/.dguardianipc
unix 2 [ ACC ] STREAM LISTENING 3048 /tmp/.dguardianurlipc
unix 2 [ ACC ] STREAM LISTENING 981647 /tmp/tmp29f0a955.tmp
unix 2 [ ACC ] SEQPACKET LISTENING 2480 /run/udev/control
unix 2 [ ACC ] STREAM LISTENING 7829 @/tmp/dbus-jVZIw1Iio4
unix 2 [ ACC ] STREAM LISTENING 3789 /var/run/dbus/system_bus_socket
unix 2 [ ACC ] STREAM LISTENING 9772 @/tmp/dbus-WNaQOGvqGX
unix 2 [ ACC ] STREAM LISTENING 8733 /tmp/.X11-unix/X0
## is 0-1024. If thread support is available, the d
cos um ya the fuck am I supposed to do with this fucking shit
seriously how does anyone actually fucking use riak its impossible
....fucking really
https://www.google.com/?gws_rd=ssl#q=riak+rest+port
Delete Buckets
There is no straightforward way to delete an entire Bucket. To delete all the keys in a bucket, you’ll need to delete them all individually.
oh cos like dude in sql its really easy.... like what s that seriously whats the brilliant reason for that
I figured it out, thanks to the logging / debugging class I made I was able to determine that the pbcputrequest never had any indexes because:
ro.BinIndex("ObjectType")
the correct way is:
ro.BinIndex("ObjectType").Add(zob.GetType().ToString());
Got:
While this error message may seem helpful:
I am pretty damn certain that object does indeed have that property and was supposed to be indexed by it ;) in fact it really pretty much doesn't matter what I put there, I can put others and get the same result ev time.
Also I'm seeing that
Maybe thats it, but I was pretty sure based on the test cases that CI's bucket type support was solid.
Or, may be its this: https://github.com/basho/riak/issues/653