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

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

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

Norman Khine
hello, i am trying to run the Wriaki wiki, but get this crash:

my riak cluster is up and running:

http://pastie.org/2648028

Here is my procedure...

aqoon:riak khinester$ cd ~/Sandboxes/riak

aqoon:riak khinester$ git log
commit d5d3cbbf9c036c144ae57797cf45742120b3080a
Merge: 1ca939d bf28217
Author: Jared Morrow <[hidden email]>
Date:   Fri Sep 30 12:21:38 2011 -0600

    Merge branch '1.0'


aqoon:riak khinester$ cd ~/Sandboxes/wriaki

aqoon:wriaki khinester$ git log
commit 630a6d3b8a65d747a7996543d1f558fc05060b30
Author: Bryan Fink <[hidden email]>
Date:   Tue Mar 29 11:09:07 2011 -0400

    correct literal syntax, for github rendering

aqoon:wriaki khinester$ cd deps/riakc

aqoon:riakc khinester$ git diff rebar.config
diff --git a/rebar.config b/rebar.config
index ca0bbc6..4b66e08 100644
--- a/rebar.config
+++ b/rebar.config
@@ -1,5 +1,5 @@
 {cover_enabled, true}.
 {erl_opts, [debug_info, fail_on_warning]}.
 {deps, [
-  {protobuffs, "0.5.0", {git,
"git://github.com/basho/erlang_protobuffs", "HEAD"}}
+  {protobuffs, "0.6.*", {git,
"git://github.com/basho/erlang_protobuffs", "HEAD"}}
        ]}.

aqoon:riakc khinester$ cd ../../
aqoon:wriaki khinester$ vim rel/wriaki/etc/app.config

modified the web_port to  {web_port, 8098}

aqoon:wriaki khinester$ rel/wriaki/bin/wriaki console

Exec: /Users/khinester/Sandboxes/wriaki/rel/wriaki/erts-5.8.3/bin/erlexec
-boot /Users/khinester/Sandboxes/wriaki/rel/wriaki/releases/2/wriaki
-embedded -config
/Users/khinester/Sandboxes/wriaki/rel/wriaki/etc/app.config -args_file
/Users/khinester/Sandboxes/wriaki/rel/wriaki/etc/vm.args -- console
Root: /Users/khinester/Sandboxes/wriaki/rel/wriaki
Erlang R14B02 (erts-5.8.3) [source] [64-bit] [smp:2:2] [rq:2]
[async-threads:5] [hipe] [kernel-poll:true]

** Found 0 name clashes in code paths

=INFO REPORT==== 6-Oct-2011::08:37:47 ===
    application: wriaki
    exited: {{{badmatch,{error,econnrefused}},
              [{wrc,connect_pb,2},
               {wriaki,set_bucket_props,0},
               {wriaki_sup,init,1},
               {supervisor,init,1},
               {gen_server,init_it,6},
               {proc_lib,init_p_do_apply,3}]},
             {wriaki_app,start,[normal,[]]}}
    type: permanent
{"Kernel pid terminated",application_controller,"{application_start_failure,wriaki,{{{badmatch,{error,econnrefused}},[{wrc,connect_pb,2},{wriaki,set_bucket_props,0},{wriaki_sup,init,1},{supervisor,init,1},{gen_server,init_it,6},{proc_lib,init_p_do_apply,3}]},{wriaki_app,start,[normal,[]]}}}"}

Crash dump was written to: erl_crash.dump
Kernel pid terminated (application_controller)
({application_start_failure,wriaki,{{{badmatch,{error,econnrefused}},[{wrc,connect_pb,2},{wriaki,set_bucket_props,0},{wriaki_sup,init,1},{supervisor,in


any advice much appreciated

norman

--
%>>> "".join( [ {'*':'@','^':'.'}.get(c,None) or
chr(97+(ord(c)-83)%26) for c in ",adym,*)&uzq^zqf" ] )

_______________________________________________
riak-users mailing list
[hidden email]
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
Reply | Threaded
Open this post in threaded view
|

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

bryan-basho
Administrator
On Thu, Oct 6, 2011 at 2:56 AM, Norman Khine <[hidden email]> 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

_______________________________________________
riak-users mailing list
[hidden email]
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com