Ecoinpool设置 - 与couchdb的错误

时间:2012-08-31 15:22:59

标签: erlang couchdb debian bitcoin

我在测试运行ecoinpool https://github.com/p2k/ecoinpool时遇到错误。

操作系统是debian。

    root@j064:~/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)
(ecoinpool_test@j064)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 ()
root@j064:~/ecoinpool#

EDIT 这是我现在面临的错误,遗憾的是我无法解释我是如何来到这里的,但未经授权的错误已经消失。

root@j064:~/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)
(ecoinpool_test@j064)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 ()
root@j064:~/ecoinpool# 

1 个答案:

答案 0 :(得分:0)

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

默认情况下, ecoinpool 使用此配置进行CouchDB访问:

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

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