2012-08-31 52 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