2012-08-31 54 views
2

当测试运行ecoinpool https://github.com/p2k/ecoinpool时,我正面临一个错误。Ecoinpool安装 - 与couchdb错误

操作系统是debian。

[email protected]:~/ecoinpool# ./test_launch.sh 
==> ecoinpool (compile) 
==> ebitcoin (compile) 
==> rel (compile) 
==> ecoinpool (compile) 
Erlang R15B01 (erts-5.9.1) [source] [64-bit] [smp:4:4] [async-threads:0] [kernel-poll:true] 

Eshell V5.9.1 (abort with ^G) 
([email protected])1> [12:29:23.245][ebitcoin/fatal] config_db - couchbeam:open_or_create_db/3 returned an error: 
{ok,"401", 
    [{"Server","CouchDB/1.2.0 (Erlang OTP/R15B01)"}, 
    {"Date","Thu, 30 Aug 2012 12:29:23 GMT"}, 
    {"Content-Type","application/json"}, 
    {"Content-Length","67"}, 
    {"Cache-Control","must-revalidate"}], 
    <<"{\"error\":\"unauthorized\",\"reason\":\"Name or password is incorrect.\"}\n">>} 
{"init terminating in do_boot",{{badmatch,{error,{shutdown,{ebitcoin_app,start,[normal,[]]}}}},[{ecoinpool_test_launch,start,0,[{file,"src/ecoinpool_test_launch.erl"},{line,34}]},{init,start_it,1,[]},{init,start_em,1,[]}]}} 

Crash dump was written to: erl_crash.dump 
init terminating in do_boot() 
[email protected]:~/ecoinpool# 

编辑 这是我现在面临的错误,可惜我无法解释我是如何来到这里,但未经授权的错误消失。

[email protected]:~/ecoinpool# ./test_launch.sh 
==> ecoinpool (compile) 
==> ebitcoin (compile) 
==> rel (compile) 
==> ecoinpool (compile) 
Erlang R15B01 (erts-5.9.1) [source] [64-bit] [smp:4:4] [async-threads:0] [kernel-poll:true] 

Eshell V5.9.1 (abort with ^G) 
([email protected])1> {"init terminating in do_boot",{{badmatch,{error,{shutdown,{ebitcoin_app,start,[normal,[]]}}}},[{ecoinpool_test_launch,start,0,[{file,"src/ecoinpool_test_launch.erl"},{line,34}]},{init,start_it,1,[]},{init,start_em,1,[]}]}} 

Crash dump was written to: erl_crash.dump 
init terminating in do_boot() 
[email protected]:~/ecoinpool# 
+0

编辑........... – Chriusz

+0

我已在此发布新错误: http://stackoverflow.com/questions/12231780/couchdb-init-terminating-in-do-boot- badmatch-error-shutdown – Chriusz

回答

0

回应401表示提供的BasicAuth用户:密码对无效。

默认情况下,ecoinpool使用这种配置CouchDB的访问:

{db_options, [{basic_auth, {"ecoinpool", "localtest"}}]}, 

您可以test_launch.config文件(或您实际使用的其他配置文件)更改此设置。

+0

确实,我这样做了,否则我不会在这里发帖。 – Chriusz

+0

{db_options,[{basic_auth,{“username”,“password”}}]}, 我只更改了用户名和密码,是否还有其他更改? – Chriusz

+0

<<“{\”error \“:\”unauthorized \“,\”reason \“:\”名称或密码不正确。“} \ n”>>}这是我猜错误 - 为什么它说密码或用户名不正确? – Chriusz