riak 2.0 + riak-cs 2.0 trouble
jdaily at basho.com
Fri Apr 17 08:31:48 EDT 2015
Thanks, that helps. You’re right that the documentation is a bit buggy, or at least incomplete.
The problem is that the example provided in the docs is just a snippet. To make a fully-functional advanced.config file requires a bit more syntactical structure.
You’ll need to wrap what you provided in an Erlang array, with square brackets and a period terminating it.
On Apr 17, 2015, at 8:24 AM, Stanislav Vlasov <stanislav.v.v at gmail.com> wrote:
> 2015-04-17 17:04 GMT+05:00 John Daily <jdaily at basho.com>:
>> Unfortunately it’s very easy to introduce syntax errors into Erlang configuration files (and tricky to diagnose them without Erlang experience), which is why we’re moving toward the newer sysctl-style files like riak.conf.
>> The example in the documentation looks ok; can we see a copy of your advanced.config file? Please redact any sensitive information, and I’d suggest Pastebin or a GitHub gist.
> It was copied from site by cut-n-paste, no any additions:
> Last comma in line before second '%%' removed by me.
>> On Apr 17, 2015, at 7:57 AM, Stanislav Vlasov <stanislav.v.v at gmail.com> wrote:
>>> I have troubles setting up a test riak node for riak-cs. Here's how to
>>> reproduce my problem:
>>> 1) install on Debian 7 riak 2.0.5 and riak 2.0.0 from apt repository
>>> as in http://docs.basho.com/riak/latest/ops/building/installing/debian-ubuntu/
>>> and http://docs.basho.com/riakcs/latest/cookbooks/installing/Installing-Riak-CS/
>>> 2) create advanced.config in /etc/riak as in
>>> After that I get an error in advanced.config
>>> last lines of 'riak config generate -l debug':
>>> 10:54:47.488 [info] /etc/riak/advanced.config detected, overlaying proplists
>>> 10:54:47.488 [error] Error parsing /etc/riak/advanced.config: 17:
>>> syntax error before: ']'
>>> If i remove last comma in advanced.config, I get another error:
>>> 10:58:21.398 [info] /etc/riak/advanced.config detected, overlaying proplists
>>> 10:58:21.399 [error] Error parsing /etc/riak/advanced.config: 17:
>>> syntax error before:
>>> I think, it is a bug either in documentation or in config generator
>>> riak-users mailing list
>>> riak-users at lists.basho.com
More information about the riak-users