jiak 500 errors

Michael McDaniel riak at autosys.us
Tue Dec 15 00:52:08 EST 2009


On Mon, Dec 14, 2009 at 02:48:33PM -0800, Dan Reverri wrote:
>    On Mon, Dec 14, 2009 at 2:38 PM, Alex Laslavic
>    <[1]alex.laslavic at turner.com> wrote:
> 
>    On Mon, 2009-12-14 at 12:07 -0500, Bryan Fink wrote:
>    > On Mon, Dec 14, 2009 at 11:42 AM, Alex Laslavic
>    > <[2]alex.laslavic at turner.com> wrote:
>    > > On Mon, 2009-12-14 at 08:25 -0800, Dan Reverri wrote:
>    > >> On Mon, Dec 14, 2009 at 7:43 AM, Alex Laslavic
>    > >> <[3]alex.laslavic at turner.com> wrote:
>    > >>         Got a bit of an issue.  Through jiak, I am able to store a
>    > >>         handful of
>    > >>         values, and then it starts returning 500 errors.  Once it
>    > >>         starts
>    > >>         returning 500's, I can't get it to store any more docs
>    > unless
>    > >>         I wipe the
>    > >>         storage and ring directories.  I am still able to retrieve
>    > >>         values.  I am
>    > >>         still able to store new values via the erl client.  Not
>    > seeing
>    > >>         anything
>    > >>         of interest when attaching the logger event handler.
>    > >>
>    > >>         Any ideas.
>    > >>
>    > >>         --
>    > >>         Alex Laslavic
>    > >>
>    > >>         _______________________________________________
>    > >>         riak-users mailing list
>    > >>         [4]riak-users at lists.basho.com
>    > >>
>    > [5]http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
>    > >>
>    > >>
>    > >>
>    > >> What version of Riak are you running?
>    > > I'm running the tip from 2009/12/08.
>    > >
>    > >> Are you declaring a schema for the bucket?
>    > > I am leaving the schema at its defaults.
>    > >
>    > >> Can you try running Riak in debug mode (debug-fresh.sh) and
>    > reproduce
>    > >>  the issue?
>    > >
>    > > =ERROR REPORT==== 14-Dec-2009::11:46:14 ===
>    > > webmachine error: path="/jiak/group/tegpool-cache-dev/"
>    > > {error,function_clause,
>    > >       [{lists,foldl,
>    > >               [#Fun<sets.1.88325074>,
>    > >                {set,0,16,16,8,80,48,
>    > >
>    > {[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[]},
>    > >
>    > > {{[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[]}}},
>    > >                null]},
>    > >        {jiak_resource,copy_unreadable_props,3},
>    > >        {jiak_resource,diff_objects,2},
>    > >        {jiak_resource,object_forbidden,2},
>    > >        {webmachine_resource,resource_call,3},
>    > >        {webmachine_resource,do,3},
>    > >        {webmachine_decision_core,resource_call,1},
>    > >        {webmachine_decision_core,decision,1}]}
>    >
>    > Hi, Alex.  Could you please send me two more things:
>    >
>    > 1. The schema, as returned by Jiak, for the "group" bucket
> 
>      Just using the default schema.
>      {"schema":{"allowed_fields":"*","required_fields":[],"read_mask":nul
>      l,"write_mask":null}}
> 
>    >
>    > $ curl [6]http://localhost:8098/jiak/group?keys=false
>    >
>    > 2. An example object that you've stored in that bucket.
> 
>      Here is one that I can't get to store.
>      {"bucket":"group","links":[],"object":{"parameters":"hi","classes":[
>      "class1"]},"key":"group1"}
>      and debug is currently reporting
>      {error,badarg,
>            [{lists,member,[<<"parameters">>,null]},
>             {jiak_resource,'-check_write_mask/2-lc$^0/1-0-',2},
>             {jiak_resource,check_write_mask,2},
> 
>           {jiak_resource,object_forbidden,2},
>           {webmachine_resource,resource_call,3},
>           {webmachine_resource,do,3},
>           {webmachine_decision_core,resource_call,1},
>           {webmachine_decision_core,decision,1}]}
> 
>      Does that help?
>      >
>      > Thanks,
>      > Bryan
>      >
>      >
>      --
> 
>    Alex Laslavic
>    _______________________________________________
>    riak-users mailing list
>    [7]riak-users at lists.basho.com
>    [8]http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
> 
>    I think the read_mask and write_mask should be "*" rather than null:
> 
>    curl [9]http://localhost:8098/jiak/group?keys=false
>    {"schema":{"allowed_fields":"*","required_fields":[],"read_mask":"*","w
>    rite_mask":"*"}}
>    Are you declaring the bucket schema at any point?
> 
> References
> 
>    1. mailto:alex.laslavic at turner.com
>    2. mailto:alex.laslavic at turner.com
>    3. mailto:alex.laslavic at turner.com
>    4. mailto:riak-users at lists.basho.com
>    5. http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
>    6. http://localhost:8098/jiak/group?keys=false
>    7. mailto:riak-users at lists.basho.com
>    8. http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
>    9. http://localhost:8098/jiak/group?keys=false

_____________________________________________________________________

 To confirm that it does at least work, here is what I typed
 in that worked on my Ubuntu 9.04 box ...

$ curl -X PUT http://localhost:8098/raw/works/4me  -d "{\"bucket\":\"group\",\"links\":[],\"object\":{\"parameters\":\"hi\",\"classes\":[\"class1\"]},\"key\":\"group1\"}"
$
$ curl -i http://localhost:8098/raw/works/4me
HTTP/1.1 200 OK
X-Riak-Vclock: a85hYGBgzGDKBVIsrK6xShlMiYx5rAzs82cf4csCAA==
Vary: Accept-Encoding
Server: MochiWeb/1.1 WebMachine/1.5.1 (hack the charles gibson)
Link: </raw/works>; rel="up"
Last-Modified: Tue, 15 Dec 2009 05:47:51 GMT
ETag: 2Q7Mr9AB4HkNKwbDqaMbIZ
Date: Tue, 15 Dec 2009 05:47:58 GMT
Content-Type: application/x-www-form-urlencoded
Content-Length: 94

{"bucket":"group","links":[],"object":{"parameters":"hi","classes":["class1"]},"key":"group1"}


 I compiled using erlang R13B03.

 My riak releasnotes directory contains riak-0.6.txt which presumably
 means that is my version level.


~Michael

-- 
Michael McDaniel
Portland, Oregon, USA
http://putitgetit.com





More information about the riak-users mailing list