On Wed, Dec 11, 2013 at 9:27 PM, Gavin Huang <[email protected]> wrote:
> Thanks Hector
>
> I got lucky today, after I tried RiakCS-1.4.3, I finally got storage and
> access stat data. although the error message is still there.
>
> I notice that if a config the storage schedule to 0600 when 05, it won't
> execute one hours later even i restart riak-cs, but will execute after one
> day, is that true and is it by design?

Are you sure that you were using UTC? Also, can you please provide a
snippet of your `storage_schedule` setting in app.config?

> Thanks.
> Gavin
>
>
>
> On Wed, Dec 11, 2013 at 11:02 PM, Hector Castro <[email protected]> wrote:
>>
>> Gavin,
>>
>> After some more digging, it looks like the issue you're facing is an
>> open issue against Riak CS:
>>
>> https://github.com/basho/riak_cs/issues/746
>>
>> A pull request for the issue has been supplied and will be in the next
>> release:
>>
>> https://github.com/basho/riak_cs/pull/747
>>
>> --
>> Hector
>>
>>
>> On Wed, Dec 11, 2013 at 5:22 AM, Gavin Huang <[email protected]>
>> wrote:
>> > Thanks Hector
>> > I actually did the same steps as you mentioned expect I run Riak-CS in a
>> > real virtual machine.
>> >
>> > When I looking into the error log of Riak-CS when I doing riak-cs-access
>> > flush an error was thrown (when doing other file operations are fine):
>> >
>> > 2013-12-11 10:14:56.442 [error] <0.12276.0> gen_fsm <0.12276.0> in state
>> > idle terminated with reason: bad argument in gen_fsm:send_event/2 line
>> > 198
>> > 2013-12-11 10:14:56.442 [error] <0.12276.0> CRASH REPORT Process
>> > <0.12276.0>
>> > with 0 neighbours exited with reason: bad argument in
>> > gen_fsm:send_event/2
>> > line 198 in gen_fsm:terminate/7 line 611
>> >
>> > when doing riak-cs-storage batch no error was thrown with this message:
>> >
>> > 2013-12-11 10:13:46.097 [info]
>> > <0.286.0>@riak_cs_storage_d:calculating:150
>> > Finished storage calculation in 0 seconds.
>> >
>> >
>> > I tried Riak-CS-1.4.0 and latest Riak-CS, both get no luck. was that
>> > some
>> > configuration issue?
>> >
>> > Thanks.
>> > Gavin
>> >
>> >
>> >
>> > On Mon, Dec 9, 2013 at 10:08 PM, Hector Castro <[email protected]> wrote:
>> >>
>> >> Hi Gavin,
>> >>
>> >> How have you configured your `storage_schedule`? It's possible that
>> >> the job for calculating storage statistics hasn't occurred (or
>> >> finished) yet.
>> >>
>> >> You can manually trigger storage usage calculation by invoking the
>> >> following command:
>> >>
>> >> sudo riak-cs-storage batch
>> >>
>> >> From there, you can retrieve statistics from the `usage` bucket with
>> >> `s3cmd`:
>> >>
>> >> s3cmd get
>> >> s3://riak-cs/usage/<ACCESS_KEY>.abj.20130501T000000Z.20130531T000000Z
>> >>
>> >> Also, here is a script I wrote up to access usage and storage
>> >> statistics with `s3cmd`:
>> >>
>> >> https://gist.github.com/hectcastro/126b5657f228096775c6
>> >>
>> >> --
>> >> Hector
>> >>
>> >>
>> >> On Mon, Dec 9, 2013 at 1:25 AM, Gavin Huang <[email protected]>
>> >> wrote:
>> >> > BTW, what I can see from the riak-cs log is:
>> >> >
>> >> > 2013-12-09 22:04:40.836 [error] <0.17758.42> No WM route: 'GET'
>> >> >
>> >> >
>> >> > /riak-cs/usage/GRRYE2NHIXTNPFP89NMJ/abj/20131210T000000Z/20131210T160000Z
>> >> > {5,{"x-amz-date",{"X-Amz-Date","Mon, 09 Dec 2013 06:10:17
>> >> > +0000"},{"authorization",{'Authorization',"AWS
>> >> >
>> >> >
>> >> > MESG2VCANJVU7XTX-9YC:K7v4mFdvvAZ8a5LJHqfc/TZLy/w="},{"accept-encoding",{'Accept-Encoding',"identity"},nil,nil},{"host",{'Host',"riak-cs.s3.amazonaws.com:8080"},nil,nil}},{"x-rcs-rewrite-path",{"x-rcs-rewrite-path","/riak-cs/usage/GRRYE2NHIXTNPFP89NMJ/abj/20131210T000000Z/20131210T160000Z"},nil,nil}}}
>> >> >
>> >> >
>> >> >
>> >> > On Mon, Dec 9, 2013 at 10:50 AM, Gavin Huang <[email protected]>
>> >> > wrote:
>> >> >>
>> >> >> Hi,
>> >> >> I'm trying to get the usage and access statistics from Riak-CS.
>> >> >> I configured "storage_schedule"(restarted riak-cs), I manually start
>> >> >> riak-cs-storage (it takes a while first time, but getting more quick
>> >> >> afterwards).
>> >> >>
>> >> >> I tried to access the storage via s3cmd:
>> >> >> s3cmd get s3://riak-cs/usage/[adminkey]
>> >> >> s3cmd get s3://riak-cs/usage/[adminkey]/aj
>> >> >> s3cmd get
>> >> >> s3://riak-cs/usage/[adminkey]/abj/20131201T140000Z/20131210T160000Z
>> >> >>
>> >> >> all request get the response of:
>> >> >> ERROR: S3 error: 404 (Object Not Found):
>> >> >>
>> >> >> is there anything I missed?
>> >> >>
>> >> >> Thanks.
>> >> >> Gavin
>> >> >
>> >> >
>> >> >
>> >> > _______________________________________________
>> >> > 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

Reply via email to