Re: Java Client and Data types

2015-01-21 Thread Chris Meiklejohn
On Tue, Jan 20, 2015 at 7:59 PM, Annette Bieniusa bieni...@cs.uni-kl.de wrote:
 Hello,

 I am trying to build a small demo app involving the Java Client and the Data 
 types by following the official documentation.
 However, map operations are not working. A fetch with the Java client always 
 returns an empty map, writes create new maps, but they remain empty.
 In the source file that I attached, this yields a null pointer exception when 
 doing the getRegister() in getLastName, for example.

Hi Annette,

I've loaded this code, and when I execute it, I'm getting exceptions
when getVisits() is being called, however, when it's being called,
it's before that field is created -- the constructor of User only sets
the first and last name attributes.  Removing that call prevents the
NullPointerException.

java.lang.NullPointerException
 at 
com.basho.riak.client.core.query.crdt.types.RiakMap.getCounter(RiakMap.java:133)
 at 
com.basho.riak.client.core.query.crdt.types.RiakMap.getCounter(RiakMap.java:150)
 at com.basho.riak.playground.User.getVisits(User.java:106)
 at com.basho.riak.playground.Main.main(Main.java:27)

Removing the getVisits call, yields the following execution:

Builder,Bob

- Chris

___
riak-users mailing list
riak-users@lists.basho.com
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com


Re: Riak control on cluster

2015-01-14 Thread Chris Meiklejohn
On Wed, Jan 14, 2015 at 4:00 PM, Bruno René Santos
bruno-r-san...@telecom.pt wrote:
 Hi,

 I have a cluster of 6 machines and wanted to check them using riak control.
 I tried to enabled it on node-01 (riak.conf = riak_control = on), restart
 riak on that node. But nothing appears on port 8069... where else can i
 configure these parameters? Or check what is wrong?

Riak Control, when SSL is enabled, is reachable at '/admin', not at the root.

In addition, is SSL enabled and configured?  If not, Riak Control will run on
the default HTTP port, which is 8098.

Thanks,
- Chris

___
riak-users mailing list
riak-users@lists.basho.com
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com


Re: If I go to RICON 2014

2014-09-19 Thread Chris Meiklejohn
Hi Patrice,

There will be plenty of Basho engineers there, including myself, who
will be happy to answer any questions you may have.  We love to hear
how people are using our product and want to help out in any way
possible!

- Chris


On Fri, Sep 19, 2014 at 12:02 PM, Patrice Bruno
patrice.br...@kuantic.com wrote:
 Hi,
 (my first post)
 if I go to RICON can I hope to meet people who can ask to my questions about
 our deployment and our usage of Riak, because I do not want to come to stay
 in my corner ?

 Best Regards
 Patrice Bruno
 Kuantic

 ___
 riak-users mailing list
 riak-users@lists.basho.com
 http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com

___
riak-users mailing list
riak-users@lists.basho.com
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com


Re: Does riak control work?

2013-09-09 Thread Chris Meiklejohn
Hi David,

We just verified that Control appears to be working fine for that package.
 Can you provide your entire app.config file to help us debug further?

- Chris


On Mon, Sep 9, 2013 at 12:17 PM, David Montgomery davidmontgom...@gmail.com
 wrote:

 I am using the lastest ubuntu deb package.



 https://localhost:8069/admin

 I get page not found

 The connection was reset

   The connection to the server was reset while the page was
 loading.

   The site could be temporarily unavailable or too busy. Try again in a few
 moments.
   If you are unable to load any pages, check your computer's network
 connection.
   If your computer or network is protected by a firewall or proxy, make
 sure
 that Firefox is permitted to access the Web.



 Is riak running on the port?  Yup

 root@ubuntu-VirtualBox:/etc/riak# lsof -i :8069
 COMMAND   PID USER   FD   TYPE  DEVICE SIZE/OFF NODE NAME
 beam.smp 1376 riak   21u  IPv4 3238716  0t0  TCP localhost:8069
 (LISTEN)


 I followed the instructions here
 http://docs.basho.com/riak/latest/ops/advanced/riak-control/

 %% https is a list of IP addresses and TCP ports that the Riak
   %% HTTPS interface will bind.
   {https, [{ 127.0.0.1, 8069 }]},

  %% Set to false to disable the admin panel.
 {enabled, true},




 So...what could be wrong?  Yes..I restarted riak after I make the change
 to the config file.

 Thanks



 ___
 riak-users mailing list
 riak-users@lists.basho.com
 http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com


___
riak-users mailing list
riak-users@lists.basho.com
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com


Re: Javascript MapReduce fails Erlang succeeds

2013-08-20 Thread Chris Meiklejohn
Hi Doug,

While this is certainly possible, the JSON that's being used as the
function argument does decode both with Spidermonkey (calling into the JSON
decode function with that object directly), and with mochijson2.  It's a
combination of the function application with that object as the functions
argument.

- Chris


On Mon, Aug 19, 2013 at 11:23 PM, Doug Read doug.r...@qnary.com wrote:

 I noticed the value in some of the json fields have the single quotes and
 double quotes, is it possible they aren't being correctly escaped when
 being passed to spidermonkey?


 On Mon, Aug 19, 2013 at 5:33 PM, Chris Meiklejohn 
 cmeiklej...@basho.comwrote:

 Hello Doug,

 I've verified that the problem is not related to that particular parsing
 function, as the following JavaScript MapReduce code will trigger the
 exception:

 { map: {language: javascript, source: function(value, keyData,
 arg) { return [value]; } }

 Specifically, what's happening inside of the erlang_js module is this
 function is being turned into an anonymous immediately invoking function
 expression like such:

 (function(value, keyData, arg) { return [value]; })(RIAK_OBJECT_HERE)

 This string is then marshalled and called through the Erlang port driver
 to Spidermonkey.  The response returned is the following:

 {ok, }

 This then causes the js_mochijson2 decode to fail, because it's not
 defined over empty binary objects.

 I've verified that this is only the behavior with the object you
 provided, which leads me to believe that something inside of Spidermonkey
 is blowing up, which is triggering the empty binary response.

 I'm going to continue tracking it down, however, I'd advise moving
 forward to switch to Erlang-based MapReduce jobs, which perform much
 better, as they don't introduce overhead for serialization/deserialization
 and don't require the use of the JavaScript virtual machine.

 - Chris



 On Mon, Aug 19, 2013 at 4:14 PM, Chris Meiklejohn 
 cmeiklej...@basho.comwrote:

 Hi Doug,

 Can you shoot over the multi get job you are using?

 - Chris


 On Mon, Aug 19, 2013 at 4:11 PM, Doug Read doug.r...@qnary.com wrote:

 Hi Chris,

 I appreciate the help.  Please let me know if I can help in anyway.
  For now I just switched to a multi get.

 thanks
 doug


 On Mon, Aug 19, 2013 at 4:09 PM, Chris Meiklejohn 
 cmeiklej...@basho.com wrote:

 Hi Doug,

 After loading your backup, I can trigger the crash through the
 JavaScript map/reduce job.  However, if I do the following:

 {ok, Client} = riak:local_client().
 {ok, O} = Client:get(BUCKET, KEY).

 both of these calls succeed:

 js_mochijson2:decode(riak_object:get_values(O)).
 mochijson2:decode(riak_object:get_values(O)).

 I'm continuing to track down where the crash is occurring, but it
 appears to be something related to erlang_js.

 - Chris



 On Fri, Aug 16, 2013 at 10:45 AM, Doug Read doug.r...@qnary.comwrote:

 So you are right about the characters in the json, I remove most of
 the key, just leaving some valid json with the special characters, it
 produces the same error.

 A simple node program which reads the json from file and does
 JSON.parse; this succeeds.

 var fs = require(fs);

 fs.readFile(/tmp/bucket_export/s/e/a/searches_bad.json,
 function(err, data) {
   console.log(data);
   var json = JSON.parse(data);
   console.log(json);
 });

 So the javascript VM or something before/after it is having trouble
 parsing it but i am not sure how to debug from here.



 On Fri, Aug 16, 2013 at 1:58 AM, Christopher Meiklejohn 
 cmeiklej...@basho.com wrote:

 Hi Doug,

 Just going through your email again; I just noticed that there is a
 typo in the bucket name between those two commands:

 JavaScript:

 curl -XPOST http://localhost:8098/mapred -H 'Content-Type:
 application/json' -d '{inputs:[ [ -4536-9048-87ef2e48ddda,
 key_5ad26d0d-4d28-40ca-afcb-1c9895cc5c71 ] ], query:[ { map: {
 name: Riak.mapValuesJson, language: javascript } }, { reduce: 
 {
 name: Riak.filterNotFound, language: javascript } } ] }'

 Erlang:

 curl -XPOST http://localhost:8098/mapred -H 'Content-Type:
 application/json' -d '{inputs:[ [ 
 -50d7-4536-9048-87ef2e48ddda,
 key_5ad26d0d-4d28-40ca-afcb-1c9895cc5c71 ] ],
 query:[{map:{language:erlang,module:riak_kv_mapreduce,function:map_object_value}}
 ] }'

 Specifically, '-4536-9048-87ef2e48ddda' in the failed
 JavaScript command vs '-50d7-4536-9048-87ef2e48ddda' in the
 successful Erlang command.

 I've verified this is triggering not_founds in the dump you supplied.

 - Chris

 --
 Christopher Meiklejohn
 Software Engineer
 Basho Technologies, Inc.



 On Friday, August 16, 2013 at 1:36 AM, Doug Read wrote:

  No problem.
 
  Riak 1.3.1
  Have reproduced the error on 1.3.1 Mac osx and 1.4.1 on Ubuntu. I
 am on my phone now I'll get the build and package versions.
 
  That is the erlang mapreduce, that has always worked it is the
 javascript version that fails. The one I originally posted but basically
 any javascript

Re: Javascript MapReduce fails Erlang succeeds

2013-08-20 Thread Chris Meiklejohn
Hi Doug,

I've spent a good portion of the day tracing the execution of the Erlang
port driver with gdb and have definitely determined that Spidermonkey is
returning an empty response from the function call with a success value
from the execution.  My hunch is that this is definitely related to the
encoding of the object causing Spidermonkey to fail to execute correctly
(especially based on our previous testing).

As it's a pretty big undertaking to upgrade erlang_js to a newer version of
Spidermonkey (or Jagermonkey or V8), I'd definitely recommend writing a
script to enumerate your keys, decode and re-encode your objects as we've
already shown that that solution works.

- Chris


On Tue, Aug 20, 2013 at 11:27 AM, Chris Meiklejohn cmeiklej...@basho.comwrote:

 Hi Doug,

 While this is certainly possible, the JSON that's being used as the
 function argument does decode both with Spidermonkey (calling into the JSON
 decode function with that object directly), and with mochijson2.  It's a
 combination of the function application with that object as the functions
 argument.

 - Chris


 On Mon, Aug 19, 2013 at 11:23 PM, Doug Read doug.r...@qnary.com wrote:

 I noticed the value in some of the json fields have the single quotes and
 double quotes, is it possible they aren't being correctly escaped when
 being passed to spidermonkey?


 On Mon, Aug 19, 2013 at 5:33 PM, Chris Meiklejohn 
 cmeiklej...@basho.comwrote:

 Hello Doug,

 I've verified that the problem is not related to that particular parsing
 function, as the following JavaScript MapReduce code will trigger the
 exception:

 { map: {language: javascript, source: function(value, keyData,
 arg) { return [value]; } }

 Specifically, what's happening inside of the erlang_js module is this
 function is being turned into an anonymous immediately invoking function
 expression like such:

 (function(value, keyData, arg) { return [value]; })(RIAK_OBJECT_HERE)

 This string is then marshalled and called through the Erlang port driver
 to Spidermonkey.  The response returned is the following:

 {ok, }

 This then causes the js_mochijson2 decode to fail, because it's not
 defined over empty binary objects.

 I've verified that this is only the behavior with the object you
 provided, which leads me to believe that something inside of Spidermonkey
 is blowing up, which is triggering the empty binary response.

 I'm going to continue tracking it down, however, I'd advise moving
 forward to switch to Erlang-based MapReduce jobs, which perform much
 better, as they don't introduce overhead for serialization/deserialization
 and don't require the use of the JavaScript virtual machine.

 - Chris



 On Mon, Aug 19, 2013 at 4:14 PM, Chris Meiklejohn cmeiklej...@basho.com
  wrote:

 Hi Doug,

 Can you shoot over the multi get job you are using?

 - Chris


 On Mon, Aug 19, 2013 at 4:11 PM, Doug Read doug.r...@qnary.com wrote:

 Hi Chris,

 I appreciate the help.  Please let me know if I can help in anyway.
  For now I just switched to a multi get.

 thanks
 doug


 On Mon, Aug 19, 2013 at 4:09 PM, Chris Meiklejohn 
 cmeiklej...@basho.com wrote:

 Hi Doug,

 After loading your backup, I can trigger the crash through the
 JavaScript map/reduce job.  However, if I do the following:

 {ok, Client} = riak:local_client().
 {ok, O} = Client:get(BUCKET, KEY).

 both of these calls succeed:

 js_mochijson2:decode(riak_object:get_values(O)).
 mochijson2:decode(riak_object:get_values(O)).

 I'm continuing to track down where the crash is occurring, but it
 appears to be something related to erlang_js.

 - Chris



 On Fri, Aug 16, 2013 at 10:45 AM, Doug Read doug.r...@qnary.comwrote:

 So you are right about the characters in the json, I remove most of
 the key, just leaving some valid json with the special characters, it
 produces the same error.

 A simple node program which reads the json from file and does
 JSON.parse; this succeeds.

 var fs = require(fs);

 fs.readFile(/tmp/bucket_export/s/e/a/searches_bad.json,
 function(err, data) {
   console.log(data);
   var json = JSON.parse(data);
   console.log(json);
 });

 So the javascript VM or something before/after it is having trouble
 parsing it but i am not sure how to debug from here.



 On Fri, Aug 16, 2013 at 1:58 AM, Christopher Meiklejohn 
 cmeiklej...@basho.com wrote:

 Hi Doug,

 Just going through your email again; I just noticed that there is a
 typo in the bucket name between those two commands:

 JavaScript:

 curl -XPOST http://localhost:8098/mapred -H 'Content-Type:
 application/json' -d '{inputs:[ [ -4536-9048-87ef2e48ddda,
 key_5ad26d0d-4d28-40ca-afcb-1c9895cc5c71 ] ], query:[ { map: {
 name: Riak.mapValuesJson, language: javascript } }, { 
 reduce: {
 name: Riak.filterNotFound, language: javascript } } ] }'

 Erlang:

 curl -XPOST http://localhost:8098/mapred -H 'Content-Type:
 application/json' -d '{inputs:[ [ 
 -50d7-4536-9048-87ef2e48ddda,
 key_5ad26d0d-4d28-40ca-afcb-1c9895cc5c71

Re: Javascript MapReduce fails Erlang succeeds

2013-08-19 Thread Chris Meiklejohn
Hi Doug,

After loading your backup, I can trigger the crash through the JavaScript
map/reduce job.  However, if I do the following:

{ok, Client} = riak:local_client().
{ok, O} = Client:get(BUCKET, KEY).

both of these calls succeed:

js_mochijson2:decode(riak_object:get_values(O)).
mochijson2:decode(riak_object:get_values(O)).

I'm continuing to track down where the crash is occurring, but it appears
to be something related to erlang_js.

- Chris



On Fri, Aug 16, 2013 at 10:45 AM, Doug Read doug.r...@qnary.com wrote:

 So you are right about the characters in the json, I remove most of the
 key, just leaving some valid json with the special characters, it produces
 the same error.

 A simple node program which reads the json from file and does JSON.parse;
 this succeeds.

 var fs = require(fs);

 fs.readFile(/tmp/bucket_export/s/e/a/searches_bad.json, function(err,
 data) {
   console.log(data);
   var json = JSON.parse(data);
   console.log(json);
 });

 So the javascript VM or something before/after it is having trouble
 parsing it but i am not sure how to debug from here.



 On Fri, Aug 16, 2013 at 1:58 AM, Christopher Meiklejohn 
 cmeiklej...@basho.com wrote:

 Hi Doug,

 Just going through your email again; I just noticed that there is a typo
 in the bucket name between those two commands:

 JavaScript:

 curl -XPOST http://localhost:8098/mapred -H 'Content-Type:
 application/json' -d '{inputs:[ [ -4536-9048-87ef2e48ddda,
 key_5ad26d0d-4d28-40ca-afcb-1c9895cc5c71 ] ], query:[ { map: {
 name: Riak.mapValuesJson, language: javascript } }, { reduce: {
 name: Riak.filterNotFound, language: javascript } } ] }'

 Erlang:

 curl -XPOST http://localhost:8098/mapred -H 'Content-Type:
 application/json' -d '{inputs:[ [ -50d7-4536-9048-87ef2e48ddda,
 key_5ad26d0d-4d28-40ca-afcb-1c9895cc5c71 ] ],
 query:[{map:{language:erlang,module:riak_kv_mapreduce,function:map_object_value}}
 ] }'

 Specifically, '-4536-9048-87ef2e48ddda' in the failed JavaScript
 command vs '-50d7-4536-9048-87ef2e48ddda' in the successful Erlang
 command.

 I've verified this is triggering not_founds in the dump you supplied.

 - Chris

 --
 Christopher Meiklejohn
 Software Engineer
 Basho Technologies, Inc.



 On Friday, August 16, 2013 at 1:36 AM, Doug Read wrote:

  No problem.
 
  Riak 1.3.1
  Have reproduced the error on 1.3.1 Mac osx and 1.4.1 on Ubuntu. I am on
 my phone now I'll get the build and package versions.
 
  That is the erlang mapreduce, that has always worked it is the
 javascript version that fails. The one I originally posted but basically
 any javascript mapreduce which takes that bucket key as input.
 
  On Friday, August 16, 2013, Christopher Meiklejohn wrote:
   Hi Doug,
  
   First, my apologies. I confused two email responses I was writing,
 and that's why my previous e-mail was a bit out of context.
  
   I've loaded your backup file into a locally built cluster here off of
 the Riak 1.2 branch, but I'm still unable to reproduce the issue using the
 following map/reduce command:
  
   curl -XPOST http://localhost:8098/mapred -H 'Content-Type:
 application/json' -d '{inputs:[ [ -50d7-4536-9048-87ef2e48ddda,
 key_5ad26d0d-4d28-40ca-afcb-1c9895cc5c71 ] ],
 query:[{map:{language:erlang,module:riak_kv_mapreduce,function:map_object_value}}
 ] }'
  
   Can you please provide which operating system, build, and package
 version of Riak you are running?
  
   - Chris
  
   --
   Christopher Meiklejohn
   Software Engineer
   Basho Technologies, Inc.
  
  
  
   On Friday, August 16, 2013 at 1:23 AM, Christopher Meiklejohn wrote:
  
Hi Doug,
   
Can you provide more information as to how you build the image with
 Vagrant so I can try to reproduce it? The configuration alone isn't going
 to be enough as this appears to be a systems related issue.
   
- Chris
   
--
Christopher Meiklejohn
Software Engineer
Basho Technologies, Inc.
   
   
   
On Friday, August 16, 2013 at 1:20 AM, Doug Read wrote:
   
 Hi Chris,

 I made a riak-admin backup of the key which reproduces the issue.
 I was wondering if you could give me some direction of how to debug the
 issue.

 thanks
 doug



 On Thu, Aug 15, 2013 at 3:41 PM, Chris Meiklejohn 
 cmeiklej...@basho.com (mailto:cmeiklej...@basho.com) wrote:
  The best guess I have at this point is probably something
 related to character encoding, but without a reproduction case, I'm not
 able to debug it any further.
 
  Good luck with the upgrade tonight!
 
  - Chris
 
 
  On Thu, Aug 15, 2013 at 3:39 PM, Doug Read 
  doug.r...@qnary.com(mailto:
 doug.r...@qnary.com) wrote:
   I redirected the output of curl into a file on an ubuntu box.
 I am upgrading the cluster to 1.4.1 tonight. To your point I PUT the value
 into the key locally (3 node cluster) and couldn't reproduce either. Also i
 am turning on the java vm logging

Re: Javascript MapReduce fails Erlang succeeds

2013-08-19 Thread Chris Meiklejohn
Hi Doug,

Can you shoot over the multi get job you are using?

- Chris


On Mon, Aug 19, 2013 at 4:11 PM, Doug Read doug.r...@qnary.com wrote:

 Hi Chris,

 I appreciate the help.  Please let me know if I can help in anyway.  For
 now I just switched to a multi get.

 thanks
 doug


 On Mon, Aug 19, 2013 at 4:09 PM, Chris Meiklejohn 
 cmeiklej...@basho.comwrote:

 Hi Doug,

 After loading your backup, I can trigger the crash through the JavaScript
 map/reduce job.  However, if I do the following:

 {ok, Client} = riak:local_client().
 {ok, O} = Client:get(BUCKET, KEY).

 both of these calls succeed:

 js_mochijson2:decode(riak_object:get_values(O)).
 mochijson2:decode(riak_object:get_values(O)).

 I'm continuing to track down where the crash is occurring, but it appears
 to be something related to erlang_js.

 - Chris



 On Fri, Aug 16, 2013 at 10:45 AM, Doug Read doug.r...@qnary.com wrote:

 So you are right about the characters in the json, I remove most of the
 key, just leaving some valid json with the special characters, it produces
 the same error.

 A simple node program which reads the json from file and does
 JSON.parse; this succeeds.

 var fs = require(fs);

 fs.readFile(/tmp/bucket_export/s/e/a/searches_bad.json, function(err,
 data) {
   console.log(data);
   var json = JSON.parse(data);
   console.log(json);
 });

 So the javascript VM or something before/after it is having trouble
 parsing it but i am not sure how to debug from here.



 On Fri, Aug 16, 2013 at 1:58 AM, Christopher Meiklejohn 
 cmeiklej...@basho.com wrote:

 Hi Doug,

 Just going through your email again; I just noticed that there is a
 typo in the bucket name between those two commands:

 JavaScript:

 curl -XPOST http://localhost:8098/mapred -H 'Content-Type:
 application/json' -d '{inputs:[ [ -4536-9048-87ef2e48ddda,
 key_5ad26d0d-4d28-40ca-afcb-1c9895cc5c71 ] ], query:[ { map: {
 name: Riak.mapValuesJson, language: javascript } }, { reduce: {
 name: Riak.filterNotFound, language: javascript } } ] }'

 Erlang:

 curl -XPOST http://localhost:8098/mapred -H 'Content-Type:
 application/json' -d '{inputs:[ [ -50d7-4536-9048-87ef2e48ddda,
 key_5ad26d0d-4d28-40ca-afcb-1c9895cc5c71 ] ],
 query:[{map:{language:erlang,module:riak_kv_mapreduce,function:map_object_value}}
 ] }'

 Specifically, '-4536-9048-87ef2e48ddda' in the failed
 JavaScript command vs '-50d7-4536-9048-87ef2e48ddda' in the
 successful Erlang command.

 I've verified this is triggering not_founds in the dump you supplied.

 - Chris

 --
 Christopher Meiklejohn
 Software Engineer
 Basho Technologies, Inc.



 On Friday, August 16, 2013 at 1:36 AM, Doug Read wrote:

  No problem.
 
  Riak 1.3.1
  Have reproduced the error on 1.3.1 Mac osx and 1.4.1 on Ubuntu. I am
 on my phone now I'll get the build and package versions.
 
  That is the erlang mapreduce, that has always worked it is the
 javascript version that fails. The one I originally posted but basically
 any javascript mapreduce which takes that bucket key as input.
 
  On Friday, August 16, 2013, Christopher Meiklejohn wrote:
   Hi Doug,
  
   First, my apologies. I confused two email responses I was writing,
 and that's why my previous e-mail was a bit out of context.
  
   I've loaded your backup file into a locally built cluster here off
 of the Riak 1.2 branch, but I'm still unable to reproduce the issue using
 the following map/reduce command:
  
   curl -XPOST http://localhost:8098/mapred -H 'Content-Type:
 application/json' -d '{inputs:[ [ -50d7-4536-9048-87ef2e48ddda,
 key_5ad26d0d-4d28-40ca-afcb-1c9895cc5c71 ] ],
 query:[{map:{language:erlang,module:riak_kv_mapreduce,function:map_object_value}}
 ] }'
  
   Can you please provide which operating system, build, and package
 version of Riak you are running?
  
   - Chris
  
   --
   Christopher Meiklejohn
   Software Engineer
   Basho Technologies, Inc.
  
  
  
   On Friday, August 16, 2013 at 1:23 AM, Christopher Meiklejohn wrote:
  
Hi Doug,
   
Can you provide more information as to how you build the image
 with Vagrant so I can try to reproduce it? The configuration alone isn't
 going to be enough as this appears to be a systems related issue.
   
- Chris
   
--
Christopher Meiklejohn
Software Engineer
Basho Technologies, Inc.
   
   
   
On Friday, August 16, 2013 at 1:20 AM, Doug Read wrote:
   
 Hi Chris,

 I made a riak-admin backup of the key which reproduces the
 issue. I was wondering if you could give me some direction of how to debug
 the issue.

 thanks
 doug



 On Thu, Aug 15, 2013 at 3:41 PM, Chris Meiklejohn 
 cmeiklej...@basho.com (mailto:cmeiklej...@basho.com) wrote:
  The best guess I have at this point is probably something
 related to character encoding, but without a reproduction case, I'm not
 able to debug it any further.
 
  Good luck with the upgrade tonight!
 
  - Chris

Re: Yokozuna 0.8.0 release on omnios - no Yokozuna, no Riak Control

2013-08-16 Thread Chris Meiklejohn
Great!  Glad it's resolved.

- Chris


On Fri, Aug 16, 2013 at 10:35 AM, Dave Martorana d...@flyclops.com wrote:

 Chris,

 I added the node name to /etc/hosts and everything worked like a charm. I
 appreciate the help - this was a bizarre one for me, and I would never have
 looked in the console.

 Cheers,

 Dave


 On Thu, Aug 15, 2013 at 5:30 PM, Chris Meiklejohn 
 cmeiklej...@basho.comwrote:

 It appears that Yokozuna is failing to start because it can't resolve the
 local host name.  Can you verify that /etc/hosts looks correct, and that
 you have nameservers properly configured on that host?

 - Chris


 On Thu, Aug 15, 2013 at 2:05 PM, Dave Martorana d...@flyclops.comwrote:

 Hi Chris,

 After waiting for about 5 minutes, this is the entirety of the output. I
 never do get a console prompt (I tried hitting enter, etc.)

 riak% bin/riak console
 Node 'riak@127.0.0.1' not responding to pings.
 config is OK
 Exec: /riak/riak/rel/riak/bin/../erts-5.9.2/bin/erlexec -boot
 /riak/riak/rel/riak/bin/../releases/1.4.0/riak  -config
 /riak/riak/rel/riak/bin/../etc/app.config -pa
 /riak/riak/rel/riak/bin/../lib/basho-patches -args_file
 /riak/riak/rel/riak/bin/../etc/vm.args -- console
 Root: /riak/riak/rel/riak/bin/..
 Erlang R15B02 (erts-5.9.2) [source] [64-bit] [smp:1:1]
 [async-threads:64] [kernel-poll:true]


 So, I hit ctrl-c and printed the proc info, and found the following:

 Message queue: [{#Port0.7016,{data,Error: Exception thrown by the
 agent }},{#Port0.7016,{data,: java.net.MalformedURLException: Local
 host name unknown: java.net.UnknownHostException: riak: riak: node name or
 service name not
 known}},{#Port0.7016,{data,\n}},{#Port0.7016,{exit_status,1}},{'EXIT',#Port0.7016,normal}]

 So, maybe finally I have a clue. Local host name unknown? hostname
 returns riak...

 Dave




 On Thu, Aug 15, 2013 at 4:09 PM, Chris Meiklejohn cmeiklej...@basho.com
  wrote:

 Hi Dave,

 I just built Yokozuna 0.8.0 from the packages available, and noticed
 some behavior which might be related.  Because the Yokozuna OTP application
 starts before Riak Control and it's dependencies, there is a short period
 where Riak Control will be unavailable.  Can you try the following:

 1. Start riak via 'riak console'.
 2. Wait until you see the something similar to the following:
 '13:06:08.553 [info] Application riak_control started on node '
 dev1@127.0.0.1'
 3. Try accessing Riak Control.

 - Chris



 On Wed, Aug 14, 2013 at 4:02 PM, Dave Martorana d...@flyclops.comwrote:

 Also, not that this makes any difference, but I noticed that
 http://localhost:8098/stats when in master has a disks entry in the
 dictionary while the 0.8.0 Yokozuna build is missing that dictionary entry
 from stats. Other than that, everything looks similar.

 Dave


 On Wed, Aug 14, 2013 at 6:58 PM, Dave Martorana d...@flyclops.comwrote:

 Here is my build (make) log

 https://gist.github.com/themartorana/6e9f8e49a50b70f56333

 and make rel log

 https://gist.github.com/themartorana/13dcb72306c9ab880c9f

 using the 0.8.0 .tar.gz download of Yokozuna.

 Thanks,

 Dave


 On Wed, Aug 14, 2013 at 6:54 PM, Dave Martorana d...@flyclops.comwrote:

 Hi Chris,

 I've built from the official Yokozuna 0.8.0 download, as well
 as rz-yz-merge-1.4.0 and rz-yz-merge-master branches off of the riak 
 repo.

 When I build from master, Riak Control works fine.

 Thanks!

 Dave


 On Wed, Aug 14, 2013 at 6:52 PM, Christopher Meiklejohn 
 cmeiklej...@basho.com wrote:

 Hi Dave,

 Can you provide the tag, or SHA, that you've built Riak from?

 - Chris

 --
 Christopher Meiklejohn
 Software Engineer
 Basho Technologies, Inc.



 On Wednesday, August 14, 2013 at 3:45 PM, Dave Martorana wrote:

  Hi all,
 
  I have Riak building on omnios, with Erlang R15B02, and Oracle
 JDK 1.7.0_25.
 
  Everything appears to be building just fine. However... even
 though I have Yokozuna and Riak Control enabled in my app.config, 
 neither
 are able to be used or - it seems - start up. I can confirm that kv is
 working fine.
 
  app.config:
 https://gist.github.com/themartorana/eb503f1d7fca798fc6c3
  console.log:
 https://gist.github.com/themartorana/7c517c0ba5549c35540a
 
  Oddly, console.log doesn't show any mention of Riak Control. It
 does show the startup line for Solr at the end. However, the webapp 
 only
 has the following links:
 
  riak_kv_wm_buckets
  riak_kv_wm_buckets
  riak_kv_wm_counter
  riak_kv_wm_index
  riak_kv_wm_keylist
  riak_kv_wm_link_walker
  riak_kv_wm_link_walker
  riak_kv_wm_mapred
  riak_kv_wm_object
  riak_kv_wm_object
  riak_kv_wm_ping
  riak_kv_wm_props
  riak_kv_wm_stats
 
  There is no admin/control, and no yz. Any attempt to link to
 /yz/* or /admin results in a 404.
 
  I'm at a bit of a loss. There is nothing in error.log or
 crash.log. yokozuna.jar builds fine. Riak Control appears to be built 
 fine.
 
  Any thoughts?
 
  Cheers,
 
  Dave
 
  P.S. - I have also built the git rz-yz-merge-1.4.0 branch

Re: Javascript MapReduce fails Erlang succeeds

2013-08-15 Thread Chris Meiklejohn
Hi Doug,

Can you provide a sample of the JSON that you're storing in these objects?
 It appears that mochijson2's tokenizer is crashing because it thinks the
JSON is not valid, where the Spidermonkey parsing is succeeding.

- Chris


On Wed, Aug 14, 2013 at 10:58 AM, Doug Read doug.r...@qnary.com wrote:

 The following MapReduce job fails using javascript but succeeds when using
 erlang.

 Riak 1.2.0 2012-0806 Debian x86_64
 3 nodes, n_val=3

 Riak diag gives large list of
 [warning] The following preflists do not satisfy the n_val:
 Not really sure what this means but thought i would share.

 JAVASCRIPT:
 curl -XPOST http://localhost:8098/mapred -H 'Content-Type:
 application/json' -d '{inputs:[ [ -4536-9048-87ef2e48ddda,
 key_5ad26d0d-4d28-40ca-afcb-1c9895cc5c71 ] ], query:[ { map: {
 name: Riak.mapValuesJson, language: javascript } }, { reduce: {
 name: Riak.filterNotFound, language: javascript } } ] }'

 JAVASCRIPT RESULT:

 {phase:0,error:{{{badmatch,any},[{js_mochijson2,tokenize,2,[{file,\src/js_mochijson2.erl\},{line,507}]},{js_mochijson2,decode1,2,[{file,\src/js_mochijson2.erl\},{line,277}]},{js_mochijson2,json_decode,2,[{file,\src/js_mochijson2.erl\},{line,272}]},{js_driver,eval_js,3,[{file,\src/js_driver.erl\},{line,150}]},{riak_kv_js_vm,invoke_js,3,[{file,\src/riak_kv_js_vm.erl\},{line,275}]},{riak_kv_js_vm,handle_call,3,[{file,\src/riak_kv_js_vm.erl\},{line,144}]},{gen_server,handle_msg,5,[{file,\gen_server.erl\},{line,...}]},...]},...},input:{ok,{r_object,\-50d7-4536-9048-87ef2e48ddda\,\key_5ad26d0d-4d28-40ca-afcb-1c9895cc5c71\,[{r_content,{dict,6,16,16,8,80,48,{[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[]},{{[],[],[[\Links\]],[],[],[],[],[],[],[],[[\content-type\,97,112,112,108,105,99,97,116,105,111,110,47,106,115,111,110],[\X-Riak-VTag\,54,69,114,82,65,97,76,65,65,73,82,102,48,73,102,104,114,102,102,112,103,109]],[[\index\]],[],[[\X-Riak-Last-Modified\|{1375,51580,339577}]],[],[[...]]}}},...}],...},...},type:exit,stack:[{gen_server,call,3,[{file,\gen_server.erl\},{line,188}]},{riak_kv_mrc_map,map_js,3,[{file,\src/riak_kv_mrc_map.erl\},{line,192}]},{riak_kv_mrc_map,process,3,[{file,\src/riak_kv_mrc_map.erl\},{line,140}]},{riak_pipe_vnode_worker,process_input,3,[{file,\src/riak_pipe_vnode_worker.erl\},{line,445}]},{riak_pipe_vnode_worker,wait_for_input,2,[{file,\src/riak_pipe_vnode_worker.erl\},{line,377}]},{gen_fsm,handle_msg,7,[{file,\gen_fsm.erl\},{line,494}]},{proc_lib,init_p_do_apply,3,[{file,\proc_lib...\},...]}]}


 ERLANG:
 curl -XPOST http://localhost:8098/mapred -H 'Content-Type:
 application/json' -d '{inputs:[ [ -50d7-4536-9048-87ef2e48ddda,
 key_5ad26d0d-4d28-40ca-afcb-1c9895cc5c71 ] ],
 query:[{map:{language:erlang,module:riak_kv_mapreduce,function:map_object_value}}
 ] }'

 ERLANG RESULT:
 [{key:value}]

 Any ideas?

 ___
 riak-users mailing list
 riak-users@lists.basho.com
 http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com


___
riak-users mailing list
riak-users@lists.basho.com
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com


Re: Yokozuna 0.8.0 release on omnios - no Yokozuna, no Riak Control

2013-08-15 Thread Chris Meiklejohn
Hi Dave,

I just built Yokozuna 0.8.0 from the packages available, and noticed some
behavior which might be related.  Because the Yokozuna OTP application
starts before Riak Control and it's dependencies, there is a short period
where Riak Control will be unavailable.  Can you try the following:

1. Start riak via 'riak console'.
2. Wait until you see the something similar to the following: '13:06:08.553
[info] Application riak_control started on node 'dev1@127.0.0.1'
3. Try accessing Riak Control.

- Chris



On Wed, Aug 14, 2013 at 4:02 PM, Dave Martorana d...@flyclops.com wrote:

 Also, not that this makes any difference, but I noticed that
 http://localhost:8098/stats when in master has a disks entry in the
 dictionary while the 0.8.0 Yokozuna build is missing that dictionary entry
 from stats. Other than that, everything looks similar.

 Dave


 On Wed, Aug 14, 2013 at 6:58 PM, Dave Martorana d...@flyclops.com wrote:

 Here is my build (make) log

 https://gist.github.com/themartorana/6e9f8e49a50b70f56333

 and make rel log

 https://gist.github.com/themartorana/13dcb72306c9ab880c9f

 using the 0.8.0 .tar.gz download of Yokozuna.

 Thanks,

 Dave


 On Wed, Aug 14, 2013 at 6:54 PM, Dave Martorana d...@flyclops.comwrote:

 Hi Chris,

 I've built from the official Yokozuna 0.8.0 download, as well
 as rz-yz-merge-1.4.0 and rz-yz-merge-master branches off of the riak repo.

 When I build from master, Riak Control works fine.

 Thanks!

 Dave


 On Wed, Aug 14, 2013 at 6:52 PM, Christopher Meiklejohn 
 cmeiklej...@basho.com wrote:

 Hi Dave,

 Can you provide the tag, or SHA, that you've built Riak from?

 - Chris

 --
 Christopher Meiklejohn
 Software Engineer
 Basho Technologies, Inc.



 On Wednesday, August 14, 2013 at 3:45 PM, Dave Martorana wrote:

  Hi all,
 
  I have Riak building on omnios, with Erlang R15B02, and Oracle JDK
 1.7.0_25.
 
  Everything appears to be building just fine. However... even though I
 have Yokozuna and Riak Control enabled in my app.config, neither are able
 to be used or - it seems - start up. I can confirm that kv is working fine.
 
  app.config: https://gist.github.com/themartorana/eb503f1d7fca798fc6c3
  console.log:
 https://gist.github.com/themartorana/7c517c0ba5549c35540a
 
  Oddly, console.log doesn't show any mention of Riak Control. It does
 show the startup line for Solr at the end. However, the webapp only has the
 following links:
 
  riak_kv_wm_buckets
  riak_kv_wm_buckets
  riak_kv_wm_counter
  riak_kv_wm_index
  riak_kv_wm_keylist
  riak_kv_wm_link_walker
  riak_kv_wm_link_walker
  riak_kv_wm_mapred
  riak_kv_wm_object
  riak_kv_wm_object
  riak_kv_wm_ping
  riak_kv_wm_props
  riak_kv_wm_stats
 
  There is no admin/control, and no yz. Any attempt to link to /yz/* or
 /admin results in a 404.
 
  I'm at a bit of a loss. There is nothing in error.log or crash.log.
 yokozuna.jar builds fine. Riak Control appears to be built fine.
 
  Any thoughts?
 
  Cheers,
 
  Dave
 
  P.S. - I have also built the git rz-yz-merge-1.4.0 branch of the riak
 repo on github just to be sure. Same result. Building Riak from master -
 while obviously not having Yokozuna - does have Riak Control enabled.
 Thanks!
  ___
  riak-users mailing list
  riak-users@lists.basho.com (mailto:riak-users@lists.basho.com)
  http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com







___
riak-users mailing list
riak-users@lists.basho.com
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com


Re: Yokozuna 0.8.0 release on omnios - no Yokozuna, no Riak Control

2013-08-15 Thread Chris Meiklejohn
It appears that Yokozuna is failing to start because it can't resolve the
local host name.  Can you verify that /etc/hosts looks correct, and that
you have nameservers properly configured on that host?

- Chris


On Thu, Aug 15, 2013 at 2:05 PM, Dave Martorana d...@flyclops.com wrote:

 Hi Chris,

 After waiting for about 5 minutes, this is the entirety of the output. I
 never do get a console prompt (I tried hitting enter, etc.)

 riak% bin/riak console
 Node 'riak@127.0.0.1' not responding to pings.
 config is OK
 Exec: /riak/riak/rel/riak/bin/../erts-5.9.2/bin/erlexec -boot
 /riak/riak/rel/riak/bin/../releases/1.4.0/riak  -config
 /riak/riak/rel/riak/bin/../etc/app.config -pa
 /riak/riak/rel/riak/bin/../lib/basho-patches -args_file
 /riak/riak/rel/riak/bin/../etc/vm.args -- console
 Root: /riak/riak/rel/riak/bin/..
 Erlang R15B02 (erts-5.9.2) [source] [64-bit] [smp:1:1] [async-threads:64]
 [kernel-poll:true]


 So, I hit ctrl-c and printed the proc info, and found the following:

 Message queue: [{#Port0.7016,{data,Error: Exception thrown by the agent
 }},{#Port0.7016,{data,: java.net.MalformedURLException: Local host name
 unknown: java.net.UnknownHostException: riak: riak: node name or service
 name not
 known}},{#Port0.7016,{data,\n}},{#Port0.7016,{exit_status,1}},{'EXIT',#Port0.7016,normal}]

 So, maybe finally I have a clue. Local host name unknown? hostname
 returns riak...

 Dave




 On Thu, Aug 15, 2013 at 4:09 PM, Chris Meiklejohn 
 cmeiklej...@basho.comwrote:

 Hi Dave,

 I just built Yokozuna 0.8.0 from the packages available, and noticed some
 behavior which might be related.  Because the Yokozuna OTP application
 starts before Riak Control and it's dependencies, there is a short period
 where Riak Control will be unavailable.  Can you try the following:

 1. Start riak via 'riak console'.
 2. Wait until you see the something similar to the following:
 '13:06:08.553 [info] Application riak_control started on node '
 dev1@127.0.0.1'
 3. Try accessing Riak Control.

 - Chris



 On Wed, Aug 14, 2013 at 4:02 PM, Dave Martorana d...@flyclops.comwrote:

 Also, not that this makes any difference, but I noticed that
 http://localhost:8098/stats when in master has a disks entry in the
 dictionary while the 0.8.0 Yokozuna build is missing that dictionary entry
 from stats. Other than that, everything looks similar.

 Dave


 On Wed, Aug 14, 2013 at 6:58 PM, Dave Martorana d...@flyclops.comwrote:

 Here is my build (make) log

 https://gist.github.com/themartorana/6e9f8e49a50b70f56333

 and make rel log

 https://gist.github.com/themartorana/13dcb72306c9ab880c9f

 using the 0.8.0 .tar.gz download of Yokozuna.

 Thanks,

 Dave


 On Wed, Aug 14, 2013 at 6:54 PM, Dave Martorana d...@flyclops.comwrote:

 Hi Chris,

 I've built from the official Yokozuna 0.8.0 download, as well
 as rz-yz-merge-1.4.0 and rz-yz-merge-master branches off of the riak repo.

 When I build from master, Riak Control works fine.

 Thanks!

 Dave


 On Wed, Aug 14, 2013 at 6:52 PM, Christopher Meiklejohn 
 cmeiklej...@basho.com wrote:

 Hi Dave,

 Can you provide the tag, or SHA, that you've built Riak from?

 - Chris

 --
 Christopher Meiklejohn
 Software Engineer
 Basho Technologies, Inc.



 On Wednesday, August 14, 2013 at 3:45 PM, Dave Martorana wrote:

  Hi all,
 
  I have Riak building on omnios, with Erlang R15B02, and Oracle JDK
 1.7.0_25.
 
  Everything appears to be building just fine. However... even though
 I have Yokozuna and Riak Control enabled in my app.config, neither are 
 able
 to be used or - it seems - start up. I can confirm that kv is working 
 fine.
 
  app.config:
 https://gist.github.com/themartorana/eb503f1d7fca798fc6c3
  console.log:
 https://gist.github.com/themartorana/7c517c0ba5549c35540a
 
  Oddly, console.log doesn't show any mention of Riak Control. It
 does show the startup line for Solr at the end. However, the webapp only
 has the following links:
 
  riak_kv_wm_buckets
  riak_kv_wm_buckets
  riak_kv_wm_counter
  riak_kv_wm_index
  riak_kv_wm_keylist
  riak_kv_wm_link_walker
  riak_kv_wm_link_walker
  riak_kv_wm_mapred
  riak_kv_wm_object
  riak_kv_wm_object
  riak_kv_wm_ping
  riak_kv_wm_props
  riak_kv_wm_stats
 
  There is no admin/control, and no yz. Any attempt to link to /yz/*
 or /admin results in a 404.
 
  I'm at a bit of a loss. There is nothing in error.log or crash.log.
 yokozuna.jar builds fine. Riak Control appears to be built fine.
 
  Any thoughts?
 
  Cheers,
 
  Dave
 
  P.S. - I have also built the git rz-yz-merge-1.4.0 branch of the
 riak repo on github just to be sure. Same result. Building Riak from 
 master
 - while obviously not having Yokozuna - does have Riak Control enabled.
 Thanks!
  ___
  riak-users mailing list
  riak-users@lists.basho.com (mailto:riak-users@lists.basho.com)
  http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com

Re: Javascript MapReduce fails Erlang succeeds

2013-08-15 Thread Chris Meiklejohn
Hi Doug,

I've configured a Riak 1.2 cluster, and run the aforementioned map-reduce
job in Erlang and I can't trigger the crash.  I'm getting the expected
results of the map/reduce job.  How did you send me the object that you
provided off-list?

- Chris


On Thu, Aug 15, 2013 at 12:36 PM, Chris Meiklejohn cmeiklej...@basho.comwrote:

 Hi Doug,

 Can you provide a sample of the JSON that you're storing in these objects?
  It appears that mochijson2's tokenizer is crashing because it thinks the
 JSON is not valid, where the Spidermonkey parsing is succeeding.

 - Chris


 On Wed, Aug 14, 2013 at 10:58 AM, Doug Read doug.r...@qnary.com wrote:

 The following MapReduce job fails using javascript but succeeds when
 using erlang.

 Riak 1.2.0 2012-0806 Debian x86_64
 3 nodes, n_val=3

 Riak diag gives large list of
 [warning] The following preflists do not satisfy the n_val:
 Not really sure what this means but thought i would share.

 JAVASCRIPT:
 curl -XPOST http://localhost:8098/mapred -H 'Content-Type:
 application/json' -d '{inputs:[ [ -4536-9048-87ef2e48ddda,
 key_5ad26d0d-4d28-40ca-afcb-1c9895cc5c71 ] ], query:[ { map: {
 name: Riak.mapValuesJson, language: javascript } }, { reduce: {
 name: Riak.filterNotFound, language: javascript } } ] }'

 JAVASCRIPT RESULT:

 {phase:0,error:{{{badmatch,any},[{js_mochijson2,tokenize,2,[{file,\src/js_mochijson2.erl\},{line,507}]},{js_mochijson2,decode1,2,[{file,\src/js_mochijson2.erl\},{line,277}]},{js_mochijson2,json_decode,2,[{file,\src/js_mochijson2.erl\},{line,272}]},{js_driver,eval_js,3,[{file,\src/js_driver.erl\},{line,150}]},{riak_kv_js_vm,invoke_js,3,[{file,\src/riak_kv_js_vm.erl\},{line,275}]},{riak_kv_js_vm,handle_call,3,[{file,\src/riak_kv_js_vm.erl\},{line,144}]},{gen_server,handle_msg,5,[{file,\gen_server.erl\},{line,...}]},...]},...},input:{ok,{r_object,\-50d7-4536-9048-87ef2e48ddda\,\key_5ad26d0d-4d28-40ca-afcb-1c9895cc5c71\,[{r_content,{dict,6,16,16,8,80,48,{[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[]},{{[],[],[[\Links\]],[],[],[],[],[],[],[],[[\content-type\,97,112,112,108,105,99,97,116,105,111,110,47,106,115,111,110],[\X-Riak-VTag\,54,69,114,82,65,97,76,65,65,73,82,102,48,73,102,104,114,102,102,112,103,109]],[[\index\]],[],[[\X-Riak-Last-Modified\|{1375,51580,339577}]],[],[[...]]}}},...}],...},...},type:exit,stack:[{gen_server,call,3,[{file,\gen_server.erl\},{line,188}]},{riak_kv_mrc_map,map_js,3,[{file,\src/riak_kv_mrc_map.erl\},{line,192}]},{riak_kv_mrc_map,process,3,[{file,\src/riak_kv_mrc_map.erl\},{line,140}]},{riak_pipe_vnode_worker,process_input,3,[{file,\src/riak_pipe_vnode_worker.erl\},{line,445}]},{riak_pipe_vnode_worker,wait_for_input,2,[{file,\src/riak_pipe_vnode_worker.erl\},{line,377}]},{gen_fsm,handle_msg,7,[{file,\gen_fsm.erl\},{line,494}]},{proc_lib,init_p_do_apply,3,[{file,\proc_lib...\},...]}]}


 ERLANG:
 curl -XPOST http://localhost:8098/mapred -H 'Content-Type:
 application/json' -d '{inputs:[ [ -50d7-4536-9048-87ef2e48ddda,
 key_5ad26d0d-4d28-40ca-afcb-1c9895cc5c71 ] ],
 query:[{map:{language:erlang,module:riak_kv_mapreduce,function:map_object_value}}
 ] }'

 ERLANG RESULT:
 [{key:value}]

 Any ideas?

 ___
 riak-users mailing list
 riak-users@lists.basho.com
 http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com



___
riak-users mailing list
riak-users@lists.basho.com
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com


Re: Javascript MapReduce fails Erlang succeeds

2013-08-15 Thread Chris Meiklejohn
The best guess I have at this point is probably something related to
character encoding, but without a reproduction case, I'm not able to debug
it any further.

Good luck with the upgrade tonight!

- Chris


On Thu, Aug 15, 2013 at 3:39 PM, Doug Read doug.r...@qnary.com wrote:

 I redirected the output of curl into a file on an ubuntu box.  I am
 upgrading the cluster to 1.4.1 tonight.  To your point I PUT the value into
 the key locally (3 node cluster) and couldn't reproduce either.  Also i am
 turning on the java vm logging.


 On Thu, Aug 15, 2013 at 3:33 PM, Chris Meiklejohn 
 cmeiklej...@basho.comwrote:

 Hi Doug,

 I've configured a Riak 1.2 cluster, and run the aforementioned map-reduce
 job in Erlang and I can't trigger the crash.  I'm getting the expected
 results of the map/reduce job.  How did you send me the object that you
 provided off-list?

 - Chris


 On Thu, Aug 15, 2013 at 12:36 PM, Chris Meiklejohn cmeiklej...@basho.com
  wrote:

 Hi Doug,

 Can you provide a sample of the JSON that you're storing in these
 objects?  It appears that mochijson2's tokenizer is crashing because it
 thinks the JSON is not valid, where the Spidermonkey parsing is succeeding.

 - Chris


 On Wed, Aug 14, 2013 at 10:58 AM, Doug Read doug.r...@qnary.com wrote:

 The following MapReduce job fails using javascript but succeeds when
 using erlang.

 Riak 1.2.0 2012-0806 Debian x86_64
 3 nodes, n_val=3

 Riak diag gives large list of
 [warning] The following preflists do not satisfy the n_val:
 Not really sure what this means but thought i would share.

 JAVASCRIPT:
 curl -XPOST http://localhost:8098/mapred -H 'Content-Type:
 application/json' -d '{inputs:[ [ -4536-9048-87ef2e48ddda,
 key_5ad26d0d-4d28-40ca-afcb-1c9895cc5c71 ] ], query:[ { map: {
 name: Riak.mapValuesJson, language: javascript } }, { reduce: {
 name: Riak.filterNotFound, language: javascript } } ] }'

 JAVASCRIPT RESULT:

 {phase:0,error:{{{badmatch,any},[{js_mochijson2,tokenize,2,[{file,\src/js_mochijson2.erl\},{line,507}]},{js_mochijson2,decode1,2,[{file,\src/js_mochijson2.erl\},{line,277}]},{js_mochijson2,json_decode,2,[{file,\src/js_mochijson2.erl\},{line,272}]},{js_driver,eval_js,3,[{file,\src/js_driver.erl\},{line,150}]},{riak_kv_js_vm,invoke_js,3,[{file,\src/riak_kv_js_vm.erl\},{line,275}]},{riak_kv_js_vm,handle_call,3,[{file,\src/riak_kv_js_vm.erl\},{line,144}]},{gen_server,handle_msg,5,[{file,\gen_server.erl\},{line,...}]},...]},...},input:{ok,{r_object,\-50d7-4536-9048-87ef2e48ddda\,\key_5ad26d0d-4d28-40ca-afcb-1c9895cc5c71\,[{r_content,{dict,6,16,16,8,80,48,{[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[]},{{[],[],[[\Links\]],[],[],[],[],[],[],[],[[\content-type\,97,112,112,108,105,99,97,116,105,111,110,47,106,115,111,110],[\X-Riak-VTag\,54,69,114,82,65,97,76,65,65,73,82,102,48,73,102,104,114,102,102,112,103,109]],[[\index\]],[],[[\X-Riak-Last-Modified\|{1375,51580,339577}]],[],[[...]]}}},...}],...},...},type:exit,stack:[{gen_server,call,3,[{file,\gen_server.erl\},{line,188}]},{riak_kv_mrc_map,map_js,3,[{file,\src/riak_kv_mrc_map.erl\},{line,192}]},{riak_kv_mrc_map,process,3,[{file,\src/riak_kv_mrc_map.erl\},{line,140}]},{riak_pipe_vnode_worker,process_input,3,[{file,\src/riak_pipe_vnode_worker.erl\},{line,445}]},{riak_pipe_vnode_worker,wait_for_input,2,[{file,\src/riak_pipe_vnode_worker.erl\},{line,377}]},{gen_fsm,handle_msg,7,[{file,\gen_fsm.erl\},{line,494}]},{proc_lib,init_p_do_apply,3,[{file,\proc_lib...\},...]}]}


 ERLANG:
 curl -XPOST http://localhost:8098/mapred -H 'Content-Type:
 application/json' -d '{inputs:[ [ -50d7-4536-9048-87ef2e48ddda,
 key_5ad26d0d-4d28-40ca-afcb-1c9895cc5c71 ] ],
 query:[{map:{language:erlang,module:riak_kv_mapreduce,function:map_object_value}}
 ] }'

 ERLANG RESULT:
 [{key:value}]

 Any ideas?

 ___
 riak-users mailing list
 riak-users@lists.basho.com
 http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com





___
riak-users mailing list
riak-users@lists.basho.com
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com


Re: riak control post upgrade

2013-08-08 Thread Chris Meiklejohn
Hi Toby,

The error you are seeing is a bug which I'm working to resolve.  We're
currently in the process of reviewing a test to ensure against possible
regressions, [1] two bug fixes, [2] [3] and a modification to the copy to
clarify what incompatible means. [4]

For now, it's safe to assume that the 1.4.1 incompatible message is only
going to prevent you from inspecting details such as RAM usage in the UI
and shouldn't affect things such as cluster management.

Sorry for the inconvenience.

[1] https://github.com/basho/riak_test/pull/347
[2] https://github.com/basho/riak_control/pull/132
[3] https://github.com/basho/riak_control/pull/133
[4] https://github.com/basho/riak_control/pull/135

- Chris


On Thu, Aug 8, 2013 at 12:43 AM, Toby Corkindale 
toby.corkind...@strategicdata.com.au wrote:

 On 06/08/13 07:51, Paul Ingalls wrote:

 Hope you all don't get pissed for me spamming the list….;)

 I upgraded my cluster to 1.4.1 in hopes the levelDB changes may help.
   The cluster is now up and running, however Riak Control is complaining:

 The following nodes are currently incompatible with Riak Control:
 all my nodes


 I've hit exactly the same problem, after doing a rolling upgrade to 1.4.1
 on Ubuntu.
 I'm using the official Riak apt repo.

 Any hints on how to fix this?

 ta,
 Toby


 __**_
 riak-users mailing list
 riak-users@lists.basho.com
 http://lists.basho.com/**mailman/listinfo/riak-users_**lists.basho.comhttp://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com

___
riak-users mailing list
riak-users@lists.basho.com
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com


Re: Ripple Gem Help

2013-08-07 Thread Chris Meiklejohn
Hi Jace,

The rubydoc is probably the best resource to use.  For instance, here's
more information on how to manipulate secondary indexes:

http://rubydoc.info/github/seancribbs/ripple/Ripple/Index

Let me know if that's not what you're looking for.

- Chris



On Wed, Aug 7, 2013 at 7:35 AM, Jace Poirier-Pinto j...@cpusage.com wrote:

 Hello,

 I am trying to use Riak's gem 'ripple' for a Ruby on Rails project and I
 was wondering if there was any 'advanced' documentation for data
 manipulation in the Document Model. Specifically, setting up and using
 secondary indexes, accessing 'self' variables, etc.

 ___
 riak-users mailing list
 riak-users@lists.basho.com
 http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com


___
riak-users mailing list
riak-users@lists.basho.com
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com


Re: riak control post upgrade

2013-08-06 Thread Chris Meiklejohn
Hi Paul,

I just wanted to let you know that I'm currently investigating this and
will get back to you shortly.

I've opened the following issue for tracking it:

https://github.com/basho/riak_control/issues/128

In addition, in retrospect I've realized that using the incompatible
language is a bit misleading -- only a subset of functionality becomes
unavailable when Control detects a possible incompatibility, and this is
usually limited to display a node's memory utilization (leaving management
commands unaffected.)

I've opened the following issue for tracking updating the language to
provide a less ambiguous, more concrete, display of what is actually
happening within the cluster:

https://github.com/basho/riak_control/issues/127

Thanks for being so patient and diligent with testing our latest releases!

- Chris


On Mon, Aug 5, 2013 at 2:51 PM, Paul Ingalls p...@fanzo.me wrote:

 Hope you all don't get pissed for me spamming the list….;)

 I upgraded my cluster to 1.4.1 in hopes the levelDB changes may help.  The
 cluster is now up and running, however Riak Control is complaining:

 The following nodes are currently incompatible with Riak Control:
 all my nodes

 I googled around and saw this had something to do with the RPC calls
 failing, but I can't find any logs on the server that give me a hint where
 to go next.

 When I rebuilt from source, my rel directory was nuked, so I needed to
 regenerate my certs.  Would this screw things up?

 Thanks,

 Paul


 Paul Ingalls
 Founder  CEO Fanzo
 p...@fanzo.me
 @paulingalls
 http://www.linkedin.com/in/paulingalls




 ___
 riak-users mailing list
 riak-users@lists.basho.com
 http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com


___
riak-users mailing list
riak-users@lists.basho.com
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com


Re: [ANN] Riak 1.4.1

2013-08-05 Thread Chris Meiklejohn
Correct link to the release notes [1].

Apologies.

[1] https://github.com/basho/riak/blob/1.4/RELEASE-NOTES.md

- Chris



On Mon, Aug 5, 2013 at 1:04 PM, Christopher Meiklejohn 
cmeiklej...@basho.com wrote:

 Riak Users,

 We are pleased to announce a bugfix release on the Riak 1.4 series
 addressing issues with Riak Control, Secondary Indexes and LevelDB.

 The release notes for Riak can be found here:
 https://github.com/basho/riak/blob/1.4/RE LEASE-NOTES.md

 The packages can be found here:
 http://docs.basho.com/riak/1.4.1/downloads/

 Users who prefer to build from source, use the riak-1.4.1 tag from
 https://github.com/basho/riak.git

 Thanks,
 -Team Basho



 --
 Christopher Meiklejohn
 Software Engineer
 Basho Technologies, Inc.




___
riak-users mailing list
riak-users@lists.basho.com
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com


Re: [ANN] Riak 1.4.1

2013-08-05 Thread Chris Meiklejohn
Hi Paul,

Can you confirm that everything was removed from /home/fanzo/riak/deps
after running make distclean?  It appears that there's an older riak_kv
still hanging around there.  Sometimes rebar delete-deps, which is what is
triggered by distclean, fails to clean up dependencies when they have been
not checked out completely. (via control-c, etc.)

- Chris



On Mon, Aug 5, 2013 at 1:23 PM, Paul Ingalls p...@fanzo.me wrote:

 When I try to checkout the tag to build the source, and then run make rel
 I get the following error:

 ERROR: Dependency dir /home/fanzo/riak/deps/riak_kv failed application
 validation with reason:
 {version_mismatch,{/home/fanzo/riak/deps/riak_kv/src/riak_kv.app.src,
{expected,1.4.1},
{has,1.4.0}}}.

 I make distclean and see the same issue. am I missing something?

 Paul Ingalls
 Founder  CEO Fanzo
 p...@fanzo.me
 @paulingalls
 http://www.linkedin.com/in/paulingalls



 On Aug 5, 2013, at 1:19 PM, Chris Meiklejohn cmeiklej...@basho.com
 wrote:

 Correct link to the release notes [1].

 Apologies.

 [1] https://github.com/basho/riak/blob/1.4/RELEASE-NOTES.md

 - Chris



 On Mon, Aug 5, 2013 at 1:04 PM, Christopher Meiklejohn 
 cmeiklej...@basho.com wrote:

 Riak Users,

 We are pleased to announce a bugfix release on the Riak 1.4 series
 addressing issues with Riak Control, Secondary Indexes and LevelDB.

 The release notes for Riak can be found here:
 https://github.com/basho/riak/blob/1.4/RE LEASE-NOTES.md

 The packages can be found here:
 http://docs.basho.com/riak/1.4.1/downloads/

 Users who prefer to build from source, use the riak-1.4.1 tag from
 https://github.com/basho/riak.git

 Thanks,
 -Team Basho



 --
 Christopher Meiklejohn
 Software Engineer
 Basho Technologies, Inc.




 ___
 riak-users mailing list
 riak-users@lists.basho.com
 http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com



___
riak-users mailing list
riak-users@lists.basho.com
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com


Re: reducing n_val

2013-07-21 Thread Chris Meiklejohn
On Fri, Jul 19, 2013 at 7:35 AM, Simon Effenberg
seffenb...@team.mobile.dewrote:

 On Tue, 16 Jul 2013 10:31:07 -0400
 Chris Meiklejohn cmeiklej...@basho.com wrote:

  On Tue, Jul 16, 2013 at 10:02 AM, Simon Effenberg 
 seffenb...@team.mobile.de
   wrote:
 
   Changing the n_val setting in the default bucket properties will only
   affect new PUT operations moving forward. Older replicas will not be
   removed, and the AAE process will not purge older, unneeded replicas.
  
   Is there a way to get rid of this? Or only by
   decommissioning/re-commissioning a node?
 
 
  There isn't a good solution for doing this.  Can I ask why you are
 changing
  the default n_val for this particular bucket?

 because we have some storage problems (it turns out that we have to
 store much more data and at the moment we have not that amount of disk
 space).


I would recommend against reducing this value, as you're going to lose
availability
and could risk potential data loss in the event of node failures.


 So is it possible or should it definitely be avoided? Also what is with
 increasing the n_val? Would this lead to many read-repairs through the
 AAE? Or what happens then?


If you raise the n_val, read repair and active anti-entropy will handle
creating the
missing replicas.

- Chris
___
riak-users mailing list
riak-users@lists.basho.com
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com


Re: Yokozuna in Riak Control

2013-07-19 Thread Chris Meiklejohn
Good idea!

I've filed the following issue in GitHub for tracking this:
https://github.com/basho/riak_control/issues/116

- Chris


On Fri, Jul 19, 2013 at 3:03 PM, Dave Martorana d...@flyclops.com wrote:

 Hey everyone,

 A feature request, if I may - RAM monitoring in Riak Control currently
 shows Riak RAM usage and all-other usage. Would love if it showed
 SOLR/Lucene RAM usage as well in future, integrated Yokozuna builds.

 Cheers!

 Dave

 ___
 riak-users mailing list
 riak-users@lists.basho.com
 http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com


___
riak-users mailing list
riak-users@lists.basho.com
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com


Re: reducing n_val

2013-07-16 Thread Chris Meiklejohn
On Tue, Jul 16, 2013 at 10:02 AM, Simon Effenberg seffenb...@team.mobile.de
 wrote:

 Changing the n_val setting in the default bucket properties will only
 affect new PUT operations moving forward. Older replicas will not be
 removed, and the AAE process will not purge older, unneeded replicas.

 Is there a way to get rid of this? Or only by
 decommissioning/re-commissioning a node?


There isn't a good solution for doing this.  Can I ask why you are changing
the default n_val for this particular bucket?

- Chris
___
riak-users mailing list
riak-users@lists.basho.com
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com


Re: riak_core node down question

2013-07-04 Thread Chris Meiklejohn
On Tue, Jul 2, 2013 at 11:15 PM, Konstantin Kalin 
konstantin.ka...@gmail.com wrote:

 I'm playing with riak_core to build a prototype. Thanks for giving such
 powerful framework to build a distributed app :)
 Looking at source code and examples I learn how to handle hinted
 handoff(s). It works really nice. But I wondered how to handle a node crash
 (when a node goes down unexpectedly for some reasons).

 Is there anyway I can be notified about node-down and get list of vnodes
 that were primary on that failed node?


I'd look into riak_core_node_watcher [1] and riak_core_node_watcher_events
[2].  They should help you build what you're looking for.

[1]
https://github.com/basho/riak_core/blob/master/src/riak_core_node_watcher.erl
[2]
https://github.com/basho/riak_core/blob/master/src/riak_core_node_watcher_events.erl

- Chris
___
riak-users mailing list
riak-users@lists.basho.com
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com


Re: ssl support?

2012-07-13 Thread Chris Meiklejohn
Hi Michael,

Does either your cert/key file have two keys in it by chance?  If so, one
of those is most likely an intermediary cert, which should be placed in
it's own file as outlined here (see intermediate authorities, cacertfile):

http://wiki.basho.com/Riak-Control.html

- Chris

Christopher Meiklejohn
Software Engineer
Basho Technologies, Inc.

On Fri, Jul 13, 2012 at 3:45 PM, Michael Johnson m...@mediatemple.net wrote:

 I've also gave this a try a bit ago using a legit cert from an ssl
 provider with the same result.  Are you also running on centos 6 using the
 binaries provided from http://downloads.basho.com/riak/CURRENT/

 If I need to build my own packages from source, I can do that, but I'd
 much prefer to use the pre-built binaries.


 On Fri, Jul 13, 2012 at 11:41 AM, John E. Vincent 
 lusis.org+riak-us...@gmail.com wrote:

 SSL is working for me (for riak-control) using self-signed
 certificates. However I've not yet tried it with an external client.

 On Fri, Jul 13, 2012 at 2:34 PM, Michael Johnson m...@mediatemple.net
 wrote:
  I've been having problems getting riak to function via https and have
 not
  been able to find anything online that seems to help so far.  I am
 using a
  self-signed certificate (which is one I generated specifically for this
  testing, and thus could post as it will not be used for anything else)
 and
  have it stored as separate .crt and .key files.  I've used open SSL to
  verify the certificate and it appears to be all good.  Here is what the
  relevant bits of my app.config look like (I can post the rest as
 needed, but
  I'm trying to be consise):
 
{http, [{0.0.0.0, 8091}]},
{https, [{0.0.0.0, 8092}]},
{ssl, [
   {certfile, /etc/riak/ssl.crt},
   {keyfile, /etc/riak/ssl.key}
  ]},
 
  Starting riak does not generate any errors, and 'riak-admin test' works:
  [root@riak01 riak]# riak-admin test
  Attempting to restart script through sudo -u riak
  Successfully completed 1 read/write cycle to '
 r...@riak01.mediatemple.net'
 
  Manuallly querying riak via http also works fine:
 
  [root@riak01 riak]# curl -k -vvv
  http://127.0.0.1:8091/riak/__riak_client_test__
  * About to connect() to 127.0.0.1 port 8091 (#0)
  *   Trying 127.0.0.1... connected
  * Connected to 127.0.0.1 (127.0.0.1) port 8091 (#0)
  GET /riak/__riak_client_test__ HTTP/1.1
  User-Agent: curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7
  NSS/3.13.1.0 zlib/1.2.3 libidn/1.18 libssh2/1.2.2
  Host: 127.0.0.1:8091
  Accept: */*
 
   HTTP/1.1 200 OK
   Vary: Accept-Encoding
   Server: MochiWeb/1.1 WebMachine/1.9.0 (someone had painted it blue)
   Date: Fri, 13 Jul 2012 18:03:13 GMT
   Content-Type: application/json
   Content-Length: 410
  
  * Connection #0 to host 127.0.0.1 left intact
  * Closing connection #0
 
 {props:{name:__riak_client_test__,allow_mult:false,basic_quorum:false,big_vclock:50,chash_keyfun:{mod:riak_core_util,fun:chash_std_keyfun},dw:1,last_write_wins:false,linkfun:{mod:riak_kv_wm_link_walker,fun:mapreduce_linkfun},n_val:1,notfound_ok:true,old_vclock:86400,postcommit:[],pr:0,precommit:[],pw:0,r:1,rw:1,small_vclock:50,w:1,young_vclock:20}}
 
 
  But the minute I try to connect via https I have problems:
 
  [root@riak01 riak]# curl -k -vvv
  https://127.0.0.1:8092/riak/__riak_client_test__
  * About to connect() to 127.0.0.1 port 8092 (#0)
  *   Trying 127.0.0.1... connected
  * Connected to 127.0.0.1 (127.0.0.1) port 8092 (#0)
  * Initializing NSS with certpath: sql:/etc/pki/nssdb
  * warning: ignoring value of ssl.verifyhost
  * NSS error -5938
  * Closing connection #0
  * SSL connect error
  curl: (35) SSL connect error
 
  And I see the following in the logs:
 
  console.log:
  2012-07-13 11:05:52.023 [error] 0.5313.0 CRASH REPORT Process
 0.5313.0
  with 0 neighbours crashed with reason:
  {ekeyfile,[{gen_fsm,init_it,6},{proc_lib,init_p_do_apply,3}]}
  2012-07-13 11:05:52.026 [error] 0.134.0 Supervisor ssl_connection_sup
 had
  child undefined started with {ssl_connection,start_link,undefined} at
  0.5313.0 exit with reason ekeyfile in context child_terminated
  2012-07-13 11:05:52.031 [error] 0.139.0 application: mochiweb, Accept
  failed error, {error,ekeyfile}
  2012-07-13 11:05:52.033 [error] 0.139.0 CRASH REPORT Process 0.139.0
  with 0 neighbours crashed with reason: {error,accept_failed}
  2012-07-13 11:05:52.035 [error] 0.135.0
  {mochiweb_socket_server,310,{acceptor_error,{error,accept_failed}}}
 
  crash.log:
  2012-07-13 11:05:52 =ERROR REPORT
 
 [83,83,76,58,32,1112,58,32,error,58,[],32,/etc/riak/ssl.key,\n,32,32,[91,[[123,[ssl_connection,44,init_private_key,44,5],125],44,10,
  ,[123,[ssl_connection,44,ssl_init,44,2],125],44,10,
  ,[123,[ssl_connection,44,init,44,1],125],44,10,
  ,[123,[gen_fsm,44,init_it,44,6],125],44,10,
 
 ,[123,[proc_lib,44,init_p_do_apply,44,3],125]],93],\n]2012-07-13
  11:05:52 =CRASH REPORT
crasher:
  initial 

Re: Issues with Riak Control

2012-05-07 Thread Chris Meiklejohn
Hi Dmitry,

We haven't merged a fix in just yet, but we're hoping to over the next week
or so.

In the interim, you should be able to modify priv/admin/js/pjax.js, line
184 and increase the timeout to something larger, like 1 (or larger)
which should resolve the issue when you are dealing with high latency.
 Please let us know if this works for you.

In regards to the incorrect content types, I've just merged a change [1]
which will return the correct content types for files served from
webmachine off the filesystem.

[1] https://github.com/basho/riak_control/pull/18

Thanks.

Christopher Meiklejohn
Software Engineer

On Mon, May 7, 2012 at 4:45 PM, char...@contentomni.com wrote:

 Hi Dmitry,

 I was actually able to solve this problem a while back. I was also told
 that the changes would be pushed to Github, I haven't had cause to check if
 this was actually done.

 The problem was with some files in the
 /usr/lib/riak/lib/riak_control-0.1.0/priv directory. It's somewhat of a
 timeout issue in one of the javascript files.

 If you like I could tell you what you need to update to get it working?!

 Cheers.

 Charles.

 -Original Message-
 From: Dmitry Demeshchuk demeshc...@gmail.com
 Sent: Monday, 7 May, 2012 8:54pm
 To: char...@contentomni.com
 Cc: Jeffrey Massung j...@basho.com, riak-users 
 riak-users@lists.basho.com
 Subject: Re: Issues with Riak Control

 Hi, Charles.

 We are experiencing the same problem. I replaced all the files with
 the newest ones, not result. Restarted Riak just in case – still the
 same.

 For what it's worth, the CSS that is being served (by webmachine, I
 guess) has content-type text/html.

 Also, I have very long ping to our servers (200-500ms), and when
 riak_control main page is loading I can see it for about a second.
 Then this white non-CSS'ed page appears. But the folks that reside in
 SF close to the servers say they don't even see the home page, just
 this Current Snapshot stuff.

 Riak version is 1.1.2.

 Please let me know if you need to know anything else.

 Thank you.

 On Fri, Mar 23, 2012 at 1:18 AM,  char...@contentomni.com wrote:
  Jeff,
 
  Thanks a lot for helping me deal with the issue.
 
  For those who need to make changes now without having to edit any
 javascript files, you can do the following:
 
  1. Clone Riak Control from Github
  2. Remove your old priv file (/usr/lib/riak/lib/riak_control-0.1.0/priv)
  3. Copy the new priv folder over to the same location
 
  Hopefully these changes would already have been pushed to github by the
 time you need to use them.
 
  Cheers.
 
  -Original Message-
  From: Jeffrey Massung j...@basho.com
  Sent: Thursday, 22 March, 2012 9:50pm
  To: char...@contentomni.com
  Cc: riak-users riak-users@lists.basho.com
  Subject: Re: Issues with Riak Control
 
  Replying now for posterity:
 
  Riak Control uses pjax for templating and dynamic updating of page
 elements. It's a great tool. However, it also has a very small default ajax
 timeout for page requests, and when there's a timeout, the ajax callback
 returns a success code, but with an empty document. The Riak Control code
 makes an assumption about empty pages (to-be fixed), which then performs a
 redirect to the document in question.
 
  Charles' issue has been corrected by modifying some JavaScript in Riak
 Control. We're going to be fixing this issue with something a bit more
 robust and and pushing it to GitHub.
 
  Note: while we saw the reason for the problem quickly, Armon's email
 about timeouts is what led us down that path. A hearty thanks goes out to
 him for that insight! ;-)
 
  --
  Jeffrey Massung
  Software Engineer
  j...@basho.com
 
  On Mar 22, 2012, at 9:28 AM, Jeffrey Massung wrote:
 
  Charles, I've emailed you off-list with a whole set of things to test.
 We have an idea what the problem might be. For posterity, once a solution
 is arrived at, I'll post it back to the mailing list.
 
  --
  Jeffrey Massung
  Software Engineer
  j...@basho.com
 
  On Mar 21, 2012, at 9:13 PM, char...@contentomni.com wrote:
 
  Yes, it does return the css file.
 
  The way I've setup my cluster is that I am using my private ip address
 (remember I'm using Rackspace Cloud Servers) for my riak_core-http setting
 in app.config, and I am using my public ip address for the riak_core-https
 setting.
 
  Everything is working ok on the cluster, everything looks ok from
 riak-admin status. I just have the problem with riak control.
 
  -Original Message-
  From: Jeffrey Massung j...@basho.com
  Sent: Wednesday, 21 March, 2012 11:59pm
  To: char...@contentomni.com
  Cc: riak-users riak-users@lists.basho.com
  Subject: Re: Issues with Riak Control
 
  Charles,
 
  A quick test... on the command prompt, does the following return the
 CSS file?
 
  curl -k https://user:pass@localhost:8069/admin/ui/style.css
 
  Note: change the credentials, ip, and port appropriately for your
 cluster setup. I'll look at something else for the URL redirection