I think you're hitting this timezone bug: http://erlang.org/pipermail/erlang-questions/2013-January/071698.html
Could you update your Riak version, which should update the Erlang being used? -- Luke Bakken CSE [email protected] On Wed, Dec 18, 2013 at 3:33 AM, "José G. Quenum" <[email protected]> wrote: > Hi all, > I am using riak 1.3.1-x86_64 on OS X Mavericks. After installing the riak > server I decided to first test if it was working fine. So I issued a few > cURL commands. First to add with curl -i -v -XPUT > http://127.0.0.1:8098/riak/users_development/kemy -H "Content-Type: > application/json" -d '{"bar":"baz"}' > and it returned a 204 code result. Then I decided to fetch the same data > with curl -i -v -XGET http://127.0.0.1:8098/riak/users_development/kemy > Surprisingly it returns a 500 Internal server error: > < HTTP/1.1 500 Internal Server Error > HTTP/1.1 500 Internal Server Error > < Vary: Accept-Encoding > Vary: Accept-Encoding > * Server MochiWeb/1.1 WebMachine/1.9.2 (someone had painted it blue) is not > blacklisted > < Server: MochiWeb/1.1 WebMachine/1.9.2 (someone had painted it blue) > Server: MochiWeb/1.1 WebMachine/1.9.2 (someone had painted it blue) > < ETag: "2HyL34gyPBEVz0eVHxraXE" > ETag: "2HyL34gyPBEVz0eVHxraXE" > < Date: Wed, 18 Dec 2013 11:06:21 GMT > Date: Wed, 18 Dec 2013 11:06:21 GMT > < Content-Type: text/html > Content-Type: text/html > < Content-Length: 1009 > Content-Length: 1009 > > < > <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>[{erlang,localtime_to_universaltime,[{{2013,12,18},{12,6,17}},true],[]}, > {calendar,local_time_to_universal_time_dst,1, > [{file,"calendar.erl"},{line,282}]}, > {httpd_util,rfc1123_date,1,[{file,"httpd_util.erl"},{line,344}]}, > {webmachine_decision_core,decision,1, > [{file,"src/webmachine_decision_core.erl"}, > {line,543}]}, > {webmachine_decision_core,handle_request,2, > [{file,"src/webmachine_decision_core.erl"}, > {line,33}]}, > > {webmachine_mochiweb,loop,1,[{file,"src/webmachine_mochiweb.erl"},{line,97}]}, > > {mochiweb_http,parse_headers,5,[{file,"src/mochiweb_http.erl"},{line,180}]}, > * Connection #0 to host 127.0.0.1 left intact > > {proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,227}]}]</pre><P><HR><ADDRESS>mochiweb+webmachine > web server</ADDRESS></body></html> > So it can store data but cannot fetch them. The whole thing got confusing > when I realized that I could delete. And then when I try to fetch it returns > a 404 error code, which is expected. > I have really no clue why this is happening. Does anyone have any idea? > thanks in advance, > José > > _______________________________________________ > 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
