Hi Michael, the issue there is that the version that we're shipping with in our official packages is R16B02+patches. It's likely that you've built with R15B01. The solution here is to use our packages (http://docs.basho.com/riak/2.0.0pre20/downloads/), or to rebuild R16B02 or R16B03-1 (we haven't tested the latter extensively, but it should work).
We'll look into the backwards compatibility issue. Thanks for the bug report, Evan. On Mon, Apr 14, 2014 at 10:29 AM, Michael Duergner <[email protected]> wrote: > Hi there, > > I tried getting the Riak 2.0.0pre20 example to run. > > I'm running on Mac OS X, downloaded the source package, did a make rel and > started Riak with all default values. > > After set, I created the new bucket-type: riak-admin bucket-type create > set_bucket '{"props":{"datatype":"set"}}' > > and activated it: riak-admin bucket-type activate set_bucket > > Running riak-admin bucket-type status set_bucket results in: > > set_bucket is active > > young_vclock: 20 > w: quorum > small_vclock: 50 > rw: quorum > r: quorum > pw: 0 > precommit: [] > pr: 0 > postcommit: [] > old_vclock: 86400 > notfound_ok: true > n_val: 3 > linkfun: {modfun,riak_kv_wm_link_walker,mapreduce_linkfun} > last_write_wins: false > dw: quorum > chash_keyfun: {riak_core_util,chash_std_keyfun} > big_vclock: 50 > basic_quorum: false > allow_mult: true > datatype: set > active: true > claimant: '[email protected]' > > But when I try to insert data with: > > curl -XPOST \ >> -H "Content-Type: application/json" \ >> -d '{"add_all":["Toronto", "Montreal"]}' \ >> http://localhost:8098/types/set_bucket/buckets/travel/datatypes/cities > > I get the following error back: > > <html><head><title>500 Internal Server Error</title></head><body><h1>Internal > Server Error</h1>The server encountered an error while processing this > request:<br><pre>{error, > {error,undef, > [{application,get_env,[riak_dt,binary_compression,true],[]}, > {riak_dt_orswot,to_binary,1, > [{file,"src/riak_dt_orswot.erl"},{line,331}]}, > > {riak_kv_crdt,to_binary,1,[{file,"src/riak_kv_crdt.erl"},{line,400}]}, > {riak_kv_crdt,new,3,[{file,"src/riak_kv_crdt.erl"},{line,390}]}, > {riak_kv_wm_crdt,process_post,2, > [{file,"src/riak_kv_wm_crdt.erl"},{line,367}]}, > {webmachine_resource,resource_call,3, > [{file,"src/webmachine_resource.erl"},{line,186}]}, > {webmachine_resource,do,3, > [{file,"src/webmachine_resource.erl"},{line,142}]}, > {webmachine_decision_core,resource_call,1, > > [{file,"src/webmachine_decision_core.erl"},{line,48}]}]}}</pre><P><HR><ADDRESS>mochiweb+webmachine > web server</ADDRESS></body></html> > > Any hints what I'm missing? > > Thanks > Michael > > > _______________________________________________ > riak-users mailing list > [email protected] > http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com > _______________________________________________ riak-users mailing list [email protected] http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
