Erlang Couchdb{quot;init终止于do_boot,{{{badmatch,{error,{shutdown
用Erlang编写的加密货币池挖掘软件。 我目前试图在debian服务器上安装此软件,但遇到如下所述的错误。我对linux非常陌生,如果这是一个非常简单的问题,请原谅Erlang Couchdb{quot;init终止于do_boot,{{{badmatch,{error,{shutdown,erlang,couchdb,Erlang,Couchdb,用Erlang编写的加密货币池挖掘软件。 我目前试图在debian服务器上安装此软件,但遇到如下所述的错误。我对linux非常陌生,如果这是一个非常简单的问题,请原谅 root@j064:~/ecoinpool# ./test_launch.sh ==> ecoinpool (compile) ==> ebitcoin (compile) ==> rel (compile) ==> ecoinpool (compile) Erlang R15B01 (erts-5.9.
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#
我的ecoinconfig如下所示:
% This is an example configuration file. Lists are denoted with [...] and tuples
% are denoted with {...}. Together they form a nested structure of names and
% parameters. If you make changes and add or remove options, make sure not to
% have a comma before a closing bracket or curly brace.
[
% SASL is Erlang's internal error and crash logger; it also logs starting
% and stopping of certain processes. I set it to "error" here so it won't
% pollute stdout/stderr.
{sasl, [
{errlog_type, error}
]},
% This is ecoinpool's main configuration. The CouchDB connection is
% configured here.
{ecoinpool, [
% The following commented lines are default settings.
{db_host, "127.0.0.1"},
% {db_port, 5984},
% {db_prefix, ""},
% The next line should be changed, depending on your CouchDB
% authentication settings:
{db_options, [{basic_auth, {"dbuser", "dbpass"}}]},
% Here you can change ecoinpool's HTTP service port, currently used to
% serve global RPC functions used by the frontend.
%{service_port, 8080},
% The last line in this section contains your blowfish secret key, share
% this among your servers and don't tell it to anyone else. Minimum key
% length is 4 bytes, maximum is 56 bytes.
% If you have pwgen (a password generator), try "pwgen -s 56 1" to get
% 56 random characters.
{blowfish_secret, "9Zx95ZQ2P0682MtbSGw8RNLrYhmCBD7jFwzejlv54oLXzB9gGbCfWQUc"}
]},
% This is the ebitcoin configuration. ebitcoin forms a separate application,
% thus it doesn't share ecoinpool's database settings. If you use the same
% CouchDB server and authentication, copy it from above.
{ebitcoin, [
% You can also disable ebitcoin altogether by uncommenting the following
% line. Note that you will fall back to the polling system then.
% {enabled, false},
{db_host, "127.0.0.1"},
% {db_port, 5984},
% {db_prefix, ""},
{db_options, [{basic_auth, {"dbuser", "dbpass"}}]}
]},
% The third separate application (it also has to be started separately) is
% the MySQL Replicator. It is used to bridge legacy MySQL worker tables to
% CouchDB and also stores copies of the shares into a MySQL table.
{ecoinpool_mysql_replicator, [
% Again, commented lines are default settings.
{couchdb_host, "127.0.0.1"},
%{couchdb_port, 5984},
%{couchdb_prefix, ""},
{couchdb_options, [{basic_auth, {"dbuser", "dbpass"}}]},
%{couchdb_database, "ecoinpool"},
%{mysql_host, "localhost"},
%{mysql_port, 3306},
%{mysql_prefix, ""},
{mysql_options, [{auth, {"unchanged", "unchanged"}}]},
%{mysql_database, "ecoinpool"},
% This is a setting that certainly has to be changed. Configure one or
% more worker table replicators here (if you have multiple sub-pools).
% Please only connect one sub-pool to one table or things get jammed up.
{replicator_configs, [
% Format: {<ecoinpool sub-pool ID>, <MySQL worker table>, <MySQL sync interval in seconds, 1 or more>}
{"24aa68ec6c910de0850ed0c575621ec9", "pool_worker", 15}
]},
% Next is your blowfish secret key. Copy it from above.
{blowfish_secret, "Replace me!"},
% And the last one, also to be likely changed, is the shares deployer
% configuration. There are two possible formats here, one with and one
% without using merged mining. The config ID is used as basename for
% saving the deployment state file and for the "source" column.
{share_deployer_configs, [
% Non-MM Format: {<config ID string>, <pool name>, <MySQL shares table>, <MySQL write interval in seconds, 0 allowed>}
{"ltc_test_shares", "ltc-test", "shares", 60},
% MM Format: {<config ID string>, <main pool name>, <aux pool name>, <MySQL shares table>, <MySQL write interval in seconds, 0 allowed>}
{"btc_nmc_test_shares", "btc-test", "nmc-test", "shares", 60}
]}
]}
].
%这是一个示例配置文件。列表用[…]和元组表示
%用{…}表示。它们一起构成了名称和名称的嵌套结构
%参数。如果进行更改并添加或删除选项,请确保
%在右括号或大括号前加逗号。
[
%SASL是Erlang的内部错误和崩溃记录器;它还记录启动
%以及停止某些进程。我在这里将其设置为“error”,这样它就不会
%污染污水/污水。
{sasl[
{errlog_类型,错误}
]},
%这是ecoinpool的主要配置
%在这里配置。
{ecoinpool[
%以下注释行是默认设置。
{db_host,“127.0.0.1”},
%{db_port,5984},
%{db_前缀,“},
%下一行应该更改,具体取决于您的CouchDB
%身份验证设置:
{db_options,[{basic_auth,{“dbuser”,“dbpass”}]},
%在这里,您可以更改ecoinpool的HTTP服务端口,该端口当前用于
%为前端使用的全局RPC函数提供服务。
%{service_port,8080},
%本节的最后一行包含您的河豚密钥share
%这是在你的服务器之间进行的,不要告诉任何其他人。最小密钥
%长度为4字节,最大为56字节。
%如果您有pwgen(密码生成器),请尝试“pwgen-s 56 1”获取密码
%56个随机字符。
{河豚秘密,“9Zx95ZQ2P0682MtbSGw8RNLrYhmCBD7jFwzejlv54oLXzB9gGbCfWQUc”}
]},
%这是ebitcoin配置。ebitcoin形成一个单独的应用程序,
%因此,它不共享ecoinpool的数据库设置
%CouchDB服务器和身份验证,从上面复制它。
{ebitcoin[
%您还可以通过取消注释以下内容来完全禁用ebitcoin
%请注意,您将返回到轮询系统。
%{enabled,false},
{db_host,“127.0.0.1”},
%{db_port,5984},
%{db_前缀,“},
{db_options,[{basic_auth,{“dbuser”,“dbpass”}]}
]},
%第三个单独的应用程序(也必须单独启动)是
%MySQL复制程序。它用于将旧的MySQL工作表连接到
%CouchDB并将共享的副本存储到MySQL表中。
{ecoinpool\u mysql\u replicator[
%同样,注释行是默认设置。
{couchdb_host,“127.0.0.1”},
%{Couchdbu港,5984},
%{couchdb_前缀,“},
{couchdb_选项,[{basic_auth,{“dbuser”,“dbpass”}]},
%{couchdb_数据库,“ecoinpool”},
%{mysql_host,“localhost”},
%{mysql_port,3306},
%{mysql_前缀,“},
{mysql_options,[{auth,{“unchanged”,“unchanged”}]},
%{mysql_数据库,“ecoinpool”},
%这是一个必须更改的设置。请配置一个或多个
%这里有更多的工作表复制器(如果您有多个子池)。
%请仅将一个子池连接到一张表,否则会堵塞。
{replicator_configs[
%格式:{,}
{“24AA68EC6C910DE0850ED0C57562EC9”,“池工”,15}
]},
%下一个是你的河豚秘密钥匙。从上面复制它。
{河豚的秘密,“替换我!”},
%最后一个,也可能会改变的,是共享部署器
%配置。这里有两种可能的格式,一种是带
%不使用合并挖掘。配置ID用作
%保存“源”列的部署状态文件和。
{共享部署器配置[
%非MM格式:{,,}
{“ltc测试共享”、“ltc测试”、“共享”,60},
%MM格式:{,,}
{“btc_nmc_测试共享”、“btc测试”、“nmc测试”、“共享”,60}
]}
]}
].
已在此处发布解决方案::
如果其他人遇到同样的问题,这似乎是源代码萎缩的情况。ecoinpool依赖项的最新版本不再像预期的那样协同工作。将依赖项与p2k上次提交时的版本挂钩为我解决了这个问题:
代码:(rebar.config)
已在此处发布解决方案:: 如果其他人遇到同样的问题,这似乎是源代码萎缩的情况。ecoinpool依赖项的最新版本不再像预期的那样协同工作。将依赖项与p2k上次提交时的版本挂钩为我解决了这个问题: 代码:(rebar.config)
您是否运行了couchdb和mysql?而且您似乎需要更改配置文件中的用户凭据。%n第三个单独的应用程序(也必须单独启动)是%MySQL复制程序。它用于将旧的MySQL工作表连接到%CouchDB,并将共享的副本存储到MySQL表中。由于此注释,我没有输入MySQL数据。带有dbuser/dbpass的字段中有我的dbuser和pass。未更改意味着我没有更改任何内容。CouchDB正在运行和工作。您知道吗couchdb和mysql是否正在运行?您似乎还需要更改配置文件中的用户凭据。%n第三个单独的应用程序(也必须单独启动)是%MySQL复制程序。它用于将旧的MySQL工作表连接到%CouchDB,并将共享的副本存储到MySQL表中。由于此注释,我没有输入MySQL数据。带有dbuser/dbpass的字段包含我的dbuser和pass。
{sub_dirs, ["apps/ecoinpool", "apps/ebitcoin", "rel"]}.
{deps, [
{protobuffs, ".*", {git, "git://github.com/basho/erlang_protobuffs.git", "e0f5f6ea4c3dcb4e7b824496d2b48333fbd5a8c8"}},
{ejson, ".*", {git, "git://github.com/benoitc/ejson.git", "820ff1725008e664293b88e13c16193857afc072"}},
{oauth, ".*", {git, "git://github.com/refuge/erlang-oauth.git", "f332b77371d334d0faa13e106d0c36f948b325b6"}},
{ibrowse, ".*", {git, "git://github.com/cmullaparthi/ibrowse.git", "eb8b62cf84ccae141700c8fd251277df8be27f28"}},
{mochiweb, ".*", {git, "git://github.com/mochi/mochiweb.git", "b7f3693a9008de6d31a67174f7184fe24093a1b4"}},
{couchbeam, ".*", {git, "git://github.com/benoitc/couchbeam.git", "7148bbdb19aca91b7b74e5392a23c94d33ca4e27"}},
{log4erl, ".*", {git, "git://github.com/SemanticSugar/log4erl.git", "ec580f75ef9e28dfcfac92dc0d42c435520bd3d7"}},
{mysql, ".*", {git, "git://github.com/elbrujohalcon/erlang-mysql-driver.git", "1dd4e22a80546fa1bda81607d6397a549fd791ae"}},
{epgsql, ".*", {git, "git://github.com/wg/epgsql.git", "fc434772276475ac4e5b0bed6b18ed4732502156"}}
]}.