application_start_failure, wriaki, {{{badmatch, {error, econnrefused}

Bryan Fink bryan at basho.com
Thu Oct 6 12:11:06 EDT 2011


On Thu, Oct 6, 2011 at 2:56 AM, Norman Khine <norman at khine.net> wrote:
> my riak cluster is up and running:
>
> http://pastie.org/2648028
…
> aqoon:wriaki khinester$ vim rel/wriaki/etc/app.config
>
> modified the web_port to  {web_port, 8098}
…
> =INFO REPORT==== 6-Oct-2011::08:37:47 ===
>    application: wriaki
>    exited: {{{badmatch,{error,econnrefused}},
>              [{wrc,connect_pb,2},
>               {wriaki,set_bucket_props,0},

Hi, Norman.  This error is saying that Wriaki couldn't connect to the
Riak server.  You mentioned changing web_port, but did you change the
'riak' setting?  In Wriaki's config, 'web_port' specifies what port to
expose the Wriaki web interface on, while the 'riak' setting specifies
where to find Riak.  Judging by the stats output you pasted, you want:

   {riak, {http, {"127.0.0.1", 8091, "riak}}}

if you want Wriaki to connect to Riak over HTTP.

I've also just pushed some updates to wriaki and
riak-erlang-http-client that I hope to merge to master branches later
today.  You may or may not find that they work better with Riak 1.0:
https://github.com/basho/wriaki/pull/2
https://github.com/basho/riak-erlang-http-client/pull/4

-Bryan



More information about the riak-users mailing list